blob: 7ae686b76d9468d85aaa9d36f807198f0f4b8db8 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner01d3e382006-11-14 00:59:52 +00003# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
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+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# 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
Reid Spencera773bd52006-08-04 18:18:08 +000053# 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
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
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
John Criswell0c38eaf2003-09-10 15:17:25 +000074for 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
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
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
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
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=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 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(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 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" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
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
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # 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.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # 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 |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { 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
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (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';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 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 ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
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 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # 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
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
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, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (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
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 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
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
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
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# 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
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner01d3e382006-11-14 00:59:52 +0000718PACKAGE_VERSION='2.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# 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>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_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
Reid Spencer8b2e1412006-11-17 03:32:33 +0000833DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
838TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000839ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000840EXTRA_OPTIONS
841CXX
842CXXFLAGS
843ac_ct_CXX
844LEX
845LEXLIB
846LEX_OUTPUT_ROOT
847FLEX
848YACC
849YFLAGS
850BISON
851NM
852ifGNUmake
853LN_S
854CMP
855CP
856DATE
857FIND
858MKDIR
859MV
860RANLIB
861RM
862SED
863TAR
864BINPWD
865GRAPHVIZ
866DOT
867GV
868DOTTY
869PERL
870HAVE_PERL
871INSTALL_PROGRAM
872INSTALL_SCRIPT
873INSTALL_DATA
874BZIP2
875DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000876GROFF
877GZIP
878POD2HTML
879POD2MAN
880RUNTEST
881TCLSH
882ZIP
883INSTALL_LTDL_TRUE
884INSTALL_LTDL_FALSE
885CONVENIENCE_LTDL_TRUE
886CONVENIENCE_LTDL_FALSE
887LIBADD_DL
888ECHO
889AR
890STRIP
891CXXCPP
892F77
893FFLAGS
894ac_ct_F77
895LIBTOOL
896ETAGSFLAGS
897LLVMGCC
898LLVMGXX
Reid Spencerb2ed05262006-11-03 18:04:08 +0000899HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000900ALLOCA
901MMAP_FILE
902LLVMCC1
903LLVMCC1PLUS
904LLVMGCCDIR
905LLVMGCC_VERSION
906LLVMGCC_MAJVERS
907SHLIBEXT
908LLVM_PREFIX
909LLVM_BINDIR
910LLVM_LIBDIR
911LLVM_DATADIR
912LLVM_DOCSDIR
913LLVM_ETCDIR
914LLVM_INCLUDEDIR
915LLVM_INFODIR
916LLVM_MANDIR
917LLVM_CONFIGTIME
918LIBOBJS
919LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000920ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000921 ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927CPPFLAGS
928CPP
929CXX
930CXXFLAGS
931CCC
932YACC
933YFLAGS
934CXXCPP
935F77
936FFLAGS'
937ac_subdirs_all='projects/sample
938projects/Stacker
939projects/privbracket
940projects/llvm-test
941projects/llvm-reopt
942projects/llvm-gcc
943projects/llvm-java
944projects/llvm-tv
945projects/llvm-poolalloc
946projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000947
948# Initialize some variables set by options.
949ac_init_help=
950ac_init_version=false
951# The variables have the same names as the options, with
952# dashes changed to underlines.
953cache_file=/dev/null
954exec_prefix=NONE
955no_create=
956no_recursion=
957prefix=NONE
958program_prefix=NONE
959program_suffix=NONE
960program_transform_name=s,x,x,
961silent=
962site=
963srcdir=
964verbose=
965x_includes=NONE
966x_libraries=NONE
967
968# Installation directory options.
969# These are left unexpanded so users can "make install exec_prefix=/foo"
970# and all the variables that are supposed to be based on exec_prefix
971# by default will actually change.
972# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000973# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000974bindir='${exec_prefix}/bin'
975sbindir='${exec_prefix}/sbin'
976libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000977datarootdir='${prefix}/share'
978datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000979sysconfdir='${prefix}/etc'
980sharedstatedir='${prefix}/com'
981localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000982includedir='${prefix}/include'
983oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000984docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
985infodir='${datarootdir}/info'
986htmldir='${docdir}'
987dvidir='${docdir}'
988pdfdir='${docdir}'
989psdir='${docdir}'
990libdir='${exec_prefix}/lib'
991localedir='${datarootdir}/locale'
992mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000993
994ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000995ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000996for ac_option
997do
998 # If the previous option needs an argument, assign it.
999 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001000 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001001 ac_prev=
1002 continue
1003 fi
1004
Reid Spencera773bd52006-08-04 18:18:08 +00001005 case $ac_option in
1006 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007 *) ac_optarg=yes ;;
1008 esac
John Criswell7a73b802003-06-30 21:59:07 +00001009
1010 # Accept the important Cygnus configure options, so we can diagnose typos.
1011
Reid Spencera773bd52006-08-04 18:18:08 +00001012 case $ac_dashdash$ac_option in
1013 --)
1014 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001015
1016 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017 ac_prev=bindir ;;
1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019 bindir=$ac_optarg ;;
1020
1021 -build | --build | --buil | --bui | --bu)
1022 ac_prev=build_alias ;;
1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024 build_alias=$ac_optarg ;;
1025
1026 -cache-file | --cache-file | --cache-fil | --cache-fi \
1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028 ac_prev=cache_file ;;
1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031 cache_file=$ac_optarg ;;
1032
1033 --config-cache | -C)
1034 cache_file=config.cache ;;
1035
Reid Spencera773bd52006-08-04 18:18:08 +00001036 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001037 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001038 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001039 datadir=$ac_optarg ;;
1040
Reid Spencera773bd52006-08-04 18:18:08 +00001041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042 | --dataroo | --dataro | --datar)
1043 ac_prev=datarootdir ;;
1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046 datarootdir=$ac_optarg ;;
1047
John Criswell7a73b802003-06-30 21:59:07 +00001048 -disable-* | --disable-*)
1049 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1052 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1053 { (exit 1); exit 1; }; }
1054 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001055 eval enable_$ac_feature=no ;;
1056
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1061
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001066
1067 -enable-* | --enable-*)
1068 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001074 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
1083 exec_prefix=$ac_optarg ;;
1084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
1089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
1095
1096 -host | --host | --hos | --ho)
1097 ac_prev=host_alias ;;
1098 -host=* | --host=* | --hos=* | --ho=*)
1099 host_alias=$ac_optarg ;;
1100
Reid Spencera773bd52006-08-04 18:18:08 +00001101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
John Criswell7a73b802003-06-30 21:59:07 +00001107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
1112 includedir=$ac_optarg ;;
1113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1117 infodir=$ac_optarg ;;
1118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1122 libdir=$ac_optarg ;;
1123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
1129 libexecdir=$ac_optarg ;;
1130
Reid Spencera773bd52006-08-04 18:18:08 +00001131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
John Criswell7a73b802003-06-30 21:59:07 +00001136 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001137 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001141 localstatedir=$ac_optarg ;;
1142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1146 mandir=$ac_optarg ;;
1147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1153 | --no-cr | --no-c | -n)
1154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1167 oldincludedir=$ac_optarg ;;
1168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1172 prefix=$ac_optarg ;;
1173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1179 program_prefix=$ac_optarg ;;
1180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1186 program_suffix=$ac_optarg ;;
1187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
1203 program_transform_name=$ac_optarg ;;
1204
Reid Spencera773bd52006-08-04 18:18:08 +00001205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
John Criswell7a73b802003-06-30 21:59:07 +00001215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
1223 sbindir=$ac_optarg ;;
1224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
1234 sharedstatedir=$ac_optarg ;;
1235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
1239 site=$ac_optarg ;;
1240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1244 srcdir=$ac_optarg ;;
1245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1251 sysconfdir=$ac_optarg ;;
1252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
1254 ac_prev=target_alias ;;
1255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1256 target_alias=$ac_optarg ;;
1257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
1261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
1263
1264 -with-* | --with-*)
1265 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid package name: $ac_package" >&2
1269 { (exit 1); exit 1; }; }
1270 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001271 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001272
1273 -without-* | --without-*)
1274 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275 # Reject names that are not valid shell variable names.
1276 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1277 { echo "$as_me: error: invalid package name: $ac_package" >&2
1278 { (exit 1); exit 1; }; }
1279 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001280 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) { echo "$as_me: error: unrecognized option: $ac_option
1301Try \`$0 --help' for more information." >&2
1302 { (exit 1); exit 1; }; }
1303 ;;
1304
1305 *=*)
1306 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1309 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1310 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001311 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1320 ;;
1321
1322 esac
1323done
1324
1325if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 { echo "$as_me: error: missing argument to $ac_option" >&2
1328 { (exit 1); exit 1; }; }
1329fi
1330
Reid Spencera773bd52006-08-04 18:18:08 +00001331# Be sure to have absolute directory names.
1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001336do
Reid Spencera773bd52006-08-04 18:18:08 +00001337 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001338 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001341 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001342 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1343 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001344done
1345
1346# There might be people who depend on the old broken behavior: `$host'
1347# used to hold the argument of --host etc.
1348# FIXME: To remove some day.
1349build=$build_alias
1350host=$host_alias
1351target=$target_alias
1352
1353# FIXME: To remove some day.
1354if test "x$host_alias" != x; then
1355 if test "x$build_alias" = x; then
1356 cross_compiling=maybe
1357 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1358 If a cross compiler is detected then cross compile mode will be used." >&2
1359 elif test "x$build_alias" != "x$host_alias"; then
1360 cross_compiling=yes
1361 fi
1362fi
1363
1364ac_tool_prefix=
1365test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366
1367test "$silent" = yes && exec 6>/dev/null
1368
1369
Reid Spencera773bd52006-08-04 18:18:08 +00001370ac_pwd=`pwd` && test -n "$ac_pwd" &&
1371ac_ls_di=`ls -di .` &&
1372ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1373 { echo "$as_me: error: Working directory cannot be determined" >&2
1374 { (exit 1); exit 1; }; }
1375test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 { echo "$as_me: error: pwd does not report name of working directory" >&2
1377 { (exit 1); exit 1; }; }
1378
1379
John Criswell7a73b802003-06-30 21:59:07 +00001380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001385$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001386 X"$0" : 'X\(//\)[^/]' \| \
1387 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001388 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001389echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1392 q
1393 }
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\).*/{
1403 s//\1/
1404 q
1405 }
1406 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001407 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001408 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001409 srcdir=..
1410 fi
1411else
1412 ac_srcdir_defaulted=no
1413fi
Reid Spencera773bd52006-08-04 18:18:08 +00001414if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001417 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001418fi
Reid Spencera773bd52006-08-04 18:18:08 +00001419ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1420ac_abs_confdir=`(
1421 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001422 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001423 pwd)`
1424# When building in place, set srcdir=.
1425if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 srcdir=.
1427fi
1428# Remove unnecessary trailing slashes from srcdir.
1429# Double slashes in file names in object file debugging info
1430# mess up M-x gdb in Emacs.
1431case $srcdir in
1432*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433esac
1434for ac_var in $ac_precious_vars; do
1435 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_env_${ac_var}_value=\$${ac_var}
1437 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1438 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1439done
John Criswell7a73b802003-06-30 21:59:07 +00001440
1441#
1442# Report the --help message.
1443#
1444if test "$ac_init_help" = "long"; then
1445 # Omit some internal or obsolete options to make the list less imposing.
1446 # This message is too long to be a string in the A/UX 3.1 sh.
1447 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001448\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001449
1450Usage: $0 [OPTION]... [VAR=VALUE]...
1451
1452To assign environment variables (e.g., CC, CFLAGS...), specify them as
1453VAR=VALUE. See below for descriptions of some of the useful variables.
1454
1455Defaults for the options are specified in brackets.
1456
1457Configuration:
1458 -h, --help display this help and exit
1459 --help=short display options specific to this package
1460 --help=recursive display the short help of all the included packages
1461 -V, --version display version information and exit
1462 -q, --quiet, --silent do not print \`checking...' messages
1463 --cache-file=FILE cache test results in FILE [disabled]
1464 -C, --config-cache alias for \`--cache-file=config.cache'
1465 -n, --no-create do not create output files
1466 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467
John Criswell7a73b802003-06-30 21:59:07 +00001468Installation directories:
1469 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001471 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001473
1474By default, \`make install' will install all the files in
1475\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1476an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1477for instance \`--prefix=\$HOME'.
1478
1479For better control, use the options below.
1480
1481Fine tuning of the installation directories:
1482 --bindir=DIR user executables [EPREFIX/bin]
1483 --sbindir=DIR system admin executables [EPREFIX/sbin]
1484 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001485 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1486 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1487 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1488 --libdir=DIR object code libraries [EPREFIX/lib]
1489 --includedir=DIR C header files [PREFIX/include]
1490 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001491 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1492 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1493 --infodir=DIR info documentation [DATAROOTDIR/info]
1494 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1495 --mandir=DIR man documentation [DATAROOTDIR/man]
1496 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1497 --htmldir=DIR html documentation [DOCDIR]
1498 --dvidir=DIR dvi documentation [DOCDIR]
1499 --pdfdir=DIR pdf documentation [DOCDIR]
1500 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001501_ACEOF
1502
1503 cat <<\_ACEOF
1504
1505System types:
1506 --build=BUILD configure for building on BUILD [guessed]
1507 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1508 --target=TARGET configure for building compilers for TARGET [HOST]
1509_ACEOF
1510fi
1511
1512if test -n "$ac_init_help"; then
1513 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001514 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001515 esac
1516 cat <<\_ACEOF
1517
1518Optional Features:
1519 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1520 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001521 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001522 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001523 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001524 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001525 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001526 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001527 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001528 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001529 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1530 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001531 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001532 --enable-shared[=PKGS] build shared libraries
1533 [default=enable_shared_default]
1534 --enable-static[=PKGS] build static libraries
1535 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001536 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001537 optimize for fast installation
1538 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001539 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001540
1541Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001544 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1545 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001546 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001547 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-pic try to use only PIC/non-PIC objects [default=use
1550 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001552
1553Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001554 CC C compiler command
1555 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001556 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1557 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001560 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 CXX C++ compiler command
1562 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001563 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1564 the first program found out of: `bison -y', `byacc', `yacc'.
1565 YFLAGS The list of arguments that will be passed by default to $YACC.
1566 This script will default YFLAGS to the empty string to avoid a
1567 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001568 CXXCPP C++ preprocessor
1569 F77 Fortran 77 compiler command
1570 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001571
1572Use these variables to override the choices made by `configure' or to help
1573it to find libraries and programs with nonstandard names/locations.
1574
1575Report bugs to <llvmbugs@cs.uiuc.edu>.
1576_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001577ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001578fi
1579
1580if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001583 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001584 ac_builddir=.
1585
Reid Spencera773bd52006-08-04 18:18:08 +00001586case "$ac_dir" in
1587.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588*)
John Criswell7a73b802003-06-30 21:59:07 +00001589 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001590 # A ".." for each directory in $ac_dir_suffix.
1591 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1592 case $ac_top_builddir_sub in
1593 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595 esac ;;
1596esac
1597ac_abs_top_builddir=$ac_pwd
1598ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599# for backward compatibility:
1600ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001601
1602case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001603 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001604 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001605 ac_top_srcdir=$ac_top_builddir_sub
1606 ac_abs_top_srcdir=$ac_pwd ;;
1607 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001608 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001609 ac_top_srcdir=$srcdir
1610 ac_abs_top_srcdir=$srcdir ;;
1611 *) # Relative name.
1612 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613 ac_top_srcdir=$ac_top_build_prefix$srcdir
1614 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001615esac
Reid Spencera773bd52006-08-04 18:18:08 +00001616ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001617
Reid Spencera773bd52006-08-04 18:18:08 +00001618 cd "$ac_dir" || { ac_status=$?; continue; }
1619 # Check for guested configure.
1620 if test -f "$ac_srcdir/configure.gnu"; then
1621 echo &&
1622 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623 elif test -f "$ac_srcdir/configure"; then
1624 echo &&
1625 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001626 else
1627 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001628 fi || ac_status=$?
1629 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001630 done
1631fi
1632
Reid Spencera773bd52006-08-04 18:18:08 +00001633test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001634if $ac_init_version; then
1635 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001636llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001637generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001638
Reid Spencera773bd52006-08-04 18:18:08 +00001639Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16402002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001641This configure script is free software; the Free Software Foundation
1642gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001643
John Criswellc0c186d2005-11-08 21:11:33 +00001644Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001645_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001646 exit
John Criswell7a73b802003-06-30 21:59:07 +00001647fi
Reid Spencera773bd52006-08-04 18:18:08 +00001648cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001649This file contains any messages produced by compilers while
1650running configure, to aid debugging if configure makes a mistake.
1651
Tanya Lattner01d3e382006-11-14 00:59:52 +00001652It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001653generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001654
1655 $ $0 $@
1656
1657_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001658exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001659{
1660cat <<_ASUNAME
1661## --------- ##
1662## Platform. ##
1663## --------- ##
1664
1665hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1666uname -m = `(uname -m) 2>/dev/null || echo unknown`
1667uname -r = `(uname -r) 2>/dev/null || echo unknown`
1668uname -s = `(uname -s) 2>/dev/null || echo unknown`
1669uname -v = `(uname -v) 2>/dev/null || echo unknown`
1670
1671/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1672/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1673
1674/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1675/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1676/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001677/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001678/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1679/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1680/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1681
1682_ASUNAME
1683
1684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685for as_dir in $PATH
1686do
1687 IFS=$as_save_IFS
1688 test -z "$as_dir" && as_dir=.
1689 echo "PATH: $as_dir"
1690done
Reid Spencera773bd52006-08-04 18:18:08 +00001691IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001692
1693} >&5
1694
1695cat >&5 <<_ACEOF
1696
1697
1698## ----------- ##
1699## Core tests. ##
1700## ----------- ##
1701
1702_ACEOF
1703
1704
1705# Keep a trace of the command line.
1706# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001707# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001708# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001709# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001710ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001711ac_configure_args0=
1712ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001713ac_must_keep_next=false
1714for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001715do
John Criswell0c38eaf2003-09-10 15:17:25 +00001716 for ac_arg
1717 do
1718 case $ac_arg in
1719 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1720 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1721 | -silent | --silent | --silen | --sile | --sil)
1722 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001723 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001724 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 case $ac_pass in
1727 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1728 2)
1729 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1730 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001731 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001732 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001733 case $ac_arg in
1734 *=* | --config-cache | -C | -disable-* | --disable-* \
1735 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1736 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1737 | -with-* | --with-* | -without-* | --without-* | --x)
1738 case "$ac_configure_args0 " in
1739 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1740 esac
1741 ;;
1742 -* ) ac_must_keep_next=true ;;
1743 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001744 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001745 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ;;
1747 esac
1748 done
John Criswell7a73b802003-06-30 21:59:07 +00001749done
John Criswell0c38eaf2003-09-10 15:17:25 +00001750$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1751$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001752
1753# When interrupted or exit'd, cleanup temporary files, and complete
1754# config.log. We remove comments because anyway the quotes in there
1755# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001756# WARNING: Use '\'' to represent an apostrophe within the trap.
1757# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001758trap 'exit_status=$?
1759 # Save into config.log some information that might help in debugging.
1760 {
1761 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001762
John Criswell7a73b802003-06-30 21:59:07 +00001763 cat <<\_ASBOX
1764## ---------------- ##
1765## Cache variables. ##
1766## ---------------- ##
1767_ASBOX
1768 echo
1769 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001770(
1771 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1772 eval ac_val=\$$ac_var
1773 case $ac_val in #(
1774 *${as_nl}*)
1775 case $ac_var in #(
1776 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1777echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1778 esac
1779 case $ac_var in #(
1780 _ | IFS | as_nl) ;; #(
1781 *) $as_unset $ac_var ;;
1782 esac ;;
1783 esac
1784 done
John Criswell7a73b802003-06-30 21:59:07 +00001785 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001786 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1787 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001788 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001789 "s/'\''/'\''\\\\'\'''\''/g;
1790 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1791 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001792 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001793 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001795 esac |
1796 sort
1797)
John Criswell7a73b802003-06-30 21:59:07 +00001798 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001799
1800 cat <<\_ASBOX
1801## ----------------- ##
1802## Output variables. ##
1803## ----------------- ##
1804_ASBOX
1805 echo
1806 for ac_var in $ac_subst_vars
1807 do
Reid Spencera773bd52006-08-04 18:18:08 +00001808 eval ac_val=\$$ac_var
1809 case $ac_val in
1810 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 esac
1812 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001813 done | sort
1814 echo
1815
1816 if test -n "$ac_subst_files"; then
1817 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001818## ------------------- ##
1819## File substitutions. ##
1820## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001821_ASBOX
1822 echo
1823 for ac_var in $ac_subst_files
1824 do
Reid Spencera773bd52006-08-04 18:18:08 +00001825 eval ac_val=\$$ac_var
1826 case $ac_val in
1827 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1828 esac
1829 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001830 done | sort
1831 echo
1832 fi
1833
John Criswell7a73b802003-06-30 21:59:07 +00001834 if test -s confdefs.h; then
1835 cat <<\_ASBOX
1836## ----------- ##
1837## confdefs.h. ##
1838## ----------- ##
1839_ASBOX
1840 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001841 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001842 echo
1843 fi
1844 test "$ac_signal" != 0 &&
1845 echo "$as_me: caught signal $ac_signal"
1846 echo "$as_me: exit $exit_status"
1847 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001848 rm -f core *.core core.conftest.* &&
1849 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001850 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001851' 0
John Criswell7a73b802003-06-30 21:59:07 +00001852for ac_signal in 1 2 13 15; do
1853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1854done
1855ac_signal=0
1856
1857# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001858rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001859
1860# Predefined preprocessor variables.
1861
1862cat >>confdefs.h <<_ACEOF
1863#define PACKAGE_NAME "$PACKAGE_NAME"
1864_ACEOF
1865
1866
1867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1869_ACEOF
1870
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_VERSION "$PACKAGE_VERSION"
1874_ACEOF
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_STRING "$PACKAGE_STRING"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1884_ACEOF
1885
1886
1887# Let the site file select an alternate cache file if it wants to.
1888# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001889if test -n "$CONFIG_SITE"; then
1890 set x "$CONFIG_SITE"
1891elif test "x$prefix" != xNONE; then
1892 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1893else
1894 set x "$ac_default_prefix/share/config.site" \
1895 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001896fi
Reid Spencera773bd52006-08-04 18:18:08 +00001897shift
1898for ac_site_file
1899do
John Criswell7a73b802003-06-30 21:59:07 +00001900 if test -r "$ac_site_file"; then
1901 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1902echo "$as_me: loading site script $ac_site_file" >&6;}
1903 sed 's/^/| /' "$ac_site_file" >&5
1904 . "$ac_site_file"
1905 fi
1906done
1907
1908if test -r "$cache_file"; then
1909 # Some versions of bash will fail to source /dev/null (special
1910 # files actually), so we avoid doing that.
1911 if test -f "$cache_file"; then
1912 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1913echo "$as_me: loading cache $cache_file" >&6;}
1914 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001915 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1916 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001917 esac
1918 fi
1919else
1920 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1921echo "$as_me: creating cache $cache_file" >&6;}
1922 >$cache_file
1923fi
1924
1925# Check that the precious variables saved in the cache have kept the same
1926# value.
1927ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001928for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001929 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1930 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001931 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1932 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001933 case $ac_old_set,$ac_new_set in
1934 set,)
1935 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1936echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1937 ac_cache_corrupted=: ;;
1938 ,set)
1939 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1940echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1941 ac_cache_corrupted=: ;;
1942 ,);;
1943 *)
1944 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001945 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001946echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001948echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001949 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001950echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001951 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001952 fi;;
1953 esac
1954 # Pass precious variables to config.status.
1955 if test "$ac_new_set" = set; then
1956 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001957 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001958 *) ac_arg=$ac_var=$ac_new_val ;;
1959 esac
1960 case " $ac_configure_args " in
1961 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1962 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1963 esac
1964 fi
1965done
1966if $ac_cache_corrupted; then
1967 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1968echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1969 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1970echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1971 { (exit 1); exit 1; }; }
1972fi
1973
Reid Spencera773bd52006-08-04 18:18:08 +00001974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
John Criswell7a73b802003-06-30 21:59:07 +00001998ac_ext=c
1999ac_cpp='$CPP $CPPFLAGS'
2000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003
2004
2005
Misha Brukman19098e52005-05-12 22:15:34 +00002006LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002007
2008
2009
2010
2011
2012
2013
John Criswell7a73b802003-06-30 21:59:07 +00002014ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002015for ac_dir in autoconf "$srcdir"/autoconf; do
2016 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002017 ac_aux_dir=$ac_dir
2018 ac_install_sh="$ac_aux_dir/install-sh -c"
2019 break
Reid Spencera773bd52006-08-04 18:18:08 +00002020 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002021 ac_aux_dir=$ac_dir
2022 ac_install_sh="$ac_aux_dir/install.sh -c"
2023 break
Reid Spencera773bd52006-08-04 18:18:08 +00002024 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002025 ac_aux_dir=$ac_dir
2026 ac_install_sh="$ac_aux_dir/shtool install -c"
2027 break
2028 fi
2029done
2030if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002031 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2032echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002033 { (exit 1); exit 1; }; }
2034fi
Reid Spencera773bd52006-08-04 18:18:08 +00002035
2036# These three variables are undocumented and unsupported,
2037# and are intended to be withdrawn in a future Autoconf release.
2038# They can cause serious problems if a builder's source tree is in a directory
2039# whose full name contains unusual characters.
2040ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2041ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2042ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2043
John Criswell7a73b802003-06-30 21:59:07 +00002044
John Criswell392aaa32003-07-22 19:18:09 +00002045
Reid Spencer2706f8c2004-09-19 23:53:36 +00002046if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002047 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2048 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002049echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2050 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051 fi
John Criswell93e1c722003-09-15 17:04:06 +00002052fi
2053
John Criswell33a911a2003-11-25 20:36:46 +00002054for i in `ls ${srcdir}/projects`
2055do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002056 if test -d ${srcdir}/projects/${i} ; then
2057 case ${i} in
2058 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002059 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002061 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002063 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002065 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002066 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002067 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002068;;
Reid Spencera773bd52006-08-04 18:18:08 +00002069 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002071 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002073 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002075 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002076 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002077 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002078 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002080 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2081echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002082 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 esac
John Criswell33a911a2003-11-25 20:36:46 +00002084 fi
2085done
John Criswell559a6c12003-09-30 16:31:48 +00002086
John Criswell7a73b802003-06-30 21:59:07 +00002087
2088# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002092 { (exit 1); exit 1; }; }
2093
Reid Spencera773bd52006-08-04 18:18:08 +00002094{ echo "$as_me:$LINENO: checking build system type" >&5
2095echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002096if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
Reid Spencera773bd52006-08-04 18:18:08 +00002099 ac_build_alias=$build_alias
2100test "x$ac_build_alias" = x &&
2101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2102test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002106ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002109 { (exit 1); exit 1; }; }
2110
2111fi
Reid Spencera773bd52006-08-04 18:18:08 +00002112{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113echo "${ECHO_T}$ac_cv_build" >&6; }
2114case $ac_cv_build in
2115*-*-*) ;;
2116*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2119esac
John Criswell7a73b802003-06-30 21:59:07 +00002120build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002121ac_save_IFS=$IFS; IFS='-'
2122set x $ac_cv_build
2123shift
2124build_cpu=$1
2125build_vendor=$2
2126shift; shift
2127# Remember, the first character of IFS is used to create $*,
2128# except with old shells:
2129build_os=$*
2130IFS=$ac_save_IFS
2131case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002132
2133
Reid Spencera773bd52006-08-04 18:18:08 +00002134{ echo "$as_me:$LINENO: checking host system type" >&5
2135echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002136if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138else
Reid Spencera773bd52006-08-04 18:18:08 +00002139 if test "x$host_alias" = x; then
2140 ac_cv_host=$ac_cv_build
2141else
2142 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002145 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002146fi
John Criswell7a73b802003-06-30 21:59:07 +00002147
2148fi
Reid Spencera773bd52006-08-04 18:18:08 +00002149{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150echo "${ECHO_T}$ac_cv_host" >&6; }
2151case $ac_cv_host in
2152*-*-*) ;;
2153*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2156esac
John Criswell7a73b802003-06-30 21:59:07 +00002157host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_host
2160shift
2161host_cpu=$1
2162host_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166host_os=$*
2167IFS=$ac_save_IFS
2168case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002169
2170
Reid Spencera773bd52006-08-04 18:18:08 +00002171{ echo "$as_me:$LINENO: checking target system type" >&5
2172echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002173if test "${ac_cv_target+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
Reid Spencera773bd52006-08-04 18:18:08 +00002176 if test "x$target_alias" = x; then
2177 ac_cv_target=$ac_cv_host
2178else
2179 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2181echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002183fi
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185fi
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2187echo "${ECHO_T}$ac_cv_target" >&6; }
2188case $ac_cv_target in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2191echo "$as_me: error: invalid value of canonical target" >&2;}
2192 { (exit 1); exit 1; }; };;
2193esac
John Criswell7a73b802003-06-30 21:59:07 +00002194target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_target
2197shift
2198target_cpu=$1
2199target_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203target_os=$*
2204IFS=$ac_save_IFS
2205case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002206
2207
2208# The aliases save the names the user supplied, while $host etc.
2209# will get canonicalized.
2210test -n "$target_alias" &&
2211 test "$program_prefix$program_suffix$program_transform_name" = \
2212 NONENONEs,x,x, &&
2213 program_prefix=${target_alias}-
2214
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2216echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002217if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002218 echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002220 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002221 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002222 llvm_cv_link_all_option="-Wl,--whole-archive"
2223 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002224 llvm_cv_os_type="AIX"
2225 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002226 *-*-irix*)
2227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2229 llvm_cv_os_type="IRIX"
2230 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002234 llvm_cv_os_type="Cygwin"
2235 llvm_cv_platform_type="Unix" ;;
2236 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002237 llvm_cv_link_all_option="-Wl,-all_load"
2238 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 llvm_cv_os_type="Darwin"
2240 llvm_cv_platform_type="Unix" ;;
2241 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002242 llvm_cv_link_all_option="-Wl,--whole-archive"
2243 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 llvm_cv_os_type="FreeBSD"
2245 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002246 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002249 llvm_cv_os_type="OpenBSD"
2250 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002251 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002254 llvm_cv_os_type="HP-UX"
2255 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002256 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 llvm_cv_os_type="Interix"
2260 llvm_cv_platform_type="Unix" ;;
2261 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002264 llvm_cv_os_type="Linux"
2265 llvm_cv_platform_type="Unix" ;;
2266 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,-z,allextract"
2268 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="SunOS"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,--whole-archive"
2273 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 llvm_cv_os_type="Win32"
2275 llvm_cv_platform_type="Win32" ;;
2276 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="MingW"
2280 llvm_cv_platform_type="Win32" ;;
2281 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option=""
2283 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="Unknown"
2285 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002286esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002287fi
Reid Spencera773bd52006-08-04 18:18:08 +00002288{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2289echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002290
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291if test "$llvm_cv_os_type" = "Unknown" ; then
2292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002294 { (exit 1); exit 1; }; }
2295fi
2296
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298
2299
Reid Spencera773bd52006-08-04 18:18:08 +00002300LINKALL=$llvm_cv_link_all_option
2301
2302NOLINKALL=$llvm_cv_no_link_all_option
2303
2304
Reid Spencer7b3e8512004-12-24 06:29:05 +00002305case $llvm_cv_platform_type in
2306 Unix)
2307
2308cat >>confdefs.h <<\_ACEOF
2309#define LLVM_ON_UNIX 1
2310_ACEOF
2311
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002312 LLVM_ON_UNIX=1
2313
2314 LLVM_ON_WIN32=0
2315
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 ;;
2317 Win32)
2318
2319cat >>confdefs.h <<\_ACEOF
2320#define LLVM_ON_WIN32 1
2321_ACEOF
2322
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002323 LLVM_ON_UNIX=0
2324
2325 LLVM_ON_WIN32=1
2326
Reid Spencer7b3e8512004-12-24 06:29:05 +00002327 ;;
2328esac
2329
Reid Spencera773bd52006-08-04 18:18:08 +00002330{ echo "$as_me:$LINENO: checking target architecture" >&5
2331echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002332if test "${llvm_cv_target_arch+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002336 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002337 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002338 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2339 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002340 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002341 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002342 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002343esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002344fi
Reid Spencera773bd52006-08-04 18:18:08 +00002345{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2346echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002348if test "$llvm_cv_target_arch" = "Unknown" ; then
2349 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2350echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2351fi
John Criswell76595452003-07-01 22:07:39 +00002352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002354
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002355
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002356ac_ext=c
2357ac_cpp='$CPP $CPPFLAGS'
2358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002361if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2363set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002364{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002366if test "${ac_cv_prog_CC+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2368else
2369 if test -n "$CC"; then
2370 ac_cv_prog_CC="$CC" # Let the user override the test.
2371else
2372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373for as_dir in $PATH
2374do
2375 IFS=$as_save_IFS
2376 test -z "$as_dir" && as_dir=.
2377 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 break 2
2382 fi
2383done
2384done
Reid Spencera773bd52006-08-04 18:18:08 +00002385IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386
2387fi
2388fi
2389CC=$ac_cv_prog_CC
2390if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002391 { echo "$as_me:$LINENO: result: $CC" >&5
2392echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393else
Reid Spencera773bd52006-08-04 18:18:08 +00002394 { echo "$as_me:$LINENO: result: no" >&5
2395echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002396fi
2397
Reid Spencera773bd52006-08-04 18:18:08 +00002398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399fi
2400if test -z "$ac_cv_prog_CC"; then
2401 ac_ct_CC=$CC
2402 # Extract the first word of "gcc", so it can be a program name with args.
2403set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002404{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2405echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2408else
2409 if test -n "$ac_ct_CC"; then
2410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419 ac_cv_prog_ac_ct_CC="gcc"
2420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423done
2424done
Reid Spencera773bd52006-08-04 18:18:08 +00002425IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426
2427fi
2428fi
2429ac_ct_CC=$ac_cv_prog_ac_ct_CC
2430if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002431 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2432echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433else
Reid Spencera773bd52006-08-04 18:18:08 +00002434 { echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436fi
2437
Reid Spencera773bd52006-08-04 18:18:08 +00002438 if test "x$ac_ct_CC" = x; then
2439 CC=""
2440 else
2441 case $cross_compiling:$ac_tool_warned in
2442yes:)
2443{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2444whose name does not start with the host triplet. If you think this
2445configuration is useful to you, please write to autoconf@gnu.org." >&5
2446echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2447whose name does not start with the host triplet. If you think this
2448configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2449ac_tool_warned=yes ;;
2450esac
2451 CC=$ac_ct_CC
2452 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002453else
2454 CC="$ac_cv_prog_CC"
2455fi
2456
2457if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002458 if test -n "$ac_tool_prefix"; then
2459 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463if test "${ac_cv_prog_CC+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466 if test -n "$CC"; then
2467 ac_cv_prog_CC="$CC" # Let the user override the test.
2468else
2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470for as_dir in $PATH
2471do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476 ac_cv_prog_CC="${ac_tool_prefix}cc"
2477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 break 2
2479 fi
2480done
2481done
Reid Spencera773bd52006-08-04 18:18:08 +00002482IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002483
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002488 { echo "$as_me:$LINENO: result: $CC" >&5
2489echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490else
Reid Spencera773bd52006-08-04 18:18:08 +00002491 { echo "$as_me:$LINENO: result: no" >&5
2492echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002493fi
2494
Reid Spencera773bd52006-08-04 18:18:08 +00002495
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497fi
2498if test -z "$CC"; then
2499 # Extract the first word of "cc", so it can be a program name with args.
2500set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503if test "${ac_cv_prog_CC+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2505else
2506 if test -n "$CC"; then
2507 ac_cv_prog_CC="$CC" # Let the user override the test.
2508else
2509 ac_prog_rejected=no
2510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2511for as_dir in $PATH
2512do
2513 IFS=$as_save_IFS
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002517 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2518 ac_prog_rejected=yes
2519 continue
2520 fi
2521 ac_cv_prog_CC="cc"
2522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 break 2
2524 fi
2525done
2526done
Reid Spencera773bd52006-08-04 18:18:08 +00002527IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528
2529if test $ac_prog_rejected = yes; then
2530 # We found a bogon in the path, so make sure we never use it.
2531 set dummy $ac_cv_prog_CC
2532 shift
2533 if test $# != 0; then
2534 # We chose a different compiler from the bogus one.
2535 # However, it has the same basename, so the bogon will be chosen
2536 # first if we set CC to just the basename; use the full file name.
2537 shift
2538 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539 fi
2540fi
2541fi
2542fi
2543CC=$ac_cv_prog_CC
2544if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002545 { echo "$as_me:$LINENO: result: $CC" >&5
2546echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547else
Reid Spencera773bd52006-08-04 18:18:08 +00002548 { echo "$as_me:$LINENO: result: no" >&5
2549echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002550fi
2551
Reid Spencera773bd52006-08-04 18:18:08 +00002552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002553fi
2554if test -z "$CC"; then
2555 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002556 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002557 do
2558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2559set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002562if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002565 if test -n "$CC"; then
2566 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002575 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580done
Reid Spencera773bd52006-08-04 18:18:08 +00002581IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002582
2583fi
2584fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002589else
Reid Spencera773bd52006-08-04 18:18:08 +00002590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002592fi
2593
Reid Spencera773bd52006-08-04 18:18:08 +00002594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002596 done
2597fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598if test -z "$CC"; then
2599 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002600 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002601do
2602 # Extract the first word of "$ac_prog", so it can be a program name with args.
2603set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002606if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002611else
2612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613for as_dir in $PATH
2614do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002619 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2622 fi
2623done
2624done
Reid Spencera773bd52006-08-04 18:18:08 +00002625IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002626
2627fi
2628fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002629ac_ct_CC=$ac_cv_prog_ac_ct_CC
2630if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002633else
Reid Spencera773bd52006-08-04 18:18:08 +00002634 { echo "$as_me:$LINENO: result: no" >&5
2635echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002636fi
2637
Reid Spencera773bd52006-08-04 18:18:08 +00002638
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002639 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002640done
John Criswell7a73b802003-06-30 21:59:07 +00002641
Reid Spencera773bd52006-08-04 18:18:08 +00002642 if test "x$ac_ct_CC" = x; then
2643 CC=""
2644 else
2645 case $cross_compiling:$ac_tool_warned in
2646yes:)
2647{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2648whose name does not start with the host triplet. If you think this
2649configuration is useful to you, please write to autoconf@gnu.org." >&5
2650echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2651whose name does not start with the host triplet. If you think this
2652configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2653ac_tool_warned=yes ;;
2654esac
2655 CC=$ac_ct_CC
2656 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657fi
2658
John Criswell7a73b802003-06-30 21:59:07 +00002659fi
2660
2661
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2663See \`config.log' for more details." >&5
2664echo "$as_me: error: no acceptable C compiler found in \$PATH
2665See \`config.log' for more details." >&2;}
2666 { (exit 1); exit 1; }; }
2667
John Criswell7a73b802003-06-30 21:59:07 +00002668# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002669echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002670ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002671{ (ac_try="$ac_compiler --version >&5"
2672case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675esac
2676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002678 ac_status=$?
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002681{ (ac_try="$ac_compiler -v >&5"
2682case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2685esac
2686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002688 ac_status=$?
2689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002691{ (ac_try="$ac_compiler -V >&5"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2701
2702cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002703/* confdefs.h. */
2704_ACEOF
2705cat confdefs.h >>conftest.$ac_ext
2706cat >>conftest.$ac_ext <<_ACEOF
2707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002708
John Criswell7a73b802003-06-30 21:59:07 +00002709int
2710main ()
2711{
2712
2713 ;
2714 return 0;
2715}
2716_ACEOF
2717ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002718ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002719# Try to create an executable without -o first, disregard a.out.
2720# It will help us diagnose broken compilers, and finding out an intuition
2721# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002722{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2723echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002724ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002725#
2726# List of possible output files, starting from the most likely.
2727# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2728# only as a last resort. b.out is created by i960 compilers.
2729ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2730#
2731# The IRIX 6 linker writes into existing files which may not be
2732# executable, retaining their permissions. Remove them first so a
2733# subsequent execution test works.
2734ac_rmfiles=
2735for ac_file in $ac_files
2736do
2737 case $ac_file in
2738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2739 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2740 esac
2741done
2742rm -f $ac_rmfiles
2743
2744if { (ac_try="$ac_link_default"
2745case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748esac
2749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2755# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2756# in a Makefile. We should not override ac_cv_exeext if it was cached,
2757# so that the user can short-circuit this test for compilers unknown to
2758# Autoconf.
2759for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002760do
2761 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002762 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002764 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002765 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002766 # We found the default executable, but exeext='' is most
2767 # certainly right.
2768 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002769 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2771 then :; else
2772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2773 fi
2774 # We set ac_cv_exeext here because the later test for it is not
2775 # safe: cross compilers may not add the suffix if given an `-o'
2776 # argument, so we may need to know it at that point already.
2777 # Even if this section looks crufty: it has the advantage of
2778 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002779 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002780 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002781 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002782 esac
2783done
Reid Spencera773bd52006-08-04 18:18:08 +00002784test "$ac_cv_exeext" = no && ac_cv_exeext=
2785
John Criswell7a73b802003-06-30 21:59:07 +00002786else
2787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002788sed 's/^/| /' conftest.$ac_ext >&5
2789
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002790{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002791See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002792echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002793See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002794 { (exit 77); exit 77; }; }
2795fi
2796
2797ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002798{ echo "$as_me:$LINENO: result: $ac_file" >&5
2799echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002800
Reid Spencera773bd52006-08-04 18:18:08 +00002801# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002802# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002803{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2804echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002805# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2806# If not cross compiling, check that we can run a simple program.
2807if test "$cross_compiling" != yes; then
2808 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002809 { (case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812esac
2813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; }; then
2818 cross_compiling=no
2819 else
2820 if test "$cross_compiling" = maybe; then
2821 cross_compiling=yes
2822 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002823 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002824If you meant to cross compile, use \`--host'.
2825See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002826echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002827If you meant to cross compile, use \`--host'.
2828See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002829 { (exit 1); exit 1; }; }
2830 fi
2831 fi
2832fi
Reid Spencera773bd52006-08-04 18:18:08 +00002833{ echo "$as_me:$LINENO: result: yes" >&5
2834echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002835
John Criswell0c38eaf2003-09-10 15:17:25 +00002836rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002837ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002838# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002839# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002840{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2841echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2842{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2843echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002844
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2846echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2847if { (ac_try="$ac_link"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
2852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002854 ac_status=$?
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; then
2857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2858# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2859# work properly (i.e., refer to `conftest.exe'), while it won't with
2860# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002861for ac_file in conftest.exe conftest conftest.*; do
2862 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002863 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002866 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002867 * ) break;;
2868 esac
2869done
2870else
John Criswell0c38eaf2003-09-10 15:17:25 +00002871 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872See \`config.log' for more details." >&5
2873echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002875 { (exit 1); exit 1; }; }
2876fi
2877
2878rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002879{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2880echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002881
2882rm -f conftest.$ac_ext
2883EXEEXT=$ac_cv_exeext
2884ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002885{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2886echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002887if test "${ac_cv_objext+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
2890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002891/* confdefs.h. */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002896
John Criswell7a73b802003-06-30 21:59:07 +00002897int
2898main ()
2899{
2900
2901 ;
2902 return 0;
2903}
2904_ACEOF
2905rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002906if { (ac_try="$ac_compile"
2907case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2910esac
2911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002916 for ac_file in conftest.o conftest.obj conftest.*; do
2917 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002918 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2921 break;;
2922 esac
2923done
2924else
2925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: cannot compute suffix of object files: cannot compile
2931See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002932 { (exit 1); exit 1; }; }
2933fi
2934
2935rm -f conftest.$ac_cv_objext conftest.$ac_ext
2936fi
Reid Spencera773bd52006-08-04 18:18:08 +00002937{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2938echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002939OBJEXT=$ac_cv_objext
2940ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002941{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2942echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002943if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002944 echo $ECHO_N "(cached) $ECHO_C" >&6
2945else
2946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002952
John Criswell7a73b802003-06-30 21:59:07 +00002953int
2954main ()
2955{
2956#ifndef __GNUC__
2957 choke me
2958#endif
2959
2960 ;
2961 return 0;
2962}
2963_ACEOF
2964rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002965if { (ac_try="$ac_compile"
2966case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969esac
2970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002972 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002973 grep -v '^ *+' conftest.er1 >conftest.err
2974 rm -f conftest.er1
2975 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2977 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2979 { (case "(($ac_try" in
2980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2981 *) ac_try_echo=$ac_try;;
2982esac
2983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2984 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002985 ac_status=$?
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002989 { (case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; }; then
2998 ac_compiler_gnu=yes
2999else
3000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003001sed 's/^/| /' conftest.$ac_ext >&5
3002
Reid Spencera773bd52006-08-04 18:18:08 +00003003 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003004fi
Reid Spencera773bd52006-08-04 18:18:08 +00003005
3006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003007ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003008
3009fi
Reid Spencera773bd52006-08-04 18:18:08 +00003010{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3011echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003012GCC=`test $ac_compiler_gnu = yes && echo yes`
3013ac_test_CFLAGS=${CFLAGS+set}
3014ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003015{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003017if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019else
Reid Spencera773bd52006-08-04 18:18:08 +00003020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3022 ac_cv_prog_cc_g=no
3023 CFLAGS="-g"
3024 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003025/* confdefs.h. */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003030
John Criswell7a73b802003-06-30 21:59:07 +00003031int
3032main ()
3033{
3034
3035 ;
3036 return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003040if { (ac_try="$ac_compile"
3041case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3044esac
3045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003048 grep -v '^ *+' conftest.er1 >conftest.err
3049 rm -f conftest.er1
3050 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3054 { (case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003060 ac_status=$?
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; } &&
3063 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003064 { (case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003070 ac_status=$?
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003073 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003074else
3075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003076sed 's/^/| /' conftest.$ac_ext >&5
3077
Reid Spencera773bd52006-08-04 18:18:08 +00003078 CFLAGS=""
3079 cat >conftest.$ac_ext <<_ACEOF
3080/* confdefs.h. */
3081_ACEOF
3082cat confdefs.h >>conftest.$ac_ext
3083cat >>conftest.$ac_ext <<_ACEOF
3084/* end confdefs.h. */
3085
3086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_compile") 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3109 { (case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
3113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_try") 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; } &&
3118 { ac_try='test -s conftest.$ac_objext'
3119 { (case "(($ac_try" in
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3122esac
3123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_try") 2>&5
3125 ac_status=$?
3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127 (exit $ac_status); }; }; then
3128 :
3129else
3130 echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3134 CFLAGS="-g"
3135 cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h. */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h. */
3141
3142int
3143main ()
3144{
3145
3146 ;
3147 return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext
3151if { (ac_try="$ac_compile"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compile") 2>conftest.er1
3158 ac_status=$?
3159 grep -v '^ *+' conftest.er1 >conftest.err
3160 rm -f conftest.er1
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3165 { (case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_try") 2>&5
3171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }; } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (case "(($ac_try" in
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3178esac
3179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180 (eval "$ac_try") 2>&5
3181 ac_status=$?
3182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183 (exit $ac_status); }; }; then
3184 ac_cv_prog_cc_g=yes
3185else
3186 echo "$as_me: failed program was:" >&5
3187sed 's/^/| /' conftest.$ac_ext >&5
3188
3189
John Criswell7a73b802003-06-30 21:59:07 +00003190fi
Reid Spencera773bd52006-08-04 18:18:08 +00003191
3192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003193fi
Reid Spencera773bd52006-08-04 18:18:08 +00003194
3195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3196fi
3197
3198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 ac_c_werror_flag=$ac_save_c_werror_flag
3200fi
3201{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3202echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003203if test "$ac_test_CFLAGS" = set; then
3204 CFLAGS=$ac_save_CFLAGS
3205elif test $ac_cv_prog_cc_g = yes; then
3206 if test "$GCC" = yes; then
3207 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003208 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003209 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003210 fi
3211else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003212 if test "$GCC" = yes; then
3213 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003214 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003215 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003216 fi
3217fi
Reid Spencera773bd52006-08-04 18:18:08 +00003218{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3219echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3220if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
Reid Spencera773bd52006-08-04 18:18:08 +00003223 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003224ac_save_CC=$CC
3225cat >conftest.$ac_ext <<_ACEOF
3226/* confdefs.h. */
3227_ACEOF
3228cat confdefs.h >>conftest.$ac_ext
3229cat >>conftest.$ac_ext <<_ACEOF
3230/* end confdefs.h. */
3231#include <stdarg.h>
3232#include <stdio.h>
3233#include <sys/types.h>
3234#include <sys/stat.h>
3235/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3236struct buf { int x; };
3237FILE * (*rcsopen) (struct buf *, struct stat *, int);
3238static char *e (p, i)
3239 char **p;
3240 int i;
3241{
3242 return p[i];
3243}
3244static char *f (char * (*g) (char **, int), char **p, ...)
3245{
3246 char *s;
3247 va_list v;
3248 va_start (v,p);
3249 s = g (p, va_arg (v,int));
3250 va_end (v);
3251 return s;
3252}
3253
3254/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3255 function prototypes and stuff, but not '\xHH' hex character constants.
3256 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003257 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3259 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003260 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003261int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262
Reid Spencera773bd52006-08-04 18:18:08 +00003263/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3264 inside strings and character constants. */
3265#define FOO(x) 'x'
3266int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268int test (int i, double x);
3269struct s1 {int (*f) (int a);};
3270struct s2 {int (*f) (double a);};
3271int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272int argc;
3273char **argv;
3274int
3275main ()
3276{
3277return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3278 ;
3279 return 0;
3280}
3281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003282for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3283 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003284do
3285 CC="$ac_save_CC $ac_arg"
3286 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003287if { (ac_try="$ac_compile"
3288case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3301 { (case "(($ac_try" in
3302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303 *) ac_try_echo=$ac_try;;
3304esac
3305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3306 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003311 { (case "(($ac_try" in
3312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313 *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003317 ac_status=$?
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003320 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003321else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
Reid Spencera773bd52006-08-04 18:18:08 +00003325
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326fi
Reid Spencera773bd52006-08-04 18:18:08 +00003327
3328rm -f core conftest.err conftest.$ac_objext
3329 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330done
Reid Spencera773bd52006-08-04 18:18:08 +00003331rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003332CC=$ac_save_CC
3333
3334fi
Reid Spencera773bd52006-08-04 18:18:08 +00003335# AC_CACHE_VAL
3336case "x$ac_cv_prog_cc_c89" in
3337 x)
3338 { echo "$as_me:$LINENO: result: none needed" >&5
3339echo "${ECHO_T}none needed" >&6; } ;;
3340 xno)
3341 { echo "$as_me:$LINENO: result: unsupported" >&5
3342echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003343 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003344 CC="$CC $ac_cv_prog_cc_c89"
3345 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3346echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003347esac
3348
John Criswell0c38eaf2003-09-10 15:17:25 +00003349
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350ac_ext=c
3351ac_cpp='$CPP $CPPFLAGS'
3352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355
3356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003362{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3363echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364# On Suns, sometimes $CPP names a directory.
3365if test -n "$CPP" && test -d "$CPP"; then
3366 CPP=
3367fi
3368if test -z "$CPP"; then
3369 if test "${ac_cv_prog_CPP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374 do
3375 ac_preproc_ok=false
3376for ac_c_preproc_warn_flag in '' yes
3377do
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat >conftest.$ac_ext <<_ACEOF
3385/* confdefs.h. */
3386_ACEOF
3387cat confdefs.h >>conftest.$ac_ext
3388cat >>conftest.$ac_ext <<_ACEOF
3389/* end confdefs.h. */
3390#ifdef __STDC__
3391# include <limits.h>
3392#else
3393# include <assert.h>
3394#endif
3395 Syntax error
3396_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003397if { (ac_try="$ac_cpp conftest.$ac_ext"
3398case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401esac
3402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null; then
3410 if test -s conftest.err; then
3411 ac_cpp_err=$ac_c_preproc_warn_flag
3412 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413 else
3414 ac_cpp_err=
3415 fi
3416else
3417 ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420 :
3421else
3422 echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425 # Broken: fails on valid input.
3426continue
3427fi
Reid Spencera773bd52006-08-04 18:18:08 +00003428
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003429rm -f conftest.err conftest.$ac_ext
3430
Reid Spencera773bd52006-08-04 18:18:08 +00003431 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003432 # can be detected and how.
3433 cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h. */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h. */
3439#include <ac_nonexistent.h>
3440_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003441if { (ac_try="$ac_cpp conftest.$ac_ext"
3442case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445esac
3446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003448 ac_status=$?
3449 grep -v '^ *+' conftest.er1 >conftest.err
3450 rm -f conftest.er1
3451 cat conftest.err >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); } >/dev/null; then
3454 if test -s conftest.err; then
3455 ac_cpp_err=$ac_c_preproc_warn_flag
3456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457 else
3458 ac_cpp_err=
3459 fi
3460else
3461 ac_cpp_err=yes
3462fi
3463if test -z "$ac_cpp_err"; then
3464 # Broken: success on invalid input.
3465continue
3466else
3467 echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470 # Passes both tests.
3471ac_preproc_ok=:
3472break
3473fi
Reid Spencera773bd52006-08-04 18:18:08 +00003474
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003475rm -f conftest.err conftest.$ac_ext
3476
3477done
3478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479rm -f conftest.err conftest.$ac_ext
3480if $ac_preproc_ok; then
3481 break
3482fi
3483
3484 done
3485 ac_cv_prog_CPP=$CPP
3486
3487fi
3488 CPP=$ac_cv_prog_CPP
3489else
3490 ac_cv_prog_CPP=$CPP
3491fi
Reid Spencera773bd52006-08-04 18:18:08 +00003492{ echo "$as_me:$LINENO: result: $CPP" >&5
3493echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003494ac_preproc_ok=false
3495for ac_c_preproc_warn_flag in '' yes
3496do
3497 # Use a header file that comes with gcc, so configuring glibc
3498 # with a fresh cross-compiler works.
3499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3500 # <limits.h> exists even on freestanding compilers.
3501 # On the NeXT, cc -E runs the code through the compiler's parser,
3502 # not just through cpp. "Syntax error" is here to catch this case.
3503 cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h. */
3509#ifdef __STDC__
3510# include <limits.h>
3511#else
3512# include <assert.h>
3513#endif
3514 Syntax error
3515_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003516if { (ac_try="$ac_cpp conftest.$ac_ext"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
3521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003523 ac_status=$?
3524 grep -v '^ *+' conftest.er1 >conftest.err
3525 rm -f conftest.er1
3526 cat conftest.err >&5
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); } >/dev/null; then
3529 if test -s conftest.err; then
3530 ac_cpp_err=$ac_c_preproc_warn_flag
3531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3532 else
3533 ac_cpp_err=
3534 fi
3535else
3536 ac_cpp_err=yes
3537fi
3538if test -z "$ac_cpp_err"; then
3539 :
3540else
3541 echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544 # Broken: fails on valid input.
3545continue
3546fi
Reid Spencera773bd52006-08-04 18:18:08 +00003547
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003548rm -f conftest.err conftest.$ac_ext
3549
Reid Spencera773bd52006-08-04 18:18:08 +00003550 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003551 # can be detected and how.
3552 cat >conftest.$ac_ext <<_ACEOF
3553/* confdefs.h. */
3554_ACEOF
3555cat confdefs.h >>conftest.$ac_ext
3556cat >>conftest.$ac_ext <<_ACEOF
3557/* end confdefs.h. */
3558#include <ac_nonexistent.h>
3559_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003560if { (ac_try="$ac_cpp conftest.$ac_ext"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } >/dev/null; then
3573 if test -s conftest.err; then
3574 ac_cpp_err=$ac_c_preproc_warn_flag
3575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3576 else
3577 ac_cpp_err=
3578 fi
3579else
3580 ac_cpp_err=yes
3581fi
3582if test -z "$ac_cpp_err"; then
3583 # Broken: success on invalid input.
3584continue
3585else
3586 echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589 # Passes both tests.
3590ac_preproc_ok=:
3591break
3592fi
Reid Spencera773bd52006-08-04 18:18:08 +00003593
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003594rm -f conftest.err conftest.$ac_ext
3595
3596done
3597# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598rm -f conftest.err conftest.$ac_ext
3599if $ac_preproc_ok; then
3600 :
3601else
3602 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3603See \`config.log' for more details." >&5
3604echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3605See \`config.log' for more details." >&2;}
3606 { (exit 1); exit 1; }; }
3607fi
3608
John Criswell7a73b802003-06-30 21:59:07 +00003609ac_ext=c
3610ac_cpp='$CPP $CPPFLAGS'
3611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
John Criswell7a73b802003-06-30 21:59:07 +00003615
Reid Spencera773bd52006-08-04 18:18:08 +00003616{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3617echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003618if test "${ac_cv_path_GREP+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620else
Reid Spencera773bd52006-08-04 18:18:08 +00003621 # Extract the first word of "grep ggrep" to use in msg output
3622if test -z "$GREP"; then
3623set dummy grep ggrep; ac_prog_name=$2
3624if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626else
Reid Spencera773bd52006-08-04 18:18:08 +00003627 ac_path_GREP_found=false
3628# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003630for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003631do
3632 IFS=$as_save_IFS
3633 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003634 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003635 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003636 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3637 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3638 # Check for GNU ac_path_GREP and select it if it is found.
3639 # Check for GNU $ac_path_GREP
3640case `"$ac_path_GREP" --version 2>&1` in
3641*GNU*)
3642 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3643*)
3644 ac_count=0
3645 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3646 while :
3647 do
3648 cat "conftest.in" "conftest.in" >"conftest.tmp"
3649 mv "conftest.tmp" "conftest.in"
3650 cp "conftest.in" "conftest.nl"
3651 echo 'GREP' >> "conftest.nl"
3652 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3653 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3654 ac_count=`expr $ac_count + 1`
3655 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3656 # Best one so far, save it but keep looking for a better one
3657 ac_cv_path_GREP="$ac_path_GREP"
3658 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003659 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003660 # 10*(2^10) chars as input seems more than enough
3661 test $ac_count -gt 10 && break
3662 done
3663 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3664esac
3665
3666
3667 $ac_path_GREP_found && break 3
3668 done
3669done
3670
3671done
3672IFS=$as_save_IFS
3673
3674
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003675fi
Reid Spencera773bd52006-08-04 18:18:08 +00003676
3677GREP="$ac_cv_path_GREP"
3678if test -z "$GREP"; then
3679 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3680echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3681 { (exit 1); exit 1; }; }
3682fi
3683
3684else
3685 ac_cv_path_GREP=$GREP
3686fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003687
John Criswell7a73b802003-06-30 21:59:07 +00003688
Reid Spencera773bd52006-08-04 18:18:08 +00003689fi
3690{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3691echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3692 GREP="$ac_cv_path_GREP"
3693
3694
3695{ echo "$as_me:$LINENO: checking for egrep" >&5
3696echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3697if test "${ac_cv_path_EGREP+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3701 then ac_cv_path_EGREP="$GREP -E"
3702 else
3703 # Extract the first word of "egrep" to use in msg output
3704if test -z "$EGREP"; then
3705set dummy egrep; ac_prog_name=$2
3706if test "${ac_cv_path_EGREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709 ac_path_EGREP_found=false
3710# Loop through the user's path and test for each of PROGNAME-LIST
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in egrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3720 # Check for GNU ac_path_EGREP and select it if it is found.
3721 # Check for GNU $ac_path_EGREP
3722case `"$ac_path_EGREP" --version 2>&1` in
3723*GNU*)
3724 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3725*)
3726 ac_count=0
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'EGREP' >> "conftest.nl"
3734 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_EGREP="$ac_path_EGREP"
3740 ac_path_EGREP_max=$ac_count
3741 fi
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746esac
3747
3748
3749 $ac_path_EGREP_found && break 3
3750 done
3751done
3752
3753done
3754IFS=$as_save_IFS
3755
3756
3757fi
3758
3759EGREP="$ac_cv_path_EGREP"
3760if test -z "$EGREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3764fi
3765
3766else
3767 ac_cv_path_EGREP=$EGREP
3768fi
3769
3770
3771 fi
3772fi
3773{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3774echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3775 EGREP="$ac_cv_path_EGREP"
3776
3777
3778{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3779echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003780if test "${ac_cv_header_stdc+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
3783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003784/* confdefs.h. */
3785_ACEOF
3786cat confdefs.h >>conftest.$ac_ext
3787cat >>conftest.$ac_ext <<_ACEOF
3788/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003789#include <stdlib.h>
3790#include <stdarg.h>
3791#include <string.h>
3792#include <float.h>
3793
John Criswell0c38eaf2003-09-10 15:17:25 +00003794int
3795main ()
3796{
3797
3798 ;
3799 return 0;
3800}
John Criswell7a73b802003-06-30 21:59:07 +00003801_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003802rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003803if { (ac_try="$ac_compile"
3804case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807esac
3808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3809 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003810 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003815 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3817 { (case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820esac
3821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003827 { (case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003836 ac_cv_header_stdc=yes
3837else
3838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003839sed 's/^/| /' conftest.$ac_ext >&5
3840
Reid Spencera773bd52006-08-04 18:18:08 +00003841 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003842fi
Reid Spencera773bd52006-08-04 18:18:08 +00003843
3844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003845
3846if test $ac_cv_header_stdc = yes; then
3847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003854#include <string.h>
3855
3856_ACEOF
3857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003858 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003859 :
3860else
3861 ac_cv_header_stdc=no
3862fi
3863rm -f conftest*
3864
3865fi
3866
3867if test $ac_cv_header_stdc = yes; then
3868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3869 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003875#include <stdlib.h>
3876
3877_ACEOF
3878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003879 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003880 :
3881else
3882 ac_cv_header_stdc=no
3883fi
3884rm -f conftest*
3885
3886fi
3887
3888if test $ac_cv_header_stdc = yes; then
3889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3890 if test "$cross_compiling" = yes; then
3891 :
3892else
3893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003894/* confdefs.h. */
3895_ACEOF
3896cat confdefs.h >>conftest.$ac_ext
3897cat >>conftest.$ac_ext <<_ACEOF
3898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003899#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003900#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003901#if ((' ' & 0x0FF) == 0x020)
3902# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3903# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3904#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003905# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003906 (('a' <= (c) && (c) <= 'i') \
3907 || ('j' <= (c) && (c) <= 'r') \
3908 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003909# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3910#endif
3911
3912#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3913int
3914main ()
3915{
3916 int i;
3917 for (i = 0; i < 256; i++)
3918 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003919 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003920 return 2;
3921 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003922}
3923_ACEOF
3924rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003925if { (ac_try="$ac_link"
3926case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929esac
3930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003932 ac_status=$?
3933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938esac
3939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 :
3945else
3946 echo "$as_me: program exited with status $ac_status" >&5
3947echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003948sed 's/^/| /' conftest.$ac_ext >&5
3949
John Criswell7a73b802003-06-30 21:59:07 +00003950( exit $ac_status )
3951ac_cv_header_stdc=no
3952fi
Reid Spencera773bd52006-08-04 18:18:08 +00003953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954fi
3955
3956
John Criswell7a73b802003-06-30 21:59:07 +00003957fi
3958fi
Reid Spencera773bd52006-08-04 18:18:08 +00003959{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3960echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003961if test $ac_cv_header_stdc = yes; then
3962
3963cat >>confdefs.h <<\_ACEOF
3964#define STDC_HEADERS 1
3965_ACEOF
3966
3967fi
3968
Reid Spencera773bd52006-08-04 18:18:08 +00003969# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3980 inttypes.h stdint.h unistd.h
3981do
3982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3983{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3984echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3986 echo $ECHO_N "(cached) $ECHO_C" >&6
3987else
3988 cat >conftest.$ac_ext <<_ACEOF
3989/* confdefs.h. */
3990_ACEOF
3991cat confdefs.h >>conftest.$ac_ext
3992cat >>conftest.$ac_ext <<_ACEOF
3993/* end confdefs.h. */
3994$ac_includes_default
3995
3996#include <$ac_header>
3997_ACEOF
3998rm -f conftest.$ac_objext
3999if { (ac_try="$ac_compile"
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
4004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compile") 2>conftest.er1
4006 ac_status=$?
4007 grep -v '^ *+' conftest.er1 >conftest.err
4008 rm -f conftest.er1
4009 cat conftest.err >&5
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); } &&
4012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4013 { (case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021 (exit $ac_status); }; } &&
4022 { ac_try='test -s conftest.$ac_objext'
4023 { (case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
4027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028 (eval "$ac_try") 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 eval "$as_ac_Header=yes"
4033else
4034 echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037 eval "$as_ac_Header=no"
4038fi
4039
4040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041fi
4042ac_res=`eval echo '${'$as_ac_Header'}'`
4043 { echo "$as_me:$LINENO: result: $ac_res" >&5
4044echo "${ECHO_T}$ac_res" >&6; }
4045if test `eval echo '${'$as_ac_Header'}'` = yes; then
4046 cat >>confdefs.h <<_ACEOF
4047#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4048_ACEOF
4049
4050fi
4051
4052done
4053
4054
4055{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4056echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4057if test "${ac_cv_c_bigendian+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4059else
4060 # See if sys/param.h defines the BYTE_ORDER macro.
4061cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h. */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h. */
4067#include <sys/types.h>
4068#include <sys/param.h>
4069
4070int
4071main ()
4072{
4073#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4074 bogus endian macros
4075#endif
4076
4077 ;
4078 return 0;
4079}
4080_ACEOF
4081rm -f conftest.$ac_objext
4082if { (ac_try="$ac_compile"
4083case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086esac
4087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4088 (eval "$ac_compile") 2>conftest.er1
4089 ac_status=$?
4090 grep -v '^ *+' conftest.er1 >conftest.err
4091 rm -f conftest.er1
4092 cat conftest.err >&5
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); } &&
4095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4096 { (case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101 (eval "$ac_try") 2>&5
4102 ac_status=$?
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); }; } &&
4105 { ac_try='test -s conftest.$ac_objext'
4106 { (case "(($ac_try" in
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4109esac
4110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_try") 2>&5
4112 ac_status=$?
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 # It does; now see whether it defined to BIG_ENDIAN or not.
4116cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
4122#include <sys/types.h>
4123#include <sys/param.h>
4124
4125int
4126main ()
4127{
4128#if BYTE_ORDER != BIG_ENDIAN
4129 not big endian
4130#endif
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136rm -f conftest.$ac_objext
4137if { (ac_try="$ac_compile"
4138case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_compile") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4151 { (case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_try") 2>&5
4157 ac_status=$?
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); }; } &&
4160 { ac_try='test -s conftest.$ac_objext'
4161 { (case "(($ac_try" in
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4164esac
4165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_try") 2>&5
4167 ac_status=$?
4168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4169 (exit $ac_status); }; }; then
4170 ac_cv_c_bigendian=yes
4171else
4172 echo "$as_me: failed program was:" >&5
4173sed 's/^/| /' conftest.$ac_ext >&5
4174
4175 ac_cv_c_bigendian=no
4176fi
4177
4178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179else
4180 echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183 # It does not; compile a test program.
4184if test "$cross_compiling" = yes; then
4185 # try to guess the endianness by grepping values into an object file
4186 ac_cv_c_bigendian=unknown
4187 cat >conftest.$ac_ext <<_ACEOF
4188/* confdefs.h. */
4189_ACEOF
4190cat confdefs.h >>conftest.$ac_ext
4191cat >>conftest.$ac_ext <<_ACEOF
4192/* end confdefs.h. */
4193short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4194short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4195void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4196short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4197short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4198void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4199int
4200main ()
4201{
4202 _ascii (); _ebcdic ();
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207rm -f conftest.$ac_objext
4208if { (ac_try="$ac_compile"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214 (eval "$ac_compile") 2>conftest.er1
4215 ac_status=$?
4216 grep -v '^ *+' conftest.er1 >conftest.err
4217 rm -f conftest.er1
4218 cat conftest.err >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); } &&
4221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
4228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230 (exit $ac_status); }; } &&
4231 { ac_try='test -s conftest.$ac_objext'
4232 { (case "(($ac_try" in
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4235esac
4236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_try") 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4242 ac_cv_c_bigendian=yes
4243fi
4244if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4245 if test "$ac_cv_c_bigendian" = unknown; then
4246 ac_cv_c_bigendian=no
4247 else
4248 # finding both strings is unlikely to happen, but who knows?
4249 ac_cv_c_bigendian=unknown
4250 fi
4251fi
4252else
4253 echo "$as_me: failed program was:" >&5
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
4256
4257fi
4258
4259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260else
4261 cat >conftest.$ac_ext <<_ACEOF
4262/* confdefs.h. */
4263_ACEOF
4264cat confdefs.h >>conftest.$ac_ext
4265cat >>conftest.$ac_ext <<_ACEOF
4266/* end confdefs.h. */
4267$ac_includes_default
4268int
4269main ()
4270{
4271
4272 /* Are we little or big endian? From Harbison&Steele. */
4273 union
4274 {
4275 long int l;
4276 char c[sizeof (long int)];
4277 } u;
4278 u.l = 1;
4279 return u.c[sizeof (long int) - 1] == 1;
4280
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest$ac_exeext
4286if { (ac_try="$ac_link"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>&5
4293 ac_status=$?
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299esac
4300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; }; then
4305 ac_cv_c_bigendian=no
4306else
4307 echo "$as_me: program exited with status $ac_status" >&5
4308echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311( exit $ac_status )
4312ac_cv_c_bigendian=yes
4313fi
4314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315fi
4316
4317
4318fi
4319
4320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321fi
4322{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4323echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4324case $ac_cv_c_bigendian in
4325 yes)
4326 ENDIAN=big
4327 ;;
4328 no)
4329 ENDIAN=little
4330 ;;
4331 *)
4332 { { echo "$as_me:$LINENO: error: unknown endianness
4333presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4334echo "$as_me: error: unknown endianness
4335presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4336 { (exit 1); exit 1; }; } ;;
4337esac
4338
4339
4340if test "$cross_compiling" = yes; then
4341 LLVM_CROSS_COMPILING=1
4342
4343
4344{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4345echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4346if test "${ac_cv_build_exeext+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4350 ac_cv_build_exeext=.exe
4351else
4352 ac_build_prefix=${build_alias}-
4353
4354 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4355set dummy ${ac_build_prefix}gcc; ac_word=$2
4356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4358if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4359 echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361 if test -n "$BUILD_CC"; then
4362 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375done
4376done
4377IFS=$as_save_IFS
4378
4379fi
4380fi
4381BUILD_CC=$ac_cv_prog_BUILD_CC
4382if test -n "$BUILD_CC"; then
4383 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4384echo "${ECHO_T}$BUILD_CC" >&6; }
4385else
4386 { echo "$as_me:$LINENO: result: no" >&5
4387echo "${ECHO_T}no" >&6; }
4388fi
4389
4390
4391 if test -z "$BUILD_CC"; then
4392 # Extract the first word of "gcc", so it can be a program name with args.
4393set dummy gcc; ac_word=$2
4394{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4397 echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399 if test -n "$BUILD_CC"; then
4400 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
4407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409 ac_cv_prog_BUILD_CC="gcc"
4410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 break 2
4412 fi
4413done
4414done
4415IFS=$as_save_IFS
4416
4417fi
4418fi
4419BUILD_CC=$ac_cv_prog_BUILD_CC
4420if test -n "$BUILD_CC"; then
4421 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4422echo "${ECHO_T}$BUILD_CC" >&6; }
4423else
4424 { echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6; }
4426fi
4427
4428
4429 if test -z "$BUILD_CC"; then
4430 # Extract the first word of "cc", so it can be a program name with args.
4431set dummy cc; ac_word=$2
4432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436else
4437 if test -n "$BUILD_CC"; then
4438 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4439else
4440 ac_prog_rejected=no
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4449 ac_prog_rejected=yes
4450 continue
4451 fi
4452 ac_cv_prog_BUILD_CC="cc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457done
4458IFS=$as_save_IFS
4459
4460if test $ac_prog_rejected = yes; then
4461 # We found a bogon in the path, so make sure we never use it.
4462 set dummy $ac_cv_prog_BUILD_CC
4463 shift
4464 if test $# != 0; then
4465 # We chose a different compiler from the bogus one.
4466 # However, it has the same basename, so the bogon will be chosen
4467 # first if we set BUILD_CC to just the basename; use the full file name.
4468 shift
4469 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4470 fi
4471fi
4472fi
4473fi
4474BUILD_CC=$ac_cv_prog_BUILD_CC
4475if test -n "$BUILD_CC"; then
4476 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4477echo "${ECHO_T}$BUILD_CC" >&6; }
4478else
4479 { echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6; }
4481fi
4482
4483
4484 fi
4485 fi
4486 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4487echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4488 { (exit 1); exit 1; }; }
4489 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4490 rm -f conftest*
4491 echo 'int main () { return 0; }' > conftest.$ac_ext
4492 ac_cv_build_exeext=
4493 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4494 (eval $ac_build_link) 2>&5
4495 ac_status=$?
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; then
4498 for file in conftest.*; do
4499 case $file in
4500 *.c | *.o | *.obj) ;;
4501 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4502 esac
4503 done
4504 else
4505 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4506echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4507 { (exit 1); exit 1; }; }
4508 fi
4509 rm -f conftest*
4510 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4511fi
4512fi
4513
4514BUILD_EXEEXT=""
4515test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4516{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4517echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4518ac_build_exeext=$BUILD_EXEEXT
4519
4520else
4521 LLVM_CROSS_COMPILING=0
4522
4523fi
4524
4525if test -d "CVS" -o -d "${srcdir}/CVS"; then
4526 cvsbuild="yes"
4527 optimize="no"
4528 CVSBUILD=CVSBUILD=1
4529
4530else
4531 cvsbuild="no"
4532 optimize="yes"
4533fi
4534
4535
4536# Check whether --enable-optimized was given.
4537if test "${enable_optimized+set}" = set; then
4538 enableval=$enable_optimized;
4539else
4540 enableval=$optimize
4541fi
4542
4543if test ${enableval} = "no" ; then
4544 ENABLE_OPTIMIZED=
4545
4546else
4547 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4548
4549fi
4550
4551# Check whether --enable-assertions was given.
4552if test "${enable_assertions+set}" = set; then
4553 enableval=$enable_assertions;
4554else
4555 enableval="yes"
4556fi
4557
4558if test ${enableval} = "yes" ; then
4559 DISABLE_ASSERTIONS=
4560
4561else
4562 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4563
4564fi
4565
Reid Spencer8b2e1412006-11-17 03:32:33 +00004566# Check whether --enable-debug-runtime was given.
4567if test "${enable_debug_runtime+set}" = set; then
4568 enableval=$enable_debug_runtime;
4569else
4570 enableval=no
4571fi
4572
4573if test ${enableval} = "no" ; then
4574 DEBUG_RUNTIME=
4575
4576else
4577 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4578
4579fi
4580
Reid Spencera773bd52006-08-04 18:18:08 +00004581# Check whether --enable-jit was given.
4582if test "${enable_jit+set}" = set; then
4583 enableval=$enable_jit;
4584else
4585 enableval=default
4586fi
4587
4588if test ${enableval} = "no"
4589then
4590 JIT=
4591
4592else
4593 case "$llvm_cv_target_arch" in
4594 x86) TARGET_HAS_JIT=1
4595 ;;
4596 Sparc) TARGET_HAS_JIT=1
4597 ;;
4598 PowerPC) TARGET_HAS_JIT=1
4599 ;;
4600 x86_64) TARGET_HAS_JIT=0
4601 ;;
4602 Alpha) TARGET_HAS_JIT=1
4603 ;;
4604 IA64) TARGET_HAS_JIT=0
4605 ;;
4606 *) TARGET_HAS_JIT=0
4607 ;;
4608 esac
4609fi
4610
4611# Check whether --enable-doxygen was given.
4612if test "${enable_doxygen+set}" = set; then
4613 enableval=$enable_doxygen;
4614else
4615 enableval=default
4616fi
4617
4618case "$enableval" in
4619 yes) ENABLE_DOXYGEN=1
4620 ;;
4621 no) ENABLE_DOXYGEN=0
4622 ;;
4623 default) ENABLE_DOXYGEN=0
4624 ;;
4625 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4626echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4627 { (exit 1); exit 1; }; } ;;
4628esac
4629
4630# Check whether --enable-threads was given.
4631if test "${enable_threads+set}" = set; then
4632 enableval=$enable_threads;
4633else
Reid Spencer65c5d752006-11-05 17:08:18 +00004634 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004635fi
4636
4637case "$enableval" in
4638 yes) ENABLE_THREADS=1
4639 ;;
4640 no) ENABLE_THREADS=0
4641 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004642 default) ENABLE_THREADS=1
4643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004644 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4645echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4646 { (exit 1); exit 1; }; } ;;
4647esac
4648
4649cat >>confdefs.h <<_ACEOF
4650#define ENABLE_THREADS $ENABLE_THREADS
4651_ACEOF
4652
4653
4654TARGETS_TO_BUILD=""
4655# Check whether --enable-targets was given.
4656if test "${enable_targets+set}" = set; then
4657 enableval=$enable_targets;
4658else
4659 enableval=all
4660fi
4661
4662case "$enableval" in
4663 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4664 host-only)
4665 case "$llvm_cv_target_arch" in
4666 x86) TARGETS_TO_BUILD="X86" ;;
4667 x86_64) TARGETS_TO_BUILD="X86" ;;
4668 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4669 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4670 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4671 IA64) TARGETS_TO_BUILD="IA64" ;;
4672 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4673echo "$as_me: error: Can not set target to build" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4675 esac
4676 ;;
4677 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4678 case "$a_target" in
4679 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4680 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4682 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4683 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4684 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4685 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4686echo "$as_me: error: Unrecognized target $a_target" >&2;}
4687 { (exit 1); exit 1; }; } ;;
4688 esac
4689 done
4690 ;;
4691esac
4692TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4693TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4694
4695
Reid Spencer65c5d752006-11-05 17:08:18 +00004696# Check whether --enable-cbe-printf-a was given.
4697if test "${enable_cbe_printf_a+set}" = set; then
4698 enableval=$enable_cbe_printf_a;
4699else
4700 enableval=default
4701fi
4702
4703case "$enableval" in
4704 yes) ENABLE_CBE_PRINTF_A=1
4705 ;;
4706 no) ENABLE_CBE_PRINTF_A=0
4707 ;;
4708 default) ENABLE_CBE_PRINTF_A=1
4709 ;;
4710 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4711echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4712 { (exit 1); exit 1; }; } ;;
4713esac
4714
4715cat >>confdefs.h <<_ACEOF
4716#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4717_ACEOF
4718
4719
Reid Spencera773bd52006-08-04 18:18:08 +00004720
4721# Check whether --with-llvmgccdir was given.
4722if test "${with_llvmgccdir+set}" = set; then
4723 withval=$with_llvmgccdir;
4724else
4725 withval=default
4726fi
4727
4728case "$withval" in
4729 default) WITH_LLVMGCCDIR=default ;;
4730 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4731 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4732echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4733 { (exit 1); exit 1; }; } ;;
4734esac
4735
4736
4737# Check whether --with-extra-options was given.
4738if test "${with_extra_options+set}" = set; then
4739 withval=$with_extra_options;
4740else
4741 withval=default
4742fi
4743
4744case "$withval" in
4745 default) EXTRA_OPTIONS= ;;
4746 *) EXTRA_OPTIONS=$withval ;;
4747esac
4748EXTRA_OPTIONS=$EXTRA_OPTIONS
4749
4750
4751
4752ac_ext=c
4753ac_cpp='$CPP $CPPFLAGS'
4754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4756ac_compiler_gnu=$ac_cv_c_compiler_gnu
4757{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4758echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4759# On Suns, sometimes $CPP names a directory.
4760if test -n "$CPP" && test -d "$CPP"; then
4761 CPP=
4762fi
4763if test -z "$CPP"; then
4764 if test "${ac_cv_prog_CPP+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4766else
4767 # Double quotes because CPP needs to be expanded
4768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4769 do
4770 ac_preproc_ok=false
4771for ac_c_preproc_warn_flag in '' yes
4772do
4773 # Use a header file that comes with gcc, so configuring glibc
4774 # with a fresh cross-compiler works.
4775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4776 # <limits.h> exists even on freestanding compilers.
4777 # On the NeXT, cc -E runs the code through the compiler's parser,
4778 # not just through cpp. "Syntax error" is here to catch this case.
4779 cat >conftest.$ac_ext <<_ACEOF
4780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
4785#ifdef __STDC__
4786# include <limits.h>
4787#else
4788# include <assert.h>
4789#endif
4790 Syntax error
4791_ACEOF
4792if { (ac_try="$ac_cpp conftest.$ac_ext"
4793case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796esac
4797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null; then
4805 if test -s conftest.err; then
4806 ac_cpp_err=$ac_c_preproc_warn_flag
4807 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4808 else
4809 ac_cpp_err=
4810 fi
4811else
4812 ac_cpp_err=yes
4813fi
4814if test -z "$ac_cpp_err"; then
4815 :
4816else
4817 echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820 # Broken: fails on valid input.
4821continue
4822fi
4823
4824rm -f conftest.err conftest.$ac_ext
4825
4826 # OK, works on sane cases. Now check whether nonexistent headers
4827 # can be detected and how.
4828 cat >conftest.$ac_ext <<_ACEOF
4829/* confdefs.h. */
4830_ACEOF
4831cat confdefs.h >>conftest.$ac_ext
4832cat >>conftest.$ac_ext <<_ACEOF
4833/* end confdefs.h. */
4834#include <ac_nonexistent.h>
4835_ACEOF
4836if { (ac_try="$ac_cpp conftest.$ac_ext"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 ac_status=$?
4844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } >/dev/null; then
4849 if test -s conftest.err; then
4850 ac_cpp_err=$ac_c_preproc_warn_flag
4851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4852 else
4853 ac_cpp_err=
4854 fi
4855else
4856 ac_cpp_err=yes
4857fi
4858if test -z "$ac_cpp_err"; then
4859 # Broken: success on invalid input.
4860continue
4861else
4862 echo "$as_me: failed program was:" >&5
4863sed 's/^/| /' conftest.$ac_ext >&5
4864
4865 # Passes both tests.
4866ac_preproc_ok=:
4867break
4868fi
4869
4870rm -f conftest.err conftest.$ac_ext
4871
4872done
4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4874rm -f conftest.err conftest.$ac_ext
4875if $ac_preproc_ok; then
4876 break
4877fi
4878
4879 done
4880 ac_cv_prog_CPP=$CPP
4881
4882fi
4883 CPP=$ac_cv_prog_CPP
4884else
4885 ac_cv_prog_CPP=$CPP
4886fi
4887{ echo "$as_me:$LINENO: result: $CPP" >&5
4888echo "${ECHO_T}$CPP" >&6; }
4889ac_preproc_ok=false
4890for ac_c_preproc_warn_flag in '' yes
4891do
4892 # Use a header file that comes with gcc, so configuring glibc
4893 # with a fresh cross-compiler works.
4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4895 # <limits.h> exists even on freestanding compilers.
4896 # On the NeXT, cc -E runs the code through the compiler's parser,
4897 # not just through cpp. "Syntax error" is here to catch this case.
4898 cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904#ifdef __STDC__
4905# include <limits.h>
4906#else
4907# include <assert.h>
4908#endif
4909 Syntax error
4910_ACEOF
4911if { (ac_try="$ac_cpp conftest.$ac_ext"
4912case "(($ac_try" in
4913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914 *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918 ac_status=$?
4919 grep -v '^ *+' conftest.er1 >conftest.err
4920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_c_preproc_warn_flag
4926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4927 else
4928 ac_cpp_err=
4929 fi
4930else
4931 ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934 :
4935else
4936 echo "$as_me: failed program was:" >&5
4937sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 # Broken: fails on valid input.
4940continue
4941fi
4942
4943rm -f conftest.err conftest.$ac_ext
4944
4945 # OK, works on sane cases. Now check whether nonexistent headers
4946 # can be detected and how.
4947 cat >conftest.$ac_ext <<_ACEOF
4948/* confdefs.h. */
4949_ACEOF
4950cat confdefs.h >>conftest.$ac_ext
4951cat >>conftest.$ac_ext <<_ACEOF
4952/* end confdefs.h. */
4953#include <ac_nonexistent.h>
4954_ACEOF
4955if { (ac_try="$ac_cpp conftest.$ac_ext"
4956case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959esac
4960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null; then
4968 if test -s conftest.err; then
4969 ac_cpp_err=$ac_c_preproc_warn_flag
4970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4971 else
4972 ac_cpp_err=
4973 fi
4974else
4975 ac_cpp_err=yes
4976fi
4977if test -z "$ac_cpp_err"; then
4978 # Broken: success on invalid input.
4979continue
4980else
4981 echo "$as_me: failed program was:" >&5
4982sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 # Passes both tests.
4985ac_preproc_ok=:
4986break
4987fi
4988
4989rm -f conftest.err conftest.$ac_ext
4990
4991done
4992# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993rm -f conftest.err conftest.$ac_ext
4994if $ac_preproc_ok; then
4995 :
4996else
4997 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4998See \`config.log' for more details." >&5
4999echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5000See \`config.log' for more details." >&2;}
5001 { (exit 1); exit 1; }; }
5002fi
5003
5004ac_ext=c
5005ac_cpp='$CPP $CPPFLAGS'
5006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5008ac_compiler_gnu=$ac_cv_c_compiler_gnu
5009
5010ac_ext=c
5011ac_cpp='$CPP $CPPFLAGS'
5012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015if test -n "$ac_tool_prefix"; then
5016 for ac_prog in gcc
5017 do
5018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022if test "${ac_cv_prog_CC+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 if test -n "$CC"; then
5026 ac_cv_prog_CC="$CC" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_exec_ext in '' $ac_executable_extensions; do
5034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 break 2
5038 fi
5039done
5040done
5041IFS=$as_save_IFS
5042
5043fi
5044fi
5045CC=$ac_cv_prog_CC
5046if test -n "$CC"; then
5047 { echo "$as_me:$LINENO: result: $CC" >&5
5048echo "${ECHO_T}$CC" >&6; }
5049else
5050 { echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6; }
5052fi
5053
5054
5055 test -n "$CC" && break
5056 done
5057fi
5058if test -z "$CC"; then
5059 ac_ct_CC=$CC
5060 for ac_prog in gcc
5061do
5062 # Extract the first word of "$ac_prog", so it can be a program name with args.
5063set dummy $ac_prog; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 if test -n "$ac_ct_CC"; then
5070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5079 ac_cv_prog_ac_ct_CC="$ac_prog"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090if test -n "$ac_ct_CC"; then
5091 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5092echo "${ECHO_T}$ac_ct_CC" >&6; }
5093else
5094 { echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6; }
5096fi
5097
5098
5099 test -n "$ac_ct_CC" && break
5100done
5101
5102 if test "x$ac_ct_CC" = x; then
5103 CC=""
5104 else
5105 case $cross_compiling:$ac_tool_warned in
5106yes:)
5107{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5108whose name does not start with the host triplet. If you think this
5109configuration is useful to you, please write to autoconf@gnu.org." >&5
5110echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5111whose name does not start with the host triplet. If you think this
5112configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5113ac_tool_warned=yes ;;
5114esac
5115 CC=$ac_ct_CC
5116 fi
5117fi
5118
5119
5120test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121See \`config.log' for more details." >&5
5122echo "$as_me: error: no acceptable C compiler found in \$PATH
5123See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5125
5126# Provide some information about the compiler.
5127echo "$as_me:$LINENO: checking for C compiler version" >&5
5128ac_compiler=`set X $ac_compile; echo $2`
5129{ (ac_try="$ac_compiler --version >&5"
5130case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133esac
5134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5136 ac_status=$?
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139{ (ac_try="$ac_compiler -v >&5"
5140case "(($ac_try" in
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5143esac
5144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5146 ac_status=$?
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149{ (ac_try="$ac_compiler -V >&5"
5150case "(($ac_try" in
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5153esac
5154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5159
5160{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5161echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5162if test "${ac_cv_c_compiler_gnu+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164else
5165 cat >conftest.$ac_ext <<_ACEOF
5166/* confdefs.h. */
5167_ACEOF
5168cat confdefs.h >>conftest.$ac_ext
5169cat >>conftest.$ac_ext <<_ACEOF
5170/* end confdefs.h. */
5171
5172int
5173main ()
5174{
5175#ifndef __GNUC__
5176 choke me
5177#endif
5178
5179 ;
5180 return 0;
5181}
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (ac_try="$ac_compile"
5185case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188esac
5189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_compile") 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
5197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5198 { (case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_try") 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); }; } &&
5207 { ac_try='test -s conftest.$ac_objext'
5208 { (case "(($ac_try" in
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5211esac
5212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213 (eval "$ac_try") 2>&5
5214 ac_status=$?
5215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216 (exit $ac_status); }; }; then
5217 ac_compiler_gnu=yes
5218else
5219 echo "$as_me: failed program was:" >&5
5220sed 's/^/| /' conftest.$ac_ext >&5
5221
5222 ac_compiler_gnu=no
5223fi
5224
5225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5226ac_cv_c_compiler_gnu=$ac_compiler_gnu
5227
5228fi
5229{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5230echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5231GCC=`test $ac_compiler_gnu = yes && echo yes`
5232ac_test_CFLAGS=${CFLAGS+set}
5233ac_save_CFLAGS=$CFLAGS
5234{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5235echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5236if test "${ac_cv_prog_cc_g+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238else
5239 ac_save_c_werror_flag=$ac_c_werror_flag
5240 ac_c_werror_flag=yes
5241 ac_cv_prog_cc_g=no
5242 CFLAGS="-g"
5243 cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249
5250int
5251main ()
5252{
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258rm -f conftest.$ac_objext
5259if { (ac_try="$ac_compile"
5260case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263esac
5264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5273 { (case "(($ac_try" in
5274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5275 *) ac_try_echo=$ac_try;;
5276esac
5277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5278 (eval "$ac_try") 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; } &&
5282 { ac_try='test -s conftest.$ac_objext'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
5292 ac_cv_prog_cc_g=yes
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
5296
5297 CFLAGS=""
5298 cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h. */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h. */
5304
5305int
5306main ()
5307{
5308
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313rm -f conftest.$ac_objext
5314if { (ac_try="$ac_compile"
5315case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318esac
5319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5321 ac_status=$?
5322 grep -v '^ *+' conftest.er1 >conftest.err
5323 rm -f conftest.er1
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } &&
5327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5328 { (case "(($ac_try" in
5329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330 *) ac_try_echo=$ac_try;;
5331esac
5332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333 (eval "$ac_try") 2>&5
5334 ac_status=$?
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341esac
5342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343 (eval "$ac_try") 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 :
5348else
5349 echo "$as_me: failed program was:" >&5
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5353 CFLAGS="-g"
5354 cat >conftest.$ac_ext <<_ACEOF
5355/* confdefs.h. */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h. */
5360
5361int
5362main ()
5363{
5364
5365 ;
5366 return 0;
5367}
5368_ACEOF
5369rm -f conftest.$ac_objext
5370if { (ac_try="$ac_compile"
5371case "(($ac_try" in
5372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373 *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376 (eval "$ac_compile") 2>conftest.er1
5377 ac_status=$?
5378 grep -v '^ *+' conftest.er1 >conftest.err
5379 rm -f conftest.er1
5380 cat conftest.err >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); } &&
5383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5384 { (case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387esac
5388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_try") 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; } &&
5393 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5403 ac_cv_prog_cc_g=yes
5404else
5405 echo "$as_me: failed program was:" >&5
5406sed 's/^/| /' conftest.$ac_ext >&5
5407
5408
5409fi
5410
5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412fi
5413
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415fi
5416
5417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_c_werror_flag=$ac_save_c_werror_flag
5419fi
5420{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5421echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5422if test "$ac_test_CFLAGS" = set; then
5423 CFLAGS=$ac_save_CFLAGS
5424elif test $ac_cv_prog_cc_g = yes; then
5425 if test "$GCC" = yes; then
5426 CFLAGS="-g -O2"
5427 else
5428 CFLAGS="-g"
5429 fi
5430else
5431 if test "$GCC" = yes; then
5432 CFLAGS="-O2"
5433 else
5434 CFLAGS=
5435 fi
5436fi
5437{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5438echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5439if test "${ac_cv_prog_cc_c89+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442 ac_cv_prog_cc_c89=no
5443ac_save_CC=$CC
5444cat >conftest.$ac_ext <<_ACEOF
5445/* confdefs.h. */
5446_ACEOF
5447cat confdefs.h >>conftest.$ac_ext
5448cat >>conftest.$ac_ext <<_ACEOF
5449/* end confdefs.h. */
5450#include <stdarg.h>
5451#include <stdio.h>
5452#include <sys/types.h>
5453#include <sys/stat.h>
5454/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5455struct buf { int x; };
5456FILE * (*rcsopen) (struct buf *, struct stat *, int);
5457static char *e (p, i)
5458 char **p;
5459 int i;
5460{
5461 return p[i];
5462}
5463static char *f (char * (*g) (char **, int), char **p, ...)
5464{
5465 char *s;
5466 va_list v;
5467 va_start (v,p);
5468 s = g (p, va_arg (v,int));
5469 va_end (v);
5470 return s;
5471}
5472
5473/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5474 function prototypes and stuff, but not '\xHH' hex character constants.
5475 These don't provoke an error unfortunately, instead are silently treated
5476 as 'x'. The following induces an error, until -std is added to get
5477 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5478 array size at least. It's necessary to write '\x00'==0 to get something
5479 that's true only with -std. */
5480int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5481
5482/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5483 inside strings and character constants. */
5484#define FOO(x) 'x'
5485int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5486
5487int test (int i, double x);
5488struct s1 {int (*f) (int a);};
5489struct s2 {int (*f) (double a);};
5490int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5491int argc;
5492char **argv;
5493int
5494main ()
5495{
5496return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5502 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5503do
5504 CC="$ac_save_CC $ac_arg"
5505 rm -f conftest.$ac_objext
5506if { (ac_try="$ac_compile"
5507case "(($ac_try" in
5508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509 *) ac_try_echo=$ac_try;;
5510esac
5511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5513 ac_status=$?
5514 grep -v '^ *+' conftest.er1 >conftest.err
5515 rm -f conftest.er1
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } &&
5519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520 { (case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_try") 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; } &&
5529 { ac_try='test -s conftest.$ac_objext'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; }; then
5539 ac_cv_prog_cc_c89=$ac_arg
5540else
5541 echo "$as_me: failed program was:" >&5
5542sed 's/^/| /' conftest.$ac_ext >&5
5543
5544
5545fi
5546
5547rm -f core conftest.err conftest.$ac_objext
5548 test "x$ac_cv_prog_cc_c89" != "xno" && break
5549done
5550rm -f conftest.$ac_ext
5551CC=$ac_save_CC
5552
5553fi
5554# AC_CACHE_VAL
5555case "x$ac_cv_prog_cc_c89" in
5556 x)
5557 { echo "$as_me:$LINENO: result: none needed" >&5
5558echo "${ECHO_T}none needed" >&6; } ;;
5559 xno)
5560 { echo "$as_me:$LINENO: result: unsupported" >&5
5561echo "${ECHO_T}unsupported" >&6; } ;;
5562 *)
5563 CC="$CC $ac_cv_prog_cc_c89"
5564 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5565echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5566esac
5567
5568
5569ac_ext=c
5570ac_cpp='$CPP $CPPFLAGS'
5571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
5575ac_ext=cpp
5576ac_cpp='$CXXCPP $CPPFLAGS'
5577ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5578ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5579ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5580if test -z "$CXX"; then
5581 if test -n "$CCC"; then
5582 CXX=$CCC
5583 else
5584 if test -n "$ac_tool_prefix"; then
5585 for ac_prog in g++
5586 do
5587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5588set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5589{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5591if test "${ac_cv_prog_CXX+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 if test -n "$CXX"; then
5595 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614CXX=$ac_cv_prog_CXX
5615if test -n "$CXX"; then
5616 { echo "$as_me:$LINENO: result: $CXX" >&5
5617echo "${ECHO_T}$CXX" >&6; }
5618else
5619 { echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6; }
5621fi
5622
5623
5624 test -n "$CXX" && break
5625 done
5626fi
5627if test -z "$CXX"; then
5628 ac_ct_CXX=$CXX
5629 for ac_prog in g++
5630do
5631 # Extract the first word of "$ac_prog", so it can be a program name with args.
5632set dummy $ac_prog; ac_word=$2
5633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5635if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638 if test -n "$ac_ct_CXX"; then
5639 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_CXX="$ac_prog"
5649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652done
5653done
5654IFS=$as_save_IFS
5655
5656fi
5657fi
5658ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5659if test -n "$ac_ct_CXX"; then
5660 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5661echo "${ECHO_T}$ac_ct_CXX" >&6; }
5662else
5663 { echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6; }
5665fi
5666
5667
5668 test -n "$ac_ct_CXX" && break
5669done
5670
5671 if test "x$ac_ct_CXX" = x; then
5672 CXX="g++"
5673 else
5674 case $cross_compiling:$ac_tool_warned in
5675yes:)
5676{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5677whose name does not start with the host triplet. If you think this
5678configuration is useful to you, please write to autoconf@gnu.org." >&5
5679echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5680whose name does not start with the host triplet. If you think this
5681configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5682ac_tool_warned=yes ;;
5683esac
5684 CXX=$ac_ct_CXX
5685 fi
5686fi
5687
5688 fi
5689fi
5690# Provide some information about the compiler.
5691echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5692ac_compiler=`set X $ac_compile; echo $2`
5693{ (ac_try="$ac_compiler --version >&5"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compiler --version >&5") 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }
5703{ (ac_try="$ac_compiler -v >&5"
5704case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compiler -v >&5") 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }
5713{ (ac_try="$ac_compiler -V >&5"
5714case "(($ac_try" in
5715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5717esac
5718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compiler -V >&5") 2>&5
5720 ac_status=$?
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); }
5723
5724{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5725echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5726if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729 cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h. */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h. */
5735
5736int
5737main ()
5738{
5739#ifndef __GNUC__
5740 choke me
5741#endif
5742
5743 ;
5744 return 0;
5745}
5746_ACEOF
5747rm -f conftest.$ac_objext
5748if { (ac_try="$ac_compile"
5749case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compile") 2>conftest.er1
5755 ac_status=$?
5756 grep -v '^ *+' conftest.er1 >conftest.err
5757 rm -f conftest.er1
5758 cat conftest.err >&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); } &&
5761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5762 { (case "(($ac_try" in
5763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764 *) ac_try_echo=$ac_try;;
5765esac
5766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767 (eval "$ac_try") 2>&5
5768 ac_status=$?
5769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5770 (exit $ac_status); }; } &&
5771 { ac_try='test -s conftest.$ac_objext'
5772 { (case "(($ac_try" in
5773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5775esac
5776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_try") 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; }; then
5781 ac_compiler_gnu=yes
5782else
5783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785
5786 ac_compiler_gnu=no
5787fi
5788
5789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5790ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5791
5792fi
5793{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5794echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5795GXX=`test $ac_compiler_gnu = yes && echo yes`
5796ac_test_CXXFLAGS=${CXXFLAGS+set}
5797ac_save_CXXFLAGS=$CXXFLAGS
5798{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5799echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5800if test "${ac_cv_prog_cxx_g+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5804 ac_cxx_werror_flag=yes
5805 ac_cv_prog_cxx_g=no
5806 CXXFLAGS="-g"
5807 cat >conftest.$ac_ext <<_ACEOF
5808/* confdefs.h. */
5809_ACEOF
5810cat confdefs.h >>conftest.$ac_ext
5811cat >>conftest.$ac_ext <<_ACEOF
5812/* end confdefs.h. */
5813
5814int
5815main ()
5816{
5817
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext
5823if { (ac_try="$ac_compile"
5824case "(($ac_try" in
5825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5826 *) ac_try_echo=$ac_try;;
5827esac
5828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5837 { (case "(($ac_try" in
5838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5839 *) ac_try_echo=$ac_try;;
5840esac
5841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5842 (eval "$ac_try") 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; } &&
5846 { ac_try='test -s conftest.$ac_objext'
5847 { (case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_try") 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 ac_cv_prog_cxx_g=yes
5857else
5858 echo "$as_me: failed program was:" >&5
5859sed 's/^/| /' conftest.$ac_ext >&5
5860
5861 CXXFLAGS=""
5862 cat >conftest.$ac_ext <<_ACEOF
5863/* confdefs.h. */
5864_ACEOF
5865cat confdefs.h >>conftest.$ac_ext
5866cat >>conftest.$ac_ext <<_ACEOF
5867/* end confdefs.h. */
5868
5869int
5870main ()
5871{
5872
5873 ;
5874 return 0;
5875}
5876_ACEOF
5877rm -f conftest.$ac_objext
5878if { (ac_try="$ac_compile"
5879case "(($ac_try" in
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5882esac
5883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5895esac
5896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5898 ac_status=$?
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 :
5912else
5913 echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5917 CXXFLAGS="-g"
5918 cat >conftest.$ac_ext <<_ACEOF
5919/* confdefs.h. */
5920_ACEOF
5921cat confdefs.h >>conftest.$ac_ext
5922cat >>conftest.$ac_ext <<_ACEOF
5923/* end confdefs.h. */
5924
5925int
5926main ()
5927{
5928
5929 ;
5930 return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
5934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
5939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } &&
5947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5948 { (case "(($ac_try" in
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5951esac
5952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_try") 2>&5
5954 ac_status=$?
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); }; } &&
5957 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5967 ac_cv_prog_cxx_g=yes
5968else
5969 echo "$as_me: failed program was:" >&5
5970sed 's/^/| /' conftest.$ac_ext >&5
5971
5972
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976fi
5977
5978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5979fi
5980
5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5983fi
5984{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5985echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5986if test "$ac_test_CXXFLAGS" = set; then
5987 CXXFLAGS=$ac_save_CXXFLAGS
5988elif test $ac_cv_prog_cxx_g = yes; then
5989 if test "$GXX" = yes; then
5990 CXXFLAGS="-g -O2"
5991 else
5992 CXXFLAGS="-g"
5993 fi
5994else
5995 if test "$GXX" = yes; then
5996 CXXFLAGS="-O2"
5997 else
5998 CXXFLAGS=
5999 fi
6000fi
6001ac_ext=c
6002ac_cpp='$CPP $CPPFLAGS'
6003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005ac_compiler_gnu=$ac_cv_c_compiler_gnu
6006
6007{ echo "$as_me:$LINENO: checking " >&5
6008echo $ECHO_N "checking ... $ECHO_C" >&6; }
6009if test "${ac_cv_has_flex+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 for ac_prog in flex lex
6013do
6014 # Extract the first word of "$ac_prog", so it can be a program name with args.
6015set dummy $ac_prog; ac_word=$2
6016{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6018if test "${ac_cv_prog_LEX+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021 if test -n "$LEX"; then
6022 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6023else
6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025for as_dir in $PATH
6026do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_LEX="$ac_prog"
6032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035done
6036done
6037IFS=$as_save_IFS
6038
6039fi
6040fi
6041LEX=$ac_cv_prog_LEX
6042if test -n "$LEX"; then
6043 { echo "$as_me:$LINENO: result: $LEX" >&5
6044echo "${ECHO_T}$LEX" >&6; }
6045else
6046 { echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6; }
6048fi
6049
6050
6051 test -n "$LEX" && break
6052done
6053test -n "$LEX" || LEX=":"
6054
6055if test -z "$LEXLIB"
6056then
6057 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6058echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6059if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061else
6062 ac_check_lib_save_LIBS=$LIBS
6063LIBS="-lfl $LIBS"
6064cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070
6071/* Override any GCC internal prototype to avoid an error.
6072 Use char because int might match the return type of a GCC
6073 builtin and then its argument prototype would still apply. */
6074#ifdef __cplusplus
6075extern "C"
6076#endif
6077char yywrap ();
6078int
6079main ()
6080{
6081return yywrap ();
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086rm -f conftest.$ac_objext conftest$ac_exeext
6087if { (ac_try="$ac_link"
6088case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091esac
6092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6093 (eval "$ac_link") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } &&
6100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6101 { (case "(($ac_try" in
6102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103 *) ac_try_echo=$ac_try;;
6104esac
6105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106 (eval "$ac_try") 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
6111 { (case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
6115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_try") 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_fl_yywrap=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 ac_cv_lib_fl_yywrap=no
6126fi
6127
6128rm -f core conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130LIBS=$ac_check_lib_save_LIBS
6131fi
6132{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6133echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6134if test $ac_cv_lib_fl_yywrap = yes; then
6135 LEXLIB="-lfl"
6136else
6137 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6138echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6139if test "${ac_cv_lib_l_yywrap+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 ac_check_lib_save_LIBS=$LIBS
6143LIBS="-ll $LIBS"
6144cat >conftest.$ac_ext <<_ACEOF
6145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
6150
6151/* Override any GCC internal prototype to avoid an error.
6152 Use char because int might match the return type of a GCC
6153 builtin and then its argument prototype would still apply. */
6154#ifdef __cplusplus
6155extern "C"
6156#endif
6157char yywrap ();
6158int
6159main ()
6160{
6161return yywrap ();
6162 ;
6163 return 0;
6164}
6165_ACEOF
6166rm -f conftest.$ac_objext conftest$ac_exeext
6167if { (ac_try="$ac_link"
6168case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_link") 2>conftest.er1
6174 ac_status=$?
6175 grep -v '^ *+' conftest.er1 >conftest.err
6176 rm -f conftest.er1
6177 cat conftest.err >&5
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } &&
6180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6181 { (case "(($ac_try" in
6182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6183 *) ac_try_echo=$ac_try;;
6184esac
6185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6186 (eval "$ac_try") 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; } &&
6190 { ac_try='test -s conftest$ac_exeext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6200 ac_cv_lib_l_yywrap=yes
6201else
6202 echo "$as_me: failed program was:" >&5
6203sed 's/^/| /' conftest.$ac_ext >&5
6204
6205 ac_cv_lib_l_yywrap=no
6206fi
6207
6208rm -f core conftest.err conftest.$ac_objext \
6209 conftest$ac_exeext conftest.$ac_ext
6210LIBS=$ac_check_lib_save_LIBS
6211fi
6212{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6213echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6214if test $ac_cv_lib_l_yywrap = yes; then
6215 LEXLIB="-ll"
6216fi
6217
6218fi
6219
6220fi
6221
6222if test "x$LEX" != "x:"; then
6223 { echo "$as_me:$LINENO: checking lex output file root" >&5
6224echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6225if test "${ac_cv_prog_lex_root+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228 # The minimal lex program is just a single line: %%. But some broken lexes
6229# (Solaris, I think it was) want two %% lines, so accommodate them.
6230cat >conftest.l <<_ACEOF
6231%%
6232%%
6233_ACEOF
6234{ (ac_try="$LEX conftest.l"
6235case "(($ac_try" in
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240 (eval "$LEX conftest.l") 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }
6244if test -f lex.yy.c; then
6245 ac_cv_prog_lex_root=lex.yy
6246elif test -f lexyy.c; then
6247 ac_cv_prog_lex_root=lexyy
6248else
6249 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6250echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6251 { (exit 1); exit 1; }; }
6252fi
6253fi
6254{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6255echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6256rm -f conftest.l
6257LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6258
6259{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6260echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6261if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6263else
6264 # POSIX says lex can declare yytext either as a pointer or an array; the
6265# default is implementation-dependent. Figure out which it is, since
6266# not all implementations provide the %pointer and %array declarations.
6267ac_cv_prog_lex_yytext_pointer=no
6268echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6269ac_save_LIBS=$LIBS
6270LIBS="$LIBS $LEXLIB"
6271cat >conftest.$ac_ext <<_ACEOF
6272`cat $LEX_OUTPUT_ROOT.c`
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
6275if { (ac_try="$ac_link"
6276case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279esac
6280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_link") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (case "(($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_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (case "(($ac_try" in
6300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6302esac
6303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6304 (eval "$ac_try") 2>&5
6305 ac_status=$?
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); }; }; then
6308 ac_cv_prog_lex_yytext_pointer=yes
6309else
6310 echo "$as_me: failed program was:" >&5
6311sed 's/^/| /' conftest.$ac_ext >&5
6312
6313
6314fi
6315
6316rm -f core conftest.err conftest.$ac_objext \
6317 conftest$ac_exeext conftest.$ac_ext
6318LIBS=$ac_save_LIBS
6319rm -f "${LEX_OUTPUT_ROOT}.c"
6320
6321fi
6322{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6323echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6324if test $ac_cv_prog_lex_yytext_pointer = yes; then
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define YYTEXT_POINTER 1
6328_ACEOF
6329
6330fi
6331
6332fi
6333
6334fi
6335{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6336echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6337if test "$LEX" != "flex"; then
6338 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6339echo "$as_me: error: flex not found but required" >&2;}
6340 { (exit 1); exit 1; }; }
6341else
6342 FLEX=flex
6343
6344fi
6345
6346{ echo "$as_me:$LINENO: checking " >&5
6347echo $ECHO_N "checking ... $ECHO_C" >&6; }
6348if test "${llvm_cv_has_bison+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 for ac_prog in 'bison -y' byacc
6352do
6353 # Extract the first word of "$ac_prog", so it can be a program name with args.
6354set dummy $ac_prog; ac_word=$2
6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_prog_YACC+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360 if test -n "$YACC"; then
6361 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366 IFS=$as_save_IFS
6367 test -z "$as_dir" && as_dir=.
6368 for ac_exec_ext in '' $ac_executable_extensions; do
6369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370 ac_cv_prog_YACC="$ac_prog"
6371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372 break 2
6373 fi
6374done
6375done
6376IFS=$as_save_IFS
6377
6378fi
6379fi
6380YACC=$ac_cv_prog_YACC
6381if test -n "$YACC"; then
6382 { echo "$as_me:$LINENO: result: $YACC" >&5
6383echo "${ECHO_T}$YACC" >&6; }
6384else
6385 { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
6387fi
6388
6389
6390 test -n "$YACC" && break
6391done
6392test -n "$YACC" || YACC="yacc"
6393
6394fi
6395{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6396echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6397if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006398
6399 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6400echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006401else
6402 BISON=bison
6403
6404fi
6405
6406{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6407echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6408if test "${lt_cv_path_NM+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410else
6411 if test -n "$NM"; then
6412 # Let the user override the test.
6413 lt_cv_path_NM="$NM"
6414else
6415 lt_nm_to_check="${ac_tool_prefix}nm"
6416 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6417 lt_nm_to_check="$lt_nm_to_check nm"
6418 fi
6419 for lt_tmp_nm in $lt_nm_to_check; do
6420 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6421 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6422 IFS="$lt_save_ifs"
6423 test -z "$ac_dir" && ac_dir=.
6424 tmp_nm="$ac_dir/$lt_tmp_nm"
6425 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6426 # Check to see if the nm accepts a BSD-compat flag.
6427 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6428 # nm: unknown option "B" ignored
6429 # Tru64's nm complains that /dev/null is an invalid object file
6430 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6431 */dev/null* | *'Invalid file or object type'*)
6432 lt_cv_path_NM="$tmp_nm -B"
6433 break
6434 ;;
6435 *)
6436 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6437 */dev/null*)
6438 lt_cv_path_NM="$tmp_nm -p"
6439 break
6440 ;;
6441 *)
6442 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6443 continue # so that we can try to find one that supports BSD flags
6444 ;;
6445 esac
6446 ;;
6447 esac
6448 fi
6449 done
6450 IFS="$lt_save_ifs"
6451 done
6452 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6453fi
6454fi
6455{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6456echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6457NM="$lt_cv_path_NM"
6458
6459
6460
6461{ echo "$as_me:$LINENO: checking for GNU make" >&5
6462echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6463if test "${llvm_cv_gnu_make_command+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
6466 llvm_cv_gnu_make_command=''
6467 for a in "$MAKE" make gmake gnumake ; do
6468 if test -z "$a" ; then continue ; fi ;
6469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6470 then
6471 llvm_cv_gnu_make_command=$a ;
6472 break;
6473 fi
6474 done
6475fi
6476{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6477echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6479 ifGNUmake='' ;
6480 else
6481 ifGNUmake='#' ;
6482 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6483echo "${ECHO_T}\"Not found\"" >&6; };
6484 fi
6485
6486
6487{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6488echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6489LN_S=$as_ln_s
6490if test "$LN_S" = "ln -s"; then
6491 { echo "$as_me:$LINENO: result: yes" >&5
6492echo "${ECHO_T}yes" >&6; }
6493else
6494 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6495echo "${ECHO_T}no, using $LN_S" >&6; }
6496fi
6497
6498# Extract the first word of "cmp", so it can be a program name with args.
6499set dummy cmp; ac_word=$2
6500{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502if test "${ac_cv_path_CMP+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504else
6505 case $CMP in
6506 [\\/]* | ?:[\\/]*)
6507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6508 ;;
6509 *)
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521done
6522done
6523IFS=$as_save_IFS
6524
6525 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6526 ;;
6527esac
6528fi
6529CMP=$ac_cv_path_CMP
6530if test -n "$CMP"; then
6531 { echo "$as_me:$LINENO: result: $CMP" >&5
6532echo "${ECHO_T}$CMP" >&6; }
6533else
6534 { echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6; }
6536fi
6537
6538
6539# Extract the first word of "cp", so it can be a program name with args.
6540set dummy cp; ac_word=$2
6541{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6543if test "${ac_cv_path_CP+set}" = set; then
6544 echo $ECHO_N "(cached) $ECHO_C" >&6
6545else
6546 case $CP in
6547 [\\/]* | ?:[\\/]*)
6548 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6549 ;;
6550 *)
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552for as_dir in $PATH
6553do
6554 IFS=$as_save_IFS
6555 test -z "$as_dir" && as_dir=.
6556 for ac_exec_ext in '' $ac_executable_extensions; do
6557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6558 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6560 break 2
6561 fi
6562done
6563done
6564IFS=$as_save_IFS
6565
6566 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6567 ;;
6568esac
6569fi
6570CP=$ac_cv_path_CP
6571if test -n "$CP"; then
6572 { echo "$as_me:$LINENO: result: $CP" >&5
6573echo "${ECHO_T}$CP" >&6; }
6574else
6575 { echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6; }
6577fi
6578
6579
6580# Extract the first word of "date", so it can be a program name with args.
6581set dummy date; ac_word=$2
6582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584if test "${ac_cv_path_DATE+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586else
6587 case $DATE in
6588 [\\/]* | ?:[\\/]*)
6589 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6590 ;;
6591 *)
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593for as_dir in $PATH
6594do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6599 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603done
6604done
6605IFS=$as_save_IFS
6606
6607 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6608 ;;
6609esac
6610fi
6611DATE=$ac_cv_path_DATE
6612if test -n "$DATE"; then
6613 { echo "$as_me:$LINENO: result: $DATE" >&5
6614echo "${ECHO_T}$DATE" >&6; }
6615else
6616 { echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6; }
6618fi
6619
6620
6621# Extract the first word of "find", so it can be a program name with args.
6622set dummy find; ac_word=$2
6623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6625if test "${ac_cv_path_FIND+set}" = set; then
6626 echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628 case $FIND in
6629 [\\/]* | ?:[\\/]*)
6630 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6631 ;;
6632 *)
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634for as_dir in $PATH
6635do
6636 IFS=$as_save_IFS
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6642 break 2
6643 fi
6644done
6645done
6646IFS=$as_save_IFS
6647
6648 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6649 ;;
6650esac
6651fi
6652FIND=$ac_cv_path_FIND
6653if test -n "$FIND"; then
6654 { echo "$as_me:$LINENO: result: $FIND" >&5
6655echo "${ECHO_T}$FIND" >&6; }
6656else
6657 { echo "$as_me:$LINENO: result: no" >&5
6658echo "${ECHO_T}no" >&6; }
6659fi
6660
6661
6662# Extract the first word of "grep", so it can be a program name with args.
6663set dummy grep; ac_word=$2
6664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666if test "${ac_cv_path_GREP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668else
6669 case $GREP in
6670 [\\/]* | ?:[\\/]*)
6671 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6672 ;;
6673 *)
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675for as_dir in $PATH
6676do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685done
6686done
6687IFS=$as_save_IFS
6688
6689 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6690 ;;
6691esac
6692fi
6693GREP=$ac_cv_path_GREP
6694if test -n "$GREP"; then
6695 { echo "$as_me:$LINENO: result: $GREP" >&5
6696echo "${ECHO_T}$GREP" >&6; }
6697else
6698 { echo "$as_me:$LINENO: result: no" >&5
6699echo "${ECHO_T}no" >&6; }
6700fi
6701
6702
6703# Extract the first word of "mkdir", so it can be a program name with args.
6704set dummy mkdir; ac_word=$2
6705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6707if test "${ac_cv_path_MKDIR+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710 case $MKDIR in
6711 [\\/]* | ?:[\\/]*)
6712 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6713 ;;
6714 *)
6715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6716for as_dir in $PATH
6717do
6718 IFS=$as_save_IFS
6719 test -z "$as_dir" && as_dir=.
6720 for ac_exec_ext in '' $ac_executable_extensions; do
6721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6722 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6724 break 2
6725 fi
6726done
6727done
6728IFS=$as_save_IFS
6729
6730 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6731 ;;
6732esac
6733fi
6734MKDIR=$ac_cv_path_MKDIR
6735if test -n "$MKDIR"; then
6736 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6737echo "${ECHO_T}$MKDIR" >&6; }
6738else
6739 { echo "$as_me:$LINENO: result: no" >&5
6740echo "${ECHO_T}no" >&6; }
6741fi
6742
6743
6744# Extract the first word of "mv", so it can be a program name with args.
6745set dummy mv; ac_word=$2
6746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6748if test "${ac_cv_path_MV+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750else
6751 case $MV in
6752 [\\/]* | ?:[\\/]*)
6753 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6754 ;;
6755 *)
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757for as_dir in $PATH
6758do
6759 IFS=$as_save_IFS
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6763 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 break 2
6766 fi
6767done
6768done
6769IFS=$as_save_IFS
6770
6771 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6772 ;;
6773esac
6774fi
6775MV=$ac_cv_path_MV
6776if test -n "$MV"; then
6777 { echo "$as_me:$LINENO: result: $MV" >&5
6778echo "${ECHO_T}$MV" >&6; }
6779else
6780 { echo "$as_me:$LINENO: result: no" >&5
6781echo "${ECHO_T}no" >&6; }
6782fi
6783
6784
6785if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6787set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6788{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6789echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790if test "${ac_cv_prog_RANLIB+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6792else
6793 if test -n "$RANLIB"; then
6794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6795else
6796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797for as_dir in $PATH
6798do
6799 IFS=$as_save_IFS
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805 break 2
6806 fi
6807done
6808done
6809IFS=$as_save_IFS
6810
6811fi
6812fi
6813RANLIB=$ac_cv_prog_RANLIB
6814if test -n "$RANLIB"; then
6815 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6816echo "${ECHO_T}$RANLIB" >&6; }
6817else
6818 { echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6; }
6820fi
6821
6822
6823fi
6824if test -z "$ac_cv_prog_RANLIB"; then
6825 ac_ct_RANLIB=$RANLIB
6826 # Extract the first word of "ranlib", so it can be a program name with args.
6827set dummy ranlib; ac_word=$2
6828{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832else
6833 if test -n "$ac_ct_RANLIB"; then
6834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6835else
6836as_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_prog_ac_ct_RANLIB="ranlib"
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
6851fi
6852fi
6853ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6854if test -n "$ac_ct_RANLIB"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6856echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6857else
6858 { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
6860fi
6861
6862 if test "x$ac_ct_RANLIB" = x; then
6863 RANLIB=":"
6864 else
6865 case $cross_compiling:$ac_tool_warned in
6866yes:)
6867{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868whose name does not start with the host triplet. If you think this
6869configuration is useful to you, please write to autoconf@gnu.org." >&5
6870echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871whose name does not start with the host triplet. If you think this
6872configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873ac_tool_warned=yes ;;
6874esac
6875 RANLIB=$ac_ct_RANLIB
6876 fi
6877else
6878 RANLIB="$ac_cv_prog_RANLIB"
6879fi
6880
6881# Extract the first word of "rm", so it can be a program name with args.
6882set dummy rm; ac_word=$2
6883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6885if test "${ac_cv_path_RM+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else
6888 case $RM in
6889 [\\/]* | ?:[\\/]*)
6890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6891 ;;
6892 *)
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894for as_dir in $PATH
6895do
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904done
6905done
6906IFS=$as_save_IFS
6907
6908 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6909 ;;
6910esac
6911fi
6912RM=$ac_cv_path_RM
6913if test -n "$RM"; then
6914 { echo "$as_me:$LINENO: result: $RM" >&5
6915echo "${ECHO_T}$RM" >&6; }
6916else
6917 { echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6; }
6919fi
6920
6921
6922# Extract the first word of "sed", so it can be a program name with args.
6923set dummy sed; ac_word=$2
6924{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926if test "${ac_cv_path_SED+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929 case $SED in
6930 [\\/]* | ?:[\\/]*)
6931 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6932 ;;
6933 *)
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935for as_dir in $PATH
6936do
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945done
6946done
6947IFS=$as_save_IFS
6948
6949 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6950 ;;
6951esac
6952fi
6953SED=$ac_cv_path_SED
6954if test -n "$SED"; then
6955 { echo "$as_me:$LINENO: result: $SED" >&5
6956echo "${ECHO_T}$SED" >&6; }
6957else
6958 { echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6; }
6960fi
6961
6962
6963# Extract the first word of "tar", so it can be a program name with args.
6964set dummy tar; ac_word=$2
6965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967if test "${ac_cv_path_TAR+set}" = set; then
6968 echo $ECHO_N "(cached) $ECHO_C" >&6
6969else
6970 case $TAR in
6971 [\\/]* | ?:[\\/]*)
6972 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6973 ;;
6974 *)
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987done
6988IFS=$as_save_IFS
6989
6990 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6991 ;;
6992esac
6993fi
6994TAR=$ac_cv_path_TAR
6995if test -n "$TAR"; then
6996 { echo "$as_me:$LINENO: result: $TAR" >&5
6997echo "${ECHO_T}$TAR" >&6; }
6998else
6999 { echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6; }
7001fi
7002
7003
7004# Extract the first word of "pwd", so it can be a program name with args.
7005set dummy pwd; ac_word=$2
7006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7008if test "${ac_cv_path_BINPWD+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7010else
7011 case $BINPWD in
7012 [\\/]* | ?:[\\/]*)
7013 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7014 ;;
7015 *)
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017for as_dir in $PATH
7018do
7019 IFS=$as_save_IFS
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7023 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7025 break 2
7026 fi
7027done
7028done
7029IFS=$as_save_IFS
7030
7031 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7032 ;;
7033esac
7034fi
7035BINPWD=$ac_cv_path_BINPWD
7036if test -n "$BINPWD"; then
7037 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7038echo "${ECHO_T}$BINPWD" >&6; }
7039else
7040 { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045
7046# Extract the first word of "Graphviz", so it can be a program name with args.
7047set dummy Graphviz; ac_word=$2
7048{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7050if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7052else
7053 case $GRAPHVIZ in
7054 [\\/]* | ?:[\\/]*)
7055 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7056 ;;
7057 *)
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7074 ;;
7075esac
7076fi
7077GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7078if test -n "$GRAPHVIZ"; then
7079 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7080echo "${ECHO_T}$GRAPHVIZ" >&6; }
7081else
7082 { echo "$as_me:$LINENO: result: no" >&5
7083echo "${ECHO_T}no" >&6; }
7084fi
7085
7086
7087if test "$GRAPHVIZ" != "echo Graphviz" ; then
7088
7089cat >>confdefs.h <<\_ACEOF
7090#define HAVE_GRAPHVIZ 1
7091_ACEOF
7092
7093 if test "$llvm_cv_os_type" == "MingW" ; then
7094 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7095 fi
7096
7097cat >>confdefs.h <<_ACEOF
7098#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7099_ACEOF
7100
7101fi
7102# Extract the first word of "dot", so it can be a program name with args.
7103set dummy dot; ac_word=$2
7104{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106if test "${ac_cv_path_DOT+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108else
7109 case $DOT in
7110 [\\/]* | ?:[\\/]*)
7111 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7112 ;;
7113 *)
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117 IFS=$as_save_IFS
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 break 2
7124 fi
7125done
7126done
7127IFS=$as_save_IFS
7128
7129 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7130 ;;
7131esac
7132fi
7133DOT=$ac_cv_path_DOT
7134if test -n "$DOT"; then
7135 { echo "$as_me:$LINENO: result: $DOT" >&5
7136echo "${ECHO_T}$DOT" >&6; }
7137else
7138 { echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6; }
7140fi
7141
7142
7143if test "$DOT" != "echo dot" ; then
7144
7145cat >>confdefs.h <<\_ACEOF
7146#define HAVE_DOT 1
7147_ACEOF
7148
7149 if test "$llvm_cv_os_type" == "MingW" ; then
7150 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7151 fi
7152
7153cat >>confdefs.h <<_ACEOF
7154#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7155_ACEOF
7156
7157fi
7158for ac_prog in gv gsview32
7159do
7160 # Extract the first word of "$ac_prog", so it can be a program name with args.
7161set dummy $ac_prog; ac_word=$2
7162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164if test "${ac_cv_path_GV+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 case $GV in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7170 ;;
7171 *)
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184done
7185IFS=$as_save_IFS
7186
7187 ;;
7188esac
7189fi
7190GV=$ac_cv_path_GV
7191if test -n "$GV"; then
7192 { echo "$as_me:$LINENO: result: $GV" >&5
7193echo "${ECHO_T}$GV" >&6; }
7194else
7195 { echo "$as_me:$LINENO: result: no" >&5
7196echo "${ECHO_T}no" >&6; }
7197fi
7198
7199
7200 test -n "$GV" && break
7201done
7202test -n "$GV" || GV="echo gv"
7203
7204if test "$GV" != "echo gv" ; then
7205
7206cat >>confdefs.h <<\_ACEOF
7207#define HAVE_GV 1
7208_ACEOF
7209
7210 if test "$llvm_cv_os_type" == "MingW" ; then
7211 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7212 fi
7213
7214cat >>confdefs.h <<_ACEOF
7215#define LLVM_PATH_GV "$GV${EXEEXT}"
7216_ACEOF
7217
7218fi
7219# Extract the first word of "dotty", so it can be a program name with args.
7220set dummy dotty; ac_word=$2
7221{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223if test "${ac_cv_path_DOTTY+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 case $DOTTY in
7227 [\\/]* | ?:[\\/]*)
7228 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7229 ;;
7230 *)
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232for as_dir in $PATH
7233do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242done
7243done
7244IFS=$as_save_IFS
7245
7246 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7247 ;;
7248esac
7249fi
7250DOTTY=$ac_cv_path_DOTTY
7251if test -n "$DOTTY"; then
7252 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7253echo "${ECHO_T}$DOTTY" >&6; }
7254else
7255 { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
7257fi
7258
7259
7260if test "$DOTTY" != "echo dotty" ; then
7261
7262cat >>confdefs.h <<\_ACEOF
7263#define HAVE_DOTTY 1
7264_ACEOF
7265
7266 if test "$llvm_cv_os_type" == "MingW" ; then
7267 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7268 fi
7269
7270cat >>confdefs.h <<_ACEOF
7271#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7272_ACEOF
7273
7274fi
7275
7276
7277# Extract the first word of "perl", so it can be a program name with args.
7278set dummy perl; ac_word=$2
7279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281if test "${ac_cv_path_PERL+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 case $PERL in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302IFS=$as_save_IFS
7303
7304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7305 ;;
7306esac
7307fi
7308PERL=$ac_cv_path_PERL
7309if test -n "$PERL"; then
7310 { echo "$as_me:$LINENO: result: $PERL" >&5
7311echo "${ECHO_T}$PERL" >&6; }
7312else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
7315fi
7316
7317
7318if test "$PERL" != "none"; then
7319 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7320echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7321 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7322 { echo "$as_me:$LINENO: result: yes" >&5
7323echo "${ECHO_T}yes" >&6; }
7324 else
7325 PERL=none
7326 { echo "$as_me:$LINENO: result: not found" >&5
7327echo "${ECHO_T}not found" >&6; }
7328 fi
7329fi
7330
7331
7332if test x"$PERL" = xnone; then
7333 HAVE_PERL=0
7334
7335else
7336 HAVE_PERL=1
7337
7338fi
7339
7340# Find a good install program. We prefer a C program (faster),
7341# so one script is as good as another. But avoid the broken or
7342# incompatible versions:
7343# SysV /etc/install, /usr/sbin/install
7344# SunOS /usr/etc/install
7345# IRIX /sbin/install
7346# AIX /bin/install
7347# AmigaOS /C/install, which installs bootblocks on floppy discs
7348# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7349# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351# OS/2's system install, which has a completely different semantic
7352# ./install, which can be erroneously created by make from ./install.sh.
7353{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7354echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7355if test -z "$INSTALL"; then
7356if test "${ac_cv_path_install+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7358else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 # Account for people who put trailing slashes in PATH elements.
7365case $as_dir/ in
7366 ./ | .// | /cC/* | \
7367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7368 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7369 /usr/ucb/* ) ;;
7370 *)
7371 # OSF1 and SCO ODT 3.0 have their own names for install.
7372 # Don't use installbsd from OSF since it installs stuff as root
7373 # by default.
7374 for ac_prog in ginstall scoinst install; do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7377 if test $ac_prog = install &&
7378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7379 # AIX install. It has an incompatible calling convention.
7380 :
7381 elif test $ac_prog = install &&
7382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7383 # program-specific install script used by HP pwplus--don't use.
7384 :
7385 else
7386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7387 break 3
7388 fi
7389 fi
7390 done
7391 done
7392 ;;
7393esac
7394done
7395IFS=$as_save_IFS
7396
7397
7398fi
7399 if test "${ac_cv_path_install+set}" = set; then
7400 INSTALL=$ac_cv_path_install
7401 else
7402 # As a last resort, use the slow shell script. Don't cache a
7403 # value for INSTALL within a source directory, because that will
7404 # break other packages using the cache if that directory is
7405 # removed, or if the value is a relative name.
7406 INSTALL=$ac_install_sh
7407 fi
7408fi
7409{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7410echo "${ECHO_T}$INSTALL" >&6; }
7411
7412# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7413# It thinks the first close brace ends the variable substitution.
7414test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7415
7416test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7417
7418test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7419
7420
7421# Extract the first word of "bzip2", so it can be a program name with args.
7422set dummy bzip2; ac_word=$2
7423{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7424echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7425if test "${ac_cv_path_BZIP2+set}" = set; then
7426 echo $ECHO_N "(cached) $ECHO_C" >&6
7427else
7428 case $BZIP2 in
7429 [\\/]* | ?:[\\/]*)
7430 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7431 ;;
7432 *)
7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7434for as_dir in $PATH
7435do
7436 IFS=$as_save_IFS
7437 test -z "$as_dir" && as_dir=.
7438 for ac_exec_ext in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7440 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 break 2
7443 fi
7444done
7445done
7446IFS=$as_save_IFS
7447
7448 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7449 ;;
7450esac
7451fi
7452BZIP2=$ac_cv_path_BZIP2
7453if test -n "$BZIP2"; then
7454 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7455echo "${ECHO_T}$BZIP2" >&6; }
7456else
7457 { echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6; }
7459fi
7460
7461
7462# Extract the first word of "doxygen", so it can be a program name with args.
7463set dummy doxygen; ac_word=$2
7464{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7466if test "${ac_cv_path_DOXYGEN+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468else
7469 case $DOXYGEN in
7470 [\\/]* | ?:[\\/]*)
7471 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7472 ;;
7473 *)
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485done
7486done
7487IFS=$as_save_IFS
7488
7489 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7490 ;;
7491esac
7492fi
7493DOXYGEN=$ac_cv_path_DOXYGEN
7494if test -n "$DOXYGEN"; then
7495 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7496echo "${ECHO_T}$DOXYGEN" >&6; }
7497else
7498 { echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6; }
7500fi
7501
7502
Reid Spencera773bd52006-08-04 18:18:08 +00007503# Extract the first word of "groff", so it can be a program name with args.
7504set dummy groff; ac_word=$2
7505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507if test "${ac_cv_path_GROFF+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509else
7510 case $GROFF in
7511 [\\/]* | ?:[\\/]*)
7512 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7513 ;;
7514 *)
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7522 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7531 ;;
7532esac
7533fi
7534GROFF=$ac_cv_path_GROFF
7535if test -n "$GROFF"; then
7536 { echo "$as_me:$LINENO: result: $GROFF" >&5
7537echo "${ECHO_T}$GROFF" >&6; }
7538else
7539 { echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6; }
7541fi
7542
7543
7544# Extract the first word of "gzip", so it can be a program name with args.
7545set dummy gzip; ac_word=$2
7546{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548if test "${ac_cv_path_GZIP+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7550else
7551 case $GZIP in
7552 [\\/]* | ?:[\\/]*)
7553 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7554 ;;
7555 *)
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557for as_dir in $PATH
7558do
7559 IFS=$as_save_IFS
7560 test -z "$as_dir" && as_dir=.
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567done
7568done
7569IFS=$as_save_IFS
7570
7571 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7572 ;;
7573esac
7574fi
7575GZIP=$ac_cv_path_GZIP
7576if test -n "$GZIP"; then
7577 { echo "$as_me:$LINENO: result: $GZIP" >&5
7578echo "${ECHO_T}$GZIP" >&6; }
7579else
7580 { echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6; }
7582fi
7583
7584
7585# Extract the first word of "pod2html", so it can be a program name with args.
7586set dummy pod2html; ac_word=$2
7587{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7589if test "${ac_cv_path_POD2HTML+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7591else
7592 case $POD2HTML in
7593 [\\/]* | ?:[\\/]*)
7594 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7595 ;;
7596 *)
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608done
7609done
7610IFS=$as_save_IFS
7611
7612 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7613 ;;
7614esac
7615fi
7616POD2HTML=$ac_cv_path_POD2HTML
7617if test -n "$POD2HTML"; then
7618 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7619echo "${ECHO_T}$POD2HTML" >&6; }
7620else
7621 { echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6; }
7623fi
7624
7625
7626# Extract the first word of "pod2man", so it can be a program name with args.
7627set dummy pod2man; ac_word=$2
7628{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7629echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7630if test "${ac_cv_path_POD2MAN+set}" = set; then
7631 echo $ECHO_N "(cached) $ECHO_C" >&6
7632else
7633 case $POD2MAN in
7634 [\\/]* | ?:[\\/]*)
7635 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7636 ;;
7637 *)
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7645 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7648 fi
7649done
7650done
7651IFS=$as_save_IFS
7652
7653 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7654 ;;
7655esac
7656fi
7657POD2MAN=$ac_cv_path_POD2MAN
7658if test -n "$POD2MAN"; then
7659 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7660echo "${ECHO_T}$POD2MAN" >&6; }
7661else
7662 { echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6; }
7664fi
7665
7666
7667# Extract the first word of "runtest", so it can be a program name with args.
7668set dummy runtest; ac_word=$2
7669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7671if test "${ac_cv_path_RUNTEST+set}" = set; then
7672 echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674 case $RUNTEST in
7675 [\\/]* | ?:[\\/]*)
7676 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7677 ;;
7678 *)
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7689 fi
7690done
7691done
7692IFS=$as_save_IFS
7693
7694 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7695 ;;
7696esac
7697fi
7698RUNTEST=$ac_cv_path_RUNTEST
7699if test -n "$RUNTEST"; then
7700 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7701echo "${ECHO_T}$RUNTEST" >&6; }
7702else
7703 { echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6; }
7705fi
7706
7707
7708
7709no_itcl=true
7710{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7711echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7712
7713# Check whether --with-tclinclude was given.
7714if test "${with_tclinclude+set}" = set; then
7715 withval=$with_tclinclude; with_tclinclude=${withval}
7716else
7717 with_tclinclude=''
7718fi
7719
7720if test "${ac_cv_path_tclsh+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722else
7723
7724if test x"${with_tclinclude}" != x ; then
7725 if test -f ${with_tclinclude}/tclsh ; then
7726 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7727 elif test -f ${with_tclinclude}/src/tclsh ; then
7728 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7729 else
7730 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7731echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7732 { (exit 1); exit 1; }; }
7733 fi
7734fi
7735
7736if test x"${ac_cv_path_tclsh}" = x ; then
7737 { echo "$as_me:$LINENO: result: none" >&5
7738echo "${ECHO_T}none" >&6; }
7739 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
7740do
7741 # Extract the first word of "$ac_prog", so it can be a program name with args.
7742set dummy $ac_prog; ac_word=$2
7743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7745if test "${ac_cv_path_TCLSH+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748 case $TCLSH in
7749 [\\/]* | ?:[\\/]*)
7750 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7751 ;;
7752 *)
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765done
7766IFS=$as_save_IFS
7767
7768 ;;
7769esac
7770fi
7771TCLSH=$ac_cv_path_TCLSH
7772if test -n "$TCLSH"; then
7773 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7774echo "${ECHO_T}$TCLSH" >&6; }
7775else
7776 { echo "$as_me:$LINENO: result: no" >&5
7777echo "${ECHO_T}no" >&6; }
7778fi
7779
7780
7781 test -n "$TCLSH" && break
7782done
7783
7784 if test x"${TCLSH}" = x ; then
7785 ac_cv_path_tclsh='';
7786 else
7787 ac_cv_path_tclsh="${TCLSH}";
7788 fi
7789else
7790 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7791echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7792 TCLSH="${ac_cv_path_tclsh}"
7793
7794fi
7795
7796fi
7797
7798# Extract the first word of "zip", so it can be a program name with args.
7799set dummy zip; ac_word=$2
7800{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802if test "${ac_cv_path_ZIP+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7804else
7805 case $ZIP in
7806 [\\/]* | ?:[\\/]*)
7807 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7808 ;;
7809 *)
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811for as_dir in $PATH
7812do
7813 IFS=$as_save_IFS
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 break 2
7820 fi
7821done
7822done
7823IFS=$as_save_IFS
7824
7825 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7826 ;;
7827esac
7828fi
7829ZIP=$ac_cv_path_ZIP
7830if test -n "$ZIP"; then
7831 { echo "$as_me:$LINENO: result: $ZIP" >&5
7832echo "${ECHO_T}$ZIP" >&6; }
7833else
7834 { echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6; }
7836fi
7837
7838
7839
7840{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7841echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7842if test "${llvm_cv_link_use_r+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7844else
7845 ac_ext=c
7846ac_cpp='$CPP $CPPFLAGS'
7847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849ac_compiler_gnu=$ac_cv_c_compiler_gnu
7850
7851 oldcflags="$CFLAGS"
7852 CFLAGS="$CFLAGS -Wl,-R."
7853 cat >conftest.$ac_ext <<_ACEOF
7854/* confdefs.h. */
7855_ACEOF
7856cat confdefs.h >>conftest.$ac_ext
7857cat >>conftest.$ac_ext <<_ACEOF
7858/* end confdefs.h. */
7859
7860int
7861main ()
7862{
7863int main() { return 0; }
7864 ;
7865 return 0;
7866}
7867_ACEOF
7868rm -f conftest.$ac_objext conftest$ac_exeext
7869if { (ac_try="$ac_link"
7870case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873esac
7874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_link") 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7883 { (case "(($ac_try" in
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7886esac
7887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7888 (eval "$ac_try") 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; } &&
7892 { ac_try='test -s conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 llvm_cv_link_use_r=yes
7903else
7904 echo "$as_me: failed program was:" >&5
7905sed 's/^/| /' conftest.$ac_ext >&5
7906
7907 llvm_cv_link_use_r=no
7908fi
7909
7910rm -f core conftest.err conftest.$ac_objext \
7911 conftest$ac_exeext conftest.$ac_ext
7912 CFLAGS="$oldcflags"
7913 ac_ext=c
7914ac_cpp='$CPP $CPPFLAGS'
7915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7917ac_compiler_gnu=$ac_cv_c_compiler_gnu
7918
7919
7920fi
7921{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7922echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7923if test "$llvm_cv_link_use_r" = yes ; then
7924
7925cat >>confdefs.h <<\_ACEOF
7926#define HAVE_LINK_R 1
7927_ACEOF
7928
7929 fi
7930
7931
7932
7933
7934{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7935echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7936if test "${ac_cv_c_const+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939 cat >conftest.$ac_ext <<_ACEOF
7940/* confdefs.h. */
7941_ACEOF
7942cat confdefs.h >>conftest.$ac_ext
7943cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */
7945
7946int
7947main ()
7948{
7949/* FIXME: Include the comments suggested by Paul. */
7950#ifndef __cplusplus
7951 /* Ultrix mips cc rejects this. */
7952 typedef int charset[2];
7953 const charset x;
7954 /* SunOS 4.1.1 cc rejects this. */
7955 char const *const *ccp;
7956 char **p;
7957 /* NEC SVR4.0.2 mips cc rejects this. */
7958 struct point {int x, y;};
7959 static struct point const zero = {0,0};
7960 /* AIX XL C 1.02.0.0 rejects this.
7961 It does not let you subtract one const X* pointer from another in
7962 an arm of an if-expression whose if-part is not a constant
7963 expression */
7964 const char *g = "string";
7965 ccp = &g + (g ? g-g : 0);
7966 /* HPUX 7.0 cc rejects these. */
7967 ++ccp;
7968 p = (char**) ccp;
7969 ccp = (char const *const *) p;
7970 { /* SCO 3.2v4 cc rejects this. */
7971 char *t;
7972 char const *s = 0 ? (char *) 0 : (char const *) 0;
7973
7974 *t++ = 0;
7975 if (s) return 0;
7976 }
7977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7978 int x[] = {25, 17};
7979 const int *foo = &x[0];
7980 ++foo;
7981 }
7982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7983 typedef const int *iptr;
7984 iptr p = 0;
7985 ++p;
7986 }
7987 { /* AIX XL C 1.02.0.0 rejects this saying
7988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7989 struct s { int j; const int *ap[3]; };
7990 struct s *b; b->j = 5;
7991 }
7992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7993 const int foo = 10;
7994 if (!foo) return 0;
7995 }
7996 return !x[0] && !zero.x;
7997#endif
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } &&
8017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8018 { (case "(($ac_try" in
8019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8020 *) ac_try_echo=$ac_try;;
8021esac
8022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8023 (eval "$ac_try") 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; } &&
8027 { ac_try='test -s conftest.$ac_objext'
8028 { (case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_try") 2>&5
8034 ac_status=$?
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); }; }; then
8037 ac_cv_c_const=yes
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042 ac_cv_c_const=no
8043fi
8044
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046fi
8047{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8048echo "${ECHO_T}$ac_cv_c_const" >&6; }
8049if test $ac_cv_c_const = no; then
8050
8051cat >>confdefs.h <<\_ACEOF
8052#define const
8053_ACEOF
8054
8055fi
8056
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008057
8058
8059
8060
8061
8062ac_header_dirent=no
8063for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8064 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008065{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8066echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008068 echo $ECHO_N "(cached) $ECHO_C" >&6
8069else
8070 cat >conftest.$ac_ext <<_ACEOF
8071/* confdefs.h. */
8072_ACEOF
8073cat confdefs.h >>conftest.$ac_ext
8074cat >>conftest.$ac_ext <<_ACEOF
8075/* end confdefs.h. */
8076#include <sys/types.h>
8077#include <$ac_hdr>
8078
8079int
8080main ()
8081{
8082if ((DIR *) 0)
8083return 0;
8084 ;
8085 return 0;
8086}
8087_ACEOF
8088rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008089if { (ac_try="$ac_compile"
8090case "(($ac_try" in
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8093esac
8094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8103 { (case "(($ac_try" in
8104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105 *) ac_try_echo=$ac_try;;
8106esac
8107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008109 ac_status=$?
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); }; } &&
8112 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008113 { (case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008119 ac_status=$?
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); }; }; then
8122 eval "$as_ac_Header=yes"
8123else
8124 echo "$as_me: failed program was:" >&5
8125sed 's/^/| /' conftest.$ac_ext >&5
8126
Reid Spencera773bd52006-08-04 18:18:08 +00008127 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008128fi
Reid Spencera773bd52006-08-04 18:18:08 +00008129
8130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008131fi
Reid Spencera773bd52006-08-04 18:18:08 +00008132ac_res=`eval echo '${'$as_ac_Header'}'`
8133 { echo "$as_me:$LINENO: result: $ac_res" >&5
8134echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008135if test `eval echo '${'$as_ac_Header'}'` = yes; then
8136 cat >>confdefs.h <<_ACEOF
8137#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8138_ACEOF
8139
8140ac_header_dirent=$ac_hdr; break
8141fi
8142
8143done
8144# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8145if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008146 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8147echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148if test "${ac_cv_search_opendir+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8150else
8151 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008152cat >conftest.$ac_ext <<_ACEOF
8153/* confdefs.h. */
8154_ACEOF
8155cat confdefs.h >>conftest.$ac_ext
8156cat >>conftest.$ac_ext <<_ACEOF
8157/* end confdefs.h. */
8158
Reid Spencera773bd52006-08-04 18:18:08 +00008159/* Override any GCC internal prototype to avoid an error.
8160 Use char because int might match the return type of a GCC
8161 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008162#ifdef __cplusplus
8163extern "C"
8164#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008165char opendir ();
8166int
8167main ()
8168{
Reid Spencera773bd52006-08-04 18:18:08 +00008169return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008170 ;
8171 return 0;
8172}
8173_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008174for ac_lib in '' dir; do
8175 if test -z "$ac_lib"; then
8176 ac_res="none required"
8177 else
8178 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008180 fi
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182if { (ac_try="$ac_link"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8196 { (case "(($ac_try" in
8197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198 *) ac_try_echo=$ac_try;;
8199esac
8200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8201 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; } &&
8205 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008215 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008216else
8217 echo "$as_me: failed program was:" >&5
8218sed 's/^/| /' conftest.$ac_ext >&5
8219
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008220
8221fi
8222
Reid Spencera773bd52006-08-04 18:18:08 +00008223rm -f core conftest.err conftest.$ac_objext \
8224 conftest$ac_exeext
8225 if test "${ac_cv_search_opendir+set}" = set; then
8226 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008227fi
John Criswell7a73b802003-06-30 21:59:07 +00008228done
Reid Spencera773bd52006-08-04 18:18:08 +00008229if test "${ac_cv_search_opendir+set}" = set; then
8230 :
8231else
8232 ac_cv_search_opendir=no
8233fi
8234rm conftest.$ac_ext
8235LIBS=$ac_func_search_save_LIBS
8236fi
8237{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8238echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8239ac_res=$ac_cv_search_opendir
8240if test "$ac_res" != no; then
8241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008242
Reid Spencera773bd52006-08-04 18:18:08 +00008243fi
8244
8245else
8246 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8247echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8248if test "${ac_cv_search_opendir+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250else
8251 ac_func_search_save_LIBS=$LIBS
8252cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h. */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h. */
8258
8259/* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8262#ifdef __cplusplus
8263extern "C"
8264#endif
8265char opendir ();
8266int
8267main ()
8268{
8269return opendir ();
8270 ;
8271 return 0;
8272}
8273_ACEOF
8274for ac_lib in '' x; do
8275 if test -z "$ac_lib"; then
8276 ac_res="none required"
8277 else
8278 ac_res=-l$ac_lib
8279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8280 fi
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282if { (ac_try="$ac_link"
8283case "(($ac_try" in
8284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285 *) ac_try_echo=$ac_try;;
8286esac
8287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288 (eval "$ac_link") 2>conftest.er1
8289 ac_status=$?
8290 grep -v '^ *+' conftest.er1 >conftest.err
8291 rm -f conftest.er1
8292 cat conftest.err >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8296 { (case "(($ac_try" in
8297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8299esac
8300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_try") 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309esac
8310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_try") 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_search_opendir=$ac_res
8316else
8317 echo "$as_me: failed program was:" >&5
8318sed 's/^/| /' conftest.$ac_ext >&5
8319
8320
8321fi
8322
8323rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext
8325 if test "${ac_cv_search_opendir+set}" = set; then
8326 break
8327fi
8328done
8329if test "${ac_cv_search_opendir+set}" = set; then
8330 :
8331else
8332 ac_cv_search_opendir=no
8333fi
8334rm conftest.$ac_ext
8335LIBS=$ac_func_search_save_LIBS
8336fi
8337{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8338echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8339ac_res=$ac_cv_search_opendir
8340if test "$ac_res" != no; then
8341 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8342
8343fi
8344
8345fi
John Criswell7a73b802003-06-30 21:59:07 +00008346
8347
8348for ac_header in dlfcn.h
8349do
8350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8354if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008355 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008356fi
Reid Spencera773bd52006-08-04 18:18:08 +00008357ac_res=`eval echo '${'$as_ac_Header'}'`
8358 { echo "$as_me:$LINENO: result: $ac_res" >&5
8359echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008360else
Brian Gaeke0a621332004-09-08 20:38:05 +00008361 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008362{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008364cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008370$ac_includes_default
8371#include <$ac_header>
8372_ACEOF
8373rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008374if { (ac_try="$ac_compile"
8375case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378esac
8379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8388 { (case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008398 { (case "(($ac_try" in
8399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8400 *) ac_try_echo=$ac_try;;
8401esac
8402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8403 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008407 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008408else
8409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008410sed 's/^/| /' conftest.$ac_ext >&5
8411
Reid Spencera773bd52006-08-04 18:18:08 +00008412 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008413fi
Reid Spencera773bd52006-08-04 18:18:08 +00008414
8415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8417echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008418
8419# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008420{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8421echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008422cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008423/* confdefs.h. */
8424_ACEOF
8425cat confdefs.h >>conftest.$ac_ext
8426cat >>conftest.$ac_ext <<_ACEOF
8427/* end confdefs.h. */
8428#include <$ac_header>
8429_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008430if { (ac_try="$ac_cpp conftest.$ac_ext"
8431case "(($ac_try" in
8432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8434esac
8435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008437 ac_status=$?
8438 grep -v '^ *+' conftest.er1 >conftest.err
8439 rm -f conftest.er1
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } >/dev/null; then
8443 if test -s conftest.err; then
8444 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008446 else
8447 ac_cpp_err=
8448 fi
8449else
8450 ac_cpp_err=yes
8451fi
8452if test -z "$ac_cpp_err"; then
8453 ac_header_preproc=yes
8454else
8455 echo "$as_me: failed program was:" >&5
8456sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_header_preproc=no
8459fi
Reid Spencera773bd52006-08-04 18:18:08 +00008460
Brian Gaeke0a621332004-09-08 20:38:05 +00008461rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008462{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8463echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008464
8465# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8467 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8472 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008473 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008474 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008487 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008488## ----------------------------------- ##
8489## Report this to llvmbugs@cs.uiuc.edu ##
8490## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008491_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008492 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008493 ;;
8494esac
Reid Spencera773bd52006-08-04 18:18:08 +00008495{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008498 echo $ECHO_N "(cached) $ECHO_C" >&6
8499else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008500 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008501fi
Reid Spencera773bd52006-08-04 18:18:08 +00008502ac_res=`eval echo '${'$as_ac_Header'}'`
8503 { echo "$as_me:$LINENO: result: $ac_res" >&5
8504echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008505
8506fi
John Criswell7a73b802003-06-30 21:59:07 +00008507if test `eval echo '${'$as_ac_Header'}'` = yes; then
8508 cat >>confdefs.h <<_ACEOF
8509#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8510_ACEOF
8511
8512fi
8513
8514done
8515
Reid Spencera773bd52006-08-04 18:18:08 +00008516# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008517if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008518 enableval=$enable_ltdl_install;
8519fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008520
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008521
8522
8523
8524if test x"${enable_ltdl_install-no}" != xno; then
8525 INSTALL_LTDL_TRUE=
8526 INSTALL_LTDL_FALSE='#'
8527else
8528 INSTALL_LTDL_TRUE='#'
8529 INSTALL_LTDL_FALSE=
8530fi
8531
8532
8533
8534if test x"${enable_ltdl_convenience-no}" != xno; then
8535 CONVENIENCE_LTDL_TRUE=
8536 CONVENIENCE_LTDL_FALSE='#'
8537else
8538 CONVENIENCE_LTDL_TRUE='#'
8539 CONVENIENCE_LTDL_FALSE=
8540fi
8541
8542
Reid Spencera773bd52006-08-04 18:18:08 +00008543{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008545library_names_spec=
8546libname_spec='lib$name'
8547soname_spec=
8548shrext_cmds=".so"
8549postinstall_cmds=
8550postuninstall_cmds=
8551finish_cmds=
8552finish_eval=
8553shlibpath_var=
8554shlibpath_overrides_runpath=unknown
8555version_type=none
8556dynamic_linker="$host_os ld.so"
8557sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558if test "$GCC" = yes; then
8559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561 # if the path contains ";" then we assume it to be the separator
8562 # otherwise default to the standard path separator (i.e. ":") - it is
8563 # assumed that no part of a normal pathname contains ";" but that should
8564 # okay in the real world where ";" in dirpaths is itself problematic.
8565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566 else
8567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8568 fi
8569else
8570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8571fi
8572need_lib_prefix=unknown
8573hardcode_into_libs=no
8574
8575# when you set need_version to no, make sure it does not cause -set_version
8576# flags to be left without arguments
8577need_version=unknown
8578
8579case $host_os in
8580aix3*)
8581 version_type=linux
8582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583 shlibpath_var=LIBPATH
8584
8585 # AIX 3 has no versioning support, so we append a major version to the name.
8586 soname_spec='${libname}${release}${shared_ext}$major'
8587 ;;
8588
8589aix4* | aix5*)
8590 version_type=linux
8591 need_lib_prefix=no
8592 need_version=no
8593 hardcode_into_libs=yes
8594 if test "$host_cpu" = ia64; then
8595 # AIX 5 supports IA64
8596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597 shlibpath_var=LD_LIBRARY_PATH
8598 else
8599 # With GCC up to 2.95.x, collect2 would create an import file
8600 # for dependence libraries. The import file would start with
8601 # the line `#! .'. This would cause the generated library to
8602 # depend on `.', always an invalid library. This was fixed in
8603 # development snapshots of GCC prior to 3.0.
8604 case $host_os in
8605 aix4 | aix4.[01] | aix4.[01].*)
8606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8607 echo ' yes '
8608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8609 :
8610 else
8611 can_build_shared=no
8612 fi
8613 ;;
8614 esac
8615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616 # soname into executable. Probably we can add versioning support to
8617 # collect2, so additional links can be useful in future.
8618 if test "$aix_use_runtimelinking" = yes; then
8619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620 # instead of lib<name>.a to let people know that these are not
8621 # typical AIX shared libraries.
8622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623 else
8624 # We preserve .a as extension for shared libraries through AIX4.2
8625 # and later when we are not doing run time linking.
8626 library_names_spec='${libname}${release}.a $libname.a'
8627 soname_spec='${libname}${release}${shared_ext}$major'
8628 fi
8629 shlibpath_var=LIBPATH
8630 fi
8631 ;;
8632
8633amigaos*)
8634 library_names_spec='$libname.ixlibrary $libname.a'
8635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8636 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'
8637 ;;
8638
8639beos*)
8640 library_names_spec='${libname}${shared_ext}'
8641 dynamic_linker="$host_os ld.so"
8642 shlibpath_var=LIBRARY_PATH
8643 ;;
8644
8645bsdi[45]*)
8646 version_type=linux
8647 need_version=no
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649 soname_spec='${libname}${release}${shared_ext}$major'
8650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651 shlibpath_var=LD_LIBRARY_PATH
8652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654 # the default ld.so.conf also contains /usr/contrib/lib and
8655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656 # libtool to hard-code these into programs
8657 ;;
8658
8659cygwin* | mingw* | pw32*)
8660 version_type=windows
8661 shrext_cmds=".dll"
8662 need_version=no
8663 need_lib_prefix=no
8664
8665 case $GCC,$host_os in
8666 yes,cygwin* | yes,mingw* | yes,pw32*)
8667 library_names_spec='$libname.dll.a'
8668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8669 postinstall_cmds='base_file=`basename \${file}`~
8670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671 dldir=$destdir/`dirname \$dlpath`~
8672 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008673 $install_prog $dir/$dlname \$dldir/$dlname~
8674 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676 dlpath=$dir/\$dldll~
8677 $rm \$dlpath'
8678 shlibpath_overrides_runpath=yes
8679
8680 case $host_os in
8681 cygwin*)
8682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8685 ;;
8686 mingw*)
8687 # MinGW DLLs use traditional 'lib' prefix
8688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691 # It is most probably a Windows format PATH printed by
8692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8693 # path with ; separators, and with drive letters. We can handle the
8694 # drive letters (cygwin fileutils understands them), so leave them,
8695 # especially as we might pass files found there to a mingw objdump,
8696 # which wouldn't understand a cygwinified path. Ahh.
8697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8698 else
8699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8700 fi
8701 ;;
8702 pw32*)
8703 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008705 ;;
8706 esac
8707 ;;
8708
8709 *)
8710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8711 ;;
8712 esac
8713 dynamic_linker='Win32 ld.exe'
8714 # FIXME: first we should search . and the directory the executable is in
8715 shlibpath_var=PATH
8716 ;;
8717
8718darwin* | rhapsody*)
8719 dynamic_linker="$host_os dyld"
8720 version_type=darwin
8721 need_lib_prefix=no
8722 need_version=no
8723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724 soname_spec='${libname}${release}${major}$shared_ext'
8725 shlibpath_overrides_runpath=yes
8726 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729 if test "$GCC" = yes; then
8730 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"`
8731 else
8732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8733 fi
8734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8735 ;;
8736
8737dgux*)
8738 version_type=linux
8739 need_lib_prefix=no
8740 need_version=no
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 shlibpath_var=LD_LIBRARY_PATH
8744 ;;
8745
8746freebsd1*)
8747 dynamic_linker=no
8748 ;;
8749
8750kfreebsd*-gnu)
8751 version_type=linux
8752 need_lib_prefix=no
8753 need_version=no
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 shlibpath_var=LD_LIBRARY_PATH
8757 shlibpath_overrides_runpath=no
8758 hardcode_into_libs=yes
8759 dynamic_linker='GNU ld.so'
8760 ;;
8761
Reid Spencera773bd52006-08-04 18:18:08 +00008762freebsd* | dragonfly*)
8763 # DragonFly does not have aout. When/if they implement a new
8764 # versioning mechanism, adjust this.
8765 if test -x /usr/bin/objformat; then
8766 objformat=`/usr/bin/objformat`
8767 else
8768 case $host_os in
8769 freebsd[123]*) objformat=aout ;;
8770 *) objformat=elf ;;
8771 esac
8772 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008773 version_type=freebsd-$objformat
8774 case $version_type in
8775 freebsd-elf*)
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8777 need_version=no
8778 need_lib_prefix=no
8779 ;;
8780 freebsd-*)
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8782 need_version=yes
8783 ;;
8784 esac
8785 shlibpath_var=LD_LIBRARY_PATH
8786 case $host_os in
8787 freebsd2*)
8788 shlibpath_overrides_runpath=yes
8789 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008790 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008791 shlibpath_overrides_runpath=yes
8792 hardcode_into_libs=yes
8793 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008794 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8795 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008796 shlibpath_overrides_runpath=no
8797 hardcode_into_libs=yes
8798 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008799 freebsd*) # from 4.6 on
8800 shlibpath_overrides_runpath=yes
8801 hardcode_into_libs=yes
8802 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008803 esac
8804 ;;
8805
8806gnu*)
8807 version_type=linux
8808 need_lib_prefix=no
8809 need_version=no
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 shlibpath_var=LD_LIBRARY_PATH
8813 hardcode_into_libs=yes
8814 ;;
8815
8816hpux9* | hpux10* | hpux11*)
8817 # Give a soname corresponding to the major version so that dld.sl refuses to
8818 # link against other versions.
8819 version_type=sunos
8820 need_lib_prefix=no
8821 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008822 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008823 ia64*)
8824 shrext_cmds='.so'
8825 hardcode_into_libs=yes
8826 dynamic_linker="$host_os dld.so"
8827 shlibpath_var=LD_LIBRARY_PATH
8828 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 soname_spec='${libname}${release}${shared_ext}$major'
8831 if test "X$HPUX_IA64_MODE" = X32; then
8832 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8833 else
8834 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8835 fi
8836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8837 ;;
8838 hppa*64*)
8839 shrext_cmds='.sl'
8840 hardcode_into_libs=yes
8841 dynamic_linker="$host_os dld.sl"
8842 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8843 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8845 soname_spec='${libname}${release}${shared_ext}$major'
8846 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8848 ;;
8849 *)
8850 shrext_cmds='.sl'
8851 dynamic_linker="$host_os dld.sl"
8852 shlibpath_var=SHLIB_PATH
8853 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8855 soname_spec='${libname}${release}${shared_ext}$major'
8856 ;;
8857 esac
8858 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8859 postinstall_cmds='chmod 555 $lib'
8860 ;;
8861
Reid Spencera773bd52006-08-04 18:18:08 +00008862interix3*)
8863 version_type=linux
8864 need_lib_prefix=no
8865 need_version=no
8866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8867 soname_spec='${libname}${release}${shared_ext}$major'
8868 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8869 shlibpath_var=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath=no
8871 hardcode_into_libs=yes
8872 ;;
8873
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008874irix5* | irix6* | nonstopux*)
8875 case $host_os in
8876 nonstopux*) version_type=nonstopux ;;
8877 *)
8878 if test "$lt_cv_prog_gnu_ld" = yes; then
8879 version_type=linux
8880 else
8881 version_type=irix
8882 fi ;;
8883 esac
8884 need_lib_prefix=no
8885 need_version=no
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 case $host_os in
8889 irix5* | nonstopux*)
8890 libsuff= shlibsuff=
8891 ;;
8892 *)
8893 case $LD in # libtool.m4 will add one of these switches to LD
8894 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8895 libsuff= shlibsuff= libmagic=32-bit;;
8896 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8897 libsuff=32 shlibsuff=N32 libmagic=N32;;
8898 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8899 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8900 *) libsuff= shlibsuff= libmagic=never-match;;
8901 esac
8902 ;;
8903 esac
8904 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8905 shlibpath_overrides_runpath=no
8906 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8907 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8908 hardcode_into_libs=yes
8909 ;;
8910
8911# No shared lib support for Linux oldld, aout, or coff.
8912linux*oldld* | linux*aout* | linux*coff*)
8913 dynamic_linker=no
8914 ;;
8915
8916# This must be Linux ELF.
8917linux*)
8918 version_type=linux
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8924 shlibpath_var=LD_LIBRARY_PATH
8925 shlibpath_overrides_runpath=no
8926 # This implies no fast_install, which is unacceptable.
8927 # Some rework will be needed to allow for fast_install
8928 # before this can be enabled.
8929 hardcode_into_libs=yes
8930
8931 # Append ld.so.conf contents to the search path
8932 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008933 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' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008934 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8935 fi
8936
8937 # We used to test for /lib/ld.so.1 and disable shared libraries on
8938 # powerpc, because MkLinux only supported shared libraries with the
8939 # GNU dynamic linker. Since this was broken with cross compilers,
8940 # most powerpc-linux boxes support dynamic linking these days and
8941 # people can always --disable-shared, the test was removed, and we
8942 # assume the GNU/Linux dynamic linker is in use.
8943 dynamic_linker='GNU/Linux ld.so'
8944 ;;
8945
8946knetbsd*-gnu)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=no
8954 hardcode_into_libs=yes
8955 dynamic_linker='GNU ld.so'
8956 ;;
8957
8958netbsd*)
8959 version_type=sunos
8960 need_lib_prefix=no
8961 need_version=no
8962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8965 dynamic_linker='NetBSD (a.out) ld.so'
8966 else
8967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 dynamic_linker='NetBSD ld.elf_so'
8970 fi
8971 shlibpath_var=LD_LIBRARY_PATH
8972 shlibpath_overrides_runpath=yes
8973 hardcode_into_libs=yes
8974 ;;
8975
8976newsos6)
8977 version_type=linux
8978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8979 shlibpath_var=LD_LIBRARY_PATH
8980 shlibpath_overrides_runpath=yes
8981 ;;
8982
8983nto-qnx*)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=yes
8991 ;;
8992
8993openbsd*)
8994 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008995 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008996 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008997 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8998 case $host_os in
8999 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9000 *) need_version=no ;;
9001 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9006 case $host_os in
9007 openbsd2.[89] | openbsd2.[89].*)
9008 shlibpath_overrides_runpath=no
9009 ;;
9010 *)
9011 shlibpath_overrides_runpath=yes
9012 ;;
9013 esac
9014 else
9015 shlibpath_overrides_runpath=yes
9016 fi
9017 ;;
9018
9019os2*)
9020 libname_spec='$name'
9021 shrext_cmds=".dll"
9022 need_lib_prefix=no
9023 library_names_spec='$libname${shared_ext} $libname.a'
9024 dynamic_linker='OS/2 ld.exe'
9025 shlibpath_var=LIBPATH
9026 ;;
9027
9028osf3* | osf4* | osf5*)
9029 version_type=osf
9030 need_lib_prefix=no
9031 need_version=no
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9034 shlibpath_var=LD_LIBRARY_PATH
9035 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9036 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9037 ;;
9038
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009039solaris*)
9040 version_type=linux
9041 need_lib_prefix=no
9042 need_version=no
9043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9044 soname_spec='${libname}${release}${shared_ext}$major'
9045 shlibpath_var=LD_LIBRARY_PATH
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 # ldd complains unless libraries are executable
9049 postinstall_cmds='chmod +x $lib'
9050 ;;
9051
9052sunos4*)
9053 version_type=sunos
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=yes
9058 if test "$with_gnu_ld" = yes; then
9059 need_lib_prefix=no
9060 fi
9061 need_version=yes
9062 ;;
9063
Reid Spencera773bd52006-08-04 18:18:08 +00009064sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009065 version_type=linux
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 case $host_vendor in
9070 sni)
9071 shlibpath_overrides_runpath=no
9072 need_lib_prefix=no
9073 export_dynamic_flag_spec='${wl}-Blargedynsym'
9074 runpath_var=LD_RUN_PATH
9075 ;;
9076 siemens)
9077 need_lib_prefix=no
9078 ;;
9079 motorola)
9080 need_lib_prefix=no
9081 need_version=no
9082 shlibpath_overrides_runpath=no
9083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9084 ;;
9085 esac
9086 ;;
9087
9088sysv4*MP*)
9089 if test -d /usr/nec ;then
9090 version_type=linux
9091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9092 soname_spec='$libname${shared_ext}.$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 fi
9095 ;;
9096
Reid Spencera773bd52006-08-04 18:18:08 +00009097sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9098 version_type=freebsd-elf
9099 need_lib_prefix=no
9100 need_version=no
9101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 shlibpath_var=LD_LIBRARY_PATH
9104 hardcode_into_libs=yes
9105 if test "$with_gnu_ld" = yes; then
9106 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9107 shlibpath_overrides_runpath=no
9108 else
9109 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9110 shlibpath_overrides_runpath=yes
9111 case $host_os in
9112 sco3.2v5*)
9113 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9114 ;;
9115 esac
9116 fi
9117 sys_lib_dlsearch_path_spec='/usr/lib'
9118 ;;
9119
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009120uts4*)
9121 version_type=linux
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 soname_spec='${libname}${release}${shared_ext}$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 ;;
9126
9127*)
9128 dynamic_linker=no
9129 ;;
9130esac
Reid Spencera773bd52006-08-04 18:18:08 +00009131{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9132echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009133test "$dynamic_linker" = no && can_build_shared=no
9134
Reid Spencera773bd52006-08-04 18:18:08 +00009135variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9136if test "$GCC" = yes; then
9137 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9138fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009139
Reid Spencera773bd52006-08-04 18:18:08 +00009140
9141{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9142echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009143if test "${libltdl_cv_shlibext+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145else
9146
9147module=yes
9148eval libltdl_cv_shlibext=$shrext_cmds
9149
9150fi
Reid Spencera773bd52006-08-04 18:18:08 +00009151{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9152echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009153if test -n "$libltdl_cv_shlibext"; then
9154
9155cat >>confdefs.h <<_ACEOF
9156#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9157_ACEOF
9158
9159fi
9160
9161
Reid Spencera773bd52006-08-04 18:18:08 +00009162{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9163echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164if test "${libltdl_cv_shlibpath_var+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
9167 libltdl_cv_shlibpath_var="$shlibpath_var"
9168fi
Reid Spencera773bd52006-08-04 18:18:08 +00009169{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9170echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009171if test -n "$libltdl_cv_shlibpath_var"; then
9172
9173cat >>confdefs.h <<_ACEOF
9174#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9175_ACEOF
9176
9177fi
9178
9179
Reid Spencera773bd52006-08-04 18:18:08 +00009180{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9181echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009182if test "${libltdl_cv_sys_search_path+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9184else
9185 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9186fi
Reid Spencera773bd52006-08-04 18:18:08 +00009187{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9188echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009189if test -n "$libltdl_cv_sys_search_path"; then
9190 sys_search_path=
9191 for dir in $libltdl_cv_sys_search_path; do
9192 if test -z "$sys_search_path"; then
9193 sys_search_path="$dir"
9194 else
9195 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9196 fi
9197 done
9198
9199cat >>confdefs.h <<_ACEOF
9200#define LTDL_SYSSEARCHPATH "$sys_search_path"
9201_ACEOF
9202
9203fi
9204
Reid Spencera773bd52006-08-04 18:18:08 +00009205{ echo "$as_me:$LINENO: checking for objdir" >&5
9206echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009207if test "${libltdl_cv_objdir+set}" = set; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9209else
9210 libltdl_cv_objdir="$objdir"
9211 if test -n "$objdir"; then
9212 :
9213 else
9214 rm -f .libs 2>/dev/null
9215 mkdir .libs 2>/dev/null
9216 if test -d .libs; then
9217 libltdl_cv_objdir=.libs
9218 else
9219 # MS-DOS does not allow filenames that begin with a dot.
9220 libltdl_cv_objdir=_libs
9221 fi
9222 rmdir .libs 2>/dev/null
9223 fi
9224
9225fi
Reid Spencera773bd52006-08-04 18:18:08 +00009226{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9227echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009228
9229cat >>confdefs.h <<_ACEOF
9230#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9231_ACEOF
9232
9233
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009234
9235
9236
9237
9238# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009239{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9240echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009241if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243else
9244
9245# These are sane defaults that work on at least a few old systems.
9246# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9247
9248# Character class describing NM global symbol codes.
9249symcode='[BCDEGRST]'
9250
9251# Regexp to match symbols that can be accessed directly from C.
9252sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9253
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009254# Transform an extracted symbol line into a proper C declaration
9255lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9256
9257# Transform an extracted symbol line into symbol name and symbol address
9258lt_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'"
9259
9260# Define system-specific variables.
9261case $host_os in
9262aix*)
9263 symcode='[BCDT]'
9264 ;;
9265cygwin* | mingw* | pw32*)
9266 symcode='[ABCDGISTW]'
9267 ;;
9268hpux*) # Its linker distinguishes data from code symbols
9269 if test "$host_cpu" = ia64; then
9270 symcode='[ABCDEGRST]'
9271 fi
9272 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9273 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'"
9274 ;;
9275linux*)
9276 if test "$host_cpu" = ia64; then
9277 symcode='[ABCDGIRSTW]'
9278 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9279 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'"
9280 fi
9281 ;;
9282irix* | nonstopux*)
9283 symcode='[BCDEGRST]'
9284 ;;
9285osf*)
9286 symcode='[BCDEGQRST]'
9287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009288solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009289 symcode='[BDRT]'
9290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009291sco3.2v5*)
9292 symcode='[DT]'
9293 ;;
9294sysv4.2uw2*)
9295 symcode='[DT]'
9296 ;;
9297sysv5* | sco5v6* | unixware* | OpenUNIX*)
9298 symcode='[ABDT]'
9299 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009300sysv4)
9301 symcode='[DFNSTU]'
9302 ;;
9303esac
9304
9305# Handle CRLF in mingw tool chain
9306opt_cr=
9307case $build_os in
9308mingw*)
9309 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9310 ;;
9311esac
9312
9313# If we're using GNU nm, then use its standard symbol codes.
9314case `$NM -V 2>&1` in
9315*GNU* | *'with BFD'*)
9316 symcode='[ABCDGIRSTW]' ;;
9317esac
9318
9319# Try without a prefix undercore, then with it.
9320for ac_symprfx in "" "_"; do
9321
Reid Spencera773bd52006-08-04 18:18:08 +00009322 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9323 symxfrm="\\1 $ac_symprfx\\2 \\2"
9324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009326 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009327
9328 # Check to see that the pipe works correctly.
9329 pipe_works=no
9330
9331 rm -f conftest*
9332 cat > conftest.$ac_ext <<EOF
9333#ifdef __cplusplus
9334extern "C" {
9335#endif
9336char nm_test_var;
9337void nm_test_func(){}
9338#ifdef __cplusplus
9339}
9340#endif
9341int main(){nm_test_var='a';nm_test_func();return(0);}
9342EOF
9343
9344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9345 (eval $ac_compile) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; then
9349 # Now try to grab the symbols.
9350 nlist=conftest.nm
9351 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9352 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && test -s "$nlist"; then
9356 # Try sorting and uniquifying the output.
9357 if sort "$nlist" | uniq > "$nlist"T; then
9358 mv -f "$nlist"T "$nlist"
9359 else
9360 rm -f "$nlist"T
9361 fi
9362
9363 # Make sure that we snagged all the symbols we need.
9364 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9365 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9366 cat <<EOF > conftest.$ac_ext
9367#ifdef __cplusplus
9368extern "C" {
9369#endif
9370
9371EOF
9372 # Now generate the symbol file.
9373 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9374
9375 cat <<EOF >> conftest.$ac_ext
9376#if defined (__STDC__) && __STDC__
9377# define lt_ptr_t void *
9378#else
9379# define lt_ptr_t char *
9380# define const
9381#endif
9382
9383/* The mapping between symbol names and symbols. */
9384const struct {
9385 const char *name;
9386 lt_ptr_t address;
9387}
9388lt_preloaded_symbols[] =
9389{
9390EOF
9391 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9392 cat <<\EOF >> conftest.$ac_ext
9393 {0, (lt_ptr_t) 0}
9394};
9395
9396#ifdef __cplusplus
9397}
9398#endif
9399EOF
9400 # Now try linking the two files.
9401 mv conftest.$ac_objext conftstm.$ac_objext
9402 lt_save_LIBS="$LIBS"
9403 lt_save_CFLAGS="$CFLAGS"
9404 LIBS="conftstm.$ac_objext"
9405 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9411 pipe_works=yes
9412 fi
9413 LIBS="$lt_save_LIBS"
9414 CFLAGS="$lt_save_CFLAGS"
9415 else
9416 echo "cannot find nm_test_func in $nlist" >&5
9417 fi
9418 else
9419 echo "cannot find nm_test_var in $nlist" >&5
9420 fi
9421 else
9422 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9423 fi
9424 else
9425 echo "$progname: failed program was:" >&5
9426 cat conftest.$ac_ext >&5
9427 fi
9428 rm -f conftest* conftst*
9429
9430 # Do not use the global_symbol_pipe unless it works.
9431 if test "$pipe_works" = yes; then
9432 break
9433 else
9434 lt_cv_sys_global_symbol_pipe=
9435 fi
9436done
9437
9438fi
9439
9440if test -z "$lt_cv_sys_global_symbol_pipe"; then
9441 lt_cv_sys_global_symbol_to_cdecl=
9442fi
9443if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009444 { echo "$as_me:$LINENO: result: failed" >&5
9445echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009446else
Reid Spencera773bd52006-08-04 18:18:08 +00009447 { echo "$as_me:$LINENO: result: ok" >&5
9448echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009449fi
9450
9451
Reid Spencera773bd52006-08-04 18:18:08 +00009452{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9453echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009454if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9458 libltdl_cv_preloaded_symbols=yes
9459 else
9460 libltdl_cv_preloaded_symbols=no
9461 fi
9462
9463fi
Reid Spencera773bd52006-08-04 18:18:08 +00009464{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9465echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009466if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9467
9468cat >>confdefs.h <<\_ACEOF
9469#define HAVE_PRELOADED_SYMBOLS 1
9470_ACEOF
9471
9472fi
9473
9474LIBADD_DL=
9475
9476ac_ext=c
9477ac_cpp='$CPP $CPPFLAGS'
9478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9480ac_compiler_gnu=$ac_cv_c_compiler_gnu
9481
9482
Reid Spencera773bd52006-08-04 18:18:08 +00009483{ echo "$as_me:$LINENO: checking for shl_load" >&5
9484echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485if test "${ac_cv_func_shl_load+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496#define shl_load innocuous_shl_load
9497
9498/* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char shl_load (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9502
9503#ifdef __STDC__
9504# include <limits.h>
9505#else
9506# include <assert.h>
9507#endif
9508
9509#undef shl_load
9510
Reid Spencera773bd52006-08-04 18:18:08 +00009511/* Override any GCC internal prototype to avoid an error.
9512 Use char because int might match the return type of a GCC
9513 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514#ifdef __cplusplus
9515extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517char shl_load ();
9518/* The GNU C library defines this for functions which it implements
9519 to always fail with ENOSYS. Some functions are actually named
9520 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009521#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009522choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523#endif
9524
9525int
9526main ()
9527{
Reid Spencera773bd52006-08-04 18:18:08 +00009528return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009529 ;
9530 return 0;
9531}
9532_ACEOF
9533rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009534if { (ac_try="$ac_link"
9535case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538esac
9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009541 ac_status=$?
9542 grep -v '^ *+' conftest.er1 >conftest.err
9543 rm -f conftest.er1
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9548 { (case "(($ac_try" in
9549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9550 *) ac_try_echo=$ac_try;;
9551esac
9552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009554 ac_status=$?
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } &&
9557 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009558 { (case "(($ac_try" in
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9561esac
9562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009564 ac_status=$?
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_cv_func_shl_load=yes
9568else
9569 echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
Reid Spencera773bd52006-08-04 18:18:08 +00009572 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573fi
Reid Spencera773bd52006-08-04 18:18:08 +00009574
9575rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009576 conftest$ac_exeext conftest.$ac_ext
9577fi
Reid Spencera773bd52006-08-04 18:18:08 +00009578{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009580if test $ac_cv_func_shl_load = yes; then
9581
9582cat >>confdefs.h <<\_ACEOF
9583#define HAVE_SHL_LOAD 1
9584_ACEOF
9585
9586else
Reid Spencera773bd52006-08-04 18:18:08 +00009587 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9588echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009589if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9591else
9592 ac_check_lib_save_LIBS=$LIBS
9593LIBS="-ldld $LIBS"
9594cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600
Reid Spencera773bd52006-08-04 18:18:08 +00009601/* Override any GCC internal prototype to avoid an error.
9602 Use char because int might match the return type of a GCC
9603 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604#ifdef __cplusplus
9605extern "C"
9606#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607char shl_load ();
9608int
9609main ()
9610{
Reid Spencera773bd52006-08-04 18:18:08 +00009611return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009612 ;
9613 return 0;
9614}
9615_ACEOF
9616rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009617if { (ac_try="$ac_link"
9618case "(($ac_try" in
9619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9620 *) ac_try_echo=$ac_try;;
9621esac
9622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9623 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009624 ac_status=$?
9625 grep -v '^ *+' conftest.er1 >conftest.err
9626 rm -f conftest.er1
9627 cat conftest.err >&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9631 { (case "(($ac_try" in
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9634esac
9635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009637 ac_status=$?
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); }; } &&
9640 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009641 { (case "(($ac_try" in
9642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9643 *) ac_try_echo=$ac_try;;
9644esac
9645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9646 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_dld_shl_load=yes
9651else
9652 echo "$as_me: failed program was:" >&5
9653sed 's/^/| /' conftest.$ac_ext >&5
9654
Reid Spencera773bd52006-08-04 18:18:08 +00009655 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009656fi
Reid Spencera773bd52006-08-04 18:18:08 +00009657
9658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009659 conftest$ac_exeext conftest.$ac_ext
9660LIBS=$ac_check_lib_save_LIBS
9661fi
Reid Spencera773bd52006-08-04 18:18:08 +00009662{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9663echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009664if test $ac_cv_lib_dld_shl_load = yes; then
9665
9666cat >>confdefs.h <<\_ACEOF
9667#define HAVE_SHL_LOAD 1
9668_ACEOF
9669
9670 LIBADD_DL="$LIBADD_DL -ldld"
9671else
Reid Spencera773bd52006-08-04 18:18:08 +00009672 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9673echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009674if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9676else
9677 ac_check_lib_save_LIBS=$LIBS
9678LIBS="-ldl $LIBS"
9679cat >conftest.$ac_ext <<_ACEOF
9680/* confdefs.h. */
9681_ACEOF
9682cat confdefs.h >>conftest.$ac_ext
9683cat >>conftest.$ac_ext <<_ACEOF
9684/* end confdefs.h. */
9685
Reid Spencera773bd52006-08-04 18:18:08 +00009686/* Override any GCC internal prototype to avoid an error.
9687 Use char because int might match the return type of a GCC
9688 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009689#ifdef __cplusplus
9690extern "C"
9691#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692char dlopen ();
9693int
9694main ()
9695{
Reid Spencera773bd52006-08-04 18:18:08 +00009696return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009697 ;
9698 return 0;
9699}
9700_ACEOF
9701rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009702if { (ac_try="$ac_link"
9703case "(($ac_try" in
9704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9705 *) ac_try_echo=$ac_try;;
9706esac
9707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9708 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009709 ac_status=$?
9710 grep -v '^ *+' conftest.er1 >conftest.err
9711 rm -f conftest.er1
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9716 { (case "(($ac_try" in
9717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718 *) ac_try_echo=$ac_try;;
9719esac
9720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); }; } &&
9725 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9729esac
9730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_cv_lib_dl_dlopen=yes
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
Reid Spencera773bd52006-08-04 18:18:08 +00009740 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741fi
Reid Spencera773bd52006-08-04 18:18:08 +00009742
9743rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009744 conftest$ac_exeext conftest.$ac_ext
9745LIBS=$ac_check_lib_save_LIBS
9746fi
Reid Spencera773bd52006-08-04 18:18:08 +00009747{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9748echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009749if test $ac_cv_lib_dl_dlopen = yes; then
9750
9751cat >>confdefs.h <<\_ACEOF
9752#define HAVE_LIBDL 1
9753_ACEOF
9754
9755 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9756else
9757 cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
9763#if HAVE_DLFCN_H
9764# include <dlfcn.h>
9765#endif
9766
9767int
9768main ()
9769{
9770dlopen(0, 0);
9771 ;
9772 return 0;
9773}
9774_ACEOF
9775rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009776if { (ac_try="$ac_link"
9777case "(($ac_try" in
9778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9779 *) ac_try_echo=$ac_try;;
9780esac
9781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009783 ac_status=$?
9784 grep -v '^ *+' conftest.er1 >conftest.err
9785 rm -f conftest.er1
9786 cat conftest.err >&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9790 { (case "(($ac_try" in
9791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792 *) ac_try_echo=$ac_try;;
9793esac
9794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; } &&
9799 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009800 { (case "(($ac_try" in
9801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9802 *) ac_try_echo=$ac_try;;
9803esac
9804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9805 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; }; then
9809
9810cat >>confdefs.h <<\_ACEOF
9811#define HAVE_LIBDL 1
9812_ACEOF
9813 libltdl_cv_func_dlopen="yes"
9814else
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
Reid Spencera773bd52006-08-04 18:18:08 +00009818 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9819echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009820if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 ac_check_lib_save_LIBS=$LIBS
9824LIBS="-lsvld $LIBS"
9825cat >conftest.$ac_ext <<_ACEOF
9826/* confdefs.h. */
9827_ACEOF
9828cat confdefs.h >>conftest.$ac_ext
9829cat >>conftest.$ac_ext <<_ACEOF
9830/* end confdefs.h. */
9831
Reid Spencera773bd52006-08-04 18:18:08 +00009832/* Override any GCC internal prototype to avoid an error.
9833 Use char because int might match the return type of a GCC
9834 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835#ifdef __cplusplus
9836extern "C"
9837#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838char dlopen ();
9839int
9840main ()
9841{
Reid Spencera773bd52006-08-04 18:18:08 +00009842return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009843 ;
9844 return 0;
9845}
9846_ACEOF
9847rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009848if { (ac_try="$ac_link"
9849case "(($ac_try" in
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9852esac
9853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9854 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009855 ac_status=$?
9856 grep -v '^ *+' conftest.er1 >conftest.err
9857 rm -f conftest.er1
9858 cat conftest.err >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9862 { (case "(($ac_try" in
9863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9864 *) ac_try_echo=$ac_try;;
9865esac
9866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; } &&
9871 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009872 { (case "(($ac_try" in
9873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874 *) ac_try_echo=$ac_try;;
9875esac
9876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_lib_svld_dlopen=yes
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
Reid Spencera773bd52006-08-04 18:18:08 +00009886 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009887fi
Reid Spencera773bd52006-08-04 18:18:08 +00009888
9889rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890 conftest$ac_exeext conftest.$ac_ext
9891LIBS=$ac_check_lib_save_LIBS
9892fi
Reid Spencera773bd52006-08-04 18:18:08 +00009893{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9894echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009895if test $ac_cv_lib_svld_dlopen = yes; then
9896
9897cat >>confdefs.h <<\_ACEOF
9898#define HAVE_LIBDL 1
9899_ACEOF
9900
9901 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9902else
Reid Spencera773bd52006-08-04 18:18:08 +00009903 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9904echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907else
9908 ac_check_lib_save_LIBS=$LIBS
9909LIBS="-ldld $LIBS"
9910cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916
Reid Spencera773bd52006-08-04 18:18:08 +00009917/* Override any GCC internal prototype to avoid an error.
9918 Use char because int might match the return type of a GCC
9919 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920#ifdef __cplusplus
9921extern "C"
9922#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923char dld_link ();
9924int
9925main ()
9926{
Reid Spencera773bd52006-08-04 18:18:08 +00009927return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009933if { (ac_try="$ac_link"
9934case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937esac
9938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9947 { (case "(($ac_try" in
9948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9950esac
9951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009953 ac_status=$?
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); }; } &&
9956 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009957 { (case "(($ac_try" in
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9960esac
9961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963 ac_status=$?
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; }; then
9966 ac_cv_lib_dld_dld_link=yes
9967else
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
Reid Spencera773bd52006-08-04 18:18:08 +00009971 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009972fi
Reid Spencera773bd52006-08-04 18:18:08 +00009973
9974rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975 conftest$ac_exeext conftest.$ac_ext
9976LIBS=$ac_check_lib_save_LIBS
9977fi
Reid Spencera773bd52006-08-04 18:18:08 +00009978{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9979echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980if test $ac_cv_lib_dld_dld_link = yes; then
9981
9982cat >>confdefs.h <<\_ACEOF
9983#define HAVE_DLD 1
9984_ACEOF
9985
9986 LIBADD_DL="$LIBADD_DL -ldld"
9987else
Reid Spencera773bd52006-08-04 18:18:08 +00009988 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9989echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9991 echo $ECHO_N "(cached) $ECHO_C" >&6
9992else
9993 cat >conftest.$ac_ext <<_ACEOF
9994/* confdefs.h. */
9995_ACEOF
9996cat confdefs.h >>conftest.$ac_ext
9997cat >>conftest.$ac_ext <<_ACEOF
9998/* end confdefs.h. */
9999/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10001#define _dyld_func_lookup innocuous__dyld_func_lookup
10002
10003/* System header to define __stub macros and hopefully few prototypes,
10004 which can conflict with char _dyld_func_lookup (); below.
10005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10006 <limits.h> exists even on freestanding compilers. */
10007
10008#ifdef __STDC__
10009# include <limits.h>
10010#else
10011# include <assert.h>
10012#endif
10013
10014#undef _dyld_func_lookup
10015
Reid Spencera773bd52006-08-04 18:18:08 +000010016/* Override any GCC internal prototype to avoid an error.
10017 Use char because int might match the return type of a GCC
10018 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019#ifdef __cplusplus
10020extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022char _dyld_func_lookup ();
10023/* The GNU C library defines this for functions which it implements
10024 to always fail with ENOSYS. Some functions are actually named
10025 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010026#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028#endif
10029
10030int
10031main ()
10032{
Reid Spencera773bd52006-08-04 18:18:08 +000010033return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034 ;
10035 return 0;
10036}
10037_ACEOF
10038rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010039if { (ac_try="$ac_link"
10040case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043esac
10044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010046 ac_status=$?
10047 grep -v '^ *+' conftest.er1 >conftest.err
10048 rm -f conftest.er1
10049 cat conftest.err >&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10053 { (case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056esac
10057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10058 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059 ac_status=$?
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); }; } &&
10062 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010063 { (case "(($ac_try" in
10064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065 *) ac_try_echo=$ac_try;;
10066esac
10067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_func__dyld_func_lookup=yes
10073else
10074 echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
Reid Spencera773bd52006-08-04 18:18:08 +000010077 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010078fi
Reid Spencera773bd52006-08-04 18:18:08 +000010079
10080rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081 conftest$ac_exeext conftest.$ac_ext
10082fi
Reid Spencera773bd52006-08-04 18:18:08 +000010083{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10084echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010085if test $ac_cv_func__dyld_func_lookup = yes; then
10086
10087cat >>confdefs.h <<\_ACEOF
10088#define HAVE_DYLD 1
10089_ACEOF
10090
10091fi
10092
10093
10094fi
10095
10096
10097fi
10098
10099
10100fi
Reid Spencera773bd52006-08-04 18:18:08 +000010101
10102rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010103 conftest$ac_exeext conftest.$ac_ext
10104
10105fi
10106
10107
10108fi
10109
10110
10111fi
10112
10113
10114if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10115then
10116 lt_save_LIBS="$LIBS"
10117 LIBS="$LIBS $LIBADD_DL"
10118
10119for ac_func in dlerror
10120do
10121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010122{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125 echo $ECHO_N "(cached) $ECHO_C" >&6
10126else
10127 cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h. */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h. */
10133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135#define $ac_func innocuous_$ac_func
10136
10137/* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10141
10142#ifdef __STDC__
10143# include <limits.h>
10144#else
10145# include <assert.h>
10146#endif
10147
10148#undef $ac_func
10149
Reid Spencera773bd52006-08-04 18:18:08 +000010150/* Override any GCC internal prototype to avoid an error.
10151 Use char because int might match the return type of a GCC
10152 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010153#ifdef __cplusplus
10154extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010155#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156char $ac_func ();
10157/* The GNU C library defines this for functions which it implements
10158 to always fail with ENOSYS. Some functions are actually named
10159 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010160#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010161choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162#endif
10163
10164int
10165main ()
10166{
Reid Spencera773bd52006-08-04 18:18:08 +000010167return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010168 ;
10169 return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010173if { (ac_try="$ac_link"
10174case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177esac
10178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187 { (case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10190esac
10191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 ac_status=$?
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); }; } &&
10196 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200esac
10201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; }; then
10206 eval "$as_ac_var=yes"
10207else
10208 echo "$as_me: failed program was:" >&5
10209sed 's/^/| /' conftest.$ac_ext >&5
10210
Reid Spencera773bd52006-08-04 18:18:08 +000010211 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212fi
Reid Spencera773bd52006-08-04 18:18:08 +000010213
10214rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215 conftest$ac_exeext conftest.$ac_ext
10216fi
Reid Spencera773bd52006-08-04 18:18:08 +000010217ac_res=`eval echo '${'$as_ac_var'}'`
10218 { echo "$as_me:$LINENO: result: $ac_res" >&5
10219echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010220if test `eval echo '${'$as_ac_var'}'` = yes; then
10221 cat >>confdefs.h <<_ACEOF
10222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10223_ACEOF
10224
10225fi
10226done
10227
10228 LIBS="$lt_save_LIBS"
10229fi
10230ac_ext=c
10231ac_cpp='$CPP $CPPFLAGS'
10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
10236
10237
Reid Spencera773bd52006-08-04 18:18:08 +000010238{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10239echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010240if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10242else
10243 ac_cv_sys_symbol_underscore=no
10244 cat > conftest.$ac_ext <<EOF
10245void nm_test_func(){}
10246int main(){nm_test_func;return 0;}
10247EOF
10248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10249 (eval $ac_compile) 2>&5
10250 ac_status=$?
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); }; then
10253 # Now try to grab the symbols.
10254 ac_nlist=conftest.nm
10255 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10256 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10257 ac_status=$?
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && test -s "$ac_nlist"; then
10260 # See whether the symbols have a leading underscore.
10261 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10262 ac_cv_sys_symbol_underscore=yes
10263 else
10264 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10265 :
10266 else
10267 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10268 fi
10269 fi
10270 else
10271 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10272 fi
10273 else
10274 echo "configure: failed program was:" >&5
10275 cat conftest.c >&5
10276 fi
10277 rm -rf conftest*
10278
10279fi
Reid Spencera773bd52006-08-04 18:18:08 +000010280{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10281echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010282
10283
10284if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10285 if test x"$libltdl_cv_func_dlopen" = xyes ||
10286 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010287 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10288echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010289if test "${libltdl_cv_need_uscore+set}" = set; then
10290 echo $ECHO_N "(cached) $ECHO_C" >&6
10291else
10292 libltdl_cv_need_uscore=unknown
10293 save_LIBS="$LIBS"
10294 LIBS="$LIBS $LIBADD_DL"
10295 if test "$cross_compiling" = yes; then :
10296 libltdl_cv_need_uscore=cross
10297else
10298 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10299 lt_status=$lt_dlunknown
10300 cat > conftest.$ac_ext <<EOF
Reid Spencer8b2e1412006-11-17 03:32:33 +000010301#line 10301 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010302#include "confdefs.h"
10303
10304#if HAVE_DLFCN_H
10305#include <dlfcn.h>
10306#endif
10307
10308#include <stdio.h>
10309
10310#ifdef RTLD_GLOBAL
10311# define LT_DLGLOBAL RTLD_GLOBAL
10312#else
10313# ifdef DL_GLOBAL
10314# define LT_DLGLOBAL DL_GLOBAL
10315# else
10316# define LT_DLGLOBAL 0
10317# endif
10318#endif
10319
10320/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10321 find out it does not work in some platform. */
10322#ifndef LT_DLLAZY_OR_NOW
10323# ifdef RTLD_LAZY
10324# define LT_DLLAZY_OR_NOW RTLD_LAZY
10325# else
10326# ifdef DL_LAZY
10327# define LT_DLLAZY_OR_NOW DL_LAZY
10328# else
10329# ifdef RTLD_NOW
10330# define LT_DLLAZY_OR_NOW RTLD_NOW
10331# else
10332# ifdef DL_NOW
10333# define LT_DLLAZY_OR_NOW DL_NOW
10334# else
10335# define LT_DLLAZY_OR_NOW 0
10336# endif
10337# endif
10338# endif
10339# endif
10340#endif
10341
10342#ifdef __cplusplus
10343extern "C" void exit (int);
10344#endif
10345
10346void fnord() { int i=42;}
10347int main ()
10348{
10349 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10350 int status = $lt_dlunknown;
10351
10352 if (self)
10353 {
10354 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10355 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10356 /* dlclose (self); */
10357 }
Reid Spencera773bd52006-08-04 18:18:08 +000010358 else
10359 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010360
10361 exit (status);
10362}
10363EOF
10364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10365 (eval $ac_link) 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010369 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010370 lt_status=$?
10371 case x$lt_status in
10372 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10373 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010374 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010375 esac
10376 else :
10377 # compilation failed
10378
10379 fi
10380fi
10381rm -fr conftest*
10382
10383 LIBS="$save_LIBS"
10384
10385fi
Reid Spencera773bd52006-08-04 18:18:08 +000010386{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10387echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010388 fi
10389fi
10390
10391if test x"$libltdl_cv_need_uscore" = xyes; then
10392
10393cat >>confdefs.h <<\_ACEOF
10394#define NEED_USCORE 1
10395_ACEOF
10396
10397fi
10398
10399
Reid Spencera773bd52006-08-04 18:18:08 +000010400{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10401echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 # PORTME does your system automatically load deplibs for dlopen?
10406 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10407 # For now, we just catch OSes we know something about -- in the
10408 # future, we'll try test this programmatically.
10409 libltdl_cv_sys_dlopen_deplibs=unknown
10410 case "$host_os" in
10411 aix3*|aix4.1.*|aix4.2.*)
10412 # Unknown whether this is true for these versions of AIX, but
10413 # we want this `case' here to explicitly catch those versions.
10414 libltdl_cv_sys_dlopen_deplibs=unknown
10415 ;;
10416 aix[45]*)
10417 libltdl_cv_sys_dlopen_deplibs=yes
10418 ;;
10419 darwin*)
10420 # Assuming the user has installed a libdl from somewhere, this is true
10421 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10422 libltdl_cv_sys_dlopen_deplibs=yes
10423 ;;
10424 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10425 # GNU and its variants, using gnu ld.so (Glibc)
10426 libltdl_cv_sys_dlopen_deplibs=yes
10427 ;;
10428 hpux10*|hpux11*)
10429 libltdl_cv_sys_dlopen_deplibs=yes
10430 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010431 interix*)
10432 libltdl_cv_sys_dlopen_deplibs=yes
10433 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 irix[12345]*|irix6.[01]*)
10435 # Catch all versions of IRIX before 6.2, and indicate that we don't
10436 # know how it worked for any of those versions.
10437 libltdl_cv_sys_dlopen_deplibs=unknown
10438 ;;
10439 irix*)
10440 # The case above catches anything before 6.2, and it's known that
10441 # at 6.2 and later dlopen does load deplibs.
10442 libltdl_cv_sys_dlopen_deplibs=yes
10443 ;;
10444 netbsd*)
10445 libltdl_cv_sys_dlopen_deplibs=yes
10446 ;;
10447 openbsd*)
10448 libltdl_cv_sys_dlopen_deplibs=yes
10449 ;;
10450 osf[1234]*)
10451 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10452 # it did *not* use an RPATH in a shared library to find objects the
10453 # library depends on, so we explictly say `no'.
10454 libltdl_cv_sys_dlopen_deplibs=no
10455 ;;
10456 osf5.0|osf5.0a|osf5.1)
10457 # dlopen *does* load deplibs and with the right loader patch applied
10458 # it even uses RPATH in a shared library to search for shared objects
10459 # that the library depends on, but there's no easy way to know if that
10460 # patch is installed. Since this is the case, all we can really
10461 # say is unknown -- it depends on the patch being installed. If
10462 # it is, this changes to `yes'. Without it, it would be `no'.
10463 libltdl_cv_sys_dlopen_deplibs=unknown
10464 ;;
10465 osf*)
10466 # the two cases above should catch all versions of osf <= 5.1. Read
10467 # the comments above for what we know about them.
10468 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10469 # is used to find them so we can finally say `yes'.
10470 libltdl_cv_sys_dlopen_deplibs=yes
10471 ;;
10472 solaris*)
10473 libltdl_cv_sys_dlopen_deplibs=yes
10474 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010475 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10477 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010478 esac
10479
10480fi
Reid Spencera773bd52006-08-04 18:18:08 +000010481{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10482echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010483if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10484
10485cat >>confdefs.h <<\_ACEOF
10486#define LTDL_DLOPEN_DEPLIBS 1
10487_ACEOF
10488
10489fi
10490
10491
10492for ac_header in argz.h
10493do
10494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500fi
Reid Spencera773bd52006-08-04 18:18:08 +000010501ac_res=`eval echo '${'$as_ac_Header'}'`
10502 { echo "$as_me:$LINENO: result: $ac_res" >&5
10503echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010504else
10505 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010506{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10507echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508cat >conftest.$ac_ext <<_ACEOF
10509/* confdefs.h. */
10510_ACEOF
10511cat confdefs.h >>conftest.$ac_ext
10512cat >>conftest.$ac_ext <<_ACEOF
10513/* end confdefs.h. */
10514$ac_includes_default
10515#include <$ac_header>
10516_ACEOF
10517rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010518if { (ac_try="$ac_compile"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532 { (case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535esac
10536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; } &&
10541 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010542 { (case "(($ac_try" in
10543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544 *) ac_try_echo=$ac_try;;
10545esac
10546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
Reid Spencera773bd52006-08-04 18:18:08 +000010556 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010557fi
Reid Spencera773bd52006-08-04 18:18:08 +000010558
10559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10561echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562
10563# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010564{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10565echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010566cat >conftest.$ac_ext <<_ACEOF
10567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h. */
10572#include <$ac_header>
10573_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010574if { (ac_try="$ac_cpp conftest.$ac_ext"
10575case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578esac
10579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_c_preproc_warn_flag
10589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10590 else
10591 ac_cpp_err=
10592 fi
10593else
10594 ac_cpp_err=yes
10595fi
10596if test -z "$ac_cpp_err"; then
10597 ac_header_preproc=yes
10598else
10599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
10601
10602 ac_header_preproc=no
10603fi
Reid Spencera773bd52006-08-04 18:18:08 +000010604
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010605rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010606{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010608
10609# So? What about this header?
10610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10611 yes:no: )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10617 ;;
10618 no:yes:* )
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010631 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632## ----------------------------------- ##
10633## Report this to llvmbugs@cs.uiuc.edu ##
10634## ----------------------------------- ##
10635_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010636 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637 ;;
10638esac
Reid Spencera773bd52006-08-04 18:18:08 +000010639{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10641if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643else
10644 eval "$as_ac_Header=\$ac_header_preproc"
10645fi
Reid Spencera773bd52006-08-04 18:18:08 +000010646ac_res=`eval echo '${'$as_ac_Header'}'`
10647 { echo "$as_me:$LINENO: result: $ac_res" >&5
10648echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010649
10650fi
10651if test `eval echo '${'$as_ac_Header'}'` = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10654_ACEOF
10655
10656fi
10657
10658done
10659
10660
Reid Spencera773bd52006-08-04 18:18:08 +000010661{ echo "$as_me:$LINENO: checking for error_t" >&5
10662echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663if test "${ac_cv_type_error_t+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665else
10666 cat >conftest.$ac_ext <<_ACEOF
10667/* confdefs.h. */
10668_ACEOF
10669cat confdefs.h >>conftest.$ac_ext
10670cat >>conftest.$ac_ext <<_ACEOF
10671/* end confdefs.h. */
10672#if HAVE_ARGZ_H
10673# include <argz.h>
10674#endif
10675
Reid Spencera773bd52006-08-04 18:18:08 +000010676typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010677int
10678main ()
10679{
Reid Spencera773bd52006-08-04 18:18:08 +000010680if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010681 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010682if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010683 return 0;
10684 ;
10685 return 0;
10686}
10687_ACEOF
10688rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010689if { (ac_try="$ac_compile"
10690case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693esac
10694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703 { (case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; } &&
10712 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010713 { (case "(($ac_try" in
10714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715 *) ac_try_echo=$ac_try;;
10716esac
10717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719 ac_status=$?
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; }; then
10722 ac_cv_type_error_t=yes
10723else
10724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
Reid Spencera773bd52006-08-04 18:18:08 +000010727 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010728fi
Reid Spencera773bd52006-08-04 18:18:08 +000010729
10730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010731fi
Reid Spencera773bd52006-08-04 18:18:08 +000010732{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10733echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734if test $ac_cv_type_error_t = yes; then
10735
10736cat >>confdefs.h <<_ACEOF
10737#define HAVE_ERROR_T 1
10738_ACEOF
10739
10740
10741else
10742
10743cat >>confdefs.h <<\_ACEOF
10744#define error_t int
10745_ACEOF
10746
10747fi
10748
10749
10750
10751
10752
10753
10754
10755for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10756do
10757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010758{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10760if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761 echo $ECHO_N "(cached) $ECHO_C" >&6
10762else
10763 cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
10768/* end confdefs.h. */
10769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771#define $ac_func innocuous_$ac_func
10772
10773/* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10777
10778#ifdef __STDC__
10779# include <limits.h>
10780#else
10781# include <assert.h>
10782#endif
10783
10784#undef $ac_func
10785
Reid Spencera773bd52006-08-04 18:18:08 +000010786/* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010789#ifdef __cplusplus
10790extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010791#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792char $ac_func ();
10793/* The GNU C library defines this for functions which it implements
10794 to always fail with ENOSYS. Some functions are actually named
10795 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010796#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010798#endif
10799
10800int
10801main ()
10802{
Reid Spencera773bd52006-08-04 18:18:08 +000010803return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010804 ;
10805 return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010809if { (ac_try="$ac_link"
10810case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10813esac
10814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816 ac_status=$?
10817 grep -v '^ *+' conftest.er1 >conftest.err
10818 rm -f conftest.er1
10819 cat conftest.err >&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10823 { (case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
10827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10828 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; } &&
10832 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010833 { (case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836esac
10837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 eval "$as_ac_var=yes"
10843else
10844 echo "$as_me: failed program was:" >&5
10845sed 's/^/| /' conftest.$ac_ext >&5
10846
Reid Spencera773bd52006-08-04 18:18:08 +000010847 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848fi
Reid Spencera773bd52006-08-04 18:18:08 +000010849
10850rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851 conftest$ac_exeext conftest.$ac_ext
10852fi
Reid Spencera773bd52006-08-04 18:18:08 +000010853ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010856if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10859_ACEOF
10860
10861fi
10862done
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10892 stdio.h unistd.h
10893do
10894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010895if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10897echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10898if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900fi
Reid Spencera773bd52006-08-04 18:18:08 +000010901ac_res=`eval echo '${'$as_ac_Header'}'`
10902 { echo "$as_me:$LINENO: result: $ac_res" >&5
10903echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904else
10905 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010906{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10907echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h. */
10914$ac_includes_default
10915#include <$ac_header>
10916_ACEOF
10917rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010918if { (ac_try="$ac_compile"
10919case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932 { (case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10935esac
10936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); }; } &&
10941 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10945esac
10946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_header_compiler=yes
10952else
10953 echo "$as_me: failed program was:" >&5
10954sed 's/^/| /' conftest.$ac_ext >&5
10955
Reid Spencera773bd52006-08-04 18:18:08 +000010956 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957fi
Reid Spencera773bd52006-08-04 18:18:08 +000010958
10959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10961echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010962
10963# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010964{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10965echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010966cat >conftest.$ac_ext <<_ACEOF
10967/* confdefs.h. */
10968_ACEOF
10969cat confdefs.h >>conftest.$ac_ext
10970cat >>conftest.$ac_ext <<_ACEOF
10971/* end confdefs.h. */
10972#include <$ac_header>
10973_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010974if { (ac_try="$ac_cpp conftest.$ac_ext"
10975case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10978esac
10979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 else
10991 ac_cpp_err=
10992 fi
10993else
10994 ac_cpp_err=yes
10995fi
10996if test -z "$ac_cpp_err"; then
10997 ac_header_preproc=yes
10998else
10999 echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ac_header_preproc=no
11003fi
Reid Spencera773bd52006-08-04 18:18:08 +000011004
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011005rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011006{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11007echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008
11009# So? What about this header?
11010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11011 yes:no: )
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11016 ac_header_preproc=yes
11017 ;;
11018 no:yes:* )
11019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011031 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032## ----------------------------------- ##
11033## Report this to llvmbugs@cs.uiuc.edu ##
11034## ----------------------------------- ##
11035_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011036 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037 ;;
11038esac
Reid Spencera773bd52006-08-04 18:18:08 +000011039{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042 echo $ECHO_N "(cached) $ECHO_C" >&6
11043else
11044 eval "$as_ac_Header=\$ac_header_preproc"
11045fi
Reid Spencera773bd52006-08-04 18:18:08 +000011046ac_res=`eval echo '${'$as_ac_Header'}'`
11047 { echo "$as_me:$LINENO: result: $ac_res" >&5
11048echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011049
11050fi
11051if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054_ACEOF
11055
11056fi
11057
11058done
11059
11060
11061
11062
11063
11064for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11065do
11066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011067if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072fi
Reid Spencera773bd52006-08-04 18:18:08 +000011073ac_res=`eval echo '${'$as_ac_Header'}'`
11074 { echo "$as_me:$LINENO: result: $ac_res" >&5
11075echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011076else
11077 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011078{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11079echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080cat >conftest.$ac_ext <<_ACEOF
11081/* confdefs.h. */
11082_ACEOF
11083cat confdefs.h >>conftest.$ac_ext
11084cat >>conftest.$ac_ext <<_ACEOF
11085/* end confdefs.h. */
11086$ac_includes_default
11087#include <$ac_header>
11088_ACEOF
11089rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011090if { (ac_try="$ac_compile"
11091case "(($ac_try" in
11092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11094esac
11095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011097 ac_status=$?
11098 grep -v '^ *+' conftest.er1 >conftest.err
11099 rm -f conftest.er1
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11104 { (case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11107esac
11108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110 ac_status=$?
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); }; } &&
11113 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011114 { (case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011120 ac_status=$?
11121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11122 (exit $ac_status); }; }; then
11123 ac_header_compiler=yes
11124else
11125 echo "$as_me: failed program was:" >&5
11126sed 's/^/| /' conftest.$ac_ext >&5
11127
Reid Spencera773bd52006-08-04 18:18:08 +000011128 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011129fi
Reid Spencera773bd52006-08-04 18:18:08 +000011130
11131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11132{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11133echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134
11135# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011136{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011138cat >conftest.$ac_ext <<_ACEOF
11139/* confdefs.h. */
11140_ACEOF
11141cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */
11144#include <$ac_header>
11145_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011146if { (ac_try="$ac_cpp conftest.$ac_ext"
11147case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150esac
11151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } >/dev/null; then
11159 if test -s conftest.err; then
11160 ac_cpp_err=$ac_c_preproc_warn_flag
11161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11162 else
11163 ac_cpp_err=
11164 fi
11165else
11166 ac_cpp_err=yes
11167fi
11168if test -z "$ac_cpp_err"; then
11169 ac_header_preproc=yes
11170else
11171 echo "$as_me: failed program was:" >&5
11172sed 's/^/| /' conftest.$ac_ext >&5
11173
11174 ac_header_preproc=no
11175fi
Reid Spencera773bd52006-08-04 18:18:08 +000011176
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011177rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011178{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11179echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011180
11181# So? What about this header?
11182case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11183 yes:no: )
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11185echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11187echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11188 ac_header_preproc=yes
11189 ;;
11190 no:yes:* )
11191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11192echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11194echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11196echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11198echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11200echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11202echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011203 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204## ----------------------------------- ##
11205## Report this to llvmbugs@cs.uiuc.edu ##
11206## ----------------------------------- ##
11207_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011208 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209 ;;
11210esac
Reid Spencera773bd52006-08-04 18:18:08 +000011211{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011214 echo $ECHO_N "(cached) $ECHO_C" >&6
11215else
11216 eval "$as_ac_Header=\$ac_header_preproc"
11217fi
Reid Spencera773bd52006-08-04 18:18:08 +000011218ac_res=`eval echo '${'$as_ac_Header'}'`
11219 { echo "$as_me:$LINENO: result: $ac_res" >&5
11220echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011221
11222fi
11223if test `eval echo '${'$as_ac_Header'}'` = yes; then
11224 cat >>confdefs.h <<_ACEOF
11225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11226_ACEOF
11227
11228fi
11229
11230done
11231
11232
11233
11234for ac_header in string.h strings.h
11235do
11236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11238 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011241 echo $ECHO_N "(cached) $ECHO_C" >&6
11242fi
Reid Spencera773bd52006-08-04 18:18:08 +000011243ac_res=`eval echo '${'$as_ac_Header'}'`
11244 { echo "$as_me:$LINENO: result: $ac_res" >&5
11245echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011246else
11247 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011248{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250cat >conftest.$ac_ext <<_ACEOF
11251/* confdefs.h. */
11252_ACEOF
11253cat confdefs.h >>conftest.$ac_ext
11254cat >>conftest.$ac_ext <<_ACEOF
11255/* end confdefs.h. */
11256$ac_includes_default
11257#include <$ac_header>
11258_ACEOF
11259rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011260if { (ac_try="$ac_compile"
11261case "(($ac_try" in
11262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11263 *) ac_try_echo=$ac_try;;
11264esac
11265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11266 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011267 ac_status=$?
11268 grep -v '^ *+' conftest.er1 >conftest.err
11269 rm -f conftest.er1
11270 cat conftest.err >&5
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11274 { (case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277esac
11278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011280 ac_status=$?
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); }; } &&
11283 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011284 { (case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011290 ac_status=$?
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_header_compiler=yes
11294else
11295 echo "$as_me: failed program was:" >&5
11296sed 's/^/| /' conftest.$ac_ext >&5
11297
Reid Spencera773bd52006-08-04 18:18:08 +000011298 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011299fi
Reid Spencera773bd52006-08-04 18:18:08 +000011300
11301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11303echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011304
11305# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011308cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
11313/* end confdefs.h. */
11314#include <$ac_header>
11315_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011316if { (ac_try="$ac_cpp conftest.$ac_ext"
11317case "(($ac_try" in
11318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11319 *) ac_try_echo=$ac_try;;
11320esac
11321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323 ac_status=$?
11324 grep -v '^ *+' conftest.er1 >conftest.err
11325 rm -f conftest.er1
11326 cat conftest.err >&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); } >/dev/null; then
11329 if test -s conftest.err; then
11330 ac_cpp_err=$ac_c_preproc_warn_flag
11331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 else
11333 ac_cpp_err=
11334 fi
11335else
11336 ac_cpp_err=yes
11337fi
11338if test -z "$ac_cpp_err"; then
11339 ac_header_preproc=yes
11340else
11341 echo "$as_me: failed program was:" >&5
11342sed 's/^/| /' conftest.$ac_ext >&5
11343
11344 ac_header_preproc=no
11345fi
Reid Spencera773bd52006-08-04 18:18:08 +000011346
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011347rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011348{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11349echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350
11351# So? What about this header?
11352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11353 yes:no: )
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11355echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11357echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11358 ac_header_preproc=yes
11359 ;;
11360 no:yes:* )
11361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11366echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11368echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11370echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11372echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011373 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374## ----------------------------------- ##
11375## Report this to llvmbugs@cs.uiuc.edu ##
11376## ----------------------------------- ##
11377_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011378 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379 ;;
11380esac
Reid Spencera773bd52006-08-04 18:18:08 +000011381{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384 echo $ECHO_N "(cached) $ECHO_C" >&6
11385else
11386 eval "$as_ac_Header=\$ac_header_preproc"
11387fi
Reid Spencera773bd52006-08-04 18:18:08 +000011388ac_res=`eval echo '${'$as_ac_Header'}'`
11389 { echo "$as_me:$LINENO: result: $ac_res" >&5
11390echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011391
11392fi
11393if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396_ACEOF
11397 break
11398fi
11399
11400done
11401
11402
11403
11404
11405for ac_func in strchr index
11406do
11407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421#define $ac_func innocuous_$ac_func
11422
11423/* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11427
11428#ifdef __STDC__
11429# include <limits.h>
11430#else
11431# include <assert.h>
11432#endif
11433
11434#undef $ac_func
11435
Reid Spencera773bd52006-08-04 18:18:08 +000011436/* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439#ifdef __cplusplus
11440extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011441#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442char $ac_func ();
11443/* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011446#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011447choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448#endif
11449
11450int
11451main ()
11452{
Reid Spencera773bd52006-08-04 18:18:08 +000011453return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011454 ;
11455 return 0;
11456}
11457_ACEOF
11458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011459if { (ac_try="$ac_link"
11460case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466 ac_status=$?
11467 grep -v '^ *+' conftest.er1 >conftest.err
11468 rm -f conftest.er1
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11473 { (case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476esac
11477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479 ac_status=$?
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; } &&
11482 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011483 { (case "(($ac_try" in
11484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485 *) ac_try_echo=$ac_try;;
11486esac
11487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 eval "$as_ac_var=yes"
11493else
11494 echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
Reid Spencera773bd52006-08-04 18:18:08 +000011497 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011498fi
Reid Spencera773bd52006-08-04 18:18:08 +000011499
11500rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011501 conftest$ac_exeext conftest.$ac_ext
11502fi
Reid Spencera773bd52006-08-04 18:18:08 +000011503ac_res=`eval echo '${'$as_ac_var'}'`
11504 { echo "$as_me:$LINENO: result: $ac_res" >&5
11505echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011506if test `eval echo '${'$as_ac_var'}'` = yes; then
11507 cat >>confdefs.h <<_ACEOF
11508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11509_ACEOF
11510 break
11511fi
11512done
11513
11514
11515
11516for ac_func in strrchr rindex
11517do
11518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011519{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11521if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011522 echo $ECHO_N "(cached) $ECHO_C" >&6
11523else
11524 cat >conftest.$ac_ext <<_ACEOF
11525/* confdefs.h. */
11526_ACEOF
11527cat confdefs.h >>conftest.$ac_ext
11528cat >>conftest.$ac_ext <<_ACEOF
11529/* end confdefs.h. */
11530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11532#define $ac_func innocuous_$ac_func
11533
11534/* System header to define __stub macros and hopefully few prototypes,
11535 which can conflict with char $ac_func (); below.
11536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537 <limits.h> exists even on freestanding compilers. */
11538
11539#ifdef __STDC__
11540# include <limits.h>
11541#else
11542# include <assert.h>
11543#endif
11544
11545#undef $ac_func
11546
Reid Spencera773bd52006-08-04 18:18:08 +000011547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550#ifdef __cplusplus
11551extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011552#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553char $ac_func ();
11554/* The GNU C library defines this for functions which it implements
11555 to always fail with ENOSYS. Some functions are actually named
11556 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011557#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011558choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559#endif
11560
11561int
11562main ()
11563{
Reid Spencera773bd52006-08-04 18:18:08 +000011564return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011565 ;
11566 return 0;
11567}
11568_ACEOF
11569rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011570if { (ac_try="$ac_link"
11571case "(($ac_try" in
11572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11573 *) ac_try_echo=$ac_try;;
11574esac
11575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11576 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11584 { (case "(($ac_try" in
11585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11586 *) ac_try_echo=$ac_try;;
11587esac
11588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11589 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590 ac_status=$?
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; } &&
11593 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011594 { (case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 eval "$as_ac_var=yes"
11604else
11605 echo "$as_me: failed program was:" >&5
11606sed 's/^/| /' conftest.$ac_ext >&5
11607
Reid Spencera773bd52006-08-04 18:18:08 +000011608 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609fi
Reid Spencera773bd52006-08-04 18:18:08 +000011610
11611rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011612 conftest$ac_exeext conftest.$ac_ext
11613fi
Reid Spencera773bd52006-08-04 18:18:08 +000011614ac_res=`eval echo '${'$as_ac_var'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011617if test `eval echo '${'$as_ac_var'}'` = yes; then
11618 cat >>confdefs.h <<_ACEOF
11619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620_ACEOF
11621 break
11622fi
11623done
11624
11625
11626
11627for ac_func in memcpy bcopy
11628do
11629as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011630{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11631echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643#define $ac_func innocuous_$ac_func
11644
11645/* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11649
11650#ifdef __STDC__
11651# include <limits.h>
11652#else
11653# include <assert.h>
11654#endif
11655
11656#undef $ac_func
11657
Reid Spencera773bd52006-08-04 18:18:08 +000011658/* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011661#ifdef __cplusplus
11662extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664char $ac_func ();
11665/* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011668#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011669choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670#endif
11671
11672int
11673main ()
11674{
Reid Spencera773bd52006-08-04 18:18:08 +000011675return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011676 ;
11677 return 0;
11678}
11679_ACEOF
11680rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011681if { (ac_try="$ac_link"
11682case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685esac
11686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688 ac_status=$?
11689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695 { (case "(($ac_try" in
11696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697 *) ac_try_echo=$ac_try;;
11698esac
11699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; } &&
11704 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011705 { (case "(($ac_try" in
11706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707 *) ac_try_echo=$ac_try;;
11708esac
11709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 eval "$as_ac_var=yes"
11715else
11716 echo "$as_me: failed program was:" >&5
11717sed 's/^/| /' conftest.$ac_ext >&5
11718
Reid Spencera773bd52006-08-04 18:18:08 +000011719 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011720fi
Reid Spencera773bd52006-08-04 18:18:08 +000011721
11722rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011723 conftest$ac_exeext conftest.$ac_ext
11724fi
Reid Spencera773bd52006-08-04 18:18:08 +000011725ac_res=`eval echo '${'$as_ac_var'}'`
11726 { echo "$as_me:$LINENO: result: $ac_res" >&5
11727echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728if test `eval echo '${'$as_ac_var'}'` = yes; then
11729 cat >>confdefs.h <<_ACEOF
11730#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731_ACEOF
11732 break
11733fi
11734done
11735
11736
11737
11738for ac_func in memmove strcmp
11739do
11740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 cat >conftest.$ac_ext <<_ACEOF
11747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
11752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11754#define $ac_func innocuous_$ac_func
11755
11756/* System header to define __stub macros and hopefully few prototypes,
11757 which can conflict with char $ac_func (); below.
11758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11759 <limits.h> exists even on freestanding compilers. */
11760
11761#ifdef __STDC__
11762# include <limits.h>
11763#else
11764# include <assert.h>
11765#endif
11766
11767#undef $ac_func
11768
Reid Spencera773bd52006-08-04 18:18:08 +000011769/* Override any GCC internal prototype to avoid an error.
11770 Use char because int might match the return type of a GCC
11771 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011772#ifdef __cplusplus
11773extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011774#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775char $ac_func ();
11776/* The GNU C library defines this for functions which it implements
11777 to always fail with ENOSYS. Some functions are actually named
11778 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011779#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781#endif
11782
11783int
11784main ()
11785{
Reid Spencera773bd52006-08-04 18:18:08 +000011786return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787 ;
11788 return 0;
11789}
11790_ACEOF
11791rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011792if { (ac_try="$ac_link"
11793case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796esac
11797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11806 { (case "(($ac_try" in
11807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808 *) ac_try_echo=$ac_try;;
11809esac
11810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812 ac_status=$?
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); }; } &&
11815 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011816 { (case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819esac
11820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822 ac_status=$?
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 eval "$as_ac_var=yes"
11826else
11827 echo "$as_me: failed program was:" >&5
11828sed 's/^/| /' conftest.$ac_ext >&5
11829
Reid Spencera773bd52006-08-04 18:18:08 +000011830 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011831fi
Reid Spencera773bd52006-08-04 18:18:08 +000011832
11833rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011834 conftest$ac_exeext conftest.$ac_ext
11835fi
Reid Spencera773bd52006-08-04 18:18:08 +000011836ac_res=`eval echo '${'$as_ac_var'}'`
11837 { echo "$as_me:$LINENO: result: $ac_res" >&5
11838echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839if test `eval echo '${'$as_ac_var'}'` = yes; then
11840 cat >>confdefs.h <<_ACEOF
11841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842_ACEOF
11843
11844fi
11845done
11846
11847
11848
11849
11850for ac_func in closedir opendir readdir
11851do
11852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
11864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11866#define $ac_func innocuous_$ac_func
11867
11868/* System header to define __stub macros and hopefully few prototypes,
11869 which can conflict with char $ac_func (); below.
11870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11871 <limits.h> exists even on freestanding compilers. */
11872
11873#ifdef __STDC__
11874# include <limits.h>
11875#else
11876# include <assert.h>
11877#endif
11878
11879#undef $ac_func
11880
Reid Spencera773bd52006-08-04 18:18:08 +000011881/* Override any GCC internal prototype to avoid an error.
11882 Use char because int might match the return type of a GCC
11883 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884#ifdef __cplusplus
11885extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011886#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887char $ac_func ();
11888/* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011891#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011892choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893#endif
11894
11895int
11896main ()
11897{
Reid Spencera773bd52006-08-04 18:18:08 +000011898return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011899 ;
11900 return 0;
11901}
11902_ACEOF
11903rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011904if { (ac_try="$ac_link"
11905case "(($ac_try" in
11906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11907 *) ac_try_echo=$ac_try;;
11908esac
11909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11910 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011911 ac_status=$?
11912 grep -v '^ *+' conftest.er1 >conftest.err
11913 rm -f conftest.er1
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11918 { (case "(($ac_try" in
11919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11920 *) ac_try_echo=$ac_try;;
11921esac
11922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011928 { (case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934 ac_status=$?
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 eval "$as_ac_var=yes"
11938else
11939 echo "$as_me: failed program was:" >&5
11940sed 's/^/| /' conftest.$ac_ext >&5
11941
Reid Spencera773bd52006-08-04 18:18:08 +000011942 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943fi
Reid Spencera773bd52006-08-04 18:18:08 +000011944
11945rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946 conftest$ac_exeext conftest.$ac_ext
11947fi
Reid Spencera773bd52006-08-04 18:18:08 +000011948ac_res=`eval echo '${'$as_ac_var'}'`
11949 { echo "$as_me:$LINENO: result: $ac_res" >&5
11950echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011951if test `eval echo '${'$as_ac_var'}'` = yes; then
11952 cat >>confdefs.h <<_ACEOF
11953#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954_ACEOF
11955
11956fi
11957done
11958
11959
Reid Spencera773bd52006-08-04 18:18:08 +000011960# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011961if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011962 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 case $enableval in
11964 yes) enable_shared=yes ;;
11965 no) enable_shared=no ;;
11966 *)
11967 enable_shared=no
11968 # Look at the argument we got. We use all the common list separators.
11969 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11970 for pkg in $enableval; do
11971 IFS="$lt_save_ifs"
11972 if test "X$pkg" = "X$p"; then
11973 enable_shared=yes
11974 fi
11975 done
11976 IFS="$lt_save_ifs"
11977 ;;
11978 esac
11979else
11980 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011981fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982
Reid Spencera773bd52006-08-04 18:18:08 +000011983
11984# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011985if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011986 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987 case $enableval in
11988 yes) enable_static=yes ;;
11989 no) enable_static=no ;;
11990 *)
11991 enable_static=no
11992 # Look at the argument we got. We use all the common list separators.
11993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11994 for pkg in $enableval; do
11995 IFS="$lt_save_ifs"
11996 if test "X$pkg" = "X$p"; then
11997 enable_static=yes
11998 fi
11999 done
12000 IFS="$lt_save_ifs"
12001 ;;
12002 esac
12003else
12004 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012005fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006
Reid Spencera773bd52006-08-04 18:18:08 +000012007
12008# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012010 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011 case $enableval in
12012 yes) enable_fast_install=yes ;;
12013 no) enable_fast_install=no ;;
12014 *)
12015 enable_fast_install=no
12016 # Look at the argument we got. We use all the common list separators.
12017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12018 for pkg in $enableval; do
12019 IFS="$lt_save_ifs"
12020 if test "X$pkg" = "X$p"; then
12021 enable_fast_install=yes
12022 fi
12023 done
12024 IFS="$lt_save_ifs"
12025 ;;
12026 esac
12027else
12028 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012029fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030
Reid Spencera773bd52006-08-04 18:18:08 +000012031
12032{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12033echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012034if test "${lt_cv_path_SED+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12036else
12037 # Loop through the user's path and test for sed and gsed.
12038# Then use that list of sed's as ones to test for truncation.
12039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12040for as_dir in $PATH
12041do
12042 IFS=$as_save_IFS
12043 test -z "$as_dir" && as_dir=.
12044 for lt_ac_prog in sed gsed; do
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12047 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12048 fi
12049 done
12050 done
12051done
12052lt_ac_max=0
12053lt_ac_count=0
12054# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12055# along with /bin/sed that truncates output.
12056for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012057 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058 cat /dev/null > conftest.in
12059 lt_ac_count=0
12060 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12061 # Check for GNU sed and select it if it is found.
12062 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12063 lt_cv_path_SED=$lt_ac_sed
12064 break
12065 fi
12066 while true; do
12067 cat conftest.in conftest.in >conftest.tmp
12068 mv conftest.tmp conftest.in
12069 cp conftest.in conftest.nl
12070 echo >>conftest.nl
12071 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12072 cmp -s conftest.out conftest.nl || break
12073 # 10000 chars as input seems more than enough
12074 test $lt_ac_count -gt 10 && break
12075 lt_ac_count=`expr $lt_ac_count + 1`
12076 if test $lt_ac_count -gt $lt_ac_max; then
12077 lt_ac_max=$lt_ac_count
12078 lt_cv_path_SED=$lt_ac_sed
12079 fi
12080 done
12081done
12082
12083fi
12084
12085SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012086{ echo "$as_me:$LINENO: result: $SED" >&5
12087echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012088
12089
Reid Spencera773bd52006-08-04 18:18:08 +000012090# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012091if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093else
12094 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012095fi
12096
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012097ac_prog=ld
12098if test "$GCC" = yes; then
12099 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012100 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12101echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102 case $host in
12103 *-*-mingw*)
12104 # gcc leaves a trailing carriage return which upsets mingw
12105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12106 *)
12107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12108 esac
12109 case $ac_prog in
12110 # Accept absolute paths.
12111 [\\/]* | ?:[\\/]*)
12112 re_direlt='/[^/][^/]*/\.\./'
12113 # Canonicalize the pathname of ld
12114 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12116 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12117 done
12118 test -z "$LD" && LD="$ac_prog"
12119 ;;
12120 "")
12121 # If it fails, then pretend we aren't using GCC.
12122 ac_prog=ld
12123 ;;
12124 *)
12125 # If it is relative, then search for the first ld in PATH.
12126 with_gnu_ld=unknown
12127 ;;
12128 esac
12129elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012130 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12131echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132else
Reid Spencera773bd52006-08-04 18:18:08 +000012133 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12134echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135fi
12136if test "${lt_cv_path_LD+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138else
12139 if test -z "$LD"; then
12140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12141 for ac_dir in $PATH; do
12142 IFS="$lt_save_ifs"
12143 test -z "$ac_dir" && ac_dir=.
12144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12145 lt_cv_path_LD="$ac_dir/$ac_prog"
12146 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012147 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012148 # Break only if it was the GNU/non-GNU ld that we prefer.
12149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12150 *GNU* | *'with BFD'*)
12151 test "$with_gnu_ld" != no && break
12152 ;;
12153 *)
12154 test "$with_gnu_ld" != yes && break
12155 ;;
12156 esac
12157 fi
12158 done
12159 IFS="$lt_save_ifs"
12160else
12161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12162fi
12163fi
12164
12165LD="$lt_cv_path_LD"
12166if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012167 { echo "$as_me:$LINENO: result: $LD" >&5
12168echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012169else
Reid Spencera773bd52006-08-04 18:18:08 +000012170 { echo "$as_me:$LINENO: result: no" >&5
12171echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172fi
12173test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12174echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12175 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012176{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12177echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178if test "${lt_cv_prog_gnu_ld+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
Reid Spencera773bd52006-08-04 18:18:08 +000012181 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012182case `$LD -v 2>&1 </dev/null` in
12183*GNU* | *'with BFD'*)
12184 lt_cv_prog_gnu_ld=yes
12185 ;;
12186*)
12187 lt_cv_prog_gnu_ld=no
12188 ;;
12189esac
12190fi
Reid Spencera773bd52006-08-04 18:18:08 +000012191{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12192echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012193with_gnu_ld=$lt_cv_prog_gnu_ld
12194
12195
Reid Spencera773bd52006-08-04 18:18:08 +000012196{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12197echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198if test "${lt_cv_ld_reload_flag+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201 lt_cv_ld_reload_flag='-r'
12202fi
Reid Spencera773bd52006-08-04 18:18:08 +000012203{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12204echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012205reload_flag=$lt_cv_ld_reload_flag
12206case $reload_flag in
12207"" | " "*) ;;
12208*) reload_flag=" $reload_flag" ;;
12209esac
12210reload_cmds='$LD$reload_flag -o $output$reload_objs'
12211case $host_os in
12212 darwin*)
12213 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012214 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012215 else
12216 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12217 fi
12218 ;;
12219esac
12220
Reid Spencera773bd52006-08-04 18:18:08 +000012221{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12222echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223if test "${lt_cv_deplibs_check_method+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 lt_cv_file_magic_cmd='$MAGIC_CMD'
12227lt_cv_file_magic_test_file=
12228lt_cv_deplibs_check_method='unknown'
12229# Need to set the preceding variable on all platforms that support
12230# interlibrary dependencies.
12231# 'none' -- dependencies not supported.
12232# `unknown' -- same as none, but documents that we really don't know.
12233# 'pass_all' -- all dependencies passed with no checks.
12234# 'test_compile' -- check by making test program.
12235# 'file_magic [[regex]]' -- check by looking for files in library path
12236# which responds to the $file_magic_cmd with a given extended regex.
12237# If you have `file' or equivalent on your system and you're not sure
12238# whether `pass_all' will *always* work, you probably want this one.
12239
12240case $host_os in
12241aix4* | aix5*)
12242 lt_cv_deplibs_check_method=pass_all
12243 ;;
12244
12245beos*)
12246 lt_cv_deplibs_check_method=pass_all
12247 ;;
12248
12249bsdi[45]*)
12250 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12251 lt_cv_file_magic_cmd='/usr/bin/file -L'
12252 lt_cv_file_magic_test_file=/shlib/libc.so
12253 ;;
12254
12255cygwin*)
12256 # func_win32_libid is a shell function defined in ltmain.sh
12257 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12258 lt_cv_file_magic_cmd='func_win32_libid'
12259 ;;
12260
12261mingw* | pw32*)
12262 # Base MSYS/MinGW do not provide the 'file' command needed by
12263 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12264 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12265 lt_cv_file_magic_cmd='$OBJDUMP -f'
12266 ;;
12267
12268darwin* | rhapsody*)
12269 lt_cv_deplibs_check_method=pass_all
12270 ;;
12271
Reid Spencera773bd52006-08-04 18:18:08 +000012272freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12274 case $host_cpu in
12275 i*86 )
12276 # Not sure whether the presence of OpenBSD here was a mistake.
12277 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012278 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012279 lt_cv_file_magic_cmd=/usr/bin/file
12280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12281 ;;
12282 esac
12283 else
12284 lt_cv_deplibs_check_method=pass_all
12285 fi
12286 ;;
12287
12288gnu*)
12289 lt_cv_deplibs_check_method=pass_all
12290 ;;
12291
12292hpux10.20* | hpux11*)
12293 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012294 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295 ia64*)
12296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12298 ;;
12299 hppa*64*)
12300 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]'
12301 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12302 ;;
12303 *)
12304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12306 ;;
12307 esac
12308 ;;
12309
Reid Spencera773bd52006-08-04 18:18:08 +000012310interix3*)
12311 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12313 ;;
12314
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315irix5* | irix6* | nonstopux*)
12316 case $LD in
12317 *-32|*"-32 ") libmagic=32-bit;;
12318 *-n32|*"-n32 ") libmagic=N32;;
12319 *-64|*"-64 ") libmagic=64-bit;;
12320 *) libmagic=never-match;;
12321 esac
12322 lt_cv_deplibs_check_method=pass_all
12323 ;;
12324
12325# This must be Linux ELF.
12326linux*)
12327 lt_cv_deplibs_check_method=pass_all
12328 ;;
12329
12330netbsd*)
12331 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12333 else
12334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12335 fi
12336 ;;
12337
12338newos6*)
12339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12340 lt_cv_file_magic_cmd=/usr/bin/file
12341 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12342 ;;
12343
12344nto-qnx*)
12345 lt_cv_deplibs_check_method=unknown
12346 ;;
12347
12348openbsd*)
12349 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12351 else
12352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12353 fi
12354 ;;
12355
12356osf3* | osf4* | osf5*)
12357 lt_cv_deplibs_check_method=pass_all
12358 ;;
12359
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012360solaris*)
12361 lt_cv_deplibs_check_method=pass_all
12362 ;;
12363
Reid Spencera773bd52006-08-04 18:18:08 +000012364sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365 case $host_vendor in
12366 motorola)
12367 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]'
12368 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12369 ;;
12370 ncr)
12371 lt_cv_deplibs_check_method=pass_all
12372 ;;
12373 sequent)
12374 lt_cv_file_magic_cmd='/bin/file'
12375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12376 ;;
12377 sni)
12378 lt_cv_file_magic_cmd='/bin/file'
12379 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12380 lt_cv_file_magic_test_file=/lib/libc.so
12381 ;;
12382 siemens)
12383 lt_cv_deplibs_check_method=pass_all
12384 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012385 pc)
12386 lt_cv_deplibs_check_method=pass_all
12387 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 esac
12389 ;;
12390
Reid Spencera773bd52006-08-04 18:18:08 +000012391sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012392 lt_cv_deplibs_check_method=pass_all
12393 ;;
12394esac
12395
12396fi
Reid Spencera773bd52006-08-04 18:18:08 +000012397{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12398echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012399file_magic_cmd=$lt_cv_file_magic_cmd
12400deplibs_check_method=$lt_cv_deplibs_check_method
12401test -z "$deplibs_check_method" && deplibs_check_method=unknown
12402
12403
12404
12405# If no C compiler was specified, use CC.
12406LTCC=${LTCC-"$CC"}
12407
Reid Spencera773bd52006-08-04 18:18:08 +000012408# If no C compiler flags were specified, use CFLAGS.
12409LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12410
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012411# Allow CC to be a program name with arguments.
12412compiler=$CC
12413
Reid Spencera773bd52006-08-04 18:18:08 +000012414# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012415if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012416 enableval=$enable_libtool_lock;
12417fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12420
12421# Some flags need to be propagated to the compiler or linker for good
12422# libtool support.
12423case $host in
12424ia64-*-hpux*)
12425 # Find out which ABI we are using.
12426 echo 'int i;' > conftest.$ac_ext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12428 (eval $ac_compile) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; then
12432 case `/usr/bin/file conftest.$ac_objext` in
12433 *ELF-32*)
12434 HPUX_IA64_MODE="32"
12435 ;;
12436 *ELF-64*)
12437 HPUX_IA64_MODE="64"
12438 ;;
12439 esac
12440 fi
12441 rm -rf conftest*
12442 ;;
12443*-*-irix6*)
12444 # Find out which ABI we are using.
Reid Spencer8b2e1412006-11-17 03:32:33 +000012445 echo '#line 12445 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12447 (eval $ac_compile) 2>&5
12448 ac_status=$?
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; then
12451 if test "$lt_cv_prog_gnu_ld" = yes; then
12452 case `/usr/bin/file conftest.$ac_objext` in
12453 *32-bit*)
12454 LD="${LD-ld} -melf32bsmip"
12455 ;;
12456 *N32*)
12457 LD="${LD-ld} -melf32bmipn32"
12458 ;;
12459 *64-bit*)
12460 LD="${LD-ld} -melf64bmip"
12461 ;;
12462 esac
12463 else
12464 case `/usr/bin/file conftest.$ac_objext` in
12465 *32-bit*)
12466 LD="${LD-ld} -32"
12467 ;;
12468 *N32*)
12469 LD="${LD-ld} -n32"
12470 ;;
12471 *64-bit*)
12472 LD="${LD-ld} -64"
12473 ;;
12474 esac
12475 fi
12476 fi
12477 rm -rf conftest*
12478 ;;
12479
12480x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12481 # Find out which ABI we are using.
12482 echo 'int i;' > conftest.$ac_ext
12483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12484 (eval $ac_compile) 2>&5
12485 ac_status=$?
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012488 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012489 *32-bit*)
12490 case $host in
12491 x86_64-*linux*)
12492 LD="${LD-ld} -m elf_i386"
12493 ;;
12494 ppc64-*linux*|powerpc64-*linux*)
12495 LD="${LD-ld} -m elf32ppclinux"
12496 ;;
12497 s390x-*linux*)
12498 LD="${LD-ld} -m elf_s390"
12499 ;;
12500 sparc64-*linux*)
12501 LD="${LD-ld} -m elf32_sparc"
12502 ;;
12503 esac
12504 ;;
12505 *64-bit*)
12506 case $host in
12507 x86_64-*linux*)
12508 LD="${LD-ld} -m elf_x86_64"
12509 ;;
12510 ppc*-*linux*|powerpc*-*linux*)
12511 LD="${LD-ld} -m elf64ppc"
12512 ;;
12513 s390*-*linux*)
12514 LD="${LD-ld} -m elf64_s390"
12515 ;;
12516 sparc*-*linux*)
12517 LD="${LD-ld} -m elf64_sparc"
12518 ;;
12519 esac
12520 ;;
12521 esac
12522 fi
12523 rm -rf conftest*
12524 ;;
12525
12526*-*-sco3.2v5*)
12527 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12528 SAVE_CFLAGS="$CFLAGS"
12529 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012530 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12531echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012532if test "${lt_cv_cc_needs_belf+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534else
12535 ac_ext=c
12536ac_cpp='$CPP $CPPFLAGS'
12537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12539ac_compiler_gnu=$ac_cv_c_compiler_gnu
12540
12541 cat >conftest.$ac_ext <<_ACEOF
12542/* confdefs.h. */
12543_ACEOF
12544cat confdefs.h >>conftest.$ac_ext
12545cat >>conftest.$ac_ext <<_ACEOF
12546/* end confdefs.h. */
12547
Reid Spencera773bd52006-08-04 18:18:08 +000012548int
12549main ()
12550{
12551
12552 ;
12553 return 0;
12554}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012555_ACEOF
12556rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012557if { (ac_try="$ac_link"
12558case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12571 { (case "(($ac_try" in
12572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573 *) ac_try_echo=$ac_try;;
12574esac
12575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012581 { (case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 lt_cv_cc_needs_belf=yes
12591else
12592 echo "$as_me: failed program was:" >&5
12593sed 's/^/| /' conftest.$ac_ext >&5
12594
Reid Spencera773bd52006-08-04 18:18:08 +000012595 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012596fi
Reid Spencera773bd52006-08-04 18:18:08 +000012597
12598rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012599 conftest$ac_exeext conftest.$ac_ext
12600 ac_ext=c
12601ac_cpp='$CPP $CPPFLAGS'
12602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604ac_compiler_gnu=$ac_cv_c_compiler_gnu
12605
12606fi
Reid Spencera773bd52006-08-04 18:18:08 +000012607{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12608echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12611 CFLAGS="$SAVE_CFLAGS"
12612 fi
12613 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012614sparc*-*solaris*)
12615 # Find out which ABI we are using.
12616 echo 'int i;' > conftest.$ac_ext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12618 (eval $ac_compile) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; then
12622 case `/usr/bin/file conftest.o` in
12623 *64-bit*)
12624 case $lt_cv_prog_gnu_ld in
12625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12626 *) LD="${LD-ld} -64" ;;
12627 esac
12628 ;;
12629 esac
12630 fi
12631 rm -rf conftest*
12632 ;;
12633
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012634
12635esac
12636
12637need_locks="$enable_libtool_lock"
12638
12639
Reid Spencer2706f8c2004-09-19 23:53:36 +000012640
12641
12642if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12643 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12644 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012645 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012646ac_cpp='$CXXCPP $CPPFLAGS'
12647ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012650{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12651echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012652if test -z "$CXXCPP"; then
12653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012654 echo $ECHO_N "(cached) $ECHO_C" >&6
12655else
John Criswell47fdd832003-07-14 16:52:07 +000012656 # Double quotes because CXXCPP needs to be expanded
12657 for CXXCPP in "$CXX -E" "/lib/cpp"
12658 do
12659 ac_preproc_ok=false
12660for ac_cxx_preproc_warn_flag in '' yes
12661do
12662 # Use a header file that comes with gcc, so configuring glibc
12663 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12665 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012666 # On the NeXT, cc -E runs the code through the compiler's parser,
12667 # not just through cpp. "Syntax error" is here to catch this case.
12668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
12674#ifdef __STDC__
12675# include <limits.h>
12676#else
12677# include <assert.h>
12678#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012679 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012681if { (ac_try="$ac_cpp conftest.$ac_ext"
12682case "(($ac_try" in
12683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12685esac
12686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012688 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012689 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012690 rm -f conftest.er1
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } >/dev/null; then
12694 if test -s conftest.err; then
12695 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012697 else
John Criswell47fdd832003-07-14 16:52:07 +000012698 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012699 fi
John Criswell47fdd832003-07-14 16:52:07 +000012700else
12701 ac_cpp_err=yes
12702fi
12703if test -z "$ac_cpp_err"; then
12704 :
12705else
12706 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012707sed 's/^/| /' conftest.$ac_ext >&5
12708
John Criswell47fdd832003-07-14 16:52:07 +000012709 # Broken: fails on valid input.
12710continue
12711fi
Reid Spencera773bd52006-08-04 18:18:08 +000012712
John Criswell47fdd832003-07-14 16:52:07 +000012713rm -f conftest.err conftest.$ac_ext
12714
Reid Spencera773bd52006-08-04 18:18:08 +000012715 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012716 # can be detected and how.
12717 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012718/* confdefs.h. */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012723#include <ac_nonexistent.h>
12724_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012725if { (ac_try="$ac_cpp conftest.$ac_ext"
12726case "(($ac_try" in
12727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728 *) ac_try_echo=$ac_try;;
12729esac
12730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012732 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012733 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012734 rm -f conftest.er1
12735 cat conftest.err >&5
12736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737 (exit $ac_status); } >/dev/null; then
12738 if test -s conftest.err; then
12739 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012740 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012741 else
12742 ac_cpp_err=
12743 fi
12744else
12745 ac_cpp_err=yes
12746fi
12747if test -z "$ac_cpp_err"; then
12748 # Broken: success on invalid input.
12749continue
12750else
12751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012752sed 's/^/| /' conftest.$ac_ext >&5
12753
John Criswell47fdd832003-07-14 16:52:07 +000012754 # Passes both tests.
12755ac_preproc_ok=:
12756break
12757fi
Reid Spencera773bd52006-08-04 18:18:08 +000012758
John Criswell47fdd832003-07-14 16:52:07 +000012759rm -f conftest.err conftest.$ac_ext
12760
12761done
12762# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12763rm -f conftest.err conftest.$ac_ext
12764if $ac_preproc_ok; then
12765 break
John Criswell7a73b802003-06-30 21:59:07 +000012766fi
12767
John Criswell47fdd832003-07-14 16:52:07 +000012768 done
12769 ac_cv_prog_CXXCPP=$CXXCPP
12770
12771fi
12772 CXXCPP=$ac_cv_prog_CXXCPP
12773else
12774 ac_cv_prog_CXXCPP=$CXXCPP
12775fi
Reid Spencera773bd52006-08-04 18:18:08 +000012776{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12777echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012778ac_preproc_ok=false
12779for ac_cxx_preproc_warn_flag in '' yes
12780do
12781 # Use a header file that comes with gcc, so configuring glibc
12782 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12784 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012785 # On the NeXT, cc -E runs the code through the compiler's parser,
12786 # not just through cpp. "Syntax error" is here to catch this case.
12787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793#ifdef __STDC__
12794# include <limits.h>
12795#else
12796# include <assert.h>
12797#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012798 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012799_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012800if { (ac_try="$ac_cpp conftest.$ac_ext"
12801case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804esac
12805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012807 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012808 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } >/dev/null; then
12813 if test -s conftest.err; then
12814 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012816 else
12817 ac_cpp_err=
12818 fi
12819else
12820 ac_cpp_err=yes
12821fi
12822if test -z "$ac_cpp_err"; then
12823 :
12824else
12825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012826sed 's/^/| /' conftest.$ac_ext >&5
12827
John Criswell47fdd832003-07-14 16:52:07 +000012828 # Broken: fails on valid input.
12829continue
12830fi
Reid Spencera773bd52006-08-04 18:18:08 +000012831
John Criswell47fdd832003-07-14 16:52:07 +000012832rm -f conftest.err conftest.$ac_ext
12833
Reid Spencera773bd52006-08-04 18:18:08 +000012834 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012835 # can be detected and how.
12836 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012842#include <ac_nonexistent.h>
12843_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012844if { (ac_try="$ac_cpp conftest.$ac_ext"
12845case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848esac
12849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012851 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012852 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012853 rm -f conftest.er1
12854 cat conftest.err >&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); } >/dev/null; then
12857 if test -s conftest.err; then
12858 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012860 else
12861 ac_cpp_err=
12862 fi
12863else
12864 ac_cpp_err=yes
12865fi
12866if test -z "$ac_cpp_err"; then
12867 # Broken: success on invalid input.
12868continue
12869else
12870 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012871sed 's/^/| /' conftest.$ac_ext >&5
12872
John Criswell47fdd832003-07-14 16:52:07 +000012873 # Passes both tests.
12874ac_preproc_ok=:
12875break
12876fi
Reid Spencera773bd52006-08-04 18:18:08 +000012877
John Criswell47fdd832003-07-14 16:52:07 +000012878rm -f conftest.err conftest.$ac_ext
12879
12880done
12881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12882rm -f conftest.err conftest.$ac_ext
12883if $ac_preproc_ok; then
12884 :
12885else
John Criswell0c38eaf2003-09-10 15:17:25 +000012886 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12887See \`config.log' for more details." >&5
12888echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12889See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012890 { (exit 1); exit 1; }; }
12891fi
12892
Reid Spencera773bd52006-08-04 18:18:08 +000012893ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012894ac_cpp='$CXXCPP $CPPFLAGS'
12895ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12896ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12897ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12898
Reid Spencer2706f8c2004-09-19 23:53:36 +000012899fi
12900
John Criswell47fdd832003-07-14 16:52:07 +000012901
12902ac_ext=f
12903ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12904ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12905ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12906if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012907 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
John Criswell47fdd832003-07-14 16:52:07 +000012908 do
12909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12910set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012911{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012913if test "${ac_cv_prog_F77+set}" = set; then
12914 echo $ECHO_N "(cached) $ECHO_C" >&6
12915else
12916 if test -n "$F77"; then
12917 ac_cv_prog_F77="$F77" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012926 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930done
12931done
Reid Spencera773bd52006-08-04 18:18:08 +000012932IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012933
12934fi
12935fi
12936F77=$ac_cv_prog_F77
12937if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012938 { echo "$as_me:$LINENO: result: $F77" >&5
12939echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012940else
Reid Spencera773bd52006-08-04 18:18:08 +000012941 { echo "$as_me:$LINENO: result: no" >&5
12942echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012943fi
12944
Reid Spencera773bd52006-08-04 18:18:08 +000012945
John Criswell47fdd832003-07-14 16:52:07 +000012946 test -n "$F77" && break
12947 done
12948fi
12949if test -z "$F77"; then
12950 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012951 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
John Criswell47fdd832003-07-14 16:52:07 +000012952do
12953 # Extract the first word of "$ac_prog", so it can be a program name with args.
12954set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012957if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12958 echo $ECHO_N "(cached) $ECHO_C" >&6
12959else
12960 if test -n "$ac_ct_F77"; then
12961 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12962else
12963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964for as_dir in $PATH
12965do
12966 IFS=$as_save_IFS
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000012970 ac_cv_prog_ac_ct_F77="$ac_prog"
12971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12972 break 2
12973 fi
12974done
12975done
Reid Spencera773bd52006-08-04 18:18:08 +000012976IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012977
12978fi
12979fi
12980ac_ct_F77=$ac_cv_prog_ac_ct_F77
12981if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012982 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12983echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012984else
Reid Spencera773bd52006-08-04 18:18:08 +000012985 { echo "$as_me:$LINENO: result: no" >&5
12986echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012987fi
12988
Reid Spencera773bd52006-08-04 18:18:08 +000012989
John Criswell47fdd832003-07-14 16:52:07 +000012990 test -n "$ac_ct_F77" && break
12991done
12992
Reid Spencera773bd52006-08-04 18:18:08 +000012993 if test "x$ac_ct_F77" = x; then
12994 F77=""
12995 else
12996 case $cross_compiling:$ac_tool_warned in
12997yes:)
12998{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12999whose name does not start with the host triplet. If you think this
13000configuration is useful to you, please write to autoconf@gnu.org." >&5
13001echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13002whose name does not start with the host triplet. If you think this
13003configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13004ac_tool_warned=yes ;;
13005esac
13006 F77=$ac_ct_F77
13007 fi
John Criswell47fdd832003-07-14 16:52:07 +000013008fi
13009
13010
13011# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013012echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013013ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013014{ (ac_try="$ac_compiler --version >&5"
13015case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018esac
13019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013021 ac_status=$?
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013024{ (ac_try="$ac_compiler -v >&5"
13025case "(($ac_try" in
13026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027 *) ac_try_echo=$ac_try;;
13028esac
13029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013031 ac_status=$?
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013034{ (ac_try="$ac_compiler -V >&5"
13035case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038esac
13039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013041 ac_status=$?
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013044rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013045
13046# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013047# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013048ac_save_ext=$ac_ext
13049ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013050{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13051echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013052if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 cat >conftest.$ac_ext <<_ACEOF
13056 program main
13057#ifndef __GNUC__
13058 choke me
13059#endif
13060
13061 end
13062_ACEOF
13063rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013064if { (ac_try="$ac_compile"
13065case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068esac
13069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013077 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13078 { (case "(($ac_try" in
13079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13080 *) ac_try_echo=$ac_try;;
13081esac
13082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13083 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013084 ac_status=$?
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; } &&
13087 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013088 { (case "(($ac_try" in
13089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13090 *) ac_try_echo=$ac_try;;
13091esac
13092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13093 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013094 ac_status=$?
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_compiler_gnu=yes
13098else
13099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013100sed 's/^/| /' conftest.$ac_ext >&5
13101
Reid Spencera773bd52006-08-04 18:18:08 +000013102 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013103fi
Reid Spencera773bd52006-08-04 18:18:08 +000013104
13105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013106ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13107
13108fi
Reid Spencera773bd52006-08-04 18:18:08 +000013109{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13110echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013111ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013112ac_test_FFLAGS=${FFLAGS+set}
13113ac_save_FFLAGS=$FFLAGS
13114FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013115{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13116echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013117if test "${ac_cv_prog_f77_g+set}" = set; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119else
13120 FFLAGS=-g
13121cat >conftest.$ac_ext <<_ACEOF
13122 program main
13123
13124 end
13125_ACEOF
13126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013127if { (ac_try="$ac_compile"
13128case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13131esac
13132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013135 grep -v '^ *+' conftest.er1 >conftest.err
13136 rm -f conftest.er1
13137 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013140 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13141 { (case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
13145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }; } &&
13150 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013151 { (case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13154esac
13155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013157 ac_status=$?
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 ac_cv_prog_f77_g=yes
13161else
13162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013163sed 's/^/| /' conftest.$ac_ext >&5
13164
Reid Spencera773bd52006-08-04 18:18:08 +000013165 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013166fi
Reid Spencera773bd52006-08-04 18:18:08 +000013167
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013169
13170fi
Reid Spencera773bd52006-08-04 18:18:08 +000013171{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13172echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013173if test "$ac_test_FFLAGS" = set; then
13174 FFLAGS=$ac_save_FFLAGS
13175elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013176 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013177 FFLAGS="-g -O2"
13178 else
13179 FFLAGS="-g"
13180 fi
13181else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013182 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013183 FFLAGS="-O2"
13184 else
13185 FFLAGS=
13186 fi
13187fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013188
13189G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013190ac_ext=c
13191ac_cpp='$CPP $CPPFLAGS'
13192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195
13196
13197
13198# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13199
13200# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013201{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13202echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013203if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205else
13206 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013207 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013208
13209 case $build_os in
13210 msdosdjgpp*)
13211 # On DJGPP, this test can blow up pretty badly due to problems in libc
13212 # (any single argument exceeding 2000 bytes causes a buffer overrun
13213 # during glob expansion). Even if it were fixed, the result of this
13214 # check would be larger than it should be.
13215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13216 ;;
13217
13218 gnu*)
13219 # Under GNU Hurd, this test is not required because there is
13220 # no limit to the length of command line arguments.
13221 # Libtool will interpret -1 as no limit whatsoever
13222 lt_cv_sys_max_cmd_len=-1;
13223 ;;
13224
13225 cygwin* | mingw*)
13226 # On Win9x/ME, this test blows up -- it succeeds, but takes
13227 # about 5 minutes as the teststring grows exponentially.
13228 # Worse, since 9x/ME are not pre-emptively multitasking,
13229 # you end up with a "frozen" computer, even though with patience
13230 # the test eventually succeeds (with a max line length of 256k).
13231 # Instead, let's just punt: use the minimum linelength reported by
13232 # all of the supported platforms: 8192 (on NT/2K/XP).
13233 lt_cv_sys_max_cmd_len=8192;
13234 ;;
13235
Reid Spencer2706f8c2004-09-19 23:53:36 +000013236 amigaos*)
13237 # On AmigaOS with pdksh, this test takes hours, literally.
13238 # So we just punt and use a minimum line length of 8192.
13239 lt_cv_sys_max_cmd_len=8192;
13240 ;;
13241
Reid Spencera773bd52006-08-04 18:18:08 +000013242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013243 # This has been around since 386BSD, at least. Likely further.
13244 if test -x /sbin/sysctl; then
13245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13246 elif test -x /usr/sbin/sysctl; then
13247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13248 else
Reid Spencera773bd52006-08-04 18:18:08 +000013249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013250 fi
13251 # And add a safety zone
13252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013254 ;;
13255
Reid Spencera773bd52006-08-04 18:18:08 +000013256 interix*)
13257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13258 lt_cv_sys_max_cmd_len=196608
13259 ;;
13260
13261 osf*)
13262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13264 # nice to cause kernel panics so lets avoid the loop below.
13265 # First set a reasonable default.
13266 lt_cv_sys_max_cmd_len=16384
13267 #
13268 if test -x /sbin/sysconfig; then
13269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13271 esac
13272 fi
13273 ;;
13274 sco3.2v5*)
13275 lt_cv_sys_max_cmd_len=102400
13276 ;;
13277 sysv5* | sco5v6* | sysv4.2uw2*)
13278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13279 if test -n "$kargmax"; then
13280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13281 else
13282 lt_cv_sys_max_cmd_len=32768
13283 fi
13284 ;;
13285 *)
John Criswell47fdd832003-07-14 16:52:07 +000013286 # If test is not a shell built-in, we'll probably end up computing a
13287 # maximum length that is only half of the actual maximum length, but
13288 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013289 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13290 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13291 = "XX$teststring") >/dev/null 2>&1 &&
13292 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013293 lt_cv_sys_max_cmd_len=$new_result &&
13294 test $i != 17 # 1/2 MB should be enough
13295 do
13296 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013297 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013298 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013299 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013300 # Add a significant safety factor because C++ compilers can tack on massive
13301 # amounts of additional arguments before passing them to the linker.
13302 # It appears as though 1/2 is a usable value.
13303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13304 ;;
13305 esac
13306
13307fi
13308
13309if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013310 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13311echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013312else
Reid Spencera773bd52006-08-04 18:18:08 +000013313 { echo "$as_me:$LINENO: result: none" >&5
13314echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013315fi
13316
13317
13318
13319
13320# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013321{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13322echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013323if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13325else
13326
13327# These are sane defaults that work on at least a few old systems.
13328# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13329
13330# Character class describing NM global symbol codes.
13331symcode='[BCDEGRST]'
13332
13333# Regexp to match symbols that can be accessed directly from C.
13334sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13335
John Criswell47fdd832003-07-14 16:52:07 +000013336# Transform an extracted symbol line into a proper C declaration
13337lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13338
13339# Transform an extracted symbol line into symbol name and symbol address
13340lt_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'"
13341
13342# Define system-specific variables.
13343case $host_os in
13344aix*)
13345 symcode='[BCDT]'
13346 ;;
13347cygwin* | mingw* | pw32*)
13348 symcode='[ABCDGISTW]'
13349 ;;
13350hpux*) # Its linker distinguishes data from code symbols
13351 if test "$host_cpu" = ia64; then
13352 symcode='[ABCDEGRST]'
13353 fi
13354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13355 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'"
13356 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013357linux*)
13358 if test "$host_cpu" = ia64; then
13359 symcode='[ABCDGIRSTW]'
13360 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13361 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'"
13362 fi
13363 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013364irix* | nonstopux*)
13365 symcode='[BCDEGRST]'
13366 ;;
13367osf*)
13368 symcode='[BCDEGQRST]'
13369 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013370solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013371 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013372 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013373sco3.2v5*)
13374 symcode='[DT]'
13375 ;;
13376sysv4.2uw2*)
13377 symcode='[DT]'
13378 ;;
13379sysv5* | sco5v6* | unixware* | OpenUNIX*)
13380 symcode='[ABDT]'
13381 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013382sysv4)
13383 symcode='[DFNSTU]'
13384 ;;
13385esac
13386
13387# Handle CRLF in mingw tool chain
13388opt_cr=
13389case $build_os in
13390mingw*)
13391 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13392 ;;
13393esac
13394
13395# If we're using GNU nm, then use its standard symbol codes.
13396case `$NM -V 2>&1` in
13397*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013398 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013399esac
13400
13401# Try without a prefix undercore, then with it.
13402for ac_symprfx in "" "_"; do
13403
Reid Spencera773bd52006-08-04 18:18:08 +000013404 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13405 symxfrm="\\1 $ac_symprfx\\2 \\2"
13406
John Criswell47fdd832003-07-14 16:52:07 +000013407 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013408 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
John Criswell47fdd832003-07-14 16:52:07 +000013409
13410 # Check to see that the pipe works correctly.
13411 pipe_works=no
13412
13413 rm -f conftest*
13414 cat > conftest.$ac_ext <<EOF
13415#ifdef __cplusplus
13416extern "C" {
13417#endif
13418char nm_test_var;
13419void nm_test_func(){}
13420#ifdef __cplusplus
13421}
13422#endif
13423int main(){nm_test_var='a';nm_test_func();return(0);}
13424EOF
13425
13426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; then
13431 # Now try to grab the symbols.
13432 nlist=conftest.nm
13433 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13434 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13435 ac_status=$?
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && test -s "$nlist"; then
13438 # Try sorting and uniquifying the output.
13439 if sort "$nlist" | uniq > "$nlist"T; then
13440 mv -f "$nlist"T "$nlist"
13441 else
13442 rm -f "$nlist"T
13443 fi
13444
13445 # Make sure that we snagged all the symbols we need.
13446 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13447 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13448 cat <<EOF > conftest.$ac_ext
13449#ifdef __cplusplus
13450extern "C" {
13451#endif
13452
13453EOF
13454 # Now generate the symbol file.
13455 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13456
13457 cat <<EOF >> conftest.$ac_ext
13458#if defined (__STDC__) && __STDC__
13459# define lt_ptr_t void *
13460#else
13461# define lt_ptr_t char *
13462# define const
13463#endif
13464
13465/* The mapping between symbol names and symbols. */
13466const struct {
13467 const char *name;
13468 lt_ptr_t address;
13469}
13470lt_preloaded_symbols[] =
13471{
13472EOF
13473 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13474 cat <<\EOF >> conftest.$ac_ext
13475 {0, (lt_ptr_t) 0}
13476};
13477
13478#ifdef __cplusplus
13479}
13480#endif
13481EOF
13482 # Now try linking the two files.
13483 mv conftest.$ac_objext conftstm.$ac_objext
13484 lt_save_LIBS="$LIBS"
13485 lt_save_CFLAGS="$CFLAGS"
13486 LIBS="conftstm.$ac_objext"
13487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13489 (eval $ac_link) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13493 pipe_works=yes
13494 fi
13495 LIBS="$lt_save_LIBS"
13496 CFLAGS="$lt_save_CFLAGS"
13497 else
13498 echo "cannot find nm_test_func in $nlist" >&5
13499 fi
13500 else
13501 echo "cannot find nm_test_var in $nlist" >&5
13502 fi
13503 else
13504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13505 fi
13506 else
13507 echo "$progname: failed program was:" >&5
13508 cat conftest.$ac_ext >&5
13509 fi
13510 rm -f conftest* conftst*
13511
13512 # Do not use the global_symbol_pipe unless it works.
13513 if test "$pipe_works" = yes; then
13514 break
13515 else
13516 lt_cv_sys_global_symbol_pipe=
13517 fi
13518done
13519
13520fi
13521
13522if test -z "$lt_cv_sys_global_symbol_pipe"; then
13523 lt_cv_sys_global_symbol_to_cdecl=
13524fi
13525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013526 { echo "$as_me:$LINENO: result: failed" >&5
13527echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013528else
Reid Spencera773bd52006-08-04 18:18:08 +000013529 { echo "$as_me:$LINENO: result: ok" >&5
13530echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013531fi
13532
Reid Spencera773bd52006-08-04 18:18:08 +000013533{ echo "$as_me:$LINENO: checking for objdir" >&5
13534echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013535if test "${lt_cv_objdir+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537else
13538 rm -f .libs 2>/dev/null
13539mkdir .libs 2>/dev/null
13540if test -d .libs; then
13541 lt_cv_objdir=.libs
13542else
13543 # MS-DOS does not allow filenames that begin with a dot.
13544 lt_cv_objdir=_libs
13545fi
13546rmdir .libs 2>/dev/null
13547fi
Reid Spencera773bd52006-08-04 18:18:08 +000013548{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13549echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013550objdir=$lt_cv_objdir
13551
13552
13553
13554
13555
13556case $host_os in
13557aix3*)
13558 # AIX sometimes has problems with the GCC collect2 program. For some
13559 # reason, if we set the COLLECT_NAMES environment variable, the problems
13560 # vanish in a puff of smoke.
13561 if test "X${COLLECT_NAMES+set}" != Xset; then
13562 COLLECT_NAMES=
13563 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013564 fi
13565 ;;
13566esac
13567
John Criswell47fdd832003-07-14 16:52:07 +000013568# Sed substitution that helps us do robust quoting. It backslashifies
13569# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013570Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013571sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13572
13573# Same as above, but do not quote variable references.
13574double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13575
13576# Sed substitution to delay expansion of an escaped shell variable in a
13577# double_quote_subst'ed string.
13578delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13579
13580# Sed substitution to avoid accidental globbing in evaled expressions
13581no_glob_subst='s/\*/\\\*/g'
13582
13583# Constants:
13584rm="rm -f"
13585
13586# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013587default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013588can_build_shared=yes
13589
Reid Spencera773bd52006-08-04 18:18:08 +000013590# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013591# which needs '.lib').
13592libext=a
13593ltmain="$ac_aux_dir/ltmain.sh"
13594ofile="$default_ofile"
13595with_gnu_ld="$lt_cv_prog_gnu_ld"
13596
13597if test -n "$ac_tool_prefix"; then
13598 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13599set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013602if test "${ac_cv_prog_AR+set}" = set; then
13603 echo $ECHO_N "(cached) $ECHO_C" >&6
13604else
13605 if test -n "$AR"; then
13606 ac_cv_prog_AR="$AR" # Let the user override the test.
13607else
13608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609for as_dir in $PATH
13610do
13611 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013615 ac_cv_prog_AR="${ac_tool_prefix}ar"
13616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2
13618 fi
13619done
13620done
Reid Spencera773bd52006-08-04 18:18:08 +000013621IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013622
13623fi
13624fi
13625AR=$ac_cv_prog_AR
13626if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013627 { echo "$as_me:$LINENO: result: $AR" >&5
13628echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013629else
Reid Spencera773bd52006-08-04 18:18:08 +000013630 { echo "$as_me:$LINENO: result: no" >&5
13631echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013632fi
13633
Reid Spencera773bd52006-08-04 18:18:08 +000013634
John Criswell47fdd832003-07-14 16:52:07 +000013635fi
13636if test -z "$ac_cv_prog_AR"; then
13637 ac_ct_AR=$AR
13638 # Extract the first word of "ar", so it can be a program name with args.
13639set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013640{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013642if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13644else
13645 if test -n "$ac_ct_AR"; then
13646 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13647else
13648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13649for as_dir in $PATH
13650do
13651 IFS=$as_save_IFS
13652 test -z "$as_dir" && as_dir=.
13653 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013655 ac_cv_prog_ac_ct_AR="ar"
13656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13657 break 2
13658 fi
13659done
13660done
Reid Spencera773bd52006-08-04 18:18:08 +000013661IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013662
John Criswell47fdd832003-07-14 16:52:07 +000013663fi
13664fi
13665ac_ct_AR=$ac_cv_prog_ac_ct_AR
13666if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013667 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13668echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013669else
Reid Spencera773bd52006-08-04 18:18:08 +000013670 { echo "$as_me:$LINENO: result: no" >&5
13671echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013672fi
13673
Reid Spencera773bd52006-08-04 18:18:08 +000013674 if test "x$ac_ct_AR" = x; then
13675 AR="false"
13676 else
13677 case $cross_compiling:$ac_tool_warned in
13678yes:)
13679{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13680whose name does not start with the host triplet. If you think this
13681configuration is useful to you, please write to autoconf@gnu.org." >&5
13682echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13683whose name does not start with the host triplet. If you think this
13684configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13685ac_tool_warned=yes ;;
13686esac
13687 AR=$ac_ct_AR
13688 fi
John Criswell47fdd832003-07-14 16:52:07 +000013689else
13690 AR="$ac_cv_prog_AR"
13691fi
13692
John Criswell7a73b802003-06-30 21:59:07 +000013693if test -n "$ac_tool_prefix"; then
13694 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13695set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013696{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013698if test "${ac_cv_prog_RANLIB+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700else
13701 if test -n "$RANLIB"; then
13702 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13703else
13704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13705for as_dir in $PATH
13706do
13707 IFS=$as_save_IFS
13708 test -z "$as_dir" && as_dir=.
13709 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013711 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13713 break 2
13714 fi
13715done
13716done
Reid Spencera773bd52006-08-04 18:18:08 +000013717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013718
13719fi
13720fi
13721RANLIB=$ac_cv_prog_RANLIB
13722if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013723 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13724echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013725else
Reid Spencera773bd52006-08-04 18:18:08 +000013726 { echo "$as_me:$LINENO: result: no" >&5
13727echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013728fi
13729
Reid Spencera773bd52006-08-04 18:18:08 +000013730
John Criswell7a73b802003-06-30 21:59:07 +000013731fi
13732if test -z "$ac_cv_prog_RANLIB"; then
13733 ac_ct_RANLIB=$RANLIB
13734 # Extract the first word of "ranlib", so it can be a program name with args.
13735set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013738if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
13741 if test -n "$ac_ct_RANLIB"; then
13742 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13743else
13744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13745for as_dir in $PATH
13746do
13747 IFS=$as_save_IFS
13748 test -z "$as_dir" && as_dir=.
13749 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013751 ac_cv_prog_ac_ct_RANLIB="ranlib"
13752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13753 break 2
13754 fi
13755done
13756done
Reid Spencera773bd52006-08-04 18:18:08 +000013757IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013758
John Criswell7a73b802003-06-30 21:59:07 +000013759fi
13760fi
13761ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13762if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013763 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13764echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013765else
Reid Spencera773bd52006-08-04 18:18:08 +000013766 { echo "$as_me:$LINENO: result: no" >&5
13767echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013768fi
13769
Reid Spencera773bd52006-08-04 18:18:08 +000013770 if test "x$ac_ct_RANLIB" = x; then
13771 RANLIB=":"
13772 else
13773 case $cross_compiling:$ac_tool_warned in
13774yes:)
13775{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13776whose name does not start with the host triplet. If you think this
13777configuration is useful to you, please write to autoconf@gnu.org." >&5
13778echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13779whose name does not start with the host triplet. If you think this
13780configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13781ac_tool_warned=yes ;;
13782esac
13783 RANLIB=$ac_ct_RANLIB
13784 fi
John Criswell7a73b802003-06-30 21:59:07 +000013785else
13786 RANLIB="$ac_cv_prog_RANLIB"
13787fi
13788
13789if test -n "$ac_tool_prefix"; then
13790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13791set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013792{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013794if test "${ac_cv_prog_STRIP+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 if test -n "$STRIP"; then
13798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13799else
13800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801for as_dir in $PATH
13802do
13803 IFS=$as_save_IFS
13804 test -z "$as_dir" && as_dir=.
13805 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013807 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13809 break 2
13810 fi
13811done
13812done
Reid Spencera773bd52006-08-04 18:18:08 +000013813IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013814
13815fi
13816fi
13817STRIP=$ac_cv_prog_STRIP
13818if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013819 { echo "$as_me:$LINENO: result: $STRIP" >&5
13820echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013821else
Reid Spencera773bd52006-08-04 18:18:08 +000013822 { echo "$as_me:$LINENO: result: no" >&5
13823echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013824fi
13825
Reid Spencera773bd52006-08-04 18:18:08 +000013826
John Criswell7a73b802003-06-30 21:59:07 +000013827fi
13828if test -z "$ac_cv_prog_STRIP"; then
13829 ac_ct_STRIP=$STRIP
13830 # Extract the first word of "strip", so it can be a program name with args.
13831set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013832{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013834if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836else
13837 if test -n "$ac_ct_STRIP"; then
13838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13839else
13840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13841for as_dir in $PATH
13842do
13843 IFS=$as_save_IFS
13844 test -z "$as_dir" && as_dir=.
13845 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000013847 ac_cv_prog_ac_ct_STRIP="strip"
13848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13849 break 2
13850 fi
13851done
13852done
Reid Spencera773bd52006-08-04 18:18:08 +000013853IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013854
John Criswell7a73b802003-06-30 21:59:07 +000013855fi
13856fi
13857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13858if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013859 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13860echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013861else
Reid Spencera773bd52006-08-04 18:18:08 +000013862 { echo "$as_me:$LINENO: result: no" >&5
13863echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013864fi
13865
Reid Spencera773bd52006-08-04 18:18:08 +000013866 if test "x$ac_ct_STRIP" = x; then
13867 STRIP=":"
13868 else
13869 case $cross_compiling:$ac_tool_warned in
13870yes:)
13871{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13872whose name does not start with the host triplet. If you think this
13873configuration is useful to you, please write to autoconf@gnu.org." >&5
13874echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13875whose name does not start with the host triplet. If you think this
13876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13877ac_tool_warned=yes ;;
13878esac
13879 STRIP=$ac_ct_STRIP
13880 fi
John Criswell7a73b802003-06-30 21:59:07 +000013881else
13882 STRIP="$ac_cv_prog_STRIP"
13883fi
13884
13885
John Criswell7a73b802003-06-30 21:59:07 +000013886old_CC="$CC"
13887old_CFLAGS="$CFLAGS"
13888
13889# Set sane defaults for various variables
13890test -z "$AR" && AR=ar
13891test -z "$AR_FLAGS" && AR_FLAGS=cru
13892test -z "$AS" && AS=as
13893test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013894test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013895test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013896test -z "$DLLTOOL" && DLLTOOL=dlltool
13897test -z "$LD" && LD=ld
13898test -z "$LN_S" && LN_S="ln -s"
13899test -z "$MAGIC_CMD" && MAGIC_CMD=file
13900test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013901test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013902test -z "$OBJDUMP" && OBJDUMP=objdump
13903test -z "$RANLIB" && RANLIB=:
13904test -z "$STRIP" && STRIP=:
13905test -z "$ac_objext" && ac_objext=o
13906
John Criswell7a73b802003-06-30 21:59:07 +000013907# Determine commands to create old-style static archives.
13908old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13909old_postinstall_cmds='chmod 644 $oldlib'
13910old_postuninstall_cmds=
13911
13912if test -n "$RANLIB"; then
13913 case $host_os in
13914 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013916 ;;
13917 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013918 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013919 ;;
13920 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013921 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013922fi
13923
Reid Spencera773bd52006-08-04 18:18:08 +000013924for cc_temp in $compiler""; do
13925 case $cc_temp in
13926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13928 \-*) ;;
13929 *) break;;
13930 esac
13931done
13932cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13933
Reid Spencer2706f8c2004-09-19 23:53:36 +000013934
John Criswell47fdd832003-07-14 16:52:07 +000013935# Only perform the check for file, if the check method requires it
13936case $deplibs_check_method in
13937file_magic*)
13938 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013939 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13940echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013941if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013943else
John Criswell47fdd832003-07-14 16:52:07 +000013944 case $MAGIC_CMD in
13945[\\/*] | ?:[\\/]*)
13946 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13947 ;;
13948*)
13949 lt_save_MAGIC_CMD="$MAGIC_CMD"
13950 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13951 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13952 for ac_dir in $ac_dummy; do
13953 IFS="$lt_save_ifs"
13954 test -z "$ac_dir" && ac_dir=.
13955 if test -f $ac_dir/${ac_tool_prefix}file; then
13956 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13957 if test -n "$file_magic_test_file"; then
13958 case $deplibs_check_method in
13959 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013960 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13962 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13963 $EGREP "$file_magic_regex" > /dev/null; then
13964 :
13965 else
13966 cat <<EOF 1>&2
13967
13968*** Warning: the command libtool uses to detect shared libraries,
13969*** $file_magic_cmd, produces output that libtool cannot recognize.
13970*** The result is that libtool may fail to recognize shared libraries
13971*** as such. This will affect the creation of libtool libraries that
13972*** depend on shared libraries, but programs linked with such libtool
13973*** libraries will work regardless of this problem. Nevertheless, you
13974*** may want to report the problem to your system manager and/or to
13975*** bug-libtool@gnu.org
13976
13977EOF
13978 fi ;;
13979 esac
13980 fi
13981 break
13982 fi
13983 done
13984 IFS="$lt_save_ifs"
13985 MAGIC_CMD="$lt_save_MAGIC_CMD"
13986 ;;
13987esac
John Criswell7a73b802003-06-30 21:59:07 +000013988fi
John Criswell7a73b802003-06-30 21:59:07 +000013989
John Criswell47fdd832003-07-14 16:52:07 +000013990MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013992 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13993echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013994else
Reid Spencera773bd52006-08-04 18:18:08 +000013995 { echo "$as_me:$LINENO: result: no" >&5
13996echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013997fi
John Criswell7a73b802003-06-30 21:59:07 +000013998
John Criswell47fdd832003-07-14 16:52:07 +000013999if test -z "$lt_cv_path_MAGIC_CMD"; then
14000 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014001 { echo "$as_me:$LINENO: checking for file" >&5
14002echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014003if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005else
14006 case $MAGIC_CMD in
14007[\\/*] | ?:[\\/]*)
14008 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14009 ;;
14010*)
14011 lt_save_MAGIC_CMD="$MAGIC_CMD"
14012 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14013 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14014 for ac_dir in $ac_dummy; do
14015 IFS="$lt_save_ifs"
14016 test -z "$ac_dir" && ac_dir=.
14017 if test -f $ac_dir/file; then
14018 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14019 if test -n "$file_magic_test_file"; then
14020 case $deplibs_check_method in
14021 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014022 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14024 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14025 $EGREP "$file_magic_regex" > /dev/null; then
14026 :
14027 else
14028 cat <<EOF 1>&2
14029
14030*** Warning: the command libtool uses to detect shared libraries,
14031*** $file_magic_cmd, produces output that libtool cannot recognize.
14032*** The result is that libtool may fail to recognize shared libraries
14033*** as such. This will affect the creation of libtool libraries that
14034*** depend on shared libraries, but programs linked with such libtool
14035*** libraries will work regardless of this problem. Nevertheless, you
14036*** may want to report the problem to your system manager and/or to
14037*** bug-libtool@gnu.org
14038
14039EOF
14040 fi ;;
14041 esac
14042 fi
14043 break
14044 fi
14045 done
14046 IFS="$lt_save_ifs"
14047 MAGIC_CMD="$lt_save_MAGIC_CMD"
14048 ;;
14049esac
14050fi
14051
14052MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014054 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14055echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014056else
Reid Spencera773bd52006-08-04 18:18:08 +000014057 { echo "$as_me:$LINENO: result: no" >&5
14058echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014059fi
14060
14061 else
14062 MAGIC_CMD=:
14063 fi
14064fi
14065
14066 fi
14067 ;;
14068esac
14069
Reid Spencer17795972004-11-18 09:47:37 +000014070enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014071enable_win32_dll=no
14072
Reid Spencera773bd52006-08-04 18:18:08 +000014073# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014074if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014075 enableval=$enable_libtool_lock;
14076fi
John Criswell47fdd832003-07-14 16:52:07 +000014077
John Criswell47fdd832003-07-14 16:52:07 +000014078test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14079
John Criswell7a73b802003-06-30 21:59:07 +000014080
Reid Spencera773bd52006-08-04 18:18:08 +000014081# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014082if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014083 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014084else
14085 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014086fi
14087
John Criswell7a73b802003-06-30 21:59:07 +000014088test -z "$pic_mode" && pic_mode=default
14089
John Criswell47fdd832003-07-14 16:52:07 +000014090# Use C for the default configuration in the libtool script
14091tagname=
14092lt_save_CC="$CC"
14093ac_ext=c
14094ac_cpp='$CPP $CPPFLAGS'
14095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14097ac_compiler_gnu=$ac_cv_c_compiler_gnu
14098
14099
14100# Source file extension for C test sources.
14101ac_ext=c
14102
14103# Object file extension for compiled C test sources.
14104objext=o
14105objext=$objext
14106
14107# Code to be used in simple compile tests
14108lt_simple_compile_test_code="int some_variable = 0;\n"
14109
14110# Code to be used in simple link tests
14111lt_simple_link_test_code='int main(){return(0);}\n'
14112
14113
14114# If no C compiler was specified, use CC.
14115LTCC=${LTCC-"$CC"}
14116
Reid Spencera773bd52006-08-04 18:18:08 +000014117# If no C compiler flags were specified, use CFLAGS.
14118LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14119
John Criswell47fdd832003-07-14 16:52:07 +000014120# Allow CC to be a program name with arguments.
14121compiler=$CC
14122
14123
Reid Spencera773bd52006-08-04 18:18:08 +000014124# save warnings/boilerplate of simple test code
14125ac_outfile=conftest.$ac_objext
14126printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14127eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14128_lt_compiler_boilerplate=`cat conftest.err`
14129$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014130
Reid Spencera773bd52006-08-04 18:18:08 +000014131ac_outfile=conftest.$ac_objext
14132printf "$lt_simple_link_test_code" >conftest.$ac_ext
14133eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14134_lt_linker_boilerplate=`cat conftest.err`
14135$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014136
14137
John Criswell47fdd832003-07-14 16:52:07 +000014138
14139lt_prog_compiler_no_builtin_flag=
14140
14141if test "$GCC" = yes; then
14142 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14143
Reid Spencer2706f8c2004-09-19 23:53:36 +000014144
Reid Spencera773bd52006-08-04 18:18:08 +000014145{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14146echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014147if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14148 echo $ECHO_N "(cached) $ECHO_C" >&6
14149else
14150 lt_cv_prog_compiler_rtti_exceptions=no
14151 ac_outfile=conftest.$ac_objext
14152 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14153 lt_compiler_flag="-fno-rtti -fno-exceptions"
14154 # Insert the option either (1) after the last *FLAGS variable, or
14155 # (2) before a word containing "conftest.", or (3) at the end.
14156 # Note that $ac_compile itself does not contain backslashes and begins
14157 # with a dollar sign (not a hyphen), so the echo should work correctly.
14158 # The option is referenced via a variable to avoid confusing sed.
14159 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14162 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000014163 (eval echo "\"\$as_me:14163: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014164 (eval "$lt_compile" 2>conftest.err)
14165 ac_status=$?
14166 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000014167 echo "$as_me:14167: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014168 if (exit $ac_status) && test -s "$ac_outfile"; then
14169 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014170 # So say no if there are warnings other than the usual output.
14171 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14172 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14173 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014174 lt_cv_prog_compiler_rtti_exceptions=yes
14175 fi
14176 fi
14177 $rm conftest*
14178
14179fi
Reid Spencera773bd52006-08-04 18:18:08 +000014180{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14181echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014182
14183if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14184 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14185else
14186 :
14187fi
14188
14189fi
14190
14191lt_prog_compiler_wl=
14192lt_prog_compiler_pic=
14193lt_prog_compiler_static=
14194
Reid Spencera773bd52006-08-04 18:18:08 +000014195{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14196echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014197
14198 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014199 lt_prog_compiler_wl='-Wl,'
14200 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014201
14202 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014203 aix*)
14204 # All AIX code is PIC.
14205 if test "$host_cpu" = ia64; then
14206 # AIX 5 now supports IA64 processor
14207 lt_prog_compiler_static='-Bstatic'
14208 fi
John Criswell7a73b802003-06-30 21:59:07 +000014209 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014210
John Criswell7a73b802003-06-30 21:59:07 +000014211 amigaos*)
14212 # FIXME: we need at least 68020 code to build shared libraries, but
14213 # adding the `-m68020' flag to GCC prevents building anything better,
14214 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014215 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014216 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014217
14218 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014219 # PIC is the default for these OSes.
14220 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014221
14222 mingw* | pw32* | os2*)
14223 # This hack is so that the source file can tell whether it is being
14224 # built for inclusion in a dll (and should export symbols for example).
14225 lt_prog_compiler_pic='-DDLL_EXPORT'
14226 ;;
14227
John Criswell7a73b802003-06-30 21:59:07 +000014228 darwin* | rhapsody*)
14229 # PIC is the default on this platform
14230 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014231 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014232 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014233
Reid Spencera773bd52006-08-04 18:18:08 +000014234 interix3*)
14235 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14236 # Instead, we relocate shared libraries at runtime.
14237 ;;
14238
John Criswell47fdd832003-07-14 16:52:07 +000014239 msdosdjgpp*)
14240 # Just because we use GCC doesn't mean we suddenly get shared libraries
14241 # on systems that don't support them.
14242 lt_prog_compiler_can_build_shared=no
14243 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014244 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014245
John Criswell7a73b802003-06-30 21:59:07 +000014246 sysv4*MP*)
14247 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014248 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014249 fi
14250 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014251
14252 hpux*)
14253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14254 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014255 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014256 hppa*64*|ia64*)
14257 # +Z the default
14258 ;;
14259 *)
14260 lt_prog_compiler_pic='-fPIC'
14261 ;;
14262 esac
14263 ;;
14264
John Criswell7a73b802003-06-30 21:59:07 +000014265 *)
John Criswell47fdd832003-07-14 16:52:07 +000014266 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014267 ;;
14268 esac
14269 else
John Criswell47fdd832003-07-14 16:52:07 +000014270 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014271 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014272 aix*)
14273 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014274 if test "$host_cpu" = ia64; then
14275 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014276 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014277 else
John Criswell47fdd832003-07-14 16:52:07 +000014278 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014279 fi
14280 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014281 darwin*)
14282 # PIC is the default on this platform
14283 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014284 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014285 xlc*)
14286 lt_prog_compiler_pic='-qnocommon'
14287 lt_prog_compiler_wl='-Wl,'
14288 ;;
14289 esac
14290 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014291
John Criswell47fdd832003-07-14 16:52:07 +000014292 mingw* | pw32* | os2*)
14293 # This hack is so that the source file can tell whether it is being
14294 # built for inclusion in a dll (and should export symbols for example).
14295 lt_prog_compiler_pic='-DDLL_EXPORT'
14296 ;;
14297
John Criswell7a73b802003-06-30 21:59:07 +000014298 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014299 lt_prog_compiler_wl='-Wl,'
14300 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14301 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014302 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014303 hppa*64*|ia64*)
14304 # +Z the default
14305 ;;
14306 *)
14307 lt_prog_compiler_pic='+Z'
14308 ;;
14309 esac
14310 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14311 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014312 ;;
14313
John Criswell47fdd832003-07-14 16:52:07 +000014314 irix5* | irix6* | nonstopux*)
14315 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014316 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014317 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014318 ;;
14319
14320 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014321 lt_prog_compiler_pic='-KPIC'
14322 lt_prog_compiler_static='-Bstatic'
14323 ;;
14324
14325 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014326 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014327 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014328 lt_prog_compiler_wl='-Wl,'
14329 lt_prog_compiler_pic='-KPIC'
14330 lt_prog_compiler_static='-static'
14331 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014332 pgcc* | pgf77* | pgf90* | pgf95*)
14333 # Portland Group compilers (*not* the Pentium gcc compiler,
14334 # which looks to be a dead project)
14335 lt_prog_compiler_wl='-Wl,'
14336 lt_prog_compiler_pic='-fpic'
14337 lt_prog_compiler_static='-Bstatic'
14338 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014339 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014340 lt_prog_compiler_wl='-Wl,'
14341 # All Alpha code is PIC.
14342 lt_prog_compiler_static='-non_shared'
14343 ;;
14344 esac
John Criswell7a73b802003-06-30 21:59:07 +000014345 ;;
14346
14347 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014348 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014349 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014350 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014351 ;;
14352
John Criswell7a73b802003-06-30 21:59:07 +000014353 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014354 lt_prog_compiler_pic='-KPIC'
14355 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014356 case $cc_basename in
14357 f77* | f90* | f95*)
14358 lt_prog_compiler_wl='-Qoption ld ';;
14359 *)
14360 lt_prog_compiler_wl='-Wl,';;
14361 esac
John Criswell7a73b802003-06-30 21:59:07 +000014362 ;;
14363
14364 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014365 lt_prog_compiler_wl='-Qoption ld '
14366 lt_prog_compiler_pic='-PIC'
14367 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014368 ;;
14369
Reid Spencera773bd52006-08-04 18:18:08 +000014370 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014371 lt_prog_compiler_wl='-Wl,'
14372 lt_prog_compiler_pic='-KPIC'
14373 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014374 ;;
14375
14376 sysv4*MP*)
14377 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014378 lt_prog_compiler_pic='-Kconform_pic'
14379 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014380 fi
14381 ;;
14382
Reid Spencera773bd52006-08-04 18:18:08 +000014383 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14387 ;;
14388
14389 unicos*)
14390 lt_prog_compiler_wl='-Wl,'
14391 lt_prog_compiler_can_build_shared=no
14392 ;;
14393
John Criswell47fdd832003-07-14 16:52:07 +000014394 uts4*)
14395 lt_prog_compiler_pic='-pic'
14396 lt_prog_compiler_static='-Bstatic'
14397 ;;
14398
John Criswell7a73b802003-06-30 21:59:07 +000014399 *)
John Criswell47fdd832003-07-14 16:52:07 +000014400 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014401 ;;
14402 esac
14403 fi
14404
Reid Spencera773bd52006-08-04 18:18:08 +000014405{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14406echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014407
John Criswell47fdd832003-07-14 16:52:07 +000014408#
14409# Check to make sure the PIC flag actually works.
14410#
14411if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014412
Reid Spencera773bd52006-08-04 18:18:08 +000014413{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14414echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014415if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014416 echo $ECHO_N "(cached) $ECHO_C" >&6
14417else
John Criswell47fdd832003-07-14 16:52:07 +000014418 lt_prog_compiler_pic_works=no
14419 ac_outfile=conftest.$ac_objext
14420 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14421 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14422 # Insert the option either (1) after the last *FLAGS variable, or
14423 # (2) before a word containing "conftest.", or (3) at the end.
14424 # Note that $ac_compile itself does not contain backslashes and begins
14425 # with a dollar sign (not a hyphen), so the echo should work correctly.
14426 # The option is referenced via a variable to avoid confusing sed.
14427 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000014431 (eval echo "\"\$as_me:14431: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014432 (eval "$lt_compile" 2>conftest.err)
14433 ac_status=$?
14434 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000014435 echo "$as_me:14435: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014436 if (exit $ac_status) && test -s "$ac_outfile"; then
14437 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014438 # So say no if there are warnings other than the usual output.
14439 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014442 lt_prog_compiler_pic_works=yes
14443 fi
14444 fi
14445 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014446
John Criswell47fdd832003-07-14 16:52:07 +000014447fi
Reid Spencera773bd52006-08-04 18:18:08 +000014448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14449echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014450
John Criswell47fdd832003-07-14 16:52:07 +000014451if test x"$lt_prog_compiler_pic_works" = xyes; then
14452 case $lt_prog_compiler_pic in
14453 "" | " "*) ;;
14454 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14455 esac
John Criswell7a73b802003-06-30 21:59:07 +000014456else
John Criswell47fdd832003-07-14 16:52:07 +000014457 lt_prog_compiler_pic=
14458 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014459fi
14460
John Criswell7a73b802003-06-30 21:59:07 +000014461fi
Reid Spencera773bd52006-08-04 18:18:08 +000014462case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014463 # For platforms which do not support PIC, -DPIC is meaningless:
14464 *djgpp*)
14465 lt_prog_compiler_pic=
14466 ;;
14467 *)
14468 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14469 ;;
14470esac
John Criswell7a73b802003-06-30 21:59:07 +000014471
Reid Spencera773bd52006-08-04 18:18:08 +000014472#
14473# Check to make sure the static flag actually works.
14474#
14475wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14476{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14477echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14478if test "${lt_prog_compiler_static_works+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14480else
14481 lt_prog_compiler_static_works=no
14482 save_LDFLAGS="$LDFLAGS"
14483 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14484 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14485 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14486 # The linker can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
14488 if test -s conftest.err; then
14489 # Append any errors to the config.log.
14490 cat conftest.err 1>&5
14491 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14492 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14493 if diff conftest.exp conftest.er2 >/dev/null; then
14494 lt_prog_compiler_static_works=yes
14495 fi
14496 else
14497 lt_prog_compiler_static_works=yes
14498 fi
14499 fi
14500 $rm conftest*
14501 LDFLAGS="$save_LDFLAGS"
14502
14503fi
14504{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14505echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14506
14507if test x"$lt_prog_compiler_static_works" = xyes; then
14508 :
14509else
14510 lt_prog_compiler_static=
14511fi
14512
14513
14514{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14515echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014516if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014517 echo $ECHO_N "(cached) $ECHO_C" >&6
14518else
John Criswell47fdd832003-07-14 16:52:07 +000014519 lt_cv_prog_compiler_c_o=no
14520 $rm -r conftest 2>/dev/null
14521 mkdir conftest
14522 cd conftest
14523 mkdir out
14524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014525
John Criswell47fdd832003-07-14 16:52:07 +000014526 lt_compiler_flag="-o out/conftest2.$ac_objext"
14527 # Insert the option either (1) after the last *FLAGS variable, or
14528 # (2) before a word containing "conftest.", or (3) at the end.
14529 # Note that $ac_compile itself does not contain backslashes and begins
14530 # with a dollar sign (not a hyphen), so the echo should work correctly.
14531 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014532 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14534 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000014535 (eval echo "\"\$as_me:14535: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014536 (eval "$lt_compile" 2>out/conftest.err)
14537 ac_status=$?
14538 cat out/conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000014539 echo "$as_me:14539: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014540 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14541 then
14542 # The compiler can only warn and ignore the option if not recognized
14543 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014544 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14545 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14546 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014547 lt_cv_prog_compiler_c_o=yes
14548 fi
14549 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014550 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014551 $rm conftest*
14552 # SGI C++ compiler will create directory out/ii_files/ for
14553 # template instantiation
14554 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14555 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014556 cd ..
14557 rmdir conftest
14558 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014559
14560fi
Reid Spencera773bd52006-08-04 18:18:08 +000014561{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14562echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014563
John Criswell7a73b802003-06-30 21:59:07 +000014564
John Criswell7a73b802003-06-30 21:59:07 +000014565hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014566if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014567 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014568 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14569echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014570 hard_links=yes
14571 $rm conftest*
14572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14573 touch conftest.a
14574 ln conftest.a conftest.b 2>&5 || hard_links=no
14575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014576 { echo "$as_me:$LINENO: result: $hard_links" >&5
14577echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014578 if test "$hard_links" = no; then
14579 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14580echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14581 need_locks=warn
14582 fi
14583else
14584 need_locks=no
14585fi
John Criswell7a73b802003-06-30 21:59:07 +000014586
Reid Spencera773bd52006-08-04 18:18:08 +000014587{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14588echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014589
14590 runpath_var=
14591 allow_undefined_flag=
14592 enable_shared_with_static_runtimes=no
14593 archive_cmds=
14594 archive_expsym_cmds=
14595 old_archive_From_new_cmds=
14596 old_archive_from_expsyms_cmds=
14597 export_dynamic_flag_spec=
14598 whole_archive_flag_spec=
14599 thread_safe_flag_spec=
14600 hardcode_libdir_flag_spec=
14601 hardcode_libdir_flag_spec_ld=
14602 hardcode_libdir_separator=
14603 hardcode_direct=no
14604 hardcode_minus_L=no
14605 hardcode_shlibpath_var=unsupported
14606 link_all_deplibs=unknown
14607 hardcode_automatic=no
14608 module_cmds=
14609 module_expsym_cmds=
14610 always_export_symbols=no
14611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14612 # include_expsyms should be a list of space-separated symbols to be *always*
14613 # included in the symbol list
14614 include_expsyms=
14615 # exclude_expsyms can be an extended regexp of symbols to exclude
14616 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14617 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14618 # as well as any symbol that contains `d'.
14619 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14620 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14621 # platforms (ab)use it in PIC code, but their linkers get confused if
14622 # the symbol is explicitly referenced. Since portable code cannot
14623 # rely on this symbol name, it's probably fine to never include it in
14624 # preloaded symbol tables.
14625 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014626 # Just being paranoid about ensuring that cc_basename is set.
14627 for cc_temp in $compiler""; do
14628 case $cc_temp in
14629 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14630 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14631 \-*) ;;
14632 *) break;;
14633 esac
14634done
14635cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014636
14637 case $host_os in
14638 cygwin* | mingw* | pw32*)
14639 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14640 # When not using gcc, we currently assume that we are using
14641 # Microsoft Visual C++.
14642 if test "$GCC" != yes; then
14643 with_gnu_ld=no
14644 fi
14645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014646 interix*)
14647 # we just hope/assume this is gcc and not c89 (= MSVC++)
14648 with_gnu_ld=yes
14649 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014650 openbsd*)
14651 with_gnu_ld=no
14652 ;;
14653 esac
14654
14655 ld_shlibs=yes
14656 if test "$with_gnu_ld" = yes; then
14657 # If archive_cmds runs LD, not CC, wlarc should be empty
14658 wlarc='${wl}'
14659
Reid Spencera773bd52006-08-04 18:18:08 +000014660 # Set some defaults for GNU ld with shared library support. These
14661 # are reset later if shared libraries are not supported. Putting them
14662 # here allows them to be overridden if necessary.
14663 runpath_var=LD_RUN_PATH
14664 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14665 export_dynamic_flag_spec='${wl}--export-dynamic'
14666 # ancient GNU ld didn't support --whole-archive et. al.
14667 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14668 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14669 else
14670 whole_archive_flag_spec=
14671 fi
14672 supports_anon_versioning=no
14673 case `$LD -v 2>/dev/null` in
14674 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14675 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14676 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14677 *\ 2.11.*) ;; # other 2.11 versions
14678 *) supports_anon_versioning=yes ;;
14679 esac
14680
John Criswell47fdd832003-07-14 16:52:07 +000014681 # See if GNU ld supports shared libraries.
14682 case $host_os in
14683 aix3* | aix4* | aix5*)
14684 # On AIX/PPC, the GNU linker is very broken
14685 if test "$host_cpu" != ia64; then
14686 ld_shlibs=no
14687 cat <<EOF 1>&2
14688
14689*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14690*** to be unable to reliably create shared libraries on AIX.
14691*** Therefore, libtool is disabling shared libraries support. If you
14692*** really care for shared libraries, you may want to modify your PATH
14693*** so that a non-GNU linker is found, and then restart.
14694
14695EOF
14696 fi
14697 ;;
14698
14699 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014700 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)'
John Criswell47fdd832003-07-14 16:52:07 +000014701 hardcode_libdir_flag_spec='-L$libdir'
14702 hardcode_minus_L=yes
14703
14704 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14705 # that the semantics of dynamic libraries on AmigaOS, at least up
14706 # to version 4, is to share data among multiple programs linked
14707 # with the same dynamic library. Since this doesn't match the
14708 # behavior of shared libraries on other platforms, we can't use
14709 # them.
14710 ld_shlibs=no
14711 ;;
14712
14713 beos*)
14714 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14715 allow_undefined_flag=unsupported
14716 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14717 # support --undefined. This deserves some investigation. FIXME
14718 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14719 else
14720 ld_shlibs=no
14721 fi
14722 ;;
14723
14724 cygwin* | mingw* | pw32*)
14725 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14726 # as there is no search path for DLLs.
14727 hardcode_libdir_flag_spec='-L$libdir'
14728 allow_undefined_flag=unsupported
14729 always_export_symbols=no
14730 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000014732
14733 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014734 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000014735 # If the export-symbols file already is a .def file (1st line
14736 # is EXPORTS), use it as is; otherwise, prepend...
14737 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14738 cp $export_symbols $output_objdir/$soname.def;
14739 else
14740 echo EXPORTS > $output_objdir/$soname.def;
14741 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014742 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014743 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14744 else
14745 ld_shlibs=no
14746 fi
14747 ;;
14748
14749 interix3*)
14750 hardcode_direct=no
14751 hardcode_shlibpath_var=no
14752 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14753 export_dynamic_flag_spec='${wl}-E'
14754 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14755 # Instead, shared libraries are loaded at an image base (0x10000000 by
14756 # default) and relocated if they conflict, which is a slow very memory
14757 # consuming and fragmenting process. To avoid this, we pick a random,
14758 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14759 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14761 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'
14762 ;;
14763
14764 linux*)
14765 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14766 tmp_addflag=
14767 case $cc_basename,$host_cpu in
14768 pgcc*) # Portland Group C compiler
14769 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'
14770 tmp_addflag=' $pic_flag'
14771 ;;
14772 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14773 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'
14774 tmp_addflag=' $pic_flag -Mnomain' ;;
14775 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14776 tmp_addflag=' -i_dynamic' ;;
14777 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14778 tmp_addflag=' -i_dynamic -nofor_main' ;;
14779 ifc* | ifort*) # Intel Fortran compiler
14780 tmp_addflag=' -nofor_main' ;;
14781 esac
14782 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14783
14784 if test $supports_anon_versioning = yes; then
14785 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14786 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14787 $echo "local: *; };" >> $output_objdir/$libname.ver~
14788 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14789 fi
John Criswell47fdd832003-07-14 16:52:07 +000014790 else
14791 ld_shlibs=no
14792 fi
14793 ;;
14794
14795 netbsd*)
14796 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14797 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14798 wlarc=
14799 else
14800 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14801 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14802 fi
14803 ;;
14804
Reid Spencera773bd52006-08-04 18:18:08 +000014805 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014806 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14807 ld_shlibs=no
14808 cat <<EOF 1>&2
14809
14810*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14811*** create shared libraries on Solaris systems. Therefore, libtool
14812*** is disabling shared libraries support. We urge you to upgrade GNU
14813*** binutils to release 2.9.1 or newer. Another option is to modify
14814*** your PATH or compiler configuration so that the native linker is
14815*** used, and then restart.
14816
14817EOF
14818 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14819 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14820 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14821 else
14822 ld_shlibs=no
14823 fi
14824 ;;
14825
Reid Spencera773bd52006-08-04 18:18:08 +000014826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14827 case `$LD -v 2>&1` in
14828 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14829 ld_shlibs=no
14830 cat <<_LT_EOF 1>&2
14831
14832*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14833*** reliably create shared libraries on SCO systems. Therefore, libtool
14834*** is disabling shared libraries support. We urge you to upgrade GNU
14835*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14836*** your PATH or compiler configuration so that the native linker is
14837*** used, and then restart.
14838
14839_LT_EOF
14840 ;;
14841 *)
14842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14843 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14846 else
14847 ld_shlibs=no
14848 fi
14849 ;;
14850 esac
14851 ;;
14852
John Criswell47fdd832003-07-14 16:52:07 +000014853 sunos4*)
14854 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14855 wlarc=
14856 hardcode_direct=yes
14857 hardcode_shlibpath_var=no
14858 ;;
14859
14860 *)
14861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14864 else
14865 ld_shlibs=no
14866 fi
14867 ;;
14868 esac
14869
Reid Spencera773bd52006-08-04 18:18:08 +000014870 if test "$ld_shlibs" = no; then
14871 runpath_var=
14872 hardcode_libdir_flag_spec=
14873 export_dynamic_flag_spec=
14874 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014875 fi
14876 else
14877 # PORTME fill in a description of your system's linker (not GNU ld)
14878 case $host_os in
14879 aix3*)
14880 allow_undefined_flag=unsupported
14881 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014882 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'
John Criswell47fdd832003-07-14 16:52:07 +000014883 # Note: this linker hardcodes the directories in LIBPATH if there
14884 # are no directories specified by -L.
14885 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014886 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014887 # Neither direct hardcoding nor static linking is supported with a
14888 # broken collect2.
14889 hardcode_direct=unsupported
14890 fi
14891 ;;
14892
14893 aix4* | aix5*)
14894 if test "$host_cpu" = ia64; then
14895 # On IA64, the linker does run time linking by default, so we don't
14896 # have to do anything special.
14897 aix_use_runtimelinking=no
14898 exp_sym_flag='-Bexport'
14899 no_entry_flag=""
14900 else
14901 # If we're using GNU nm, then we don't want the "-C" option.
14902 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14903 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14904 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'
14905 else
14906 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'
14907 fi
14908 aix_use_runtimelinking=no
14909
14910 # Test if we are trying to use run time linking or normal
14911 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14912 # need to do runtime linking.
14913 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14914 for ld_flag in $LDFLAGS; do
14915 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14916 aix_use_runtimelinking=yes
14917 break
14918 fi
14919 done
Reid Spencera773bd52006-08-04 18:18:08 +000014920 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014921 esac
14922
14923 exp_sym_flag='-bexport'
14924 no_entry_flag='-bnoentry'
14925 fi
14926
14927 # When large executables or shared objects are built, AIX ld can
14928 # have problems creating the table of contents. If linking a library
14929 # or program results in "error TOC overflow" add -mminimal-toc to
14930 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14931 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14932
14933 archive_cmds=''
14934 hardcode_direct=yes
14935 hardcode_libdir_separator=':'
14936 link_all_deplibs=yes
14937
14938 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014939 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014940 # We only want to do this on AIX 4.2 and lower, the check
14941 # below for broken collect2 doesn't work under 4.3+
14942 collect2name=`${CC} -print-prog-name=collect2`
14943 if test -f "$collect2name" && \
14944 strings "$collect2name" | grep resolve_lib_name >/dev/null
14945 then
14946 # We have reworked collect2
14947 hardcode_direct=yes
14948 else
14949 # We have old collect2
14950 hardcode_direct=unsupported
14951 # It fails to find uninstalled libraries when the uninstalled
14952 # path is not listed in the libpath. Setting hardcode_minus_L
14953 # to unsupported forces relinking
14954 hardcode_minus_L=yes
14955 hardcode_libdir_flag_spec='-L$libdir'
14956 hardcode_libdir_separator=
14957 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014958 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014959 esac
14960 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014961 if test "$aix_use_runtimelinking" = yes; then
14962 shared_flag="$shared_flag "'${wl}-G'
14963 fi
John Criswell47fdd832003-07-14 16:52:07 +000014964 else
14965 # not using gcc
14966 if test "$host_cpu" = ia64; then
14967 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14968 # chokes on -Wl,-G. The following line is correct:
14969 shared_flag='-G'
14970 else
Reid Spencera773bd52006-08-04 18:18:08 +000014971 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014972 shared_flag='${wl}-G'
14973 else
14974 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014975 fi
John Criswell47fdd832003-07-14 16:52:07 +000014976 fi
14977 fi
14978
14979 # It seems that -bexpall does not export symbols beginning with
14980 # underscore (_), so it is better to generate a list of symbols to export.
14981 always_export_symbols=yes
14982 if test "$aix_use_runtimelinking" = yes; then
14983 # Warning - without using the other runtime loading flags (-brtl),
14984 # -berok will link without error, but may produce a broken library.
14985 allow_undefined_flag='-berok'
14986 # Determine the default libpath from the value encoded in an empty executable.
14987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014988/* confdefs.h. */
14989_ACEOF
14990cat confdefs.h >>conftest.$ac_ext
14991cat >>conftest.$ac_ext <<_ACEOF
14992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014993
John Criswell7a73b802003-06-30 21:59:07 +000014994int
14995main ()
14996{
John Criswell47fdd832003-07-14 16:52:07 +000014997
John Criswell7a73b802003-06-30 21:59:07 +000014998 ;
14999 return 0;
15000}
15001_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015002rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015003if { (ac_try="$ac_link"
15004case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15007esac
15008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15017 { (case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15020esac
15021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015027 { (case "(($ac_try" in
15028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029 *) ac_try_echo=$ac_try;;
15030esac
15031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015033 ac_status=$?
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015036
John Criswell47fdd832003-07-14 16:52:07 +000015037aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15038}'`
15039# Check for a 64-bit object if we didn't find anything.
15040if 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; }
15041}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015042else
15043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015044sed 's/^/| /' conftest.$ac_ext >&5
15045
Reid Spencera773bd52006-08-04 18:18:08 +000015046
John Criswell7a73b802003-06-30 21:59:07 +000015047fi
Reid Spencera773bd52006-08-04 18:18:08 +000015048
15049rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015050 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015051if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015052
John Criswell47fdd832003-07-14 16:52:07 +000015053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015054 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"
John Criswell47fdd832003-07-14 16:52:07 +000015055 else
15056 if test "$host_cpu" = ia64; then
15057 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15058 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015059 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"
John Criswell47fdd832003-07-14 16:52:07 +000015060 else
15061 # Determine the default libpath from the value encoded in an empty executable.
15062 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015068
John Criswell47fdd832003-07-14 16:52:07 +000015069int
15070main ()
15071{
John Criswell7a73b802003-06-30 21:59:07 +000015072
John Criswell47fdd832003-07-14 16:52:07 +000015073 ;
15074 return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015078if { (ac_try="$ac_link"
15079case "(($ac_try" in
15080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081 *) ac_try_echo=$ac_try;;
15082esac
15083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15084 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15092 { (case "(($ac_try" in
15093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094 *) ac_try_echo=$ac_try;;
15095esac
15096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015098 ac_status=$?
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } &&
15101 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15105esac
15106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015108 ac_status=$?
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015111
John Criswell47fdd832003-07-14 16:52:07 +000015112aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15113}'`
15114# Check for a 64-bit object if we didn't find anything.
15115if 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; }
15116}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015117else
John Criswell47fdd832003-07-14 16:52:07 +000015118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015119sed 's/^/| /' conftest.$ac_ext >&5
15120
Reid Spencera773bd52006-08-04 18:18:08 +000015121
John Criswell47fdd832003-07-14 16:52:07 +000015122fi
Reid Spencera773bd52006-08-04 18:18:08 +000015123
15124rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015125 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015127
John Criswell47fdd832003-07-14 16:52:07 +000015128 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15129 # Warning - without using the other run time loading flags,
15130 # -berok will link without error, but may produce a broken library.
15131 no_undefined_flag=' ${wl}-bernotok'
15132 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015133 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015134 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015135 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015136 # This is similar to how AIX traditionally builds its shared libraries.
15137 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'
John Criswell7a73b802003-06-30 21:59:07 +000015138 fi
15139 fi
John Criswell7a73b802003-06-30 21:59:07 +000015140 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015141
15142 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015143 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)'
John Criswell47fdd832003-07-14 16:52:07 +000015144 hardcode_libdir_flag_spec='-L$libdir'
15145 hardcode_minus_L=yes
15146 # see comment about different semantics on the GNU ld section
15147 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015148 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015149
Reid Spencer2706f8c2004-09-19 23:53:36 +000015150 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015151 export_dynamic_flag_spec=-rdynamic
15152 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015153
John Criswell47fdd832003-07-14 16:52:07 +000015154 cygwin* | mingw* | pw32*)
15155 # When not using gcc, we currently assume that we are using
15156 # Microsoft Visual C++.
15157 # hardcode_libdir_flag_spec is actually meaningless, as there is
15158 # no search path for DLLs.
15159 hardcode_libdir_flag_spec=' '
15160 allow_undefined_flag=unsupported
15161 # Tell ltmain to make .lib files, not .a files.
15162 libext=lib
15163 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015164 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015165 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015166 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015167 # The linker will automatically build a .lib file if we build a DLL.
15168 old_archive_From_new_cmds='true'
15169 # FIXME: Should let the user specify the lib program.
15170 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15171 fix_srcfile_path='`cygpath -w "$srcfile"`'
15172 enable_shared_with_static_runtimes=yes
15173 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015174
John Criswell47fdd832003-07-14 16:52:07 +000015175 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015176 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015177 rhapsody* | darwin1.[012])
15178 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15179 ;;
15180 *) # Darwin 1.3 on
15181 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15182 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15183 else
15184 case ${MACOSX_DEPLOYMENT_TARGET} in
15185 10.[012])
15186 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15187 ;;
15188 10.*)
15189 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15190 ;;
15191 esac
15192 fi
15193 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015194 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015195 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015196 hardcode_direct=no
15197 hardcode_automatic=yes
15198 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015199 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015200 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015201 if test "$GCC" = yes ; then
15202 output_verbose_link_cmd='echo'
15203 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15204 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015205 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015206 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}'
15207 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015208 else
Reid Spencera773bd52006-08-04 18:18:08 +000015209 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015210 xlc*)
15211 output_verbose_link_cmd='echo'
15212 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15213 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015214 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015215 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}'
15216 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015217 ;;
15218 *)
15219 ld_shlibs=no
15220 ;;
15221 esac
John Criswell7a73b802003-06-30 21:59:07 +000015222 fi
John Criswell47fdd832003-07-14 16:52:07 +000015223 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015224
John Criswell47fdd832003-07-14 16:52:07 +000015225 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015227 hardcode_libdir_flag_spec='-L$libdir'
15228 hardcode_shlibpath_var=no
15229 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015230
John Criswell47fdd832003-07-14 16:52:07 +000015231 freebsd1*)
15232 ld_shlibs=no
15233 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015234
John Criswell47fdd832003-07-14 16:52:07 +000015235 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15236 # support. Future versions do this automatically, but an explicit c++rt0.o
15237 # does not break anything, and helps significantly (at the cost of a little
15238 # extra space).
15239 freebsd2.2*)
15240 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15241 hardcode_libdir_flag_spec='-R$libdir'
15242 hardcode_direct=yes
15243 hardcode_shlibpath_var=no
15244 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015245
John Criswell47fdd832003-07-14 16:52:07 +000015246 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15247 freebsd2*)
15248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15249 hardcode_direct=yes
15250 hardcode_minus_L=yes
15251 hardcode_shlibpath_var=no
15252 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015253
John Criswell47fdd832003-07-14 16:52:07 +000015254 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015255 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015256 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15257 hardcode_libdir_flag_spec='-R$libdir'
15258 hardcode_direct=yes
15259 hardcode_shlibpath_var=no
15260 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015261
John Criswell47fdd832003-07-14 16:52:07 +000015262 hpux9*)
15263 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015264 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'
John Criswell47fdd832003-07-14 16:52:07 +000015265 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015266 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'
John Criswell47fdd832003-07-14 16:52:07 +000015267 fi
15268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269 hardcode_libdir_separator=:
15270 hardcode_direct=yes
15271
15272 # hardcode_minus_L: Not really in the search PATH,
15273 # but as the default location of the library.
15274 hardcode_minus_L=yes
15275 export_dynamic_flag_spec='${wl}-E'
15276 ;;
15277
Reid Spencera773bd52006-08-04 18:18:08 +000015278 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015279 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015280 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15281 else
15282 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15283 fi
15284 if test "$with_gnu_ld" = no; then
15285 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15286 hardcode_libdir_separator=:
15287
15288 hardcode_direct=yes
15289 export_dynamic_flag_spec='${wl}-E'
15290
15291 # hardcode_minus_L: Not really in the search PATH,
15292 # but as the default location of the library.
15293 hardcode_minus_L=yes
15294 fi
15295 ;;
15296
15297 hpux11*)
15298 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15299 case $host_cpu in
15300 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015301 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15302 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015303 ia64*)
15304 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15305 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015306 *)
15307 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15308 ;;
15309 esac
15310 else
Reid Spencera773bd52006-08-04 18:18:08 +000015311 case $host_cpu in
15312 hppa*64*)
15313 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15314 ;;
15315 ia64*)
15316 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015317 ;;
15318 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015319 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015320 ;;
15321 esac
15322 fi
15323 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015326
Reid Spencera773bd52006-08-04 18:18:08 +000015327 case $host_cpu in
15328 hppa*64*|ia64*)
15329 hardcode_libdir_flag_spec_ld='+b $libdir'
15330 hardcode_direct=no
15331 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015332 ;;
15333 *)
John Criswell47fdd832003-07-14 16:52:07 +000015334 hardcode_direct=yes
15335 export_dynamic_flag_spec='${wl}-E'
15336
15337 # hardcode_minus_L: Not really in the search PATH,
15338 # but as the default location of the library.
15339 hardcode_minus_L=yes
15340 ;;
15341 esac
15342 fi
15343 ;;
15344
15345 irix5* | irix6* | nonstopux*)
15346 if test "$GCC" = yes; then
15347 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'
15348 else
15349 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'
15350 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15351 fi
15352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15353 hardcode_libdir_separator=:
15354 link_all_deplibs=yes
15355 ;;
15356
15357 netbsd*)
15358 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15359 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15360 else
15361 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15362 fi
15363 hardcode_libdir_flag_spec='-R$libdir'
15364 hardcode_direct=yes
15365 hardcode_shlibpath_var=no
15366 ;;
15367
15368 newsos6)
15369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15370 hardcode_direct=yes
15371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15372 hardcode_libdir_separator=:
15373 hardcode_shlibpath_var=no
15374 ;;
15375
15376 openbsd*)
15377 hardcode_direct=yes
15378 hardcode_shlibpath_var=no
15379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15380 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015381 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000015382 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15383 export_dynamic_flag_spec='${wl}-E'
15384 else
15385 case $host_os in
15386 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15388 hardcode_libdir_flag_spec='-R$libdir'
15389 ;;
15390 *)
15391 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15393 ;;
15394 esac
15395 fi
15396 ;;
15397
15398 os2*)
15399 hardcode_libdir_flag_spec='-L$libdir'
15400 hardcode_minus_L=yes
15401 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015402 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'
John Criswell47fdd832003-07-14 16:52:07 +000015403 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15404 ;;
15405
15406 osf3*)
15407 if test "$GCC" = yes; then
15408 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15409 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'
15410 else
15411 allow_undefined_flag=' -expect_unresolved \*'
15412 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'
15413 fi
15414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15415 hardcode_libdir_separator=:
15416 ;;
15417
15418 osf4* | osf5*) # as osf3* with the addition of -msym flag
15419 if test "$GCC" = yes; then
15420 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15421 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'
15422 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15423 else
15424 allow_undefined_flag=' -expect_unresolved \*'
15425 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000015426 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000015427 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000015428
John Criswell47fdd832003-07-14 16:52:07 +000015429 # Both c and cxx compiler support -rpath directly
15430 hardcode_libdir_flag_spec='-rpath $libdir'
15431 fi
15432 hardcode_libdir_separator=:
15433 ;;
15434
John Criswell47fdd832003-07-14 16:52:07 +000015435 solaris*)
15436 no_undefined_flag=' -z text'
15437 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015438 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015439 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015440 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15441 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015442 else
Reid Spencera773bd52006-08-04 18:18:08 +000015443 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015444 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015445 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015447 fi
15448 hardcode_libdir_flag_spec='-R$libdir'
15449 hardcode_shlibpath_var=no
15450 case $host_os in
15451 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015452 *)
15453 # The compiler driver will combine linker options so we
15454 # cannot just pass the convience library names through
15455 # without $wl, iff we do not link with $LD.
15456 # Luckily, gcc supports the same syntax we need for Sun Studio.
15457 # Supported since Solaris 2.6 (maybe 2.5.1?)
15458 case $wlarc in
15459 '')
15460 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15461 *)
15462 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' ;;
15463 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015464 esac
15465 link_all_deplibs=yes
15466 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015467
John Criswell47fdd832003-07-14 16:52:07 +000015468 sunos4*)
15469 if test "x$host_vendor" = xsequent; then
15470 # Use $CC to link under sequent, because it throws in some extra .o
15471 # files that make .init and .fini sections work.
15472 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15473 else
15474 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15475 fi
15476 hardcode_libdir_flag_spec='-L$libdir'
15477 hardcode_direct=yes
15478 hardcode_minus_L=yes
15479 hardcode_shlibpath_var=no
15480 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015481
John Criswell47fdd832003-07-14 16:52:07 +000015482 sysv4)
15483 case $host_vendor in
15484 sni)
15485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15486 hardcode_direct=yes # is this really true???
15487 ;;
15488 siemens)
15489 ## LD is ld it makes a PLAMLIB
15490 ## CC just makes a GrossModule.
15491 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15492 reload_cmds='$CC -r -o $output$reload_objs'
15493 hardcode_direct=no
15494 ;;
15495 motorola)
15496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15497 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15498 ;;
15499 esac
15500 runpath_var='LD_RUN_PATH'
15501 hardcode_shlibpath_var=no
15502 ;;
15503
15504 sysv4.3*)
15505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15506 hardcode_shlibpath_var=no
15507 export_dynamic_flag_spec='-Bexport'
15508 ;;
15509
15510 sysv4*MP*)
15511 if test -d /usr/nec; then
15512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15513 hardcode_shlibpath_var=no
15514 runpath_var=LD_RUN_PATH
15515 hardcode_runpath_var=yes
15516 ld_shlibs=yes
15517 fi
15518 ;;
15519
Reid Spencera773bd52006-08-04 18:18:08 +000015520 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15521 no_undefined_flag='${wl}-z,text'
15522 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015523 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015524 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015525
John Criswell47fdd832003-07-14 16:52:07 +000015526 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015527 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15528 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015529 else
Reid Spencera773bd52006-08-04 18:18:08 +000015530 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15531 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015532 fi
John Criswell47fdd832003-07-14 16:52:07 +000015533 ;;
15534
Reid Spencera773bd52006-08-04 18:18:08 +000015535 sysv5* | sco3.2v5* | sco5v6*)
15536 # Note: We can NOT use -z defs as we might desire, because we do not
15537 # link with -lc, and that would cause any symbols used from libc to
15538 # always be unresolved, which means just about no library would
15539 # ever link correctly. If we're not using GNU ld we use -z text
15540 # though, which does catch some bad symbols but isn't as heavy-handed
15541 # as -z defs.
15542 no_undefined_flag='${wl}-z,text'
15543 allow_undefined_flag='${wl}-z,nodefs'
15544 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015545 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015546 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15547 hardcode_libdir_separator=':'
15548 link_all_deplibs=yes
15549 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015550 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015551
15552 if test "$GCC" = yes; then
15553 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 else
15556 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 fi
John Criswell47fdd832003-07-14 16:52:07 +000015559 ;;
15560
15561 uts4*)
15562 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec='-L$libdir'
15564 hardcode_shlibpath_var=no
15565 ;;
15566
15567 *)
15568 ld_shlibs=no
15569 ;;
15570 esac
15571 fi
15572
Reid Spencera773bd52006-08-04 18:18:08 +000015573{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15574echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015575test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015576
John Criswell47fdd832003-07-14 16:52:07 +000015577#
15578# Do we need to explicitly link libc?
15579#
15580case "x$archive_cmds_need_lc" in
15581x|xyes)
15582 # Assume -lc should be added
15583 archive_cmds_need_lc=yes
15584
15585 if test "$enable_shared" = yes && test "$GCC" = yes; then
15586 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015587 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015588 # FIXME: we may have to deal with multi-command sequences.
15589 ;;
15590 '$CC '*)
15591 # Test whether the compiler implicitly links with -lc since on some
15592 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15593 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015594 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15595echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015596 $rm conftest*
15597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15598
15599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15600 (eval $ac_compile) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } 2>conftest.err; then
15604 soname=conftest
15605 lib=conftest
15606 libobjs=conftest.$ac_objext
15607 deplibs=
15608 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015609 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015610 compiler_flags=-v
15611 linker_flags=-v
15612 verstring=
15613 output_objdir=.
15614 libname=conftest
15615 lt_save_allow_undefined_flag=$allow_undefined_flag
15616 allow_undefined_flag=
15617 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15618 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }
15622 then
15623 archive_cmds_need_lc=no
15624 else
15625 archive_cmds_need_lc=yes
15626 fi
15627 allow_undefined_flag=$lt_save_allow_undefined_flag
15628 else
15629 cat conftest.err 1>&5
15630 fi
15631 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015632 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15633echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015634 ;;
15635 esac
15636 fi
15637 ;;
15638esac
15639
Reid Spencera773bd52006-08-04 18:18:08 +000015640{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15641echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015642library_names_spec=
15643libname_spec='lib$name'
15644soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015645shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015646postinstall_cmds=
15647postuninstall_cmds=
15648finish_cmds=
15649finish_eval=
15650shlibpath_var=
15651shlibpath_overrides_runpath=unknown
15652version_type=none
15653dynamic_linker="$host_os ld.so"
15654sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015655if test "$GCC" = yes; then
15656 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15657 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15658 # if the path contains ";" then we assume it to be the separator
15659 # otherwise default to the standard path separator (i.e. ":") - it is
15660 # assumed that no part of a normal pathname contains ";" but that should
15661 # okay in the real world where ";" in dirpaths is itself problematic.
15662 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15663 else
15664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15665 fi
15666else
15667 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15668fi
15669need_lib_prefix=unknown
15670hardcode_into_libs=no
15671
15672# when you set need_version to no, make sure it does not cause -set_version
15673# flags to be left without arguments
15674need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015675
15676case $host_os in
15677aix3*)
15678 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015680 shlibpath_var=LIBPATH
15681
John Criswell47fdd832003-07-14 16:52:07 +000015682 # AIX 3 has no versioning support, so we append a major version to the name.
15683 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015684 ;;
15685
15686aix4* | aix5*)
15687 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015688 need_lib_prefix=no
15689 need_version=no
15690 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015691 if test "$host_cpu" = ia64; then
15692 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015694 shlibpath_var=LD_LIBRARY_PATH
15695 else
15696 # With GCC up to 2.95.x, collect2 would create an import file
15697 # for dependence libraries. The import file would start with
15698 # the line `#! .'. This would cause the generated library to
15699 # depend on `.', always an invalid library. This was fixed in
15700 # development snapshots of GCC prior to 3.0.
15701 case $host_os in
15702 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15704 echo ' yes '
15705 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15706 :
15707 else
15708 can_build_shared=no
15709 fi
15710 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015711 esac
John Criswell47fdd832003-07-14 16:52:07 +000015712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15713 # soname into executable. Probably we can add versioning support to
15714 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015715 if test "$aix_use_runtimelinking" = yes; then
15716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15717 # instead of lib<name>.a to let people know that these are not
15718 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015720 else
15721 # We preserve .a as extension for shared libraries through AIX4.2
15722 # and later when we are not doing run time linking.
15723 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015724 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015725 fi
15726 shlibpath_var=LIBPATH
15727 fi
15728 ;;
15729
15730amigaos*)
15731 library_names_spec='$libname.ixlibrary $libname.a'
15732 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015733 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'
John Criswell7a73b802003-06-30 21:59:07 +000015734 ;;
15735
15736beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015737 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015738 dynamic_linker="$host_os ld.so"
15739 shlibpath_var=LIBRARY_PATH
15740 ;;
15741
Reid Spencer2706f8c2004-09-19 23:53:36 +000015742bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015743 version_type=linux
15744 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015747 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15748 shlibpath_var=LD_LIBRARY_PATH
15749 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15750 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015751 # the default ld.so.conf also contains /usr/contrib/lib and
15752 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15753 # libtool to hard-code these into programs
15754 ;;
15755
15756cygwin* | mingw* | pw32*)
15757 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015758 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015759 need_version=no
15760 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015761
John Criswell7a73b802003-06-30 21:59:07 +000015762 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015763 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015764 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015765 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015766 postinstall_cmds='base_file=`basename \${file}`~
15767 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15768 dldir=$destdir/`dirname \$dlpath`~
15769 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015770 $install_prog $dir/$dlname \$dldir/$dlname~
15771 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015772 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15773 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015774 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015775 shlibpath_overrides_runpath=yes
15776
15777 case $host_os in
15778 cygwin*)
15779 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15780 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015781 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015782 ;;
15783 mingw*)
15784 # MinGW DLLs use traditional 'lib' prefix
15785 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15787 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15788 # It is most probably a Windows format PATH printed by
15789 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15790 # path with ; separators, and with drive letters. We can handle the
15791 # drive letters (cygwin fileutils understands them), so leave them,
15792 # especially as we might pass files found there to a mingw objdump,
15793 # which wouldn't understand a cygwinified path. Ahh.
15794 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15795 else
15796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15797 fi
15798 ;;
15799 pw32*)
15800 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015801 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000015802 ;;
15803 esac
John Criswell7a73b802003-06-30 21:59:07 +000015804 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015805
John Criswell7a73b802003-06-30 21:59:07 +000015806 *)
John Criswell47fdd832003-07-14 16:52:07 +000015807 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015808 ;;
15809 esac
15810 dynamic_linker='Win32 ld.exe'
15811 # FIXME: first we should search . and the directory the executable is in
15812 shlibpath_var=PATH
15813 ;;
15814
15815darwin* | rhapsody*)
15816 dynamic_linker="$host_os dyld"
15817 version_type=darwin
15818 need_lib_prefix=no
15819 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015820 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015821 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015822 shlibpath_overrides_runpath=yes
15823 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015824 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015825 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015826 if test "$GCC" = yes; then
15827 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"`
15828 else
15829 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015830 fi
15831 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15832 ;;
15833
15834dgux*)
15835 version_type=linux
15836 need_lib_prefix=no
15837 need_version=no
15838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839 soname_spec='${libname}${release}${shared_ext}$major'
15840 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015841 ;;
15842
15843freebsd1*)
15844 dynamic_linker=no
15845 ;;
15846
Reid Spencer2706f8c2004-09-19 23:53:36 +000015847kfreebsd*-gnu)
15848 version_type=linux
15849 need_lib_prefix=no
15850 need_version=no
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=no
15855 hardcode_into_libs=yes
15856 dynamic_linker='GNU ld.so'
15857 ;;
15858
Reid Spencera773bd52006-08-04 18:18:08 +000015859freebsd* | dragonfly*)
15860 # DragonFly does not have aout. When/if they implement a new
15861 # versioning mechanism, adjust this.
15862 if test -x /usr/bin/objformat; then
15863 objformat=`/usr/bin/objformat`
15864 else
15865 case $host_os in
15866 freebsd[123]*) objformat=aout ;;
15867 *) objformat=elf ;;
15868 esac
15869 fi
John Criswell7a73b802003-06-30 21:59:07 +000015870 version_type=freebsd-$objformat
15871 case $version_type in
15872 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015874 need_version=no
15875 need_lib_prefix=no
15876 ;;
15877 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015878 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015879 need_version=yes
15880 ;;
15881 esac
15882 shlibpath_var=LD_LIBRARY_PATH
15883 case $host_os in
15884 freebsd2*)
15885 shlibpath_overrides_runpath=yes
15886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015887 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015888 shlibpath_overrides_runpath=yes
15889 hardcode_into_libs=yes
15890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015891 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15892 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015893 shlibpath_overrides_runpath=no
15894 hardcode_into_libs=yes
15895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015896 freebsd*) # from 4.6 on
15897 shlibpath_overrides_runpath=yes
15898 hardcode_into_libs=yes
15899 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015900 esac
15901 ;;
15902
15903gnu*)
15904 version_type=linux
15905 need_lib_prefix=no
15906 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15908 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015909 shlibpath_var=LD_LIBRARY_PATH
15910 hardcode_into_libs=yes
15911 ;;
15912
15913hpux9* | hpux10* | hpux11*)
15914 # Give a soname corresponding to the major version so that dld.sl refuses to
15915 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015916 version_type=sunos
15917 need_lib_prefix=no
15918 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015919 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015920 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015921 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015922 hardcode_into_libs=yes
15923 dynamic_linker="$host_os dld.so"
15924 shlibpath_var=LD_LIBRARY_PATH
15925 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927 soname_spec='${libname}${release}${shared_ext}$major'
15928 if test "X$HPUX_IA64_MODE" = X32; then
15929 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15930 else
15931 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15932 fi
15933 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15934 ;;
15935 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015936 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015937 hardcode_into_libs=yes
15938 dynamic_linker="$host_os dld.sl"
15939 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15942 soname_spec='${libname}${release}${shared_ext}$major'
15943 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15944 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15945 ;;
15946 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015947 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015948 dynamic_linker="$host_os dld.sl"
15949 shlibpath_var=SHLIB_PATH
15950 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 soname_spec='${libname}${release}${shared_ext}$major'
15953 ;;
15954 esac
John Criswell7a73b802003-06-30 21:59:07 +000015955 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15956 postinstall_cmds='chmod 555 $lib'
15957 ;;
15958
Reid Spencera773bd52006-08-04 18:18:08 +000015959interix3*)
15960 version_type=linux
15961 need_lib_prefix=no
15962 need_version=no
15963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964 soname_spec='${libname}${release}${shared_ext}$major'
15965 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966 shlibpath_var=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath=no
15968 hardcode_into_libs=yes
15969 ;;
15970
John Criswell47fdd832003-07-14 16:52:07 +000015971irix5* | irix6* | nonstopux*)
15972 case $host_os in
15973 nonstopux*) version_type=nonstopux ;;
15974 *)
15975 if test "$lt_cv_prog_gnu_ld" = yes; then
15976 version_type=linux
15977 else
15978 version_type=irix
15979 fi ;;
15980 esac
John Criswell7a73b802003-06-30 21:59:07 +000015981 need_lib_prefix=no
15982 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015983 soname_spec='${libname}${release}${shared_ext}$major'
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015985 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015986 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015987 libsuff= shlibsuff=
15988 ;;
15989 *)
15990 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015991 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992 libsuff= shlibsuff= libmagic=32-bit;;
15993 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994 libsuff=32 shlibsuff=N32 libmagic=N32;;
15995 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015997 *) libsuff= shlibsuff= libmagic=never-match;;
15998 esac
15999 ;;
16000 esac
16001 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002 shlibpath_overrides_runpath=no
16003 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016005 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016006 ;;
16007
16008# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016009linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016010 dynamic_linker=no
16011 ;;
16012
16013# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016014linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016015 version_type=linux
16016 need_lib_prefix=no
16017 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021 shlibpath_var=LD_LIBRARY_PATH
16022 shlibpath_overrides_runpath=no
16023 # This implies no fast_install, which is unacceptable.
16024 # Some rework will be needed to allow for fast_install
16025 # before this can be enabled.
16026 hardcode_into_libs=yes
16027
Reid Spencer2706f8c2004-09-19 23:53:36 +000016028 # Append ld.so.conf contents to the search path
16029 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016030 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000016031 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16032 fi
16033
John Criswell7a73b802003-06-30 21:59:07 +000016034 # We used to test for /lib/ld.so.1 and disable shared libraries on
16035 # powerpc, because MkLinux only supported shared libraries with the
16036 # GNU dynamic linker. Since this was broken with cross compilers,
16037 # most powerpc-linux boxes support dynamic linking these days and
16038 # people can always --disable-shared, the test was removed, and we
16039 # assume the GNU/Linux dynamic linker is in use.
16040 dynamic_linker='GNU/Linux ld.so'
16041 ;;
16042
Reid Spencer2706f8c2004-09-19 23:53:36 +000016043knetbsd*-gnu)
16044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 shlibpath_var=LD_LIBRARY_PATH
16050 shlibpath_overrides_runpath=no
16051 hardcode_into_libs=yes
16052 dynamic_linker='GNU ld.so'
16053 ;;
16054
John Criswell7a73b802003-06-30 21:59:07 +000016055netbsd*)
16056 version_type=sunos
16057 need_lib_prefix=no
16058 need_version=no
16059 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16062 dynamic_linker='NetBSD (a.out) ld.so'
16063 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016065 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016066 dynamic_linker='NetBSD ld.elf_so'
16067 fi
16068 shlibpath_var=LD_LIBRARY_PATH
16069 shlibpath_overrides_runpath=yes
16070 hardcode_into_libs=yes
16071 ;;
16072
16073newsos6)
16074 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16076 shlibpath_var=LD_LIBRARY_PATH
16077 shlibpath_overrides_runpath=yes
16078 ;;
16079
Reid Spencer2706f8c2004-09-19 23:53:36 +000016080nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016086 shlibpath_var=LD_LIBRARY_PATH
16087 shlibpath_overrides_runpath=yes
16088 ;;
16089
16090openbsd*)
16091 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016092 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016093 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16095 case $host_os in
16096 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16097 *) need_version=no ;;
16098 esac
John Criswell47fdd832003-07-14 16:52:07 +000016099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16101 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +000016103 case $host_os in
16104 openbsd2.[89] | openbsd2.[89].*)
16105 shlibpath_overrides_runpath=no
16106 ;;
16107 *)
16108 shlibpath_overrides_runpath=yes
16109 ;;
16110 esac
John Criswell7a73b802003-06-30 21:59:07 +000016111 else
16112 shlibpath_overrides_runpath=yes
16113 fi
John Criswell7a73b802003-06-30 21:59:07 +000016114 ;;
16115
16116os2*)
16117 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016118 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016119 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016120 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016121 dynamic_linker='OS/2 ld.exe'
16122 shlibpath_var=LIBPATH
16123 ;;
16124
16125osf3* | osf4* | osf5*)
16126 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016127 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016128 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016129 soname_spec='${libname}${release}${shared_ext}$major'
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016131 shlibpath_var=LD_LIBRARY_PATH
16132 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16133 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16134 ;;
16135
John Criswell7a73b802003-06-30 21:59:07 +000016136solaris*)
16137 version_type=linux
16138 need_lib_prefix=no
16139 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 # ldd complains unless libraries are executable
16146 postinstall_cmds='chmod +x $lib'
16147 ;;
16148
16149sunos4*)
16150 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16153 shlibpath_var=LD_LIBRARY_PATH
16154 shlibpath_overrides_runpath=yes
16155 if test "$with_gnu_ld" = yes; then
16156 need_lib_prefix=no
16157 fi
16158 need_version=yes
16159 ;;
16160
Reid Spencera773bd52006-08-04 18:18:08 +000016161sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016162 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016165 shlibpath_var=LD_LIBRARY_PATH
16166 case $host_vendor in
16167 sni)
16168 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016169 need_lib_prefix=no
16170 export_dynamic_flag_spec='${wl}-Blargedynsym'
16171 runpath_var=LD_RUN_PATH
16172 ;;
16173 siemens)
16174 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016175 ;;
16176 motorola)
16177 need_lib_prefix=no
16178 need_version=no
16179 shlibpath_overrides_runpath=no
16180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16181 ;;
16182 esac
16183 ;;
16184
John Criswell7a73b802003-06-30 21:59:07 +000016185sysv4*MP*)
16186 if test -d /usr/nec ;then
16187 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16189 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016190 shlibpath_var=LD_LIBRARY_PATH
16191 fi
16192 ;;
16193
Reid Spencera773bd52006-08-04 18:18:08 +000016194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16195 version_type=freebsd-elf
16196 need_lib_prefix=no
16197 need_version=no
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 hardcode_into_libs=yes
16202 if test "$with_gnu_ld" = yes; then
16203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16204 shlibpath_overrides_runpath=no
16205 else
16206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16207 shlibpath_overrides_runpath=yes
16208 case $host_os in
16209 sco3.2v5*)
16210 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16211 ;;
16212 esac
16213 fi
16214 sys_lib_dlsearch_path_spec='/usr/lib'
16215 ;;
16216
John Criswell47fdd832003-07-14 16:52:07 +000016217uts4*)
16218 version_type=linux
16219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16220 soname_spec='${libname}${release}${shared_ext}$major'
16221 shlibpath_var=LD_LIBRARY_PATH
16222 ;;
16223
John Criswell7a73b802003-06-30 21:59:07 +000016224*)
16225 dynamic_linker=no
16226 ;;
16227esac
Reid Spencera773bd52006-08-04 18:18:08 +000016228{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16229echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016230test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016231
Reid Spencera773bd52006-08-04 18:18:08 +000016232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16233if test "$GCC" = yes; then
16234 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16235fi
16236
16237{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016239hardcode_action=
16240if test -n "$hardcode_libdir_flag_spec" || \
16241 test -n "$runpath_var" || \
16242 test "X$hardcode_automatic" = "Xyes" ; then
16243
16244 # We can hardcode non-existant directories.
16245 if test "$hardcode_direct" != no &&
16246 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16247 # have to relink, otherwise we might link with an installed library
16248 # when we should be linking with a yet-to-be-installed one
16249 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16250 test "$hardcode_minus_L" != no; then
16251 # Linking always hardcodes the temporary library directory.
16252 hardcode_action=relink
16253 else
16254 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16255 hardcode_action=immediate
16256 fi
16257else
16258 # We cannot hardcode anything, or else we can only hardcode existing
16259 # directories.
16260 hardcode_action=unsupported
16261fi
Reid Spencera773bd52006-08-04 18:18:08 +000016262{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16263echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016264
16265if test "$hardcode_action" = relink; then
16266 # Fast installation is not supported
16267 enable_fast_install=no
16268elif test "$shlibpath_overrides_runpath" = yes ||
16269 test "$enable_shared" = no; then
16270 # Fast installation is not necessary
16271 enable_fast_install=needless
16272fi
16273
16274striplib=
16275old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016276{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16277echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016278if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16279 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16280 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016281 { echo "$as_me:$LINENO: result: yes" >&5
16282echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016283else
16284# FIXME - insert some real tests, host_os isn't really good enough
16285 case $host_os in
16286 darwin*)
16287 if test -n "$STRIP" ; then
16288 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016289 { echo "$as_me:$LINENO: result: yes" >&5
16290echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016291 else
Reid Spencera773bd52006-08-04 18:18:08 +000016292 { echo "$as_me:$LINENO: result: no" >&5
16293echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016294fi
16295 ;;
16296 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016297 { echo "$as_me:$LINENO: result: no" >&5
16298echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016299 ;;
16300 esac
16301fi
16302
John Criswell7a73b802003-06-30 21:59:07 +000016303if test "x$enable_dlopen" != xyes; then
16304 enable_dlopen=unknown
16305 enable_dlopen_self=unknown
16306 enable_dlopen_self_static=unknown
16307else
16308 lt_cv_dlopen=no
16309 lt_cv_dlopen_libs=
16310
16311 case $host_os in
16312 beos*)
16313 lt_cv_dlopen="load_add_on"
16314 lt_cv_dlopen_libs=
16315 lt_cv_dlopen_self=yes
16316 ;;
16317
John Criswell47fdd832003-07-14 16:52:07 +000016318 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016319 lt_cv_dlopen="LoadLibrary"
16320 lt_cv_dlopen_libs=
16321 ;;
16322
John Criswell47fdd832003-07-14 16:52:07 +000016323 cygwin*)
16324 lt_cv_dlopen="dlopen"
16325 lt_cv_dlopen_libs=
16326 ;;
16327
16328 darwin*)
16329 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016330 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16331echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016332if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16334else
16335 ac_check_lib_save_LIBS=$LIBS
16336LIBS="-ldl $LIBS"
16337cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016343
Reid Spencera773bd52006-08-04 18:18:08 +000016344/* Override any GCC internal prototype to avoid an error.
16345 Use char because int might match the return type of a GCC
16346 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016347#ifdef __cplusplus
16348extern "C"
16349#endif
John Criswell47fdd832003-07-14 16:52:07 +000016350char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016351int
16352main ()
16353{
Reid Spencera773bd52006-08-04 18:18:08 +000016354return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016355 ;
16356 return 0;
16357}
16358_ACEOF
16359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016360if { (ac_try="$ac_link"
16361case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364esac
16365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016367 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374 { (case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377esac
16378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387esac
16388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_lib_dl_dlopen=yes
16394else
16395 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016396sed 's/^/| /' conftest.$ac_ext >&5
16397
Reid Spencera773bd52006-08-04 18:18:08 +000016398 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016399fi
Reid Spencera773bd52006-08-04 18:18:08 +000016400
16401rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016402 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016403LIBS=$ac_check_lib_save_LIBS
16404fi
Reid Spencera773bd52006-08-04 18:18:08 +000016405{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16406echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016407if test $ac_cv_lib_dl_dlopen = yes; then
16408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16409else
16410
16411 lt_cv_dlopen="dyld"
16412 lt_cv_dlopen_libs=
16413 lt_cv_dlopen_self=yes
16414
16415fi
16416
16417 ;;
16418
John Criswell7a73b802003-06-30 21:59:07 +000016419 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016420 { echo "$as_me:$LINENO: checking for shl_load" >&5
16421echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016422if test "${ac_cv_func_shl_load+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16424else
16425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016431/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16433#define shl_load innocuous_shl_load
16434
John Criswell7a73b802003-06-30 21:59:07 +000016435/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016436 which can conflict with char shl_load (); below.
16437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16438 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016439
John Criswell0c38eaf2003-09-10 15:17:25 +000016440#ifdef __STDC__
16441# include <limits.h>
16442#else
16443# include <assert.h>
16444#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016445
16446#undef shl_load
16447
Reid Spencera773bd52006-08-04 18:18:08 +000016448/* Override any GCC internal prototype to avoid an error.
16449 Use char because int might match the return type of a GCC
16450 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016451#ifdef __cplusplus
16452extern "C"
16453#endif
John Criswell7a73b802003-06-30 21:59:07 +000016454char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016455/* The GNU C library defines this for functions which it implements
16456 to always fail with ENOSYS. Some functions are actually named
16457 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016458#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016459choke me
John Criswell7a73b802003-06-30 21:59:07 +000016460#endif
16461
John Criswell0c38eaf2003-09-10 15:17:25 +000016462int
16463main ()
16464{
Reid Spencera773bd52006-08-04 18:18:08 +000016465return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016466 ;
16467 return 0;
16468}
16469_ACEOF
16470rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016471if { (ac_try="$ac_link"
16472case "(($ac_try" in
16473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474 *) ac_try_echo=$ac_try;;
16475esac
16476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016478 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16485 { (case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16488esac
16489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016491 ac_status=$?
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); }; } &&
16494 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016495 { (case "(($ac_try" in
16496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16497 *) ac_try_echo=$ac_try;;
16498esac
16499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16500 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016501 ac_status=$?
16502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503 (exit $ac_status); }; }; then
16504 ac_cv_func_shl_load=yes
16505else
16506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016507sed 's/^/| /' conftest.$ac_ext >&5
16508
Reid Spencera773bd52006-08-04 18:18:08 +000016509 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016510fi
Reid Spencera773bd52006-08-04 18:18:08 +000016511
16512rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016513 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016514fi
Reid Spencera773bd52006-08-04 18:18:08 +000016515{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16516echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016517if test $ac_cv_func_shl_load = yes; then
16518 lt_cv_dlopen="shl_load"
16519else
Reid Spencera773bd52006-08-04 18:18:08 +000016520 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16521echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016522if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16524else
16525 ac_check_lib_save_LIBS=$LIBS
16526LIBS="-ldld $LIBS"
16527cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016528/* confdefs.h. */
16529_ACEOF
16530cat confdefs.h >>conftest.$ac_ext
16531cat >>conftest.$ac_ext <<_ACEOF
16532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016533
Reid Spencera773bd52006-08-04 18:18:08 +000016534/* Override any GCC internal prototype to avoid an error.
16535 Use char because int might match the return type of a GCC
16536 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016537#ifdef __cplusplus
16538extern "C"
16539#endif
John Criswell7a73b802003-06-30 21:59:07 +000016540char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016541int
16542main ()
16543{
Reid Spencera773bd52006-08-04 18:18:08 +000016544return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016545 ;
16546 return 0;
16547}
16548_ACEOF
16549rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016550if { (ac_try="$ac_link"
16551case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16554esac
16555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016558 grep -v '^ *+' conftest.er1 >conftest.err
16559 rm -f conftest.er1
16560 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16564 { (case "(($ac_try" in
16565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566 *) ac_try_echo=$ac_try;;
16567esac
16568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016570 ac_status=$?
16571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572 (exit $ac_status); }; } &&
16573 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016574 { (case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577esac
16578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016580 ac_status=$?
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_cv_lib_dld_shl_load=yes
16584else
16585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016586sed 's/^/| /' conftest.$ac_ext >&5
16587
Reid Spencera773bd52006-08-04 18:18:08 +000016588 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016589fi
Reid Spencera773bd52006-08-04 18:18:08 +000016590
16591rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016592 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016593LIBS=$ac_check_lib_save_LIBS
16594fi
Reid Spencera773bd52006-08-04 18:18:08 +000016595{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16596echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016597if test $ac_cv_lib_dld_shl_load = yes; then
16598 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16599else
Reid Spencera773bd52006-08-04 18:18:08 +000016600 { echo "$as_me:$LINENO: checking for dlopen" >&5
16601echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016602if test "${ac_cv_func_dlopen+set}" = set; then
16603 echo $ECHO_N "(cached) $ECHO_C" >&6
16604else
16605 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016611/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16613#define dlopen innocuous_dlopen
16614
John Criswell7a73b802003-06-30 21:59:07 +000016615/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016616 which can conflict with char dlopen (); below.
16617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16618 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016619
John Criswell0c38eaf2003-09-10 15:17:25 +000016620#ifdef __STDC__
16621# include <limits.h>
16622#else
16623# include <assert.h>
16624#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016625
16626#undef dlopen
16627
Reid Spencera773bd52006-08-04 18:18:08 +000016628/* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016631#ifdef __cplusplus
16632extern "C"
16633#endif
John Criswell7a73b802003-06-30 21:59:07 +000016634char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016635/* The GNU C library defines this for functions which it implements
16636 to always fail with ENOSYS. Some functions are actually named
16637 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016638#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016639choke me
John Criswell7a73b802003-06-30 21:59:07 +000016640#endif
16641
John Criswell0c38eaf2003-09-10 15:17:25 +000016642int
16643main ()
16644{
Reid Spencera773bd52006-08-04 18:18:08 +000016645return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016646 ;
16647 return 0;
16648}
16649_ACEOF
16650rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016651if { (ac_try="$ac_link"
16652case "(($ac_try" in
16653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654 *) ac_try_echo=$ac_try;;
16655esac
16656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016659 grep -v '^ *+' conftest.er1 >conftest.err
16660 rm -f conftest.er1
16661 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16668esac
16669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016671 ac_status=$?
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; } &&
16674 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016675 { (case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16678esac
16679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016681 ac_status=$?
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); }; }; then
16684 ac_cv_func_dlopen=yes
16685else
16686 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016687sed 's/^/| /' conftest.$ac_ext >&5
16688
Reid Spencera773bd52006-08-04 18:18:08 +000016689 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016690fi
Reid Spencera773bd52006-08-04 18:18:08 +000016691
16692rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016693 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016694fi
Reid Spencera773bd52006-08-04 18:18:08 +000016695{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16696echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016697if test $ac_cv_func_dlopen = yes; then
16698 lt_cv_dlopen="dlopen"
16699else
Reid Spencera773bd52006-08-04 18:18:08 +000016700 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16701echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016702if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704else
16705 ac_check_lib_save_LIBS=$LIBS
16706LIBS="-ldl $LIBS"
16707cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016708/* confdefs.h. */
16709_ACEOF
16710cat confdefs.h >>conftest.$ac_ext
16711cat >>conftest.$ac_ext <<_ACEOF
16712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016713
Reid Spencera773bd52006-08-04 18:18:08 +000016714/* Override any GCC internal prototype to avoid an error.
16715 Use char because int might match the return type of a GCC
16716 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016717#ifdef __cplusplus
16718extern "C"
16719#endif
John Criswell7a73b802003-06-30 21:59:07 +000016720char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016721int
16722main ()
16723{
Reid Spencera773bd52006-08-04 18:18:08 +000016724return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016730if { (ac_try="$ac_link"
16731case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016738 grep -v '^ *+' conftest.er1 >conftest.err
16739 rm -f conftest.er1
16740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16744 { (case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16747esac
16748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016754 { (case "(($ac_try" in
16755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756 *) ac_try_echo=$ac_try;;
16757esac
16758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016760 ac_status=$?
16761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16762 (exit $ac_status); }; }; then
16763 ac_cv_lib_dl_dlopen=yes
16764else
16765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016766sed 's/^/| /' conftest.$ac_ext >&5
16767
Reid Spencera773bd52006-08-04 18:18:08 +000016768 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016769fi
Reid Spencera773bd52006-08-04 18:18:08 +000016770
16771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016773LIBS=$ac_check_lib_save_LIBS
16774fi
Reid Spencera773bd52006-08-04 18:18:08 +000016775{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16776echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016777if test $ac_cv_lib_dl_dlopen = yes; then
16778 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16779else
Reid Spencera773bd52006-08-04 18:18:08 +000016780 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16781echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016782if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784else
16785 ac_check_lib_save_LIBS=$LIBS
16786LIBS="-lsvld $LIBS"
16787cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016788/* confdefs.h. */
16789_ACEOF
16790cat confdefs.h >>conftest.$ac_ext
16791cat >>conftest.$ac_ext <<_ACEOF
16792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016793
Reid Spencera773bd52006-08-04 18:18:08 +000016794/* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016797#ifdef __cplusplus
16798extern "C"
16799#endif
John Criswell7a73b802003-06-30 21:59:07 +000016800char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016801int
16802main ()
16803{
Reid Spencera773bd52006-08-04 18:18:08 +000016804return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016805 ;
16806 return 0;
16807}
16808_ACEOF
16809rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016810if { (ac_try="$ac_link"
16811case "(($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_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827esac
16828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837esac
16838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_cv_lib_svld_dlopen=yes
16844else
16845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016846sed 's/^/| /' conftest.$ac_ext >&5
16847
Reid Spencera773bd52006-08-04 18:18:08 +000016848 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016849fi
Reid Spencera773bd52006-08-04 18:18:08 +000016850
16851rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016852 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016853LIBS=$ac_check_lib_save_LIBS
16854fi
Reid Spencera773bd52006-08-04 18:18:08 +000016855{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16856echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016857if test $ac_cv_lib_svld_dlopen = yes; then
16858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16859else
Reid Spencera773bd52006-08-04 18:18:08 +000016860 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16861echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016862if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16863 echo $ECHO_N "(cached) $ECHO_C" >&6
16864else
16865 ac_check_lib_save_LIBS=$LIBS
16866LIBS="-ldld $LIBS"
16867cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016873
Reid Spencera773bd52006-08-04 18:18:08 +000016874/* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016877#ifdef __cplusplus
16878extern "C"
16879#endif
John Criswell7a73b802003-06-30 21:59:07 +000016880char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016881int
16882main ()
16883{
Reid Spencera773bd52006-08-04 18:18:08 +000016884return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016885 ;
16886 return 0;
16887}
16888_ACEOF
16889rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016890if { (ac_try="$ac_link"
16891case "(($ac_try" in
16892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893 *) ac_try_echo=$ac_try;;
16894esac
16895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907esac
16908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016910 ac_status=$?
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; } &&
16913 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016914 { (case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16917esac
16918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); }; }; then
16923 ac_cv_lib_dld_dld_link=yes
16924else
16925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016926sed 's/^/| /' conftest.$ac_ext >&5
16927
Reid Spencera773bd52006-08-04 18:18:08 +000016928 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016929fi
Reid Spencera773bd52006-08-04 18:18:08 +000016930
16931rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016932 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016933LIBS=$ac_check_lib_save_LIBS
16934fi
Reid Spencera773bd52006-08-04 18:18:08 +000016935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16936echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016937if test $ac_cv_lib_dld_dld_link = yes; then
16938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16939fi
16940
16941
16942fi
16943
16944
16945fi
16946
16947
16948fi
16949
16950
16951fi
16952
16953
16954fi
16955
16956 ;;
16957 esac
16958
16959 if test "x$lt_cv_dlopen" != xno; then
16960 enable_dlopen=yes
16961 else
16962 enable_dlopen=no
16963 fi
16964
16965 case $lt_cv_dlopen in
16966 dlopen)
16967 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016968 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016969
16970 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016971 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016972
16973 save_LIBS="$LIBS"
16974 LIBS="$lt_cv_dlopen_libs $LIBS"
16975
Reid Spencera773bd52006-08-04 18:18:08 +000016976 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16977echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016978if test "${lt_cv_dlopen_self+set}" = set; then
16979 echo $ECHO_N "(cached) $ECHO_C" >&6
16980else
16981 if test "$cross_compiling" = yes; then :
16982 lt_cv_dlopen_self=cross
16983else
John Criswell47fdd832003-07-14 16:52:07 +000016984 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016985 lt_status=$lt_dlunknown
16986 cat > conftest.$ac_ext <<EOF
Reid Spencer8b2e1412006-11-17 03:32:33 +000016987#line 16987 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016988#include "confdefs.h"
16989
16990#if HAVE_DLFCN_H
16991#include <dlfcn.h>
16992#endif
16993
16994#include <stdio.h>
16995
16996#ifdef RTLD_GLOBAL
16997# define LT_DLGLOBAL RTLD_GLOBAL
16998#else
16999# ifdef DL_GLOBAL
17000# define LT_DLGLOBAL DL_GLOBAL
17001# else
17002# define LT_DLGLOBAL 0
17003# endif
17004#endif
17005
17006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17007 find out it does not work in some platform. */
17008#ifndef LT_DLLAZY_OR_NOW
17009# ifdef RTLD_LAZY
17010# define LT_DLLAZY_OR_NOW RTLD_LAZY
17011# else
17012# ifdef DL_LAZY
17013# define LT_DLLAZY_OR_NOW DL_LAZY
17014# else
17015# ifdef RTLD_NOW
17016# define LT_DLLAZY_OR_NOW RTLD_NOW
17017# else
17018# ifdef DL_NOW
17019# define LT_DLLAZY_OR_NOW DL_NOW
17020# else
17021# define LT_DLLAZY_OR_NOW 0
17022# endif
17023# endif
17024# endif
17025# endif
17026#endif
17027
17028#ifdef __cplusplus
17029extern "C" void exit (int);
17030#endif
17031
17032void fnord() { int i=42;}
17033int main ()
17034{
17035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17036 int status = $lt_dlunknown;
17037
17038 if (self)
17039 {
17040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17042 /* dlclose (self); */
17043 }
Reid Spencera773bd52006-08-04 18:18:08 +000017044 else
17045 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017046
17047 exit (status);
17048}
17049EOF
17050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17051 (eval $ac_link) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017055 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017056 lt_status=$?
17057 case x$lt_status in
17058 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17059 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017060 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017061 esac
17062 else :
17063 # compilation failed
17064 lt_cv_dlopen_self=no
17065 fi
17066fi
17067rm -fr conftest*
17068
17069
17070fi
Reid Spencera773bd52006-08-04 18:18:08 +000017071{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17072echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017073
17074 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017075 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17076 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17077echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017078if test "${lt_cv_dlopen_self_static+set}" = set; then
17079 echo $ECHO_N "(cached) $ECHO_C" >&6
17080else
17081 if test "$cross_compiling" = yes; then :
17082 lt_cv_dlopen_self_static=cross
17083else
John Criswell47fdd832003-07-14 16:52:07 +000017084 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017085 lt_status=$lt_dlunknown
17086 cat > conftest.$ac_ext <<EOF
Reid Spencer8b2e1412006-11-17 03:32:33 +000017087#line 17087 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017088#include "confdefs.h"
17089
17090#if HAVE_DLFCN_H
17091#include <dlfcn.h>
17092#endif
17093
17094#include <stdio.h>
17095
17096#ifdef RTLD_GLOBAL
17097# define LT_DLGLOBAL RTLD_GLOBAL
17098#else
17099# ifdef DL_GLOBAL
17100# define LT_DLGLOBAL DL_GLOBAL
17101# else
17102# define LT_DLGLOBAL 0
17103# endif
17104#endif
17105
17106/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17107 find out it does not work in some platform. */
17108#ifndef LT_DLLAZY_OR_NOW
17109# ifdef RTLD_LAZY
17110# define LT_DLLAZY_OR_NOW RTLD_LAZY
17111# else
17112# ifdef DL_LAZY
17113# define LT_DLLAZY_OR_NOW DL_LAZY
17114# else
17115# ifdef RTLD_NOW
17116# define LT_DLLAZY_OR_NOW RTLD_NOW
17117# else
17118# ifdef DL_NOW
17119# define LT_DLLAZY_OR_NOW DL_NOW
17120# else
17121# define LT_DLLAZY_OR_NOW 0
17122# endif
17123# endif
17124# endif
17125# endif
17126#endif
17127
17128#ifdef __cplusplus
17129extern "C" void exit (int);
17130#endif
17131
17132void fnord() { int i=42;}
17133int main ()
17134{
17135 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17136 int status = $lt_dlunknown;
17137
17138 if (self)
17139 {
17140 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17141 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17142 /* dlclose (self); */
17143 }
Reid Spencera773bd52006-08-04 18:18:08 +000017144 else
17145 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017146
17147 exit (status);
17148}
17149EOF
17150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17151 (eval $ac_link) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017155 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017156 lt_status=$?
17157 case x$lt_status in
17158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017161 esac
17162 else :
17163 # compilation failed
17164 lt_cv_dlopen_self_static=no
17165 fi
17166fi
17167rm -fr conftest*
17168
17169
17170fi
Reid Spencera773bd52006-08-04 18:18:08 +000017171{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17172echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017173 fi
17174
17175 CPPFLAGS="$save_CPPFLAGS"
17176 LDFLAGS="$save_LDFLAGS"
17177 LIBS="$save_LIBS"
17178 ;;
17179 esac
17180
17181 case $lt_cv_dlopen_self in
17182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17183 *) enable_dlopen_self=unknown ;;
17184 esac
17185
17186 case $lt_cv_dlopen_self_static in
17187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17188 *) enable_dlopen_self_static=unknown ;;
17189 esac
17190fi
17191
17192
Reid Spencera773bd52006-08-04 18:18:08 +000017193# Report which library types will actually be built
17194{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17195echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17196{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17197echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017198
Reid Spencera773bd52006-08-04 18:18:08 +000017199{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17200echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017201test "$can_build_shared" = "no" && enable_shared=no
17202
17203# On AIX, shared libraries and static libraries use the same namespace, and
17204# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017205case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017206aix3*)
17207 test "$enable_shared" = yes && enable_static=no
17208 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017209 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017210 postinstall_cmds='$RANLIB $lib'
17211 fi
17212 ;;
17213
Reid Spencer2706f8c2004-09-19 23:53:36 +000017214aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017215 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17216 test "$enable_shared" = yes && enable_static=no
17217 fi
John Criswell7a73b802003-06-30 21:59:07 +000017218 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017219esac
Reid Spencera773bd52006-08-04 18:18:08 +000017220{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17221echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017222
Reid Spencera773bd52006-08-04 18:18:08 +000017223{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17224echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017225# Make sure either enable_shared or enable_static is yes.
17226test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017227{ echo "$as_me:$LINENO: result: $enable_static" >&5
17228echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017229
17230# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017231# libtool distribution, otherwise you forgot to ship ltmain.sh
17232# with your package, and you will get complaints that there are
17233# no rules to generate ltmain.sh.
17234if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017235 # See if we are running on zsh, and set the options which allow our commands through
17236 # without removal of \ escapes.
17237 if test -n "${ZSH_VERSION+set}" ; then
17238 setopt NO_GLOB_SUBST
17239 fi
John Criswell7a73b802003-06-30 21:59:07 +000017240 # Now quote all the things that may contain metacharacters while being
17241 # careful not to overquote the AC_SUBSTed values. We take copies of the
17242 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017243 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017244 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017245 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17246 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17247 deplibs_check_method reload_flag reload_cmds need_locks \
17248 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17249 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017250 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017251 old_postinstall_cmds old_postuninstall_cmds \
17252 compiler \
17253 CC \
17254 LD \
17255 lt_prog_compiler_wl \
17256 lt_prog_compiler_pic \
17257 lt_prog_compiler_static \
17258 lt_prog_compiler_no_builtin_flag \
17259 export_dynamic_flag_spec \
17260 thread_safe_flag_spec \
17261 whole_archive_flag_spec \
17262 enable_shared_with_static_runtimes \
17263 old_archive_cmds \
17264 old_archive_from_new_cmds \
17265 predep_objects \
17266 postdep_objects \
17267 predeps \
17268 postdeps \
17269 compiler_lib_search_path \
17270 archive_cmds \
17271 archive_expsym_cmds \
17272 postinstall_cmds \
17273 postuninstall_cmds \
17274 old_archive_from_expsyms_cmds \
17275 allow_undefined_flag \
17276 no_undefined_flag \
17277 export_symbols_cmds \
17278 hardcode_libdir_flag_spec \
17279 hardcode_libdir_flag_spec_ld \
17280 hardcode_libdir_separator \
17281 hardcode_automatic \
17282 module_cmds \
17283 module_expsym_cmds \
17284 lt_cv_prog_compiler_c_o \
17285 exclude_expsyms \
17286 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017287
17288 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017289 old_archive_cmds | \
17290 old_archive_from_new_cmds | \
17291 archive_cmds | \
17292 archive_expsym_cmds | \
17293 module_cmds | \
17294 module_expsym_cmds | \
17295 old_archive_from_expsyms_cmds | \
17296 export_symbols_cmds | \
17297 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017298 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017299 old_postinstall_cmds | old_postuninstall_cmds | \
17300 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017301 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017302 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000017303 ;;
17304 *)
17305 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17306 ;;
17307 esac
17308 done
17309
John Criswell47fdd832003-07-14 16:52:07 +000017310 case $lt_echo in
17311 *'\$0 --fallback-echo"')
17312 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17313 ;;
17314 esac
17315
17316cfgfile="${ofile}T"
17317 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17318 $rm -f "$cfgfile"
17319 { echo "$as_me:$LINENO: creating $ofile" >&5
17320echo "$as_me: creating $ofile" >&6;}
17321
17322 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017323#! $SHELL
17324
John Criswell47fdd832003-07-14 16:52:07 +000017325# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017326# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17327# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17328#
John Criswell47fdd832003-07-14 16:52:07 +000017329# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17330# Free Software Foundation, Inc.
17331#
17332# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017333# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17334#
17335# This program is free software; you can redistribute it and/or modify
17336# it under the terms of the GNU General Public License as published by
17337# the Free Software Foundation; either version 2 of the License, or
17338# (at your option) any later version.
17339#
17340# This program is distributed in the hope that it will be useful, but
17341# WITHOUT ANY WARRANTY; without even the implied warranty of
17342# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17343# General Public License for more details.
17344#
17345# You should have received a copy of the GNU General Public License
17346# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017347# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017348#
17349# As a special exception to the GNU General Public License, if you
17350# distribute this file as part of a program that contains a
17351# configuration script generated by Autoconf, you may include it under
17352# the same distribution terms that you use for the rest of that program.
17353
John Criswell47fdd832003-07-14 16:52:07 +000017354# A sed program that does not truncate output.
17355SED=$lt_SED
17356
John Criswell7a73b802003-06-30 21:59:07 +000017357# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017358Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017359
17360# The HP-UX ksh and POSIX shell print the target directory to stdout
17361# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017362(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017363
John Criswell47fdd832003-07-14 16:52:07 +000017364# The names of the tagged configurations supported by this script.
17365available_tags=
17366
John Criswell7a73b802003-06-30 21:59:07 +000017367# ### BEGIN LIBTOOL CONFIG
17368
17369# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17370
17371# Shell to use when invoking shell scripts.
17372SHELL=$lt_SHELL
17373
17374# Whether or not to build shared libraries.
17375build_libtool_libs=$enable_shared
17376
17377# Whether or not to build static libraries.
17378build_old_libs=$enable_static
17379
17380# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017381build_libtool_need_lc=$archive_cmds_need_lc
17382
17383# Whether or not to disallow shared libs when runtime libs are static
17384allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017385
17386# Whether or not to optimize for fast installation.
17387fast_install=$enable_fast_install
17388
17389# The host system.
17390host_alias=$host_alias
17391host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017392host_os=$host_os
17393
17394# The build system.
17395build_alias=$build_alias
17396build=$build
17397build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017398
17399# An echo program that does not interpret backslashes.
17400echo=$lt_echo
17401
17402# The archiver.
17403AR=$lt_AR
17404AR_FLAGS=$lt_AR_FLAGS
17405
John Criswell47fdd832003-07-14 16:52:07 +000017406# A C compiler.
17407LTCC=$lt_LTCC
17408
Reid Spencera773bd52006-08-04 18:18:08 +000017409# LTCC compiler flags.
17410LTCFLAGS=$lt_LTCFLAGS
17411
John Criswell47fdd832003-07-14 16:52:07 +000017412# A language-specific compiler.
17413CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017414
17415# Is the compiler the GNU C compiler?
17416with_gcc=$GCC
17417
John Criswell47fdd832003-07-14 16:52:07 +000017418# An ERE matcher.
17419EGREP=$lt_EGREP
17420
John Criswell7a73b802003-06-30 21:59:07 +000017421# The linker used to build libraries.
17422LD=$lt_LD
17423
17424# Whether we need hard or soft links.
17425LN_S=$lt_LN_S
17426
17427# A BSD-compatible nm program.
17428NM=$lt_NM
17429
17430# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017431STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017432
17433# Used to examine libraries when file_magic_cmd begins "file"
17434MAGIC_CMD=$MAGIC_CMD
17435
17436# Used on cygwin: DLL creation program.
17437DLLTOOL="$DLLTOOL"
17438
17439# Used on cygwin: object dumper.
17440OBJDUMP="$OBJDUMP"
17441
17442# Used on cygwin: assembler.
17443AS="$AS"
17444
17445# The name of the directory that contains temporary libtool files.
17446objdir=$objdir
17447
17448# How to create reloadable object files.
17449reload_flag=$lt_reload_flag
17450reload_cmds=$lt_reload_cmds
17451
17452# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017453wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017454
17455# Object file suffix (normally "o").
17456objext="$ac_objext"
17457
17458# Old archive suffix (normally "a").
17459libext="$libext"
17460
John Criswell47fdd832003-07-14 16:52:07 +000017461# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017462shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017463
John Criswell7a73b802003-06-30 21:59:07 +000017464# Executable file suffix (normally "").
17465exeext="$exeext"
17466
17467# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017468pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017469pic_mode=$pic_mode
17470
John Criswell47fdd832003-07-14 16:52:07 +000017471# What is the maximum length of a command?
17472max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017473
John Criswell47fdd832003-07-14 16:52:07 +000017474# Does compiler simultaneously support -c and -o options?
17475compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017476
Reid Spencera773bd52006-08-04 18:18:08 +000017477# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017478need_locks=$lt_need_locks
17479
17480# Do we need the lib prefix for modules?
17481need_lib_prefix=$need_lib_prefix
17482
17483# Do we need a version for libraries?
17484need_version=$need_version
17485
17486# Whether dlopen is supported.
17487dlopen_support=$enable_dlopen
17488
17489# Whether dlopen of programs is supported.
17490dlopen_self=$enable_dlopen_self
17491
17492# Whether dlopen of statically linked programs is supported.
17493dlopen_self_static=$enable_dlopen_self_static
17494
17495# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017496link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017497
17498# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017499no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017500
17501# Compiler flag to allow reflexive dlopens.
17502export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17503
17504# Compiler flag to generate shared objects directly from archives.
17505whole_archive_flag_spec=$lt_whole_archive_flag_spec
17506
17507# Compiler flag to generate thread-safe objects.
17508thread_safe_flag_spec=$lt_thread_safe_flag_spec
17509
17510# Library versioning type.
17511version_type=$version_type
17512
17513# Format of library name prefix.
17514libname_spec=$lt_libname_spec
17515
17516# List of archive names. First name is the real one, the rest are links.
17517# The last name is the one that the linker finds with -lNAME.
17518library_names_spec=$lt_library_names_spec
17519
17520# The coded name of the library, if different from the real name.
17521soname_spec=$lt_soname_spec
17522
17523# Commands used to build and install an old-style archive.
17524RANLIB=$lt_RANLIB
17525old_archive_cmds=$lt_old_archive_cmds
17526old_postinstall_cmds=$lt_old_postinstall_cmds
17527old_postuninstall_cmds=$lt_old_postuninstall_cmds
17528
17529# Create an old-style archive from a shared archive.
17530old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17531
17532# Create a temporary old-style archive to link instead of a shared archive.
17533old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17534
17535# Commands used to build and install a shared archive.
17536archive_cmds=$lt_archive_cmds
17537archive_expsym_cmds=$lt_archive_expsym_cmds
17538postinstall_cmds=$lt_postinstall_cmds
17539postuninstall_cmds=$lt_postuninstall_cmds
17540
John Criswell47fdd832003-07-14 16:52:07 +000017541# Commands used to build a loadable module (assumed same as above if empty)
17542module_cmds=$lt_module_cmds
17543module_expsym_cmds=$lt_module_expsym_cmds
17544
John Criswell7a73b802003-06-30 21:59:07 +000017545# Commands to strip libraries.
17546old_striplib=$lt_old_striplib
17547striplib=$lt_striplib
17548
John Criswell47fdd832003-07-14 16:52:07 +000017549# Dependencies to place before the objects being linked to create a
17550# shared library.
17551predep_objects=$lt_predep_objects
17552
17553# Dependencies to place after the objects being linked to create a
17554# shared library.
17555postdep_objects=$lt_postdep_objects
17556
17557# Dependencies to place before the objects being linked to create a
17558# shared library.
17559predeps=$lt_predeps
17560
17561# Dependencies to place after the objects being linked to create a
17562# shared library.
17563postdeps=$lt_postdeps
17564
17565# The library search path used internally by the compiler when linking
17566# a shared library.
17567compiler_lib_search_path=$lt_compiler_lib_search_path
17568
John Criswell7a73b802003-06-30 21:59:07 +000017569# Method to check whether dependent libraries are shared objects.
17570deplibs_check_method=$lt_deplibs_check_method
17571
17572# Command to use when deplibs_check_method == file_magic.
17573file_magic_cmd=$lt_file_magic_cmd
17574
17575# Flag that allows shared libraries with undefined symbols to be built.
17576allow_undefined_flag=$lt_allow_undefined_flag
17577
17578# Flag that forces no undefined symbols.
17579no_undefined_flag=$lt_no_undefined_flag
17580
17581# Commands used to finish a libtool library installation in a directory.
17582finish_cmds=$lt_finish_cmds
17583
17584# Same as above, but a single script fragment to be evaled but not shown.
17585finish_eval=$lt_finish_eval
17586
17587# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017588global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017589
17590# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017591global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017592
17593# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017594global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017595
17596# This is the shared library runtime path variable.
17597runpath_var=$runpath_var
17598
17599# This is the shared library path variable.
17600shlibpath_var=$shlibpath_var
17601
17602# Is shlibpath searched before the hard-coded library search path?
17603shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17604
17605# How to hardcode a shared library path into an executable.
17606hardcode_action=$hardcode_action
17607
17608# Whether we should hardcode library paths into libraries.
17609hardcode_into_libs=$hardcode_into_libs
17610
17611# Flag to hardcode \$libdir into a binary during linking.
17612# This must work even if \$libdir does not exist.
17613hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17614
John Criswell47fdd832003-07-14 16:52:07 +000017615# If ld is used when linking, flag to hardcode \$libdir into
17616# a binary during linking. This must work even if \$libdir does
17617# not exist.
17618hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17619
John Criswell7a73b802003-06-30 21:59:07 +000017620# Whether we need a single -rpath flag with a separated argument.
17621hardcode_libdir_separator=$lt_hardcode_libdir_separator
17622
John Criswell47fdd832003-07-14 16:52:07 +000017623# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017624# resulting binary.
17625hardcode_direct=$hardcode_direct
17626
17627# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17628# resulting binary.
17629hardcode_minus_L=$hardcode_minus_L
17630
17631# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17632# the resulting binary.
17633hardcode_shlibpath_var=$hardcode_shlibpath_var
17634
John Criswell47fdd832003-07-14 16:52:07 +000017635# Set to yes if building a shared library automatically hardcodes DIR into the library
17636# and all subsequent libraries and executables linked against it.
17637hardcode_automatic=$hardcode_automatic
17638
John Criswell7a73b802003-06-30 21:59:07 +000017639# Variables whose values should be saved in libtool wrapper scripts and
17640# restored at relink time.
17641variables_saved_for_relink="$variables_saved_for_relink"
17642
17643# Whether libtool must link a program against all its dependency libraries.
17644link_all_deplibs=$link_all_deplibs
17645
17646# Compile-time system search path for libraries
17647sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17648
17649# Run-time system search path for libraries
17650sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17651
17652# Fix the shell variable \$srcfile for the compiler.
17653fix_srcfile_path="$fix_srcfile_path"
17654
17655# Set to yes if exported symbols are required.
17656always_export_symbols=$always_export_symbols
17657
17658# The commands to list exported symbols.
17659export_symbols_cmds=$lt_export_symbols_cmds
17660
17661# The commands to extract the exported symbol list from a shared archive.
17662extract_expsyms_cmds=$lt_extract_expsyms_cmds
17663
17664# Symbols that should not be listed in the preloaded symbols.
17665exclude_expsyms=$lt_exclude_expsyms
17666
17667# Symbols that must always be exported.
17668include_expsyms=$lt_include_expsyms
17669
17670# ### END LIBTOOL CONFIG
17671
17672__EOF__
17673
John Criswell47fdd832003-07-14 16:52:07 +000017674
John Criswell7a73b802003-06-30 21:59:07 +000017675 case $host_os in
17676 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017677 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017678
17679# AIX sometimes has problems with the GCC collect2 program. For some
17680# reason, if we set the COLLECT_NAMES environment variable, the problems
17681# vanish in a puff of smoke.
17682if test "X${COLLECT_NAMES+set}" != Xset; then
17683 COLLECT_NAMES=
17684 export COLLECT_NAMES
17685fi
17686EOF
17687 ;;
17688 esac
17689
John Criswell7a73b802003-06-30 21:59:07 +000017690 # We use sed instead of cat because bash on DJGPP gets confused if
17691 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17692 # text mode, it properly converts lines to CR/LF. This bash problem
17693 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017694 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017695
John Criswell47fdd832003-07-14 16:52:07 +000017696 mv -f "$cfgfile" "$ofile" || \
17697 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017698 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017699
17700else
17701 # If there is no Makefile yet, we rely on a make rule to execute
17702 # `config.status --recheck' to rerun these tests and create the
17703 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017704 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17705 if test -f "$ltmain_in"; then
17706 test -f Makefile && make "$ltmain"
17707 fi
John Criswell7a73b802003-06-30 21:59:07 +000017708fi
John Criswell7a73b802003-06-30 21:59:07 +000017709
17710
John Criswell47fdd832003-07-14 16:52:07 +000017711ac_ext=c
17712ac_cpp='$CPP $CPPFLAGS'
17713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17715ac_compiler_gnu=$ac_cv_c_compiler_gnu
17716
17717CC="$lt_save_CC"
17718
17719
Reid Spencera773bd52006-08-04 18:18:08 +000017720# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017721if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017722 withval=$with_tags; tagnames="$withval"
17723fi
17724
John Criswell47fdd832003-07-14 16:52:07 +000017725
17726if test -f "$ltmain" && test -n "$tagnames"; then
17727 if test ! -f "${ofile}"; then
17728 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17729echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17730 fi
17731
17732 if test -z "$LTCC"; then
17733 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17734 if test -z "$LTCC"; then
17735 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17736echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17737 else
17738 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17739echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17740 fi
17741 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017742 if test -z "$LTCFLAGS"; then
17743 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17744 fi
John Criswell47fdd832003-07-14 16:52:07 +000017745
17746 # Extract list of available tagged configurations in $ofile.
17747 # Note that this assumes the entire list is on one line.
17748 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17749
17750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17751 for tagname in $tagnames; do
17752 IFS="$lt_save_ifs"
17753 # Check whether tagname contains only valid characters
17754 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17755 "") ;;
17756 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17757echo "$as_me: error: invalid tag name: $tagname" >&2;}
17758 { (exit 1); exit 1; }; }
17759 ;;
17760 esac
17761
17762 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17763 then
17764 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17765echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17766 { (exit 1); exit 1; }; }
17767 fi
17768
17769 # Update the list of available tags.
17770 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017771 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017772
17773 case $tagname in
17774 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017775 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17776 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17777 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017778 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017779ac_cpp='$CXXCPP $CPPFLAGS'
17780ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17781ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17782ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17783
17784
17785
17786
17787archive_cmds_need_lc_CXX=no
17788allow_undefined_flag_CXX=
17789always_export_symbols_CXX=no
17790archive_expsym_cmds_CXX=
17791export_dynamic_flag_spec_CXX=
17792hardcode_direct_CXX=no
17793hardcode_libdir_flag_spec_CXX=
17794hardcode_libdir_flag_spec_ld_CXX=
17795hardcode_libdir_separator_CXX=
17796hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017797hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017798hardcode_automatic_CXX=no
17799module_cmds_CXX=
17800module_expsym_cmds_CXX=
17801link_all_deplibs_CXX=unknown
17802old_archive_cmds_CXX=$old_archive_cmds
17803no_undefined_flag_CXX=
17804whole_archive_flag_spec_CXX=
17805enable_shared_with_static_runtimes_CXX=no
17806
17807# Dependencies to place before and after the object being linked:
17808predep_objects_CXX=
17809postdep_objects_CXX=
17810predeps_CXX=
17811postdeps_CXX=
17812compiler_lib_search_path_CXX=
17813
17814# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017815ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017816
17817# Object file extension for compiled C++ test sources.
17818objext=o
17819objext_CXX=$objext
17820
17821# Code to be used in simple compile tests
17822lt_simple_compile_test_code="int some_variable = 0;\n"
17823
17824# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017825lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017826
17827# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17828
17829# If no C compiler was specified, use CC.
17830LTCC=${LTCC-"$CC"}
17831
Reid Spencera773bd52006-08-04 18:18:08 +000017832# If no C compiler flags were specified, use CFLAGS.
17833LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17834
John Criswell47fdd832003-07-14 16:52:07 +000017835# Allow CC to be a program name with arguments.
17836compiler=$CC
17837
17838
Reid Spencera773bd52006-08-04 18:18:08 +000017839# save warnings/boilerplate of simple test code
17840ac_outfile=conftest.$ac_objext
17841printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17842eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17843_lt_compiler_boilerplate=`cat conftest.err`
17844$rm conftest*
17845
17846ac_outfile=conftest.$ac_objext
17847printf "$lt_simple_link_test_code" >conftest.$ac_ext
17848eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17849_lt_linker_boilerplate=`cat conftest.err`
17850$rm conftest*
17851
17852
John Criswell47fdd832003-07-14 16:52:07 +000017853# Allow CC to be a program name with arguments.
17854lt_save_CC=$CC
17855lt_save_LD=$LD
17856lt_save_GCC=$GCC
17857GCC=$GXX
17858lt_save_with_gnu_ld=$with_gnu_ld
17859lt_save_path_LD=$lt_cv_path_LD
17860if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17861 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17862else
Reid Spencera773bd52006-08-04 18:18:08 +000017863 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017864fi
17865if test -n "${lt_cv_path_LDCXX+set}"; then
17866 lt_cv_path_LD=$lt_cv_path_LDCXX
17867else
Reid Spencera773bd52006-08-04 18:18:08 +000017868 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017869fi
17870test -z "${LDCXX+set}" || LD=$LDCXX
17871CC=${CXX-"c++"}
17872compiler=$CC
17873compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017874for cc_temp in $compiler""; do
17875 case $cc_temp in
17876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17878 \-*) ;;
17879 *) break;;
17880 esac
17881done
17882cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17883
John Criswell47fdd832003-07-14 16:52:07 +000017884
17885# We don't want -fno-exception wen compiling C++ code, so set the
17886# no_builtin_flag separately
17887if test "$GXX" = yes; then
17888 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17889else
17890 lt_prog_compiler_no_builtin_flag_CXX=
17891fi
17892
17893if test "$GXX" = yes; then
17894 # Set up default GNU C++ configuration
17895
17896
Reid Spencera773bd52006-08-04 18:18:08 +000017897# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017898if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017900else
17901 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017902fi
17903
John Criswell47fdd832003-07-14 16:52:07 +000017904ac_prog=ld
17905if test "$GCC" = yes; then
17906 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017907 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17908echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017909 case $host in
17910 *-*-mingw*)
17911 # gcc leaves a trailing carriage return which upsets mingw
17912 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17913 *)
17914 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17915 esac
17916 case $ac_prog in
17917 # Accept absolute paths.
17918 [\\/]* | ?:[\\/]*)
17919 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017920 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017921 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17922 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17923 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17924 done
17925 test -z "$LD" && LD="$ac_prog"
17926 ;;
17927 "")
17928 # If it fails, then pretend we aren't using GCC.
17929 ac_prog=ld
17930 ;;
17931 *)
17932 # If it is relative, then search for the first ld in PATH.
17933 with_gnu_ld=unknown
17934 ;;
17935 esac
17936elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017937 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17938echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017939else
Reid Spencera773bd52006-08-04 18:18:08 +000017940 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17941echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017942fi
17943if test "${lt_cv_path_LD+set}" = set; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17945else
17946 if test -z "$LD"; then
17947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17948 for ac_dir in $PATH; do
17949 IFS="$lt_save_ifs"
17950 test -z "$ac_dir" && ac_dir=.
17951 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17952 lt_cv_path_LD="$ac_dir/$ac_prog"
17953 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017954 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017955 # Break only if it was the GNU/non-GNU ld that we prefer.
17956 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17957 *GNU* | *'with BFD'*)
17958 test "$with_gnu_ld" != no && break
17959 ;;
17960 *)
17961 test "$with_gnu_ld" != yes && break
17962 ;;
17963 esac
17964 fi
17965 done
17966 IFS="$lt_save_ifs"
17967else
17968 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17969fi
17970fi
17971
17972LD="$lt_cv_path_LD"
17973if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017974 { echo "$as_me:$LINENO: result: $LD" >&5
17975echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017976else
Reid Spencera773bd52006-08-04 18:18:08 +000017977 { echo "$as_me:$LINENO: result: no" >&5
17978echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017979fi
17980test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17981echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17982 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017983{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17984echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017985if test "${lt_cv_prog_gnu_ld+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
Reid Spencera773bd52006-08-04 18:18:08 +000017988 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017989case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017990*GNU* | *'with BFD'*)
17991 lt_cv_prog_gnu_ld=yes
17992 ;;
17993*)
17994 lt_cv_prog_gnu_ld=no
17995 ;;
17996esac
17997fi
Reid Spencera773bd52006-08-04 18:18:08 +000017998{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17999echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018000with_gnu_ld=$lt_cv_prog_gnu_ld
18001
18002
18003
18004 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18005 # archiving commands below assume that GNU ld is being used.
18006 if test "$with_gnu_ld" = yes; then
18007 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18008 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'
18009
18010 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18011 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18012
18013 # If archive_cmds runs LD, not CC, wlarc should be empty
18014 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18015 # investigate it a little bit more. (MM)
18016 wlarc='${wl}'
18017
18018 # ancient GNU ld didn't support --whole-archive et. al.
18019 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18020 grep 'no-whole-archive' > /dev/null; then
18021 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18022 else
18023 whole_archive_flag_spec_CXX=
18024 fi
18025 else
18026 with_gnu_ld=no
18027 wlarc=
18028
18029 # A generic and very simple default shared library creation
18030 # command for GNU C++ for the case where it uses the native
18031 # linker, instead of GNU ld. If possible, this setting should
18032 # overridden to take advantage of the native linker features on
18033 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018034 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018035 fi
18036
18037 # Commands to make compiler produce verbose output that lists
18038 # what "hidden" libraries, object files and flags are used when
18039 # linking a shared library.
18040 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18041
18042else
18043 GXX=no
18044 with_gnu_ld=no
18045 wlarc=
18046fi
18047
18048# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018049{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18050echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018051ld_shlibs_CXX=yes
18052case $host_os in
18053 aix3*)
18054 # FIXME: insert proper C++ library support
18055 ld_shlibs_CXX=no
18056 ;;
18057 aix4* | aix5*)
18058 if test "$host_cpu" = ia64; then
18059 # On IA64, the linker does run time linking by default, so we don't
18060 # have to do anything special.
18061 aix_use_runtimelinking=no
18062 exp_sym_flag='-Bexport'
18063 no_entry_flag=""
18064 else
18065 aix_use_runtimelinking=no
18066
18067 # Test if we are trying to use run time linking or normal
18068 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18069 # need to do runtime linking.
18070 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18071 for ld_flag in $LDFLAGS; do
18072 case $ld_flag in
18073 *-brtl*)
18074 aix_use_runtimelinking=yes
18075 break
18076 ;;
18077 esac
18078 done
Reid Spencera773bd52006-08-04 18:18:08 +000018079 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018080 esac
18081
18082 exp_sym_flag='-bexport'
18083 no_entry_flag='-bnoentry'
18084 fi
18085
18086 # When large executables or shared objects are built, AIX ld can
18087 # have problems creating the table of contents. If linking a library
18088 # or program results in "error TOC overflow" add -mminimal-toc to
18089 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18090 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18091
18092 archive_cmds_CXX=''
18093 hardcode_direct_CXX=yes
18094 hardcode_libdir_separator_CXX=':'
18095 link_all_deplibs_CXX=yes
18096
18097 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018098 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018099 # We only want to do this on AIX 4.2 and lower, the check
18100 # below for broken collect2 doesn't work under 4.3+
18101 collect2name=`${CC} -print-prog-name=collect2`
18102 if test -f "$collect2name" && \
18103 strings "$collect2name" | grep resolve_lib_name >/dev/null
18104 then
18105 # We have reworked collect2
18106 hardcode_direct_CXX=yes
18107 else
18108 # We have old collect2
18109 hardcode_direct_CXX=unsupported
18110 # It fails to find uninstalled libraries when the uninstalled
18111 # path is not listed in the libpath. Setting hardcode_minus_L
18112 # to unsupported forces relinking
18113 hardcode_minus_L_CXX=yes
18114 hardcode_libdir_flag_spec_CXX='-L$libdir'
18115 hardcode_libdir_separator_CXX=
18116 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018117 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018118 esac
18119 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018120 if test "$aix_use_runtimelinking" = yes; then
18121 shared_flag="$shared_flag "'${wl}-G'
18122 fi
John Criswell47fdd832003-07-14 16:52:07 +000018123 else
18124 # not using gcc
18125 if test "$host_cpu" = ia64; then
18126 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18127 # chokes on -Wl,-G. The following line is correct:
18128 shared_flag='-G'
18129 else
18130 if test "$aix_use_runtimelinking" = yes; then
18131 shared_flag='${wl}-G'
18132 else
18133 shared_flag='${wl}-bM:SRE'
18134 fi
18135 fi
18136 fi
18137
18138 # It seems that -bexpall does not export symbols beginning with
18139 # underscore (_), so it is better to generate a list of symbols to export.
18140 always_export_symbols_CXX=yes
18141 if test "$aix_use_runtimelinking" = yes; then
18142 # Warning - without using the other runtime loading flags (-brtl),
18143 # -berok will link without error, but may produce a broken library.
18144 allow_undefined_flag_CXX='-berok'
18145 # Determine the default libpath from the value encoded in an empty executable.
18146 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018147/* confdefs.h. */
18148_ACEOF
18149cat confdefs.h >>conftest.$ac_ext
18150cat >>conftest.$ac_ext <<_ACEOF
18151/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018152
John Criswell47fdd832003-07-14 16:52:07 +000018153int
18154main ()
18155{
18156
18157 ;
18158 return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018162if { (ac_try="$ac_link"
18163case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166esac
18167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18168 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018169 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018170 grep -v '^ *+' conftest.er1 >conftest.err
18171 rm -f conftest.er1
18172 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018175 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18179esac
18180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018182 ac_status=$?
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018186 { (case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189esac
18190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018192 ac_status=$?
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); }; }; then
18195
18196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18197}'`
18198# Check for a 64-bit object if we didn't find anything.
18199if 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; }
18200}'`; fi
18201else
18202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018203sed 's/^/| /' conftest.$ac_ext >&5
18204
Reid Spencera773bd52006-08-04 18:18:08 +000018205
John Criswell47fdd832003-07-14 16:52:07 +000018206fi
Reid Spencera773bd52006-08-04 18:18:08 +000018207
18208rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018209 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018210if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18211
18212 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18213
Reid Spencera773bd52006-08-04 18:18:08 +000018214 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"
John Criswell47fdd832003-07-14 16:52:07 +000018215 else
18216 if test "$host_cpu" = ia64; then
18217 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18218 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018219 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"
John Criswell47fdd832003-07-14 16:52:07 +000018220 else
18221 # Determine the default libpath from the value encoded in an empty executable.
18222 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018223/* confdefs.h. */
18224_ACEOF
18225cat confdefs.h >>conftest.$ac_ext
18226cat >>conftest.$ac_ext <<_ACEOF
18227/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018228
John Criswell47fdd832003-07-14 16:52:07 +000018229int
18230main ()
18231{
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018238if { (ac_try="$ac_link"
18239case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18242esac
18243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018246 grep -v '^ *+' conftest.er1 >conftest.err
18247 rm -f conftest.er1
18248 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18252 { (case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18255esac
18256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018258 ac_status=$?
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); }; } &&
18261 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18265esac
18266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271
18272aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18273}'`
18274# Check for a 64-bit object if we didn't find anything.
18275if 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; }
18276}'`; fi
18277else
18278 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018279sed 's/^/| /' conftest.$ac_ext >&5
18280
Reid Spencera773bd52006-08-04 18:18:08 +000018281
John Criswell47fdd832003-07-14 16:52:07 +000018282fi
Reid Spencera773bd52006-08-04 18:18:08 +000018283
18284rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018285 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018286if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18287
18288 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18289 # Warning - without using the other run time loading flags,
18290 # -berok will link without error, but may produce a broken library.
18291 no_undefined_flag_CXX=' ${wl}-bernotok'
18292 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018293 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018294 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018295 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018296 # This is similar to how AIX traditionally builds its shared libraries.
18297 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'
John Criswell47fdd832003-07-14 16:52:07 +000018298 fi
18299 fi
18300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018301
18302 beos*)
18303 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18304 allow_undefined_flag_CXX=unsupported
18305 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18306 # support --undefined. This deserves some investigation. FIXME
18307 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18308 else
18309 ld_shlibs_CXX=no
18310 fi
18311 ;;
18312
John Criswell47fdd832003-07-14 16:52:07 +000018313 chorus*)
18314 case $cc_basename in
18315 *)
18316 # FIXME: insert proper C++ library support
18317 ld_shlibs_CXX=no
18318 ;;
18319 esac
18320 ;;
18321
18322 cygwin* | mingw* | pw32*)
18323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18324 # as there is no search path for DLLs.
18325 hardcode_libdir_flag_spec_CXX='-L$libdir'
18326 allow_undefined_flag_CXX=unsupported
18327 always_export_symbols_CXX=no
18328 enable_shared_with_static_runtimes_CXX=yes
18329
18330 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018331 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'
John Criswell47fdd832003-07-14 16:52:07 +000018332 # If the export-symbols file already is a .def file (1st line
18333 # is EXPORTS), use it as is; otherwise, prepend...
18334 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18335 cp $export_symbols $output_objdir/$soname.def;
18336 else
18337 echo EXPORTS > $output_objdir/$soname.def;
18338 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018339 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018340 $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'
John Criswell47fdd832003-07-14 16:52:07 +000018341 else
18342 ld_shlibs_CXX=no
18343 fi
18344 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018345 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018346 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018347 rhapsody* | darwin1.[012])
18348 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18349 ;;
18350 *) # Darwin 1.3 on
18351 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18352 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18353 else
18354 case ${MACOSX_DEPLOYMENT_TARGET} in
18355 10.[012])
18356 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18357 ;;
18358 10.*)
18359 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18360 ;;
18361 esac
18362 fi
18363 ;;
18364 esac
18365 archive_cmds_need_lc_CXX=no
18366 hardcode_direct_CXX=no
18367 hardcode_automatic_CXX=yes
18368 hardcode_shlibpath_var_CXX=unsupported
18369 whole_archive_flag_spec_CXX=''
18370 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018371
Reid Spencer2706f8c2004-09-19 23:53:36 +000018372 if test "$GXX" = yes ; then
18373 lt_int_apple_cc_single_mod=no
18374 output_verbose_link_cmd='echo'
18375 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18376 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018377 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018379 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000018380 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018381 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018382 fi
18383 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018384 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer2706f8c2004-09-19 23:53:36 +000018385 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018386 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018387 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018388 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018389 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018390 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018391 else
Reid Spencera773bd52006-08-04 18:18:08 +000018392 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018393 xlc*)
18394 output_verbose_link_cmd='echo'
18395 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'
18396 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018397 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000018398 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}'
18399 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018400 ;;
18401 *)
18402 ld_shlibs_CXX=no
18403 ;;
18404 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018405 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018406 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018407
18408 dgux*)
18409 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018410 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018411 # FIXME: insert proper C++ library support
18412 ld_shlibs_CXX=no
18413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018414 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018415 # Green Hills C++ Compiler
18416 # FIXME: insert proper C++ library support
18417 ld_shlibs_CXX=no
18418 ;;
18419 *)
18420 # FIXME: insert proper C++ library support
18421 ld_shlibs_CXX=no
18422 ;;
18423 esac
18424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018425 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018426 # C++ shared libraries reported to be fairly broken before switch to ELF
18427 ld_shlibs_CXX=no
18428 ;;
18429 freebsd-elf*)
18430 archive_cmds_need_lc_CXX=no
18431 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018432 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018433 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18434 # conventions
18435 ld_shlibs_CXX=yes
18436 ;;
18437 gnu*)
18438 ;;
18439 hpux9*)
18440 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18441 hardcode_libdir_separator_CXX=:
18442 export_dynamic_flag_spec_CXX='${wl}-E'
18443 hardcode_direct_CXX=yes
18444 hardcode_minus_L_CXX=yes # Not in the search PATH,
18445 # but as the default
18446 # location of the library.
18447
18448 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018449 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018450 # FIXME: insert proper C++ library support
18451 ld_shlibs_CXX=no
18452 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018453 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018454 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'
John Criswell47fdd832003-07-14 16:52:07 +000018455 # Commands to make compiler produce verbose output that lists
18456 # what "hidden" libraries, object files and flags are used when
18457 # linking a shared library.
18458 #
18459 # There doesn't appear to be a way to prevent this compiler from
18460 # explicitly linking system object files so we need to strip them
18461 # from the output so that they don't get included in the library
18462 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018463 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'
John Criswell47fdd832003-07-14 16:52:07 +000018464 ;;
18465 *)
18466 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018467 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'
John Criswell47fdd832003-07-14 16:52:07 +000018468 else
18469 # FIXME: insert proper C++ library support
18470 ld_shlibs_CXX=no
18471 fi
18472 ;;
18473 esac
18474 ;;
18475 hpux10*|hpux11*)
18476 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018477 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18478 hardcode_libdir_separator_CXX=:
18479
18480 case $host_cpu in
18481 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018482 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018483 ;;
18484 *)
John Criswell47fdd832003-07-14 16:52:07 +000018485 export_dynamic_flag_spec_CXX='${wl}-E'
18486 ;;
18487 esac
18488 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018489 case $host_cpu in
18490 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018491 hardcode_direct_CXX=no
18492 hardcode_shlibpath_var_CXX=no
18493 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018494 *)
18495 hardcode_direct_CXX=yes
18496 hardcode_minus_L_CXX=yes # Not in the search PATH,
18497 # but as the default
18498 # location of the library.
18499 ;;
18500 esac
18501
18502 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018503 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018504 # FIXME: insert proper C++ library support
18505 ld_shlibs_CXX=no
18506 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018507 aCC*)
18508 case $host_cpu in
18509 hppa*64*)
18510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18511 ;;
18512 ia64*)
18513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000018514 ;;
18515 *)
18516 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18517 ;;
18518 esac
18519 # Commands to make compiler produce verbose output that lists
18520 # what "hidden" libraries, object files and flags are used when
18521 # linking a shared library.
18522 #
18523 # There doesn't appear to be a way to prevent this compiler from
18524 # explicitly linking system object files so we need to strip them
18525 # from the output so that they don't get included in the library
18526 # dependencies.
18527 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'
18528 ;;
18529 *)
18530 if test "$GXX" = yes; then
18531 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018532 case $host_cpu in
18533 hppa*64*)
18534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18535 ;;
18536 ia64*)
18537 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000018538 ;;
18539 *)
18540 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'
18541 ;;
18542 esac
18543 fi
18544 else
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 fi
18548 ;;
18549 esac
18550 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018551 interix3*)
18552 hardcode_direct_CXX=no
18553 hardcode_shlibpath_var_CXX=no
18554 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18555 export_dynamic_flag_spec_CXX='${wl}-E'
18556 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18557 # Instead, shared libraries are loaded at an image base (0x10000000 by
18558 # default) and relocated if they conflict, which is a slow very memory
18559 # consuming and fragmenting process. To avoid this, we pick a random,
18560 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18561 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18562 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'
18563 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'
18564 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018565 irix5* | irix6*)
18566 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018567 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018568 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018569 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'
John Criswell47fdd832003-07-14 16:52:07 +000018570
18571 # Archives containing C++ object files must be created using
18572 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18573 # necessary to make sure instantiated templates are included
18574 # in the archive.
18575 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18576 ;;
18577 *)
18578 if test "$GXX" = yes; then
18579 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018580 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'
John Criswell47fdd832003-07-14 16:52:07 +000018581 else
18582 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'
18583 fi
18584 fi
18585 link_all_deplibs_CXX=yes
18586 ;;
18587 esac
18588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18589 hardcode_libdir_separator_CXX=:
18590 ;;
18591 linux*)
18592 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018593 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018594 # Kuck and Associates, Inc. (KAI) C++ Compiler
18595
18596 # KCC will only create a shared library if the output file
18597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18598 # to its proper name (with version) after linking.
18599 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'
18600 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'
18601 # Commands to make compiler produce verbose output that lists
18602 # what "hidden" libraries, object files and flags are used when
18603 # linking a shared library.
18604 #
18605 # There doesn't appear to be a way to prevent this compiler from
18606 # explicitly linking system object files so we need to strip them
18607 # from the output so that they don't get included in the library
18608 # dependencies.
18609 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'
18610
18611 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18613
18614 # Archives containing C++ object files must be created using
18615 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18616 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018618 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018619 # Intel C++
18620 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018621 # version 8.0 and above of icpc choke on multiply defined symbols
18622 # if we add $predep_objects and $postdep_objects, however 7.1 and
18623 # earlier do not add the objects themselves.
18624 case `$CC -V 2>&1` in
18625 *"Version 7."*)
18626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18627 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'
18628 ;;
18629 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018630 tmp_idyn=
18631 case $host_cpu in
18632 ia64*) tmp_idyn=' -i_dynamic';;
18633 esac
18634 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18635 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'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018636 ;;
18637 esac
John Criswell47fdd832003-07-14 16:52:07 +000018638 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018643 pgCC*)
18644 # Portland Group C++ compiler
18645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18646 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'
18647
18648 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18650 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'
18651 ;;
18652 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018653 # Compaq C++
18654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18655 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'
18656
18657 runpath_var=LD_RUN_PATH
18658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18659 hardcode_libdir_separator_CXX=:
18660
18661 # Commands to make compiler produce verbose output that lists
18662 # what "hidden" libraries, object files and flags are used when
18663 # linking a shared library.
18664 #
18665 # There doesn't appear to be a way to prevent this compiler from
18666 # explicitly linking system object files so we need to strip them
18667 # from the output so that they don't get included in the library
18668 # dependencies.
18669 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'
18670 ;;
18671 esac
18672 ;;
18673 lynxos*)
18674 # FIXME: insert proper C++ library support
18675 ld_shlibs_CXX=no
18676 ;;
18677 m88k*)
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
18681 mvs*)
18682 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018683 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018684 # FIXME: insert proper C++ library support
18685 ld_shlibs_CXX=no
18686 ;;
18687 *)
18688 # FIXME: insert proper C++ library support
18689 ld_shlibs_CXX=no
18690 ;;
18691 esac
18692 ;;
18693 netbsd*)
18694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18696 wlarc=
18697 hardcode_libdir_flag_spec_CXX='-R$libdir'
18698 hardcode_direct_CXX=yes
18699 hardcode_shlibpath_var_CXX=no
18700 fi
18701 # Workaround some broken pre-1.5 toolchains
18702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18703 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018704 openbsd2*)
18705 # C++ shared libraries are fairly broken
18706 ld_shlibs_CXX=no
18707 ;;
18708 openbsd*)
18709 hardcode_direct_CXX=yes
18710 hardcode_shlibpath_var_CXX=no
18711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18714 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18715 export_dynamic_flag_spec_CXX='${wl}-E'
18716 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18717 fi
18718 output_verbose_link_cmd='echo'
18719 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018720 osf3*)
18721 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018722 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018723 # Kuck and Associates, Inc. (KAI) C++ Compiler
18724
18725 # KCC will only create a shared library if the output file
18726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18727 # to its proper name (with version) after linking.
18728 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'
18729
18730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18731 hardcode_libdir_separator_CXX=:
18732
18733 # Archives containing C++ object files must be created using
18734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18736
18737 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018738 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018739 # Rational C++ 2.4.1
18740 # FIXME: insert proper C++ library support
18741 ld_shlibs_CXX=no
18742 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018743 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018744 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018745 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'
John Criswell47fdd832003-07-14 16:52:07 +000018746
18747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18748 hardcode_libdir_separator_CXX=:
18749
18750 # Commands to make compiler produce verbose output that lists
18751 # what "hidden" libraries, object files and flags are used when
18752 # linking a shared library.
18753 #
18754 # There doesn't appear to be a way to prevent this compiler from
18755 # explicitly linking system object files so we need to strip them
18756 # from the output so that they don't get included in the library
18757 # dependencies.
18758 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'
18759 ;;
18760 *)
18761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18762 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018763 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'
John Criswell47fdd832003-07-14 16:52:07 +000018764
18765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18766 hardcode_libdir_separator_CXX=:
18767
18768 # Commands to make compiler produce verbose output that lists
18769 # what "hidden" libraries, object files and flags are used when
18770 # linking a shared library.
18771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18772
18773 else
18774 # FIXME: insert proper C++ library support
18775 ld_shlibs_CXX=no
18776 fi
18777 ;;
18778 esac
18779 ;;
18780 osf4* | osf5*)
18781 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018782 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018783 # Kuck and Associates, Inc. (KAI) C++ Compiler
18784
18785 # KCC will only create a shared library if the output file
18786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18787 # to its proper name (with version) after linking.
18788 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'
18789
18790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18791 hardcode_libdir_separator_CXX=:
18792
18793 # Archives containing C++ object files must be created using
18794 # the KAI C++ compiler.
18795 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018797 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018798 # Rational C++ 2.4.1
18799 # FIXME: insert proper C++ library support
18800 ld_shlibs_CXX=no
18801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018802 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018803 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018804 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000018805 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18806 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018807 $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~
Reid Spencer177dbe22004-10-13 01:01:03 +000018808 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018809
18810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18811 hardcode_libdir_separator_CXX=:
18812
18813 # Commands to make compiler produce verbose output that lists
18814 # what "hidden" libraries, object files and flags are used when
18815 # linking a shared library.
18816 #
18817 # There doesn't appear to be a way to prevent this compiler from
18818 # explicitly linking system object files so we need to strip them
18819 # from the output so that they don't get included in the library
18820 # dependencies.
18821 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'
18822 ;;
18823 *)
18824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018826 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'
John Criswell47fdd832003-07-14 16:52:07 +000018827
18828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18829 hardcode_libdir_separator_CXX=:
18830
18831 # Commands to make compiler produce verbose output that lists
18832 # what "hidden" libraries, object files and flags are used when
18833 # linking a shared library.
18834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18835
18836 else
18837 # FIXME: insert proper C++ library support
18838 ld_shlibs_CXX=no
18839 fi
18840 ;;
18841 esac
18842 ;;
18843 psos*)
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18846 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018847 sunos4*)
18848 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018849 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018850 # Sun C++ 4.x
18851 # FIXME: insert proper C++ library support
18852 ld_shlibs_CXX=no
18853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018854 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018855 # Lucid
18856 # FIXME: insert proper C++ library support
18857 ld_shlibs_CXX=no
18858 ;;
18859 *)
18860 # FIXME: insert proper C++ library support
18861 ld_shlibs_CXX=no
18862 ;;
18863 esac
18864 ;;
18865 solaris*)
18866 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018867 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018868 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018869 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018870 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018871 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000018872 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018873 $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'
John Criswell47fdd832003-07-14 16:52:07 +000018874
18875 hardcode_libdir_flag_spec_CXX='-R$libdir'
18876 hardcode_shlibpath_var_CXX=no
18877 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018878 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018879 *)
18880 # The C++ compiler is used as linker so we must use $wl
18881 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018882 # linker. We must also pass each convience library through
18883 # to the system linker between allextract/defaultextract.
18884 # The C++ compiler will combine linker options so we
18885 # cannot just pass the convience library names through
18886 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018887 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018888 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'
John Criswell47fdd832003-07-14 16:52:07 +000018889 ;;
18890 esac
18891 link_all_deplibs_CXX=yes
18892
Reid Spencera773bd52006-08-04 18:18:08 +000018893 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018894
18895 # Archives containing C++ object files must be created using
18896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18897 # necessary to make sure instantiated templates are included
18898 # in the archive.
18899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18900 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018901 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018902 # Green Hills C++ Compiler
18903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18904
18905 # The C++ compiler must be used to create the archive.
18906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18907 ;;
18908 *)
18909 # GNU C++ compiler with Solaris linker
18910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18912 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000018914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18916
John Criswell47fdd832003-07-14 16:52:07 +000018917 # Commands to make compiler produce verbose output that lists
18918 # what "hidden" libraries, object files and flags are used when
18919 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018920 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018921 else
18922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18923 # platform.
18924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000018925 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018927
18928 # Commands to make compiler produce verbose output that lists
18929 # what "hidden" libraries, object files and flags are used when
18930 # linking a shared library.
18931 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18932 fi
18933
18934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18935 fi
18936 ;;
18937 esac
18938 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018939 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18940 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018941 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018942 hardcode_shlibpath_var_CXX=no
18943 runpath_var='LD_RUN_PATH'
18944
18945 case $cc_basename in
18946 CC*)
18947 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18948 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18949 ;;
18950 *)
18951 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18952 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953 ;;
18954 esac
18955 ;;
18956 sysv5* | sco3.2v5* | sco5v6*)
18957 # Note: We can NOT use -z defs as we might desire, because we do not
18958 # link with -lc, and that would cause any symbols used from libc to
18959 # always be unresolved, which means just about no library would
18960 # ever link correctly. If we're not using GNU ld we use -z text
18961 # though, which does catch some bad symbols but isn't as heavy-handed
18962 # as -z defs.
18963 # For security reasons, it is highly recommended that you always
18964 # use absolute paths for naming shared libraries, and exclude the
18965 # DT_RUNPATH tag from executables and libraries. But doing so
18966 # requires that you compile everything twice, which is a pain.
18967 # So that behaviour is only enabled if SCOABSPATH is set to a
18968 # non-empty value in the environment. Most likely only useful for
18969 # creating official distributions of packages.
18970 # This is a hack until libtool officially supports absolute path
18971 # names for shared libraries.
18972 no_undefined_flag_CXX='${wl}-z,text'
18973 allow_undefined_flag_CXX='${wl}-z,nodefs'
18974 archive_cmds_need_lc_CXX=no
18975 hardcode_shlibpath_var_CXX=no
18976 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18977 hardcode_libdir_separator_CXX=':'
18978 link_all_deplibs_CXX=yes
18979 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18980 runpath_var='LD_RUN_PATH'
18981
18982 case $cc_basename in
18983 CC*)
18984 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18985 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18986 ;;
18987 *)
18988 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18989 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 ;;
18991 esac
John Criswell47fdd832003-07-14 16:52:07 +000018992 ;;
18993 tandem*)
18994 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018995 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018996 # NonStop-UX NCC 3.20
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
18999 ;;
19000 *)
19001 # FIXME: insert proper C++ library support
19002 ld_shlibs_CXX=no
19003 ;;
19004 esac
19005 ;;
19006 vxworks*)
19007 # FIXME: insert proper C++ library support
19008 ld_shlibs_CXX=no
19009 ;;
19010 *)
19011 # FIXME: insert proper C++ library support
19012 ld_shlibs_CXX=no
19013 ;;
19014esac
Reid Spencera773bd52006-08-04 18:18:08 +000019015{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19016echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019017test "$ld_shlibs_CXX" = no && can_build_shared=no
19018
19019GCC_CXX="$GXX"
19020LD_CXX="$LD"
19021
John Criswell47fdd832003-07-14 16:52:07 +000019022
19023cat > conftest.$ac_ext <<EOF
19024class Foo
19025{
19026public:
19027 Foo (void) { a = 0; }
19028private:
19029 int a;
19030};
19031EOF
19032
19033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034 (eval $ac_compile) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; then
19038 # Parse the compiler output and extract the necessary
19039 # objects, libraries and library flags.
19040
19041 # Sentinel used to keep track of whether or not we are before
19042 # the conftest object file.
19043 pre_test_object_deps_done=no
19044
19045 # The `*' in the case matches for architectures that use `case' in
19046 # $output_verbose_cmd can trigger glob expansion during the loop
19047 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019048 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019049
19050 for p in `eval $output_verbose_link_cmd`; do
19051 case $p in
19052
19053 -L* | -R* | -l*)
19054 # Some compilers place space between "-{L,R}" and the path.
19055 # Remove the space.
19056 if test $p = "-L" \
19057 || test $p = "-R"; then
19058 prev=$p
19059 continue
19060 else
19061 prev=
19062 fi
19063
19064 if test "$pre_test_object_deps_done" = no; then
19065 case $p in
19066 -L* | -R*)
19067 # Internal compiler library paths should come after those
19068 # provided the user. The postdeps already come after the
19069 # user supplied libs so there is no need to process them.
19070 if test -z "$compiler_lib_search_path_CXX"; then
19071 compiler_lib_search_path_CXX="${prev}${p}"
19072 else
19073 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19074 fi
19075 ;;
19076 # The "-l" case would never come before the object being
19077 # linked, so don't bother handling this case.
19078 esac
19079 else
19080 if test -z "$postdeps_CXX"; then
19081 postdeps_CXX="${prev}${p}"
19082 else
19083 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19084 fi
19085 fi
19086 ;;
19087
19088 *.$objext)
19089 # This assumes that the test object file only shows up
19090 # once in the compiler output.
19091 if test "$p" = "conftest.$objext"; then
19092 pre_test_object_deps_done=yes
19093 continue
19094 fi
19095
19096 if test "$pre_test_object_deps_done" = no; then
19097 if test -z "$predep_objects_CXX"; then
19098 predep_objects_CXX="$p"
19099 else
19100 predep_objects_CXX="$predep_objects_CXX $p"
19101 fi
19102 else
19103 if test -z "$postdep_objects_CXX"; then
19104 postdep_objects_CXX="$p"
19105 else
19106 postdep_objects_CXX="$postdep_objects_CXX $p"
19107 fi
19108 fi
19109 ;;
19110
19111 *) ;; # Ignore the rest.
19112
19113 esac
19114 done
19115
19116 # Clean up.
19117 rm -f a.out a.exe
19118else
19119 echo "libtool.m4: error: problem compiling CXX test program"
19120fi
19121
19122$rm -f confest.$objext
19123
Reid Spencera773bd52006-08-04 18:18:08 +000019124# PORTME: override above test on systems where it is broken
19125case $host_os in
19126interix3*)
19127 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19128 # hack all around it, let's just trust "g++" to DTRT.
19129 predep_objects_CXX=
19130 postdep_objects_CXX=
19131 postdeps_CXX=
19132 ;;
19133
19134solaris*)
19135 case $cc_basename in
19136 CC*)
19137 # Adding this requires a known-good setup of shared libraries for
19138 # Sun compiler versions before 5.6, else PIC objects from an old
19139 # archive will be linked into the output, leading to subtle bugs.
19140 postdeps_CXX='-lCstd -lCrun'
19141 ;;
19142 esac
19143 ;;
19144esac
19145
19146
John Criswell47fdd832003-07-14 16:52:07 +000019147case " $postdeps_CXX " in
19148*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19149esac
19150
19151lt_prog_compiler_wl_CXX=
19152lt_prog_compiler_pic_CXX=
19153lt_prog_compiler_static_CXX=
19154
Reid Spencera773bd52006-08-04 18:18:08 +000019155{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19156echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019157
19158 # C++ specific cases for pic, static, wl, etc.
19159 if test "$GXX" = yes; then
19160 lt_prog_compiler_wl_CXX='-Wl,'
19161 lt_prog_compiler_static_CXX='-static'
19162
19163 case $host_os in
19164 aix*)
19165 # All AIX code is PIC.
19166 if test "$host_cpu" = ia64; then
19167 # AIX 5 now supports IA64 processor
19168 lt_prog_compiler_static_CXX='-Bstatic'
19169 fi
19170 ;;
19171 amigaos*)
19172 # FIXME: we need at least 68020 code to build shared libraries, but
19173 # adding the `-m68020' flag to GCC prevents building anything better,
19174 # like `-m68040'.
19175 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19176 ;;
19177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19178 # PIC is the default for these OSes.
19179 ;;
19180 mingw* | os2* | pw32*)
19181 # This hack is so that the source file can tell whether it is being
19182 # built for inclusion in a dll (and should export symbols for example).
19183 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19184 ;;
19185 darwin* | rhapsody*)
19186 # PIC is the default on this platform
19187 # Common symbols not allowed in MH_DYLIB files
19188 lt_prog_compiler_pic_CXX='-fno-common'
19189 ;;
19190 *djgpp*)
19191 # DJGPP does not support shared libraries at all
19192 lt_prog_compiler_pic_CXX=
19193 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019194 interix3*)
19195 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19196 # Instead, we relocate shared libraries at runtime.
19197 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019198 sysv4*MP*)
19199 if test -d /usr/nec; then
19200 lt_prog_compiler_pic_CXX=-Kconform_pic
19201 fi
19202 ;;
19203 hpux*)
19204 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19205 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019206 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019207 hppa*64*|ia64*)
19208 ;;
19209 *)
19210 lt_prog_compiler_pic_CXX='-fPIC'
19211 ;;
19212 esac
19213 ;;
19214 *)
19215 lt_prog_compiler_pic_CXX='-fPIC'
19216 ;;
19217 esac
19218 else
19219 case $host_os in
19220 aix4* | aix5*)
19221 # All AIX code is PIC.
19222 if test "$host_cpu" = ia64; then
19223 # AIX 5 now supports IA64 processor
19224 lt_prog_compiler_static_CXX='-Bstatic'
19225 else
19226 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19227 fi
19228 ;;
19229 chorus*)
19230 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019231 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019232 # Green Hills C++ Compiler
19233 # _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"
19234 ;;
19235 esac
19236 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019237 darwin*)
19238 # PIC is the default on this platform
19239 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019240 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019241 xlc*)
19242 lt_prog_compiler_pic_CXX='-qnocommon'
19243 lt_prog_compiler_wl_CXX='-Wl,'
19244 ;;
19245 esac
19246 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019247 dgux*)
19248 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019249 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019250 lt_prog_compiler_pic_CXX='-KPIC'
19251 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019252 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019253 # Green Hills C++ Compiler
19254 lt_prog_compiler_pic_CXX='-pic'
19255 ;;
19256 *)
19257 ;;
19258 esac
19259 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019260 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019261 # FreeBSD uses GNU C++
19262 ;;
19263 hpux9* | hpux10* | hpux11*)
19264 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019265 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019266 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019267 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019268 if test "$host_cpu" != ia64; then
19269 lt_prog_compiler_pic_CXX='+Z'
19270 fi
19271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019272 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019274 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19275 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019276 hppa*64*|ia64*)
19277 # +Z the default
19278 ;;
19279 *)
19280 lt_prog_compiler_pic_CXX='+Z'
19281 ;;
19282 esac
19283 ;;
19284 *)
19285 ;;
19286 esac
19287 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019288 interix*)
19289 # This is c89, which is MS Visual C++ (no shared libs)
19290 # Anyone wants to do a port?
19291 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019292 irix5* | irix6* | nonstopux*)
19293 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019294 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_static_CXX='-non_shared'
19297 # CC pic flag -KPIC is the default.
19298 ;;
19299 *)
19300 ;;
19301 esac
19302 ;;
19303 linux*)
19304 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019305 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019306 # KAI C++ Compiler
19307 lt_prog_compiler_wl_CXX='--backend -Wl,'
19308 lt_prog_compiler_pic_CXX='-fPIC'
19309 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019310 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019311 # Intel C++
19312 lt_prog_compiler_wl_CXX='-Wl,'
19313 lt_prog_compiler_pic_CXX='-KPIC'
19314 lt_prog_compiler_static_CXX='-static'
19315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019316 pgCC*)
19317 # Portland Group C++ compiler.
19318 lt_prog_compiler_wl_CXX='-Wl,'
19319 lt_prog_compiler_pic_CXX='-fpic'
19320 lt_prog_compiler_static_CXX='-Bstatic'
19321 ;;
19322 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019323 # Compaq C++
19324 # Make sure the PIC flag is empty. It appears that all Alpha
19325 # Linux and Compaq Tru64 Unix objects are PIC.
19326 lt_prog_compiler_pic_CXX=
19327 lt_prog_compiler_static_CXX='-non_shared'
19328 ;;
19329 *)
19330 ;;
19331 esac
19332 ;;
19333 lynxos*)
19334 ;;
19335 m88k*)
19336 ;;
19337 mvs*)
19338 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019339 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019340 lt_prog_compiler_pic_CXX='-W c,exportall'
19341 ;;
19342 *)
19343 ;;
19344 esac
19345 ;;
19346 netbsd*)
19347 ;;
19348 osf3* | osf4* | osf5*)
19349 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019350 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 lt_prog_compiler_wl_CXX='--backend -Wl,'
19352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019353 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019354 # Rational C++ 2.4.1
19355 lt_prog_compiler_pic_CXX='-pic'
19356 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019357 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019358 # Digital/Compaq C++
19359 lt_prog_compiler_wl_CXX='-Wl,'
19360 # Make sure the PIC flag is empty. It appears that all Alpha
19361 # Linux and Compaq Tru64 Unix objects are PIC.
19362 lt_prog_compiler_pic_CXX=
19363 lt_prog_compiler_static_CXX='-non_shared'
19364 ;;
19365 *)
19366 ;;
19367 esac
19368 ;;
19369 psos*)
19370 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019371 solaris*)
19372 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019373 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019374 # Sun C++ 4.2, 5.x and Centerline C++
19375 lt_prog_compiler_pic_CXX='-KPIC'
19376 lt_prog_compiler_static_CXX='-Bstatic'
19377 lt_prog_compiler_wl_CXX='-Qoption ld '
19378 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019379 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019380 # Green Hills C++ Compiler
19381 lt_prog_compiler_pic_CXX='-PIC'
19382 ;;
19383 *)
19384 ;;
19385 esac
19386 ;;
19387 sunos4*)
19388 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019389 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019390 # Sun C++ 4.x
19391 lt_prog_compiler_pic_CXX='-pic'
19392 lt_prog_compiler_static_CXX='-Bstatic'
19393 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019394 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019395 # Lucid
19396 lt_prog_compiler_pic_CXX='-pic'
19397 ;;
19398 *)
19399 ;;
19400 esac
19401 ;;
19402 tandem*)
19403 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019404 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019405 # NonStop-UX NCC 3.20
19406 lt_prog_compiler_pic_CXX='-KPIC'
19407 ;;
19408 *)
19409 ;;
19410 esac
19411 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19413 case $cc_basename in
19414 CC*)
19415 lt_prog_compiler_wl_CXX='-Wl,'
19416 lt_prog_compiler_pic_CXX='-KPIC'
19417 lt_prog_compiler_static_CXX='-Bstatic'
19418 ;;
19419 esac
John Criswell47fdd832003-07-14 16:52:07 +000019420 ;;
19421 vxworks*)
19422 ;;
19423 *)
19424 lt_prog_compiler_can_build_shared_CXX=no
19425 ;;
19426 esac
19427 fi
19428
Reid Spencera773bd52006-08-04 18:18:08 +000019429{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19430echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019431
19432#
19433# Check to make sure the PIC flag actually works.
19434#
19435if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019436
Reid Spencera773bd52006-08-04 18:18:08 +000019437{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19438echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019439if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19440 echo $ECHO_N "(cached) $ECHO_C" >&6
19441else
19442 lt_prog_compiler_pic_works_CXX=no
19443 ac_outfile=conftest.$ac_objext
19444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19445 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19446 # Insert the option either (1) after the last *FLAGS variable, or
19447 # (2) before a word containing "conftest.", or (3) at the end.
19448 # Note that $ac_compile itself does not contain backslashes and begins
19449 # with a dollar sign (not a hyphen), so the echo should work correctly.
19450 # The option is referenced via a variable to avoid confusing sed.
19451 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19454 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000019455 (eval echo "\"\$as_me:19455: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019456 (eval "$lt_compile" 2>conftest.err)
19457 ac_status=$?
19458 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000019459 echo "$as_me:19459: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019460 if (exit $ac_status) && test -s "$ac_outfile"; then
19461 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019462 # So say no if there are warnings other than the usual output.
19463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019466 lt_prog_compiler_pic_works_CXX=yes
19467 fi
19468 fi
19469 $rm conftest*
19470
19471fi
Reid Spencera773bd52006-08-04 18:18:08 +000019472{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19473echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019474
19475if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19476 case $lt_prog_compiler_pic_CXX in
19477 "" | " "*) ;;
19478 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19479 esac
19480else
19481 lt_prog_compiler_pic_CXX=
19482 lt_prog_compiler_can_build_shared_CXX=no
19483fi
19484
19485fi
Reid Spencera773bd52006-08-04 18:18:08 +000019486case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019487 # For platforms which do not support PIC, -DPIC is meaningless:
19488 *djgpp*)
19489 lt_prog_compiler_pic_CXX=
19490 ;;
19491 *)
19492 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19493 ;;
19494esac
19495
Reid Spencera773bd52006-08-04 18:18:08 +000019496#
19497# Check to make sure the static flag actually works.
19498#
19499wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19500{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19501echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19502if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504else
19505 lt_prog_compiler_static_works_CXX=no
19506 save_LDFLAGS="$LDFLAGS"
19507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19508 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19510 # The linker can only warn and ignore the option if not recognized
19511 # So say no if there are warnings
19512 if test -s conftest.err; then
19513 # Append any errors to the config.log.
19514 cat conftest.err 1>&5
19515 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19517 if diff conftest.exp conftest.er2 >/dev/null; then
19518 lt_prog_compiler_static_works_CXX=yes
19519 fi
19520 else
19521 lt_prog_compiler_static_works_CXX=yes
19522 fi
19523 fi
19524 $rm conftest*
19525 LDFLAGS="$save_LDFLAGS"
19526
19527fi
19528{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19529echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19530
19531if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19532 :
19533else
19534 lt_prog_compiler_static_CXX=
19535fi
19536
19537
19538{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19539echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019540if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543 lt_cv_prog_compiler_c_o_CXX=no
19544 $rm -r conftest 2>/dev/null
19545 mkdir conftest
19546 cd conftest
19547 mkdir out
19548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19549
John Criswell47fdd832003-07-14 16:52:07 +000019550 lt_compiler_flag="-o out/conftest2.$ac_objext"
19551 # Insert the option either (1) after the last *FLAGS variable, or
19552 # (2) before a word containing "conftest.", or (3) at the end.
19553 # Note that $ac_compile itself does not contain backslashes and begins
19554 # with a dollar sign (not a hyphen), so the echo should work correctly.
19555 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19558 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000019559 (eval echo "\"\$as_me:19559: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019560 (eval "$lt_compile" 2>out/conftest.err)
19561 ac_status=$?
19562 cat out/conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000019563 echo "$as_me:19563: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19565 then
19566 # The compiler can only warn and ignore the option if not recognized
19567 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019571 lt_cv_prog_compiler_c_o_CXX=yes
19572 fi
19573 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019574 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019575 $rm conftest*
19576 # SGI C++ compiler will create directory out/ii_files/ for
19577 # template instantiation
19578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19579 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019580 cd ..
19581 rmdir conftest
19582 $rm conftest*
19583
19584fi
Reid Spencera773bd52006-08-04 18:18:08 +000019585{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19586echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019587
19588
19589hard_links="nottested"
19590if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19591 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019592 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19593echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019594 hard_links=yes
19595 $rm conftest*
19596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19597 touch conftest.a
19598 ln conftest.a conftest.b 2>&5 || hard_links=no
19599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019600 { echo "$as_me:$LINENO: result: $hard_links" >&5
19601echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019602 if test "$hard_links" = no; then
19603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19604echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19605 need_locks=warn
19606 fi
19607else
19608 need_locks=no
19609fi
19610
Reid Spencera773bd52006-08-04 18:18:08 +000019611{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19612echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019613
19614 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19615 case $host_os in
19616 aix4* | aix5*)
19617 # If we're using GNU nm, then we don't want the "-C" option.
19618 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19619 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19620 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'
19621 else
19622 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'
19623 fi
19624 ;;
19625 pw32*)
19626 export_symbols_cmds_CXX="$ltdll_cmds"
19627 ;;
19628 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019629 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'
John Criswell47fdd832003-07-14 16:52:07 +000019630 ;;
19631 *)
19632 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19633 ;;
19634 esac
19635
Reid Spencera773bd52006-08-04 18:18:08 +000019636{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19637echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019638test "$ld_shlibs_CXX" = no && can_build_shared=no
19639
John Criswell47fdd832003-07-14 16:52:07 +000019640#
19641# Do we need to explicitly link libc?
19642#
19643case "x$archive_cmds_need_lc_CXX" in
19644x|xyes)
19645 # Assume -lc should be added
19646 archive_cmds_need_lc_CXX=yes
19647
19648 if test "$enable_shared" = yes && test "$GCC" = yes; then
19649 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019650 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019651 # FIXME: we may have to deal with multi-command sequences.
19652 ;;
19653 '$CC '*)
19654 # Test whether the compiler implicitly links with -lc since on some
19655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19656 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19658echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019659 $rm conftest*
19660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19661
19662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19663 (eval $ac_compile) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } 2>conftest.err; then
19667 soname=conftest
19668 lib=conftest
19669 libobjs=conftest.$ac_objext
19670 deplibs=
19671 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019672 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019673 compiler_flags=-v
19674 linker_flags=-v
19675 verstring=
19676 output_objdir=.
19677 libname=conftest
19678 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19679 allow_undefined_flag_CXX=
19680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19681 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19682 ac_status=$?
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }
19685 then
19686 archive_cmds_need_lc_CXX=no
19687 else
19688 archive_cmds_need_lc_CXX=yes
19689 fi
19690 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19691 else
19692 cat conftest.err 1>&5
19693 fi
19694 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19696echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019697 ;;
19698 esac
19699 fi
19700 ;;
19701esac
19702
Reid Spencera773bd52006-08-04 18:18:08 +000019703{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19704echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019705library_names_spec=
19706libname_spec='lib$name'
19707soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019708shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019709postinstall_cmds=
19710postuninstall_cmds=
19711finish_cmds=
19712finish_eval=
19713shlibpath_var=
19714shlibpath_overrides_runpath=unknown
19715version_type=none
19716dynamic_linker="$host_os ld.so"
19717sys_lib_dlsearch_path_spec="/lib /usr/lib"
19718if test "$GCC" = yes; then
19719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19721 # if the path contains ";" then we assume it to be the separator
19722 # otherwise default to the standard path separator (i.e. ":") - it is
19723 # assumed that no part of a normal pathname contains ";" but that should
19724 # okay in the real world where ";" in dirpaths is itself problematic.
19725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19726 else
19727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19728 fi
19729else
19730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19731fi
19732need_lib_prefix=unknown
19733hardcode_into_libs=no
19734
19735# when you set need_version to no, make sure it does not cause -set_version
19736# flags to be left without arguments
19737need_version=unknown
19738
19739case $host_os in
19740aix3*)
19741 version_type=linux
19742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19743 shlibpath_var=LIBPATH
19744
19745 # AIX 3 has no versioning support, so we append a major version to the name.
19746 soname_spec='${libname}${release}${shared_ext}$major'
19747 ;;
19748
19749aix4* | aix5*)
19750 version_type=linux
19751 need_lib_prefix=no
19752 need_version=no
19753 hardcode_into_libs=yes
19754 if test "$host_cpu" = ia64; then
19755 # AIX 5 supports IA64
19756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19757 shlibpath_var=LD_LIBRARY_PATH
19758 else
19759 # With GCC up to 2.95.x, collect2 would create an import file
19760 # for dependence libraries. The import file would start with
19761 # the line `#! .'. This would cause the generated library to
19762 # depend on `.', always an invalid library. This was fixed in
19763 # development snapshots of GCC prior to 3.0.
19764 case $host_os in
19765 aix4 | aix4.[01] | aix4.[01].*)
19766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19767 echo ' yes '
19768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19769 :
19770 else
19771 can_build_shared=no
19772 fi
19773 ;;
19774 esac
19775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19776 # soname into executable. Probably we can add versioning support to
19777 # collect2, so additional links can be useful in future.
19778 if test "$aix_use_runtimelinking" = yes; then
19779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19780 # instead of lib<name>.a to let people know that these are not
19781 # typical AIX shared libraries.
19782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19783 else
19784 # We preserve .a as extension for shared libraries through AIX4.2
19785 # and later when we are not doing run time linking.
19786 library_names_spec='${libname}${release}.a $libname.a'
19787 soname_spec='${libname}${release}${shared_ext}$major'
19788 fi
19789 shlibpath_var=LIBPATH
19790 fi
19791 ;;
19792
19793amigaos*)
19794 library_names_spec='$libname.ixlibrary $libname.a'
19795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019796 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'
John Criswell47fdd832003-07-14 16:52:07 +000019797 ;;
19798
19799beos*)
19800 library_names_spec='${libname}${shared_ext}'
19801 dynamic_linker="$host_os ld.so"
19802 shlibpath_var=LIBRARY_PATH
19803 ;;
19804
Reid Spencer2706f8c2004-09-19 23:53:36 +000019805bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019806 version_type=linux
19807 need_version=no
19808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19809 soname_spec='${libname}${release}${shared_ext}$major'
19810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19811 shlibpath_var=LD_LIBRARY_PATH
19812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19814 # the default ld.so.conf also contains /usr/contrib/lib and
19815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19816 # libtool to hard-code these into programs
19817 ;;
19818
19819cygwin* | mingw* | pw32*)
19820 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019821 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019822 need_version=no
19823 need_lib_prefix=no
19824
19825 case $GCC,$host_os in
19826 yes,cygwin* | yes,mingw* | yes,pw32*)
19827 library_names_spec='$libname.dll.a'
19828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019829 postinstall_cmds='base_file=`basename \${file}`~
19830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19831 dldir=$destdir/`dirname \$dlpath`~
19832 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019833 $install_prog $dir/$dlname \$dldir/$dlname~
19834 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19836 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019837 $rm \$dlpath'
19838 shlibpath_overrides_runpath=yes
19839
19840 case $host_os in
19841 cygwin*)
19842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019845 ;;
19846 mingw*)
19847 # MinGW DLLs use traditional 'lib' prefix
19848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19851 # It is most probably a Windows format PATH printed by
19852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19853 # path with ; separators, and with drive letters. We can handle the
19854 # drive letters (cygwin fileutils understands them), so leave them,
19855 # especially as we might pass files found there to a mingw objdump,
19856 # which wouldn't understand a cygwinified path. Ahh.
19857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19858 else
19859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19860 fi
19861 ;;
19862 pw32*)
19863 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000019865 ;;
19866 esac
19867 ;;
19868
19869 *)
19870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19871 ;;
19872 esac
19873 dynamic_linker='Win32 ld.exe'
19874 # FIXME: first we should search . and the directory the executable is in
19875 shlibpath_var=PATH
19876 ;;
19877
19878darwin* | rhapsody*)
19879 dynamic_linker="$host_os dyld"
19880 version_type=darwin
19881 need_lib_prefix=no
19882 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019884 soname_spec='${libname}${release}${major}$shared_ext'
19885 shlibpath_overrides_runpath=yes
19886 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019889 if test "$GCC" = yes; then
19890 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"`
19891 else
19892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019893 fi
19894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19895 ;;
19896
19897dgux*)
19898 version_type=linux
19899 need_lib_prefix=no
19900 need_version=no
19901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 shlibpath_var=LD_LIBRARY_PATH
19904 ;;
19905
19906freebsd1*)
19907 dynamic_linker=no
19908 ;;
19909
Reid Spencer2706f8c2004-09-19 23:53:36 +000019910kfreebsd*-gnu)
19911 version_type=linux
19912 need_lib_prefix=no
19913 need_version=no
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19915 soname_spec='${libname}${release}${shared_ext}$major'
19916 shlibpath_var=LD_LIBRARY_PATH
19917 shlibpath_overrides_runpath=no
19918 hardcode_into_libs=yes
19919 dynamic_linker='GNU ld.so'
19920 ;;
19921
Reid Spencera773bd52006-08-04 18:18:08 +000019922freebsd* | dragonfly*)
19923 # DragonFly does not have aout. When/if they implement a new
19924 # versioning mechanism, adjust this.
19925 if test -x /usr/bin/objformat; then
19926 objformat=`/usr/bin/objformat`
19927 else
19928 case $host_os in
19929 freebsd[123]*) objformat=aout ;;
19930 *) objformat=elf ;;
19931 esac
19932 fi
John Criswell47fdd832003-07-14 16:52:07 +000019933 version_type=freebsd-$objformat
19934 case $version_type in
19935 freebsd-elf*)
19936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19937 need_version=no
19938 need_lib_prefix=no
19939 ;;
19940 freebsd-*)
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19942 need_version=yes
19943 ;;
19944 esac
19945 shlibpath_var=LD_LIBRARY_PATH
19946 case $host_os in
19947 freebsd2*)
19948 shlibpath_overrides_runpath=yes
19949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019950 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019951 shlibpath_overrides_runpath=yes
19952 hardcode_into_libs=yes
19953 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019954 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19955 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019956 shlibpath_overrides_runpath=no
19957 hardcode_into_libs=yes
19958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019959 freebsd*) # from 4.6 on
19960 shlibpath_overrides_runpath=yes
19961 hardcode_into_libs=yes
19962 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019963 esac
19964 ;;
19965
19966gnu*)
19967 version_type=linux
19968 need_lib_prefix=no
19969 need_version=no
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19971 soname_spec='${libname}${release}${shared_ext}$major'
19972 shlibpath_var=LD_LIBRARY_PATH
19973 hardcode_into_libs=yes
19974 ;;
19975
19976hpux9* | hpux10* | hpux11*)
19977 # Give a soname corresponding to the major version so that dld.sl refuses to
19978 # link against other versions.
19979 version_type=sunos
19980 need_lib_prefix=no
19981 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019982 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019983 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019984 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019985 hardcode_into_libs=yes
19986 dynamic_linker="$host_os dld.so"
19987 shlibpath_var=LD_LIBRARY_PATH
19988 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19990 soname_spec='${libname}${release}${shared_ext}$major'
19991 if test "X$HPUX_IA64_MODE" = X32; then
19992 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19993 else
19994 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19995 fi
19996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19997 ;;
19998 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019999 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020000 hardcode_into_libs=yes
20001 dynamic_linker="$host_os dld.sl"
20002 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20003 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20007 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20008 ;;
20009 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020010 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020011 dynamic_linker="$host_os dld.sl"
20012 shlibpath_var=SHLIB_PATH
20013 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20015 soname_spec='${libname}${release}${shared_ext}$major'
20016 ;;
20017 esac
20018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20019 postinstall_cmds='chmod 555 $lib'
20020 ;;
20021
Reid Spencera773bd52006-08-04 18:18:08 +000020022interix3*)
20023 version_type=linux
20024 need_lib_prefix=no
20025 need_version=no
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20029 shlibpath_var=LD_LIBRARY_PATH
20030 shlibpath_overrides_runpath=no
20031 hardcode_into_libs=yes
20032 ;;
20033
John Criswell47fdd832003-07-14 16:52:07 +000020034irix5* | irix6* | nonstopux*)
20035 case $host_os in
20036 nonstopux*) version_type=nonstopux ;;
20037 *)
20038 if test "$lt_cv_prog_gnu_ld" = yes; then
20039 version_type=linux
20040 else
20041 version_type=irix
20042 fi ;;
20043 esac
20044 need_lib_prefix=no
20045 need_version=no
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20048 case $host_os in
20049 irix5* | nonstopux*)
20050 libsuff= shlibsuff=
20051 ;;
20052 *)
20053 case $LD in # libtool.m4 will add one of these switches to LD
20054 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20055 libsuff= shlibsuff= libmagic=32-bit;;
20056 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20057 libsuff=32 shlibsuff=N32 libmagic=N32;;
20058 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20059 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20060 *) libsuff= shlibsuff= libmagic=never-match;;
20061 esac
20062 ;;
20063 esac
20064 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20065 shlibpath_overrides_runpath=no
20066 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20067 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20068 hardcode_into_libs=yes
20069 ;;
20070
20071# No shared lib support for Linux oldld, aout, or coff.
20072linux*oldld* | linux*aout* | linux*coff*)
20073 dynamic_linker=no
20074 ;;
20075
20076# This must be Linux ELF.
20077linux*)
20078 version_type=linux
20079 need_lib_prefix=no
20080 need_version=no
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20082 soname_spec='${libname}${release}${shared_ext}$major'
20083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20084 shlibpath_var=LD_LIBRARY_PATH
20085 shlibpath_overrides_runpath=no
20086 # This implies no fast_install, which is unacceptable.
20087 # Some rework will be needed to allow for fast_install
20088 # before this can be enabled.
20089 hardcode_into_libs=yes
20090
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091 # Append ld.so.conf contents to the search path
20092 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020093 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000020094 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20095 fi
20096
John Criswell47fdd832003-07-14 16:52:07 +000020097 # We used to test for /lib/ld.so.1 and disable shared libraries on
20098 # powerpc, because MkLinux only supported shared libraries with the
20099 # GNU dynamic linker. Since this was broken with cross compilers,
20100 # most powerpc-linux boxes support dynamic linking these days and
20101 # people can always --disable-shared, the test was removed, and we
20102 # assume the GNU/Linux dynamic linker is in use.
20103 dynamic_linker='GNU/Linux ld.so'
20104 ;;
20105
Reid Spencer2706f8c2004-09-19 23:53:36 +000020106knetbsd*-gnu)
20107 version_type=linux
20108 need_lib_prefix=no
20109 need_version=no
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 shlibpath_var=LD_LIBRARY_PATH
20113 shlibpath_overrides_runpath=no
20114 hardcode_into_libs=yes
20115 dynamic_linker='GNU ld.so'
20116 ;;
20117
John Criswell47fdd832003-07-14 16:52:07 +000020118netbsd*)
20119 version_type=sunos
20120 need_lib_prefix=no
20121 need_version=no
20122 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20125 dynamic_linker='NetBSD (a.out) ld.so'
20126 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020128 soname_spec='${libname}${release}${shared_ext}$major'
20129 dynamic_linker='NetBSD ld.elf_so'
20130 fi
20131 shlibpath_var=LD_LIBRARY_PATH
20132 shlibpath_overrides_runpath=yes
20133 hardcode_into_libs=yes
20134 ;;
20135
20136newsos6)
20137 version_type=linux
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20139 shlibpath_var=LD_LIBRARY_PATH
20140 shlibpath_overrides_runpath=yes
20141 ;;
20142
Reid Spencer2706f8c2004-09-19 23:53:36 +000020143nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020144 version_type=linux
20145 need_lib_prefix=no
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 shlibpath_overrides_runpath=yes
20151 ;;
20152
20153openbsd*)
20154 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020155 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020156 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020157 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20158 case $host_os in
20159 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20160 *) need_version=no ;;
20161 esac
John Criswell47fdd832003-07-14 16:52:07 +000020162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20163 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20164 shlibpath_var=LD_LIBRARY_PATH
20165 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20166 case $host_os in
20167 openbsd2.[89] | openbsd2.[89].*)
20168 shlibpath_overrides_runpath=no
20169 ;;
20170 *)
20171 shlibpath_overrides_runpath=yes
20172 ;;
20173 esac
20174 else
20175 shlibpath_overrides_runpath=yes
20176 fi
20177 ;;
20178
20179os2*)
20180 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020181 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020182 need_lib_prefix=no
20183 library_names_spec='$libname${shared_ext} $libname.a'
20184 dynamic_linker='OS/2 ld.exe'
20185 shlibpath_var=LIBPATH
20186 ;;
20187
20188osf3* | osf4* | osf5*)
20189 version_type=osf
20190 need_lib_prefix=no
20191 need_version=no
20192 soname_spec='${libname}${release}${shared_ext}$major'
20193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20194 shlibpath_var=LD_LIBRARY_PATH
20195 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20196 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20197 ;;
20198
John Criswell47fdd832003-07-14 16:52:07 +000020199solaris*)
20200 version_type=linux
20201 need_lib_prefix=no
20202 need_version=no
20203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 shlibpath_var=LD_LIBRARY_PATH
20206 shlibpath_overrides_runpath=yes
20207 hardcode_into_libs=yes
20208 # ldd complains unless libraries are executable
20209 postinstall_cmds='chmod +x $lib'
20210 ;;
20211
20212sunos4*)
20213 version_type=sunos
20214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20216 shlibpath_var=LD_LIBRARY_PATH
20217 shlibpath_overrides_runpath=yes
20218 if test "$with_gnu_ld" = yes; then
20219 need_lib_prefix=no
20220 fi
20221 need_version=yes
20222 ;;
20223
Reid Spencera773bd52006-08-04 18:18:08 +000020224sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020225 version_type=linux
20226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20227 soname_spec='${libname}${release}${shared_ext}$major'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 case $host_vendor in
20230 sni)
20231 shlibpath_overrides_runpath=no
20232 need_lib_prefix=no
20233 export_dynamic_flag_spec='${wl}-Blargedynsym'
20234 runpath_var=LD_RUN_PATH
20235 ;;
20236 siemens)
20237 need_lib_prefix=no
20238 ;;
20239 motorola)
20240 need_lib_prefix=no
20241 need_version=no
20242 shlibpath_overrides_runpath=no
20243 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20244 ;;
20245 esac
20246 ;;
20247
20248sysv4*MP*)
20249 if test -d /usr/nec ;then
20250 version_type=linux
20251 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20252 soname_spec='$libname${shared_ext}.$major'
20253 shlibpath_var=LD_LIBRARY_PATH
20254 fi
20255 ;;
20256
Reid Spencera773bd52006-08-04 18:18:08 +000020257sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20258 version_type=freebsd-elf
20259 need_lib_prefix=no
20260 need_version=no
20261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20262 soname_spec='${libname}${release}${shared_ext}$major'
20263 shlibpath_var=LD_LIBRARY_PATH
20264 hardcode_into_libs=yes
20265 if test "$with_gnu_ld" = yes; then
20266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20267 shlibpath_overrides_runpath=no
20268 else
20269 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20270 shlibpath_overrides_runpath=yes
20271 case $host_os in
20272 sco3.2v5*)
20273 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20274 ;;
20275 esac
20276 fi
20277 sys_lib_dlsearch_path_spec='/usr/lib'
20278 ;;
20279
John Criswell47fdd832003-07-14 16:52:07 +000020280uts4*)
20281 version_type=linux
20282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20283 soname_spec='${libname}${release}${shared_ext}$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 ;;
20286
20287*)
20288 dynamic_linker=no
20289 ;;
20290esac
Reid Spencera773bd52006-08-04 18:18:08 +000020291{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20292echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020293test "$dynamic_linker" = no && can_build_shared=no
20294
Reid Spencera773bd52006-08-04 18:18:08 +000020295variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20296if test "$GCC" = yes; then
20297 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20298fi
20299
20300{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20301echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020302hardcode_action_CXX=
20303if test -n "$hardcode_libdir_flag_spec_CXX" || \
20304 test -n "$runpath_var_CXX" || \
20305 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20306
20307 # We can hardcode non-existant directories.
20308 if test "$hardcode_direct_CXX" != no &&
20309 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20310 # have to relink, otherwise we might link with an installed library
20311 # when we should be linking with a yet-to-be-installed one
20312 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20313 test "$hardcode_minus_L_CXX" != no; then
20314 # Linking always hardcodes the temporary library directory.
20315 hardcode_action_CXX=relink
20316 else
20317 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20318 hardcode_action_CXX=immediate
20319 fi
20320else
20321 # We cannot hardcode anything, or else we can only hardcode existing
20322 # directories.
20323 hardcode_action_CXX=unsupported
20324fi
Reid Spencera773bd52006-08-04 18:18:08 +000020325{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20326echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020327
20328if test "$hardcode_action_CXX" = relink; then
20329 # Fast installation is not supported
20330 enable_fast_install=no
20331elif test "$shlibpath_overrides_runpath" = yes ||
20332 test "$enable_shared" = no; then
20333 # Fast installation is not necessary
20334 enable_fast_install=needless
20335fi
20336
John Criswell47fdd832003-07-14 16:52:07 +000020337
20338# The else clause should only fire when bootstrapping the
20339# libtool distribution, otherwise you forgot to ship ltmain.sh
20340# with your package, and you will get complaints that there are
20341# no rules to generate ltmain.sh.
20342if test -f "$ltmain"; then
20343 # See if we are running on zsh, and set the options which allow our commands through
20344 # without removal of \ escapes.
20345 if test -n "${ZSH_VERSION+set}" ; then
20346 setopt NO_GLOB_SUBST
20347 fi
20348 # Now quote all the things that may contain metacharacters while being
20349 # careful not to overquote the AC_SUBSTed values. We take copies of the
20350 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020351 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020352 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020353 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20354 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20355 deplibs_check_method reload_flag reload_cmds need_locks \
20356 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20357 lt_cv_sys_global_symbol_to_c_name_address \
20358 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20359 old_postinstall_cmds old_postuninstall_cmds \
20360 compiler_CXX \
20361 CC_CXX \
20362 LD_CXX \
20363 lt_prog_compiler_wl_CXX \
20364 lt_prog_compiler_pic_CXX \
20365 lt_prog_compiler_static_CXX \
20366 lt_prog_compiler_no_builtin_flag_CXX \
20367 export_dynamic_flag_spec_CXX \
20368 thread_safe_flag_spec_CXX \
20369 whole_archive_flag_spec_CXX \
20370 enable_shared_with_static_runtimes_CXX \
20371 old_archive_cmds_CXX \
20372 old_archive_from_new_cmds_CXX \
20373 predep_objects_CXX \
20374 postdep_objects_CXX \
20375 predeps_CXX \
20376 postdeps_CXX \
20377 compiler_lib_search_path_CXX \
20378 archive_cmds_CXX \
20379 archive_expsym_cmds_CXX \
20380 postinstall_cmds_CXX \
20381 postuninstall_cmds_CXX \
20382 old_archive_from_expsyms_cmds_CXX \
20383 allow_undefined_flag_CXX \
20384 no_undefined_flag_CXX \
20385 export_symbols_cmds_CXX \
20386 hardcode_libdir_flag_spec_CXX \
20387 hardcode_libdir_flag_spec_ld_CXX \
20388 hardcode_libdir_separator_CXX \
20389 hardcode_automatic_CXX \
20390 module_cmds_CXX \
20391 module_expsym_cmds_CXX \
20392 lt_cv_prog_compiler_c_o_CXX \
20393 exclude_expsyms_CXX \
20394 include_expsyms_CXX; do
20395
20396 case $var in
20397 old_archive_cmds_CXX | \
20398 old_archive_from_new_cmds_CXX | \
20399 archive_cmds_CXX | \
20400 archive_expsym_cmds_CXX | \
20401 module_cmds_CXX | \
20402 module_expsym_cmds_CXX | \
20403 old_archive_from_expsyms_cmds_CXX | \
20404 export_symbols_cmds_CXX | \
20405 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20406 postinstall_cmds | postuninstall_cmds | \
20407 old_postinstall_cmds | old_postuninstall_cmds | \
20408 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20409 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020410 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000020411 ;;
20412 *)
20413 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20414 ;;
20415 esac
20416 done
20417
20418 case $lt_echo in
20419 *'\$0 --fallback-echo"')
20420 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20421 ;;
20422 esac
20423
20424cfgfile="$ofile"
20425
20426 cat <<__EOF__ >> "$cfgfile"
20427# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20428
20429# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20430
20431# Shell to use when invoking shell scripts.
20432SHELL=$lt_SHELL
20433
20434# Whether or not to build shared libraries.
20435build_libtool_libs=$enable_shared
20436
20437# Whether or not to build static libraries.
20438build_old_libs=$enable_static
20439
20440# Whether or not to add -lc for building shared libraries.
20441build_libtool_need_lc=$archive_cmds_need_lc_CXX
20442
20443# Whether or not to disallow shared libs when runtime libs are static
20444allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20445
20446# Whether or not to optimize for fast installation.
20447fast_install=$enable_fast_install
20448
20449# The host system.
20450host_alias=$host_alias
20451host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020452host_os=$host_os
20453
20454# The build system.
20455build_alias=$build_alias
20456build=$build
20457build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020458
20459# An echo program that does not interpret backslashes.
20460echo=$lt_echo
20461
20462# The archiver.
20463AR=$lt_AR
20464AR_FLAGS=$lt_AR_FLAGS
20465
20466# A C compiler.
20467LTCC=$lt_LTCC
20468
Reid Spencera773bd52006-08-04 18:18:08 +000020469# LTCC compiler flags.
20470LTCFLAGS=$lt_LTCFLAGS
20471
John Criswell47fdd832003-07-14 16:52:07 +000020472# A language-specific compiler.
20473CC=$lt_compiler_CXX
20474
20475# Is the compiler the GNU C compiler?
20476with_gcc=$GCC_CXX
20477
20478# An ERE matcher.
20479EGREP=$lt_EGREP
20480
20481# The linker used to build libraries.
20482LD=$lt_LD_CXX
20483
20484# Whether we need hard or soft links.
20485LN_S=$lt_LN_S
20486
20487# A BSD-compatible nm program.
20488NM=$lt_NM
20489
20490# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020491STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020492
20493# Used to examine libraries when file_magic_cmd begins "file"
20494MAGIC_CMD=$MAGIC_CMD
20495
20496# Used on cygwin: DLL creation program.
20497DLLTOOL="$DLLTOOL"
20498
20499# Used on cygwin: object dumper.
20500OBJDUMP="$OBJDUMP"
20501
20502# Used on cygwin: assembler.
20503AS="$AS"
20504
20505# The name of the directory that contains temporary libtool files.
20506objdir=$objdir
20507
20508# How to create reloadable object files.
20509reload_flag=$lt_reload_flag
20510reload_cmds=$lt_reload_cmds
20511
20512# How to pass a linker flag through the compiler.
20513wl=$lt_lt_prog_compiler_wl_CXX
20514
20515# Object file suffix (normally "o").
20516objext="$ac_objext"
20517
20518# Old archive suffix (normally "a").
20519libext="$libext"
20520
20521# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020522shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020523
20524# Executable file suffix (normally "").
20525exeext="$exeext"
20526
20527# Additional compiler flags for building library objects.
20528pic_flag=$lt_lt_prog_compiler_pic_CXX
20529pic_mode=$pic_mode
20530
20531# What is the maximum length of a command?
20532max_cmd_len=$lt_cv_sys_max_cmd_len
20533
20534# Does compiler simultaneously support -c and -o options?
20535compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20536
Reid Spencera773bd52006-08-04 18:18:08 +000020537# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020538need_locks=$lt_need_locks
20539
20540# Do we need the lib prefix for modules?
20541need_lib_prefix=$need_lib_prefix
20542
20543# Do we need a version for libraries?
20544need_version=$need_version
20545
20546# Whether dlopen is supported.
20547dlopen_support=$enable_dlopen
20548
20549# Whether dlopen of programs is supported.
20550dlopen_self=$enable_dlopen_self
20551
20552# Whether dlopen of statically linked programs is supported.
20553dlopen_self_static=$enable_dlopen_self_static
20554
20555# Compiler flag to prevent dynamic linking.
20556link_static_flag=$lt_lt_prog_compiler_static_CXX
20557
20558# Compiler flag to turn off builtin functions.
20559no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20560
20561# Compiler flag to allow reflexive dlopens.
20562export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20563
20564# Compiler flag to generate shared objects directly from archives.
20565whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20566
20567# Compiler flag to generate thread-safe objects.
20568thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20569
20570# Library versioning type.
20571version_type=$version_type
20572
20573# Format of library name prefix.
20574libname_spec=$lt_libname_spec
20575
20576# List of archive names. First name is the real one, the rest are links.
20577# The last name is the one that the linker finds with -lNAME.
20578library_names_spec=$lt_library_names_spec
20579
20580# The coded name of the library, if different from the real name.
20581soname_spec=$lt_soname_spec
20582
20583# Commands used to build and install an old-style archive.
20584RANLIB=$lt_RANLIB
20585old_archive_cmds=$lt_old_archive_cmds_CXX
20586old_postinstall_cmds=$lt_old_postinstall_cmds
20587old_postuninstall_cmds=$lt_old_postuninstall_cmds
20588
20589# Create an old-style archive from a shared archive.
20590old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20591
20592# Create a temporary old-style archive to link instead of a shared archive.
20593old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20594
20595# Commands used to build and install a shared archive.
20596archive_cmds=$lt_archive_cmds_CXX
20597archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20598postinstall_cmds=$lt_postinstall_cmds
20599postuninstall_cmds=$lt_postuninstall_cmds
20600
20601# Commands used to build a loadable module (assumed same as above if empty)
20602module_cmds=$lt_module_cmds_CXX
20603module_expsym_cmds=$lt_module_expsym_cmds_CXX
20604
20605# Commands to strip libraries.
20606old_striplib=$lt_old_striplib
20607striplib=$lt_striplib
20608
20609# Dependencies to place before the objects being linked to create a
20610# shared library.
20611predep_objects=$lt_predep_objects_CXX
20612
20613# Dependencies to place after the objects being linked to create a
20614# shared library.
20615postdep_objects=$lt_postdep_objects_CXX
20616
20617# Dependencies to place before the objects being linked to create a
20618# shared library.
20619predeps=$lt_predeps_CXX
20620
20621# Dependencies to place after the objects being linked to create a
20622# shared library.
20623postdeps=$lt_postdeps_CXX
20624
20625# The library search path used internally by the compiler when linking
20626# a shared library.
20627compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20628
20629# Method to check whether dependent libraries are shared objects.
20630deplibs_check_method=$lt_deplibs_check_method
20631
20632# Command to use when deplibs_check_method == file_magic.
20633file_magic_cmd=$lt_file_magic_cmd
20634
20635# Flag that allows shared libraries with undefined symbols to be built.
20636allow_undefined_flag=$lt_allow_undefined_flag_CXX
20637
20638# Flag that forces no undefined symbols.
20639no_undefined_flag=$lt_no_undefined_flag_CXX
20640
20641# Commands used to finish a libtool library installation in a directory.
20642finish_cmds=$lt_finish_cmds
20643
20644# Same as above, but a single script fragment to be evaled but not shown.
20645finish_eval=$lt_finish_eval
20646
20647# Take the output of nm and produce a listing of raw symbols and C names.
20648global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20649
20650# Transform the output of nm in a proper C declaration
20651global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20652
20653# Transform the output of nm in a C name address pair
20654global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20655
20656# This is the shared library runtime path variable.
20657runpath_var=$runpath_var
20658
20659# This is the shared library path variable.
20660shlibpath_var=$shlibpath_var
20661
20662# Is shlibpath searched before the hard-coded library search path?
20663shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20664
20665# How to hardcode a shared library path into an executable.
20666hardcode_action=$hardcode_action_CXX
20667
20668# Whether we should hardcode library paths into libraries.
20669hardcode_into_libs=$hardcode_into_libs
20670
20671# Flag to hardcode \$libdir into a binary during linking.
20672# This must work even if \$libdir does not exist.
20673hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20674
20675# If ld is used when linking, flag to hardcode \$libdir into
20676# a binary during linking. This must work even if \$libdir does
20677# not exist.
20678hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20679
20680# Whether we need a single -rpath flag with a separated argument.
20681hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20682
20683# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20684# resulting binary.
20685hardcode_direct=$hardcode_direct_CXX
20686
20687# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20688# resulting binary.
20689hardcode_minus_L=$hardcode_minus_L_CXX
20690
20691# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20692# the resulting binary.
20693hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20694
20695# Set to yes if building a shared library automatically hardcodes DIR into the library
20696# and all subsequent libraries and executables linked against it.
20697hardcode_automatic=$hardcode_automatic_CXX
20698
20699# Variables whose values should be saved in libtool wrapper scripts and
20700# restored at relink time.
20701variables_saved_for_relink="$variables_saved_for_relink"
20702
20703# Whether libtool must link a program against all its dependency libraries.
20704link_all_deplibs=$link_all_deplibs_CXX
20705
20706# Compile-time system search path for libraries
20707sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20708
20709# Run-time system search path for libraries
20710sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20711
20712# Fix the shell variable \$srcfile for the compiler.
20713fix_srcfile_path="$fix_srcfile_path_CXX"
20714
20715# Set to yes if exported symbols are required.
20716always_export_symbols=$always_export_symbols_CXX
20717
20718# The commands to list exported symbols.
20719export_symbols_cmds=$lt_export_symbols_cmds_CXX
20720
20721# The commands to extract the exported symbol list from a shared archive.
20722extract_expsyms_cmds=$lt_extract_expsyms_cmds
20723
20724# Symbols that should not be listed in the preloaded symbols.
20725exclude_expsyms=$lt_exclude_expsyms_CXX
20726
20727# Symbols that must always be exported.
20728include_expsyms=$lt_include_expsyms_CXX
20729
20730# ### END LIBTOOL TAG CONFIG: $tagname
20731
20732__EOF__
20733
20734
20735else
20736 # If there is no Makefile yet, we rely on a make rule to execute
20737 # `config.status --recheck' to rerun these tests and create the
20738 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020739 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20740 if test -f "$ltmain_in"; then
20741 test -f Makefile && make "$ltmain"
20742 fi
John Criswell47fdd832003-07-14 16:52:07 +000020743fi
20744
20745
20746ac_ext=c
20747ac_cpp='$CPP $CPPFLAGS'
20748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20750ac_compiler_gnu=$ac_cv_c_compiler_gnu
20751
20752CC=$lt_save_CC
20753LDCXX=$LD
20754LD=$lt_save_LD
20755GCC=$lt_save_GCC
20756with_gnu_ldcxx=$with_gnu_ld
20757with_gnu_ld=$lt_save_with_gnu_ld
20758lt_cv_path_LDCXX=$lt_cv_path_LD
20759lt_cv_path_LD=$lt_save_path_LD
20760lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20761lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20762
20763 else
20764 tagname=""
20765 fi
20766 ;;
20767
20768 F77)
20769 if test -n "$F77" && test "X$F77" != "Xno"; then
20770
20771ac_ext=f
20772ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20773ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20774ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20775
20776
20777archive_cmds_need_lc_F77=no
20778allow_undefined_flag_F77=
20779always_export_symbols_F77=no
20780archive_expsym_cmds_F77=
20781export_dynamic_flag_spec_F77=
20782hardcode_direct_F77=no
20783hardcode_libdir_flag_spec_F77=
20784hardcode_libdir_flag_spec_ld_F77=
20785hardcode_libdir_separator_F77=
20786hardcode_minus_L_F77=no
20787hardcode_automatic_F77=no
20788module_cmds_F77=
20789module_expsym_cmds_F77=
20790link_all_deplibs_F77=unknown
20791old_archive_cmds_F77=$old_archive_cmds
20792no_undefined_flag_F77=
20793whole_archive_flag_spec_F77=
20794enable_shared_with_static_runtimes_F77=no
20795
20796# Source file extension for f77 test sources.
20797ac_ext=f
20798
20799# Object file extension for compiled f77 test sources.
20800objext=o
20801objext_F77=$objext
20802
20803# Code to be used in simple compile tests
20804lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20805
20806# Code to be used in simple link tests
20807lt_simple_link_test_code=" program t\n end\n"
20808
20809# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20810
20811# If no C compiler was specified, use CC.
20812LTCC=${LTCC-"$CC"}
20813
Reid Spencera773bd52006-08-04 18:18:08 +000020814# If no C compiler flags were specified, use CFLAGS.
20815LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20816
John Criswell47fdd832003-07-14 16:52:07 +000020817# Allow CC to be a program name with arguments.
20818compiler=$CC
20819
20820
Reid Spencera773bd52006-08-04 18:18:08 +000020821# save warnings/boilerplate of simple test code
20822ac_outfile=conftest.$ac_objext
20823printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20824eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20825_lt_compiler_boilerplate=`cat conftest.err`
20826$rm conftest*
20827
20828ac_outfile=conftest.$ac_objext
20829printf "$lt_simple_link_test_code" >conftest.$ac_ext
20830eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20831_lt_linker_boilerplate=`cat conftest.err`
20832$rm conftest*
20833
20834
John Criswell47fdd832003-07-14 16:52:07 +000020835# Allow CC to be a program name with arguments.
20836lt_save_CC="$CC"
20837CC=${F77-"f77"}
20838compiler=$CC
20839compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020840for cc_temp in $compiler""; do
20841 case $cc_temp in
20842 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20843 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20844 \-*) ;;
20845 *) break;;
20846 esac
20847done
20848cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020849
John Criswell47fdd832003-07-14 16:52:07 +000020850
Reid Spencera773bd52006-08-04 18:18:08 +000020851{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20852echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20853{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20854echo "${ECHO_T}$can_build_shared" >&6; }
20855
20856{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20857echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020858test "$can_build_shared" = "no" && enable_shared=no
20859
20860# On AIX, shared libraries and static libraries use the same namespace, and
20861# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020862case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020863aix3*)
20864 test "$enable_shared" = yes && enable_static=no
20865 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020866 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020867 postinstall_cmds='$RANLIB $lib'
20868 fi
20869 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020870aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020871 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20872 test "$enable_shared" = yes && enable_static=no
20873 fi
John Criswell47fdd832003-07-14 16:52:07 +000020874 ;;
20875esac
Reid Spencera773bd52006-08-04 18:18:08 +000020876{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20877echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020878
Reid Spencera773bd52006-08-04 18:18:08 +000020879{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20880echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020881# Make sure either enable_shared or enable_static is yes.
20882test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020883{ echo "$as_me:$LINENO: result: $enable_static" >&5
20884echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020885
20886GCC_F77="$G77"
20887LD_F77="$LD"
20888
20889lt_prog_compiler_wl_F77=
20890lt_prog_compiler_pic_F77=
20891lt_prog_compiler_static_F77=
20892
Reid Spencera773bd52006-08-04 18:18:08 +000020893{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20894echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020895
20896 if test "$GCC" = yes; then
20897 lt_prog_compiler_wl_F77='-Wl,'
20898 lt_prog_compiler_static_F77='-static'
20899
20900 case $host_os in
20901 aix*)
20902 # All AIX code is PIC.
20903 if test "$host_cpu" = ia64; then
20904 # AIX 5 now supports IA64 processor
20905 lt_prog_compiler_static_F77='-Bstatic'
20906 fi
20907 ;;
20908
20909 amigaos*)
20910 # FIXME: we need at least 68020 code to build shared libraries, but
20911 # adding the `-m68020' flag to GCC prevents building anything better,
20912 # like `-m68040'.
20913 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20914 ;;
20915
20916 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20917 # PIC is the default for these OSes.
20918 ;;
20919
20920 mingw* | pw32* | os2*)
20921 # This hack is so that the source file can tell whether it is being
20922 # built for inclusion in a dll (and should export symbols for example).
20923 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20924 ;;
20925
20926 darwin* | rhapsody*)
20927 # PIC is the default on this platform
20928 # Common symbols not allowed in MH_DYLIB files
20929 lt_prog_compiler_pic_F77='-fno-common'
20930 ;;
20931
Reid Spencera773bd52006-08-04 18:18:08 +000020932 interix3*)
20933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20934 # Instead, we relocate shared libraries at runtime.
20935 ;;
20936
John Criswell47fdd832003-07-14 16:52:07 +000020937 msdosdjgpp*)
20938 # Just because we use GCC doesn't mean we suddenly get shared libraries
20939 # on systems that don't support them.
20940 lt_prog_compiler_can_build_shared_F77=no
20941 enable_shared=no
20942 ;;
20943
20944 sysv4*MP*)
20945 if test -d /usr/nec; then
20946 lt_prog_compiler_pic_F77=-Kconform_pic
20947 fi
20948 ;;
20949
20950 hpux*)
20951 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20952 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020953 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020954 hppa*64*|ia64*)
20955 # +Z the default
20956 ;;
20957 *)
20958 lt_prog_compiler_pic_F77='-fPIC'
20959 ;;
20960 esac
20961 ;;
20962
20963 *)
20964 lt_prog_compiler_pic_F77='-fPIC'
20965 ;;
20966 esac
20967 else
20968 # PORTME Check for flag to pass linker flags through the system compiler.
20969 case $host_os in
20970 aix*)
20971 lt_prog_compiler_wl_F77='-Wl,'
20972 if test "$host_cpu" = ia64; then
20973 # AIX 5 now supports IA64 processor
20974 lt_prog_compiler_static_F77='-Bstatic'
20975 else
20976 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20977 fi
20978 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020979 darwin*)
20980 # PIC is the default on this platform
20981 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020982 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020983 xlc*)
20984 lt_prog_compiler_pic_F77='-qnocommon'
20985 lt_prog_compiler_wl_F77='-Wl,'
20986 ;;
20987 esac
20988 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020989
20990 mingw* | pw32* | os2*)
20991 # This hack is so that the source file can tell whether it is being
20992 # built for inclusion in a dll (and should export symbols for example).
20993 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20994 ;;
20995
20996 hpux9* | hpux10* | hpux11*)
20997 lt_prog_compiler_wl_F77='-Wl,'
20998 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20999 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021000 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021001 hppa*64*|ia64*)
21002 # +Z the default
21003 ;;
21004 *)
21005 lt_prog_compiler_pic_F77='+Z'
21006 ;;
21007 esac
21008 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21009 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21010 ;;
21011
21012 irix5* | irix6* | nonstopux*)
21013 lt_prog_compiler_wl_F77='-Wl,'
21014 # PIC (with -KPIC) is the default.
21015 lt_prog_compiler_static_F77='-non_shared'
21016 ;;
21017
21018 newsos6)
21019 lt_prog_compiler_pic_F77='-KPIC'
21020 lt_prog_compiler_static_F77='-Bstatic'
21021 ;;
21022
21023 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021024 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021026 lt_prog_compiler_wl_F77='-Wl,'
21027 lt_prog_compiler_pic_F77='-KPIC'
21028 lt_prog_compiler_static_F77='-static'
21029 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021030 pgcc* | pgf77* | pgf90* | pgf95*)
21031 # Portland Group compilers (*not* the Pentium gcc compiler,
21032 # which looks to be a dead project)
21033 lt_prog_compiler_wl_F77='-Wl,'
21034 lt_prog_compiler_pic_F77='-fpic'
21035 lt_prog_compiler_static_F77='-Bstatic'
21036 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021037 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021038 lt_prog_compiler_wl_F77='-Wl,'
21039 # All Alpha code is PIC.
21040 lt_prog_compiler_static_F77='-non_shared'
21041 ;;
21042 esac
21043 ;;
21044
21045 osf3* | osf4* | osf5*)
21046 lt_prog_compiler_wl_F77='-Wl,'
21047 # All OSF/1 code is PIC.
21048 lt_prog_compiler_static_F77='-non_shared'
21049 ;;
21050
John Criswell47fdd832003-07-14 16:52:07 +000021051 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021052 lt_prog_compiler_pic_F77='-KPIC'
21053 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021054 case $cc_basename in
21055 f77* | f90* | f95*)
21056 lt_prog_compiler_wl_F77='-Qoption ld ';;
21057 *)
21058 lt_prog_compiler_wl_F77='-Wl,';;
21059 esac
John Criswell47fdd832003-07-14 16:52:07 +000021060 ;;
21061
21062 sunos4*)
21063 lt_prog_compiler_wl_F77='-Qoption ld '
21064 lt_prog_compiler_pic_F77='-PIC'
21065 lt_prog_compiler_static_F77='-Bstatic'
21066 ;;
21067
Reid Spencera773bd52006-08-04 18:18:08 +000021068 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021069 lt_prog_compiler_wl_F77='-Wl,'
21070 lt_prog_compiler_pic_F77='-KPIC'
21071 lt_prog_compiler_static_F77='-Bstatic'
21072 ;;
21073
21074 sysv4*MP*)
21075 if test -d /usr/nec ;then
21076 lt_prog_compiler_pic_F77='-Kconform_pic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21078 fi
21079 ;;
21080
Reid Spencera773bd52006-08-04 18:18:08 +000021081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21082 lt_prog_compiler_wl_F77='-Wl,'
21083 lt_prog_compiler_pic_F77='-KPIC'
21084 lt_prog_compiler_static_F77='-Bstatic'
21085 ;;
21086
21087 unicos*)
21088 lt_prog_compiler_wl_F77='-Wl,'
21089 lt_prog_compiler_can_build_shared_F77=no
21090 ;;
21091
John Criswell47fdd832003-07-14 16:52:07 +000021092 uts4*)
21093 lt_prog_compiler_pic_F77='-pic'
21094 lt_prog_compiler_static_F77='-Bstatic'
21095 ;;
21096
21097 *)
21098 lt_prog_compiler_can_build_shared_F77=no
21099 ;;
21100 esac
21101 fi
21102
Reid Spencera773bd52006-08-04 18:18:08 +000021103{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21104echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021105
21106#
21107# Check to make sure the PIC flag actually works.
21108#
21109if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021110
Reid Spencera773bd52006-08-04 18:18:08 +000021111{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21112echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021113if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116 lt_prog_compiler_pic_works_F77=no
21117 ac_outfile=conftest.$ac_objext
21118 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21119 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21120 # Insert the option either (1) after the last *FLAGS variable, or
21121 # (2) before a word containing "conftest.", or (3) at the end.
21122 # Note that $ac_compile itself does not contain backslashes and begins
21123 # with a dollar sign (not a hyphen), so the echo should work correctly.
21124 # The option is referenced via a variable to avoid confusing sed.
21125 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21128 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000021129 (eval echo "\"\$as_me:21129: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021130 (eval "$lt_compile" 2>conftest.err)
21131 ac_status=$?
21132 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000021133 echo "$as_me:21133: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021134 if (exit $ac_status) && test -s "$ac_outfile"; then
21135 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021136 # So say no if there are warnings other than the usual output.
21137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021140 lt_prog_compiler_pic_works_F77=yes
21141 fi
21142 fi
21143 $rm conftest*
21144
21145fi
Reid Spencera773bd52006-08-04 18:18:08 +000021146{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21147echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021148
21149if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21150 case $lt_prog_compiler_pic_F77 in
21151 "" | " "*) ;;
21152 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21153 esac
21154else
21155 lt_prog_compiler_pic_F77=
21156 lt_prog_compiler_can_build_shared_F77=no
21157fi
21158
21159fi
Reid Spencera773bd52006-08-04 18:18:08 +000021160case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021161 # For platforms which do not support PIC, -DPIC is meaningless:
21162 *djgpp*)
21163 lt_prog_compiler_pic_F77=
21164 ;;
21165 *)
21166 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21167 ;;
21168esac
21169
Reid Spencera773bd52006-08-04 18:18:08 +000021170#
21171# Check to make sure the static flag actually works.
21172#
21173wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21174{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21175echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21176if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178else
21179 lt_prog_compiler_static_works_F77=no
21180 save_LDFLAGS="$LDFLAGS"
21181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21182 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21184 # The linker can only warn and ignore the option if not recognized
21185 # So say no if there are warnings
21186 if test -s conftest.err; then
21187 # Append any errors to the config.log.
21188 cat conftest.err 1>&5
21189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21191 if diff conftest.exp conftest.er2 >/dev/null; then
21192 lt_prog_compiler_static_works_F77=yes
21193 fi
21194 else
21195 lt_prog_compiler_static_works_F77=yes
21196 fi
21197 fi
21198 $rm conftest*
21199 LDFLAGS="$save_LDFLAGS"
21200
21201fi
21202{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21203echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21204
21205if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21206 :
21207else
21208 lt_prog_compiler_static_F77=
21209fi
21210
21211
21212{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21213echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021214if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216else
21217 lt_cv_prog_compiler_c_o_F77=no
21218 $rm -r conftest 2>/dev/null
21219 mkdir conftest
21220 cd conftest
21221 mkdir out
21222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21223
John Criswell47fdd832003-07-14 16:52:07 +000021224 lt_compiler_flag="-o out/conftest2.$ac_objext"
21225 # Insert the option either (1) after the last *FLAGS variable, or
21226 # (2) before a word containing "conftest.", or (3) at the end.
21227 # Note that $ac_compile itself does not contain backslashes and begins
21228 # with a dollar sign (not a hyphen), so the echo should work correctly.
21229 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000021233 (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021234 (eval "$lt_compile" 2>out/conftest.err)
21235 ac_status=$?
21236 cat out/conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000021237 echo "$as_me:21237: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21239 then
21240 # The compiler can only warn and ignore the option if not recognized
21241 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021245 lt_cv_prog_compiler_c_o_F77=yes
21246 fi
21247 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021248 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021249 $rm conftest*
21250 # SGI C++ compiler will create directory out/ii_files/ for
21251 # template instantiation
21252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21253 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021254 cd ..
21255 rmdir conftest
21256 $rm conftest*
21257
21258fi
Reid Spencera773bd52006-08-04 18:18:08 +000021259{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21260echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021261
21262
21263hard_links="nottested"
21264if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21265 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021268 hard_links=yes
21269 $rm conftest*
21270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21271 touch conftest.a
21272 ln conftest.a conftest.b 2>&5 || hard_links=no
21273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021274 { echo "$as_me:$LINENO: result: $hard_links" >&5
21275echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021276 if test "$hard_links" = no; then
21277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21279 need_locks=warn
21280 fi
21281else
21282 need_locks=no
21283fi
21284
Reid Spencera773bd52006-08-04 18:18:08 +000021285{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021287
21288 runpath_var=
21289 allow_undefined_flag_F77=
21290 enable_shared_with_static_runtimes_F77=no
21291 archive_cmds_F77=
21292 archive_expsym_cmds_F77=
21293 old_archive_From_new_cmds_F77=
21294 old_archive_from_expsyms_cmds_F77=
21295 export_dynamic_flag_spec_F77=
21296 whole_archive_flag_spec_F77=
21297 thread_safe_flag_spec_F77=
21298 hardcode_libdir_flag_spec_F77=
21299 hardcode_libdir_flag_spec_ld_F77=
21300 hardcode_libdir_separator_F77=
21301 hardcode_direct_F77=no
21302 hardcode_minus_L_F77=no
21303 hardcode_shlibpath_var_F77=unsupported
21304 link_all_deplibs_F77=unknown
21305 hardcode_automatic_F77=no
21306 module_cmds_F77=
21307 module_expsym_cmds_F77=
21308 always_export_symbols_F77=no
21309 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21310 # include_expsyms should be a list of space-separated symbols to be *always*
21311 # included in the symbol list
21312 include_expsyms_F77=
21313 # exclude_expsyms can be an extended regexp of symbols to exclude
21314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21316 # as well as any symbol that contains `d'.
21317 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21319 # platforms (ab)use it in PIC code, but their linkers get confused if
21320 # the symbol is explicitly referenced. Since portable code cannot
21321 # rely on this symbol name, it's probably fine to never include it in
21322 # preloaded symbol tables.
21323 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021324 # Just being paranoid about ensuring that cc_basename is set.
21325 for cc_temp in $compiler""; do
21326 case $cc_temp in
21327 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21328 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21329 \-*) ;;
21330 *) break;;
21331 esac
21332done
21333cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021334
21335 case $host_os in
21336 cygwin* | mingw* | pw32*)
21337 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21338 # When not using gcc, we currently assume that we are using
21339 # Microsoft Visual C++.
21340 if test "$GCC" != yes; then
21341 with_gnu_ld=no
21342 fi
21343 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021344 interix*)
21345 # we just hope/assume this is gcc and not c89 (= MSVC++)
21346 with_gnu_ld=yes
21347 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021348 openbsd*)
21349 with_gnu_ld=no
21350 ;;
21351 esac
21352
21353 ld_shlibs_F77=yes
21354 if test "$with_gnu_ld" = yes; then
21355 # If archive_cmds runs LD, not CC, wlarc should be empty
21356 wlarc='${wl}'
21357
Reid Spencera773bd52006-08-04 18:18:08 +000021358 # Set some defaults for GNU ld with shared library support. These
21359 # are reset later if shared libraries are not supported. Putting them
21360 # here allows them to be overridden if necessary.
21361 runpath_var=LD_RUN_PATH
21362 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21363 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21364 # ancient GNU ld didn't support --whole-archive et. al.
21365 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21366 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21367 else
21368 whole_archive_flag_spec_F77=
21369 fi
21370 supports_anon_versioning=no
21371 case `$LD -v 2>/dev/null` in
21372 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21373 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21374 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21375 *\ 2.11.*) ;; # other 2.11 versions
21376 *) supports_anon_versioning=yes ;;
21377 esac
21378
John Criswell47fdd832003-07-14 16:52:07 +000021379 # See if GNU ld supports shared libraries.
21380 case $host_os in
21381 aix3* | aix4* | aix5*)
21382 # On AIX/PPC, the GNU linker is very broken
21383 if test "$host_cpu" != ia64; then
21384 ld_shlibs_F77=no
21385 cat <<EOF 1>&2
21386
21387*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21388*** to be unable to reliably create shared libraries on AIX.
21389*** Therefore, libtool is disabling shared libraries support. If you
21390*** really care for shared libraries, you may want to modify your PATH
21391*** so that a non-GNU linker is found, and then restart.
21392
21393EOF
21394 fi
21395 ;;
21396
21397 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021398 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)'
John Criswell47fdd832003-07-14 16:52:07 +000021399 hardcode_libdir_flag_spec_F77='-L$libdir'
21400 hardcode_minus_L_F77=yes
21401
21402 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21403 # that the semantics of dynamic libraries on AmigaOS, at least up
21404 # to version 4, is to share data among multiple programs linked
21405 # with the same dynamic library. Since this doesn't match the
21406 # behavior of shared libraries on other platforms, we can't use
21407 # them.
21408 ld_shlibs_F77=no
21409 ;;
21410
21411 beos*)
21412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21413 allow_undefined_flag_F77=unsupported
21414 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21415 # support --undefined. This deserves some investigation. FIXME
21416 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21417 else
21418 ld_shlibs_F77=no
21419 fi
21420 ;;
21421
21422 cygwin* | mingw* | pw32*)
21423 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21424 # as there is no search path for DLLs.
21425 hardcode_libdir_flag_spec_F77='-L$libdir'
21426 allow_undefined_flag_F77=unsupported
21427 always_export_symbols_F77=no
21428 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021429 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000021430
21431 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021432 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021433 # If the export-symbols file already is a .def file (1st line
21434 # is EXPORTS), use it as is; otherwise, prepend...
21435 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21436 cp $export_symbols $output_objdir/$soname.def;
21437 else
21438 echo EXPORTS > $output_objdir/$soname.def;
21439 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021440 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021441 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021442 else
Reid Spencera773bd52006-08-04 18:18:08 +000021443 ld_shlibs_F77=no
21444 fi
21445 ;;
21446
21447 interix3*)
21448 hardcode_direct_F77=no
21449 hardcode_shlibpath_var_F77=no
21450 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21451 export_dynamic_flag_spec_F77='${wl}-E'
21452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21453 # Instead, shared libraries are loaded at an image base (0x10000000 by
21454 # default) and relocated if they conflict, which is a slow very memory
21455 # consuming and fragmenting process. To avoid this, we pick a random,
21456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21458 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'
21459 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'
21460 ;;
21461
21462 linux*)
21463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21464 tmp_addflag=
21465 case $cc_basename,$host_cpu in
21466 pgcc*) # Portland Group C compiler
21467 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'
21468 tmp_addflag=' $pic_flag'
21469 ;;
21470 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21471 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'
21472 tmp_addflag=' $pic_flag -Mnomain' ;;
21473 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21474 tmp_addflag=' -i_dynamic' ;;
21475 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21476 tmp_addflag=' -i_dynamic -nofor_main' ;;
21477 ifc* | ifort*) # Intel Fortran compiler
21478 tmp_addflag=' -nofor_main' ;;
21479 esac
21480 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21481
21482 if test $supports_anon_versioning = yes; then
21483 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21484 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21485 $echo "local: *; };" >> $output_objdir/$libname.ver~
21486 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21487 fi
21488 else
21489 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021490 fi
21491 ;;
21492
21493 netbsd*)
21494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21495 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21496 wlarc=
21497 else
21498 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21499 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21500 fi
21501 ;;
21502
Reid Spencera773bd52006-08-04 18:18:08 +000021503 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021504 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21505 ld_shlibs_F77=no
21506 cat <<EOF 1>&2
21507
21508*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21509*** create shared libraries on Solaris systems. Therefore, libtool
21510*** is disabling shared libraries support. We urge you to upgrade GNU
21511*** binutils to release 2.9.1 or newer. Another option is to modify
21512*** your PATH or compiler configuration so that the native linker is
21513*** used, and then restart.
21514
21515EOF
21516 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21517 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21518 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21519 else
21520 ld_shlibs_F77=no
21521 fi
21522 ;;
21523
Reid Spencera773bd52006-08-04 18:18:08 +000021524 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21525 case `$LD -v 2>&1` in
21526 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21527 ld_shlibs_F77=no
21528 cat <<_LT_EOF 1>&2
21529
21530*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21531*** reliably create shared libraries on SCO systems. Therefore, libtool
21532*** is disabling shared libraries support. We urge you to upgrade GNU
21533*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21534*** your PATH or compiler configuration so that the native linker is
21535*** used, and then restart.
21536
21537_LT_EOF
21538 ;;
21539 *)
21540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21541 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21542 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21543 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21544 else
21545 ld_shlibs_F77=no
21546 fi
21547 ;;
21548 esac
21549 ;;
21550
John Criswell47fdd832003-07-14 16:52:07 +000021551 sunos4*)
21552 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21553 wlarc=
21554 hardcode_direct_F77=yes
21555 hardcode_shlibpath_var_F77=no
21556 ;;
21557
21558 *)
21559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21560 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21561 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21562 else
21563 ld_shlibs_F77=no
21564 fi
21565 ;;
21566 esac
21567
Reid Spencera773bd52006-08-04 18:18:08 +000021568 if test "$ld_shlibs_F77" = no; then
21569 runpath_var=
21570 hardcode_libdir_flag_spec_F77=
21571 export_dynamic_flag_spec_F77=
21572 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021573 fi
21574 else
21575 # PORTME fill in a description of your system's linker (not GNU ld)
21576 case $host_os in
21577 aix3*)
21578 allow_undefined_flag_F77=unsupported
21579 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021580 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'
John Criswell47fdd832003-07-14 16:52:07 +000021581 # Note: this linker hardcodes the directories in LIBPATH if there
21582 # are no directories specified by -L.
21583 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021584 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021585 # Neither direct hardcoding nor static linking is supported with a
21586 # broken collect2.
21587 hardcode_direct_F77=unsupported
21588 fi
21589 ;;
21590
21591 aix4* | aix5*)
21592 if test "$host_cpu" = ia64; then
21593 # On IA64, the linker does run time linking by default, so we don't
21594 # have to do anything special.
21595 aix_use_runtimelinking=no
21596 exp_sym_flag='-Bexport'
21597 no_entry_flag=""
21598 else
21599 # If we're using GNU nm, then we don't want the "-C" option.
21600 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21601 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21602 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'
21603 else
21604 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'
21605 fi
21606 aix_use_runtimelinking=no
21607
21608 # Test if we are trying to use run time linking or normal
21609 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21610 # need to do runtime linking.
21611 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21612 for ld_flag in $LDFLAGS; do
21613 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21614 aix_use_runtimelinking=yes
21615 break
21616 fi
21617 done
Reid Spencera773bd52006-08-04 18:18:08 +000021618 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021619 esac
21620
21621 exp_sym_flag='-bexport'
21622 no_entry_flag='-bnoentry'
21623 fi
21624
21625 # When large executables or shared objects are built, AIX ld can
21626 # have problems creating the table of contents. If linking a library
21627 # or program results in "error TOC overflow" add -mminimal-toc to
21628 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21629 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21630
21631 archive_cmds_F77=''
21632 hardcode_direct_F77=yes
21633 hardcode_libdir_separator_F77=':'
21634 link_all_deplibs_F77=yes
21635
21636 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021637 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021638 # We only want to do this on AIX 4.2 and lower, the check
21639 # below for broken collect2 doesn't work under 4.3+
21640 collect2name=`${CC} -print-prog-name=collect2`
21641 if test -f "$collect2name" && \
21642 strings "$collect2name" | grep resolve_lib_name >/dev/null
21643 then
21644 # We have reworked collect2
21645 hardcode_direct_F77=yes
21646 else
21647 # We have old collect2
21648 hardcode_direct_F77=unsupported
21649 # It fails to find uninstalled libraries when the uninstalled
21650 # path is not listed in the libpath. Setting hardcode_minus_L
21651 # to unsupported forces relinking
21652 hardcode_minus_L_F77=yes
21653 hardcode_libdir_flag_spec_F77='-L$libdir'
21654 hardcode_libdir_separator_F77=
21655 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021656 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021657 esac
21658 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021659 if test "$aix_use_runtimelinking" = yes; then
21660 shared_flag="$shared_flag "'${wl}-G'
21661 fi
John Criswell47fdd832003-07-14 16:52:07 +000021662 else
21663 # not using gcc
21664 if test "$host_cpu" = ia64; then
21665 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21666 # chokes on -Wl,-G. The following line is correct:
21667 shared_flag='-G'
21668 else
Reid Spencera773bd52006-08-04 18:18:08 +000021669 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021670 shared_flag='${wl}-G'
21671 else
21672 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021673 fi
John Criswell47fdd832003-07-14 16:52:07 +000021674 fi
21675 fi
21676
21677 # It seems that -bexpall does not export symbols beginning with
21678 # underscore (_), so it is better to generate a list of symbols to export.
21679 always_export_symbols_F77=yes
21680 if test "$aix_use_runtimelinking" = yes; then
21681 # Warning - without using the other runtime loading flags (-brtl),
21682 # -berok will link without error, but may produce a broken library.
21683 allow_undefined_flag_F77='-berok'
21684 # Determine the default libpath from the value encoded in an empty executable.
21685 cat >conftest.$ac_ext <<_ACEOF
21686 program main
21687
21688 end
21689_ACEOF
21690rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021691if { (ac_try="$ac_link"
21692case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21695esac
21696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021699 grep -v '^ *+' conftest.er1 >conftest.err
21700 rm -f conftest.er1
21701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021704 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21705 { (case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21708esac
21709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021711 ac_status=$?
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021715 { (case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21718esac
21719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021721 ac_status=$?
21722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21723 (exit $ac_status); }; }; then
21724
21725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21726}'`
21727# Check for a 64-bit object if we didn't find anything.
21728if 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; }
21729}'`; fi
21730else
21731 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021732sed 's/^/| /' conftest.$ac_ext >&5
21733
Reid Spencera773bd52006-08-04 18:18:08 +000021734
John Criswell47fdd832003-07-14 16:52:07 +000021735fi
Reid Spencera773bd52006-08-04 18:18:08 +000021736
21737rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21740
21741 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021742 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"
John Criswell47fdd832003-07-14 16:52:07 +000021743 else
21744 if test "$host_cpu" = ia64; then
21745 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21746 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021747 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"
John Criswell47fdd832003-07-14 16:52:07 +000021748 else
21749 # Determine the default libpath from the value encoded in an empty executable.
21750 cat >conftest.$ac_ext <<_ACEOF
21751 program main
21752
21753 end
21754_ACEOF
21755rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021756if { (ac_try="$ac_link"
21757case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760esac
21761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021763 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021769 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21770 { (case "(($ac_try" in
21771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772 *) ac_try_echo=$ac_try;;
21773esac
21774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; } &&
21779 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021780 { (case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783esac
21784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); }; }; then
21789
21790aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21791}'`
21792# Check for a 64-bit object if we didn't find anything.
21793if 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; }
21794}'`; fi
21795else
21796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021797sed 's/^/| /' conftest.$ac_ext >&5
21798
Reid Spencera773bd52006-08-04 18:18:08 +000021799
John Criswell47fdd832003-07-14 16:52:07 +000021800fi
Reid Spencera773bd52006-08-04 18:18:08 +000021801
21802rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021803 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21805
21806 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21807 # Warning - without using the other run time loading flags,
21808 # -berok will link without error, but may produce a broken library.
21809 no_undefined_flag_F77=' ${wl}-bernotok'
21810 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021811 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021812 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021813 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021814 # This is similar to how AIX traditionally builds its shared libraries.
21815 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'
John Criswell47fdd832003-07-14 16:52:07 +000021816 fi
21817 fi
21818 ;;
21819
21820 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021821 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)'
John Criswell47fdd832003-07-14 16:52:07 +000021822 hardcode_libdir_flag_spec_F77='-L$libdir'
21823 hardcode_minus_L_F77=yes
21824 # see comment about different semantics on the GNU ld section
21825 ld_shlibs_F77=no
21826 ;;
21827
Reid Spencer2706f8c2004-09-19 23:53:36 +000021828 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021829 export_dynamic_flag_spec_F77=-rdynamic
21830 ;;
21831
21832 cygwin* | mingw* | pw32*)
21833 # When not using gcc, we currently assume that we are using
21834 # Microsoft Visual C++.
21835 # hardcode_libdir_flag_spec is actually meaningless, as there is
21836 # no search path for DLLs.
21837 hardcode_libdir_flag_spec_F77=' '
21838 allow_undefined_flag_F77=unsupported
21839 # Tell ltmain to make .lib files, not .a files.
21840 libext=lib
21841 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021842 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021843 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021844 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000021845 # The linker will automatically build a .lib file if we build a DLL.
21846 old_archive_From_new_cmds_F77='true'
21847 # FIXME: Should let the user specify the lib program.
21848 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021849 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021850 enable_shared_with_static_runtimes_F77=yes
21851 ;;
21852
21853 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021854 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021855 rhapsody* | darwin1.[012])
21856 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21857 ;;
21858 *) # Darwin 1.3 on
21859 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21860 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21861 else
21862 case ${MACOSX_DEPLOYMENT_TARGET} in
21863 10.[012])
21864 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21865 ;;
21866 10.*)
21867 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21868 ;;
21869 esac
21870 fi
21871 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021872 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021873 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021874 hardcode_direct_F77=no
21875 hardcode_automatic_F77=yes
21876 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021877 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021878 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021879 if test "$GCC" = yes ; then
21880 output_verbose_link_cmd='echo'
21881 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21882 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021883 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000021884 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}'
21885 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 else
Reid Spencera773bd52006-08-04 18:18:08 +000021887 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021888 xlc*)
21889 output_verbose_link_cmd='echo'
21890 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21891 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021892 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000021893 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}'
21894 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021895 ;;
21896 *)
21897 ld_shlibs_F77=no
21898 ;;
21899 esac
John Criswell47fdd832003-07-14 16:52:07 +000021900 fi
21901 ;;
21902
21903 dgux*)
21904 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21905 hardcode_libdir_flag_spec_F77='-L$libdir'
21906 hardcode_shlibpath_var_F77=no
21907 ;;
21908
21909 freebsd1*)
21910 ld_shlibs_F77=no
21911 ;;
21912
21913 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21914 # support. Future versions do this automatically, but an explicit c++rt0.o
21915 # does not break anything, and helps significantly (at the cost of a little
21916 # extra space).
21917 freebsd2.2*)
21918 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21919 hardcode_libdir_flag_spec_F77='-R$libdir'
21920 hardcode_direct_F77=yes
21921 hardcode_shlibpath_var_F77=no
21922 ;;
21923
21924 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21925 freebsd2*)
21926 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21927 hardcode_direct_F77=yes
21928 hardcode_minus_L_F77=yes
21929 hardcode_shlibpath_var_F77=no
21930 ;;
21931
21932 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021933 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021934 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21935 hardcode_libdir_flag_spec_F77='-R$libdir'
21936 hardcode_direct_F77=yes
21937 hardcode_shlibpath_var_F77=no
21938 ;;
21939
21940 hpux9*)
21941 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021942 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'
John Criswell47fdd832003-07-14 16:52:07 +000021943 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021944 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'
John Criswell47fdd832003-07-14 16:52:07 +000021945 fi
21946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947 hardcode_libdir_separator_F77=:
21948 hardcode_direct_F77=yes
21949
21950 # hardcode_minus_L: Not really in the search PATH,
21951 # but as the default location of the library.
21952 hardcode_minus_L_F77=yes
21953 export_dynamic_flag_spec_F77='${wl}-E'
21954 ;;
21955
Reid Spencera773bd52006-08-04 18:18:08 +000021956 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021957 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021958 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21959 else
21960 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21961 fi
21962 if test "$with_gnu_ld" = no; then
21963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21964 hardcode_libdir_separator_F77=:
21965
21966 hardcode_direct_F77=yes
21967 export_dynamic_flag_spec_F77='${wl}-E'
21968
21969 # hardcode_minus_L: Not really in the search PATH,
21970 # but as the default location of the library.
21971 hardcode_minus_L_F77=yes
21972 fi
21973 ;;
21974
21975 hpux11*)
21976 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21977 case $host_cpu in
21978 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021979 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021981 ia64*)
21982 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21983 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021984 *)
21985 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21986 ;;
21987 esac
21988 else
Reid Spencera773bd52006-08-04 18:18:08 +000021989 case $host_cpu in
21990 hppa*64*)
21991 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21992 ;;
21993 ia64*)
21994 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021995 ;;
21996 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021997 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021998 ;;
21999 esac
22000 fi
22001 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022002 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22003 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022004
Reid Spencera773bd52006-08-04 18:18:08 +000022005 case $host_cpu in
22006 hppa*64*|ia64*)
22007 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22008 hardcode_direct_F77=no
22009 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022010 ;;
22011 *)
John Criswell47fdd832003-07-14 16:52:07 +000022012 hardcode_direct_F77=yes
22013 export_dynamic_flag_spec_F77='${wl}-E'
22014
22015 # hardcode_minus_L: Not really in the search PATH,
22016 # but as the default location of the library.
22017 hardcode_minus_L_F77=yes
22018 ;;
22019 esac
22020 fi
22021 ;;
22022
22023 irix5* | irix6* | nonstopux*)
22024 if test "$GCC" = yes; then
22025 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'
22026 else
22027 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'
22028 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22029 fi
22030 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22031 hardcode_libdir_separator_F77=:
22032 link_all_deplibs_F77=yes
22033 ;;
22034
22035 netbsd*)
22036 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22037 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22038 else
22039 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22040 fi
22041 hardcode_libdir_flag_spec_F77='-R$libdir'
22042 hardcode_direct_F77=yes
22043 hardcode_shlibpath_var_F77=no
22044 ;;
22045
22046 newsos6)
22047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22048 hardcode_direct_F77=yes
22049 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22050 hardcode_libdir_separator_F77=:
22051 hardcode_shlibpath_var_F77=no
22052 ;;
22053
22054 openbsd*)
22055 hardcode_direct_F77=yes
22056 hardcode_shlibpath_var_F77=no
22057 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22058 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022059 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000022060 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22061 export_dynamic_flag_spec_F77='${wl}-E'
22062 else
22063 case $host_os in
22064 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22065 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22066 hardcode_libdir_flag_spec_F77='-R$libdir'
22067 ;;
22068 *)
22069 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22070 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22071 ;;
22072 esac
22073 fi
22074 ;;
22075
22076 os2*)
22077 hardcode_libdir_flag_spec_F77='-L$libdir'
22078 hardcode_minus_L_F77=yes
22079 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022080 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'
John Criswell47fdd832003-07-14 16:52:07 +000022081 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22082 ;;
22083
22084 osf3*)
22085 if test "$GCC" = yes; then
22086 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22087 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'
22088 else
22089 allow_undefined_flag_F77=' -expect_unresolved \*'
22090 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'
22091 fi
22092 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22093 hardcode_libdir_separator_F77=:
22094 ;;
22095
22096 osf4* | osf5*) # as osf3* with the addition of -msym flag
22097 if test "$GCC" = yes; then
22098 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22099 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'
22100 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22101 else
22102 allow_undefined_flag_F77=' -expect_unresolved \*'
22103 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000022104 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~
Reid Spencera773bd52006-08-04 18:18:08 +000022105 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000022106
John Criswell47fdd832003-07-14 16:52:07 +000022107 # Both c and cxx compiler support -rpath directly
22108 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22109 fi
22110 hardcode_libdir_separator_F77=:
22111 ;;
22112
John Criswell47fdd832003-07-14 16:52:07 +000022113 solaris*)
22114 no_undefined_flag_F77=' -z text'
22115 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022116 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022117 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022118 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22119 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022120 else
Reid Spencera773bd52006-08-04 18:18:08 +000022121 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022122 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022123 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22124 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022125 fi
22126 hardcode_libdir_flag_spec_F77='-R$libdir'
22127 hardcode_shlibpath_var_F77=no
22128 case $host_os in
22129 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022130 *)
22131 # The compiler driver will combine linker options so we
22132 # cannot just pass the convience library names through
22133 # without $wl, iff we do not link with $LD.
22134 # Luckily, gcc supports the same syntax we need for Sun Studio.
22135 # Supported since Solaris 2.6 (maybe 2.5.1?)
22136 case $wlarc in
22137 '')
22138 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22139 *)
22140 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' ;;
22141 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022142 esac
22143 link_all_deplibs_F77=yes
22144 ;;
22145
22146 sunos4*)
22147 if test "x$host_vendor" = xsequent; then
22148 # Use $CC to link under sequent, because it throws in some extra .o
22149 # files that make .init and .fini sections work.
22150 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22151 else
22152 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22153 fi
22154 hardcode_libdir_flag_spec_F77='-L$libdir'
22155 hardcode_direct_F77=yes
22156 hardcode_minus_L_F77=yes
22157 hardcode_shlibpath_var_F77=no
22158 ;;
22159
22160 sysv4)
22161 case $host_vendor in
22162 sni)
22163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22164 hardcode_direct_F77=yes # is this really true???
22165 ;;
22166 siemens)
22167 ## LD is ld it makes a PLAMLIB
22168 ## CC just makes a GrossModule.
22169 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22170 reload_cmds_F77='$CC -r -o $output$reload_objs'
22171 hardcode_direct_F77=no
22172 ;;
22173 motorola)
22174 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22175 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22176 ;;
22177 esac
22178 runpath_var='LD_RUN_PATH'
22179 hardcode_shlibpath_var_F77=no
22180 ;;
22181
22182 sysv4.3*)
22183 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22184 hardcode_shlibpath_var_F77=no
22185 export_dynamic_flag_spec_F77='-Bexport'
22186 ;;
22187
22188 sysv4*MP*)
22189 if test -d /usr/nec; then
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_shlibpath_var_F77=no
22192 runpath_var=LD_RUN_PATH
22193 hardcode_runpath_var=yes
22194 ld_shlibs_F77=yes
22195 fi
22196 ;;
22197
Reid Spencera773bd52006-08-04 18:18:08 +000022198 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22199 no_undefined_flag_F77='${wl}-z,text'
22200 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022201 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022202 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022203
John Criswell47fdd832003-07-14 16:52:07 +000022204 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022205 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22206 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022207 else
Reid Spencera773bd52006-08-04 18:18:08 +000022208 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22209 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022210 fi
John Criswell47fdd832003-07-14 16:52:07 +000022211 ;;
22212
Reid Spencera773bd52006-08-04 18:18:08 +000022213 sysv5* | sco3.2v5* | sco5v6*)
22214 # Note: We can NOT use -z defs as we might desire, because we do not
22215 # link with -lc, and that would cause any symbols used from libc to
22216 # always be unresolved, which means just about no library would
22217 # ever link correctly. If we're not using GNU ld we use -z text
22218 # though, which does catch some bad symbols but isn't as heavy-handed
22219 # as -z defs.
22220 no_undefined_flag_F77='${wl}-z,text'
22221 allow_undefined_flag_F77='${wl}-z,nodefs'
22222 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022223 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022224 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22225 hardcode_libdir_separator_F77=':'
22226 link_all_deplibs_F77=yes
22227 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022228 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022229
22230 if test "$GCC" = yes; then
22231 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22232 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233 else
22234 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236 fi
John Criswell47fdd832003-07-14 16:52:07 +000022237 ;;
22238
22239 uts4*)
22240 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22241 hardcode_libdir_flag_spec_F77='-L$libdir'
22242 hardcode_shlibpath_var_F77=no
22243 ;;
22244
22245 *)
22246 ld_shlibs_F77=no
22247 ;;
22248 esac
22249 fi
22250
Reid Spencera773bd52006-08-04 18:18:08 +000022251{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22252echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022253test "$ld_shlibs_F77" = no && can_build_shared=no
22254
John Criswell47fdd832003-07-14 16:52:07 +000022255#
22256# Do we need to explicitly link libc?
22257#
22258case "x$archive_cmds_need_lc_F77" in
22259x|xyes)
22260 # Assume -lc should be added
22261 archive_cmds_need_lc_F77=yes
22262
22263 if test "$enable_shared" = yes && test "$GCC" = yes; then
22264 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022265 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022266 # FIXME: we may have to deal with multi-command sequences.
22267 ;;
22268 '$CC '*)
22269 # Test whether the compiler implicitly links with -lc since on some
22270 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22271 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022272 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22273echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022274 $rm conftest*
22275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22276
22277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22278 (eval $ac_compile) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); } 2>conftest.err; then
22282 soname=conftest
22283 lib=conftest
22284 libobjs=conftest.$ac_objext
22285 deplibs=
22286 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022287 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022288 compiler_flags=-v
22289 linker_flags=-v
22290 verstring=
22291 output_objdir=.
22292 libname=conftest
22293 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22294 allow_undefined_flag_F77=
22295 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22296 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }
22300 then
22301 archive_cmds_need_lc_F77=no
22302 else
22303 archive_cmds_need_lc_F77=yes
22304 fi
22305 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22306 else
22307 cat conftest.err 1>&5
22308 fi
22309 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022310 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22311echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022312 ;;
22313 esac
22314 fi
22315 ;;
22316esac
22317
Reid Spencera773bd52006-08-04 18:18:08 +000022318{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22319echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022320library_names_spec=
22321libname_spec='lib$name'
22322soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022323shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022324postinstall_cmds=
22325postuninstall_cmds=
22326finish_cmds=
22327finish_eval=
22328shlibpath_var=
22329shlibpath_overrides_runpath=unknown
22330version_type=none
22331dynamic_linker="$host_os ld.so"
22332sys_lib_dlsearch_path_spec="/lib /usr/lib"
22333if test "$GCC" = yes; then
22334 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22335 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22336 # if the path contains ";" then we assume it to be the separator
22337 # otherwise default to the standard path separator (i.e. ":") - it is
22338 # assumed that no part of a normal pathname contains ";" but that should
22339 # okay in the real world where ";" in dirpaths is itself problematic.
22340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22341 else
22342 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22343 fi
22344else
22345 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22346fi
22347need_lib_prefix=unknown
22348hardcode_into_libs=no
22349
22350# when you set need_version to no, make sure it does not cause -set_version
22351# flags to be left without arguments
22352need_version=unknown
22353
22354case $host_os in
22355aix3*)
22356 version_type=linux
22357 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22358 shlibpath_var=LIBPATH
22359
22360 # AIX 3 has no versioning support, so we append a major version to the name.
22361 soname_spec='${libname}${release}${shared_ext}$major'
22362 ;;
22363
22364aix4* | aix5*)
22365 version_type=linux
22366 need_lib_prefix=no
22367 need_version=no
22368 hardcode_into_libs=yes
22369 if test "$host_cpu" = ia64; then
22370 # AIX 5 supports IA64
22371 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22372 shlibpath_var=LD_LIBRARY_PATH
22373 else
22374 # With GCC up to 2.95.x, collect2 would create an import file
22375 # for dependence libraries. The import file would start with
22376 # the line `#! .'. This would cause the generated library to
22377 # depend on `.', always an invalid library. This was fixed in
22378 # development snapshots of GCC prior to 3.0.
22379 case $host_os in
22380 aix4 | aix4.[01] | aix4.[01].*)
22381 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22382 echo ' yes '
22383 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22384 :
22385 else
22386 can_build_shared=no
22387 fi
22388 ;;
22389 esac
22390 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22391 # soname into executable. Probably we can add versioning support to
22392 # collect2, so additional links can be useful in future.
22393 if test "$aix_use_runtimelinking" = yes; then
22394 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22395 # instead of lib<name>.a to let people know that these are not
22396 # typical AIX shared libraries.
22397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22398 else
22399 # We preserve .a as extension for shared libraries through AIX4.2
22400 # and later when we are not doing run time linking.
22401 library_names_spec='${libname}${release}.a $libname.a'
22402 soname_spec='${libname}${release}${shared_ext}$major'
22403 fi
22404 shlibpath_var=LIBPATH
22405 fi
22406 ;;
22407
22408amigaos*)
22409 library_names_spec='$libname.ixlibrary $libname.a'
22410 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022411 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'
John Criswell47fdd832003-07-14 16:52:07 +000022412 ;;
22413
22414beos*)
22415 library_names_spec='${libname}${shared_ext}'
22416 dynamic_linker="$host_os ld.so"
22417 shlibpath_var=LIBRARY_PATH
22418 ;;
22419
Reid Spencer2706f8c2004-09-19 23:53:36 +000022420bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022421 version_type=linux
22422 need_version=no
22423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22424 soname_spec='${libname}${release}${shared_ext}$major'
22425 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22426 shlibpath_var=LD_LIBRARY_PATH
22427 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22428 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22429 # the default ld.so.conf also contains /usr/contrib/lib and
22430 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22431 # libtool to hard-code these into programs
22432 ;;
22433
22434cygwin* | mingw* | pw32*)
22435 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022436 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022437 need_version=no
22438 need_lib_prefix=no
22439
22440 case $GCC,$host_os in
22441 yes,cygwin* | yes,mingw* | yes,pw32*)
22442 library_names_spec='$libname.dll.a'
22443 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022444 postinstall_cmds='base_file=`basename \${file}`~
22445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22446 dldir=$destdir/`dirname \$dlpath`~
22447 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022448 $install_prog $dir/$dlname \$dldir/$dlname~
22449 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022450 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22451 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022452 $rm \$dlpath'
22453 shlibpath_overrides_runpath=yes
22454
22455 case $host_os in
22456 cygwin*)
22457 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22458 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022459 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022460 ;;
22461 mingw*)
22462 # MinGW DLLs use traditional 'lib' prefix
22463 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22465 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22466 # It is most probably a Windows format PATH printed by
22467 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22468 # path with ; separators, and with drive letters. We can handle the
22469 # drive letters (cygwin fileutils understands them), so leave them,
22470 # especially as we might pass files found there to a mingw objdump,
22471 # which wouldn't understand a cygwinified path. Ahh.
22472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22473 else
22474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22475 fi
22476 ;;
22477 pw32*)
22478 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022479 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022480 ;;
22481 esac
22482 ;;
22483
22484 *)
22485 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22486 ;;
22487 esac
22488 dynamic_linker='Win32 ld.exe'
22489 # FIXME: first we should search . and the directory the executable is in
22490 shlibpath_var=PATH
22491 ;;
22492
22493darwin* | rhapsody*)
22494 dynamic_linker="$host_os dyld"
22495 version_type=darwin
22496 need_lib_prefix=no
22497 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022498 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022499 soname_spec='${libname}${release}${major}$shared_ext'
22500 shlibpath_overrides_runpath=yes
22501 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022502 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022503 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 if test "$GCC" = yes; then
22505 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"`
22506 else
22507 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022508 fi
22509 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22510 ;;
22511
22512dgux*)
22513 version_type=linux
22514 need_lib_prefix=no
22515 need_version=no
22516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22517 soname_spec='${libname}${release}${shared_ext}$major'
22518 shlibpath_var=LD_LIBRARY_PATH
22519 ;;
22520
22521freebsd1*)
22522 dynamic_linker=no
22523 ;;
22524
Reid Spencer2706f8c2004-09-19 23:53:36 +000022525kfreebsd*-gnu)
22526 version_type=linux
22527 need_lib_prefix=no
22528 need_version=no
22529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22530 soname_spec='${libname}${release}${shared_ext}$major'
22531 shlibpath_var=LD_LIBRARY_PATH
22532 shlibpath_overrides_runpath=no
22533 hardcode_into_libs=yes
22534 dynamic_linker='GNU ld.so'
22535 ;;
22536
Reid Spencera773bd52006-08-04 18:18:08 +000022537freebsd* | dragonfly*)
22538 # DragonFly does not have aout. When/if they implement a new
22539 # versioning mechanism, adjust this.
22540 if test -x /usr/bin/objformat; then
22541 objformat=`/usr/bin/objformat`
22542 else
22543 case $host_os in
22544 freebsd[123]*) objformat=aout ;;
22545 *) objformat=elf ;;
22546 esac
22547 fi
John Criswell47fdd832003-07-14 16:52:07 +000022548 version_type=freebsd-$objformat
22549 case $version_type in
22550 freebsd-elf*)
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22552 need_version=no
22553 need_lib_prefix=no
22554 ;;
22555 freebsd-*)
22556 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22557 need_version=yes
22558 ;;
22559 esac
22560 shlibpath_var=LD_LIBRARY_PATH
22561 case $host_os in
22562 freebsd2*)
22563 shlibpath_overrides_runpath=yes
22564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022565 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022566 shlibpath_overrides_runpath=yes
22567 hardcode_into_libs=yes
22568 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022569 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22570 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022571 shlibpath_overrides_runpath=no
22572 hardcode_into_libs=yes
22573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022574 freebsd*) # from 4.6 on
22575 shlibpath_overrides_runpath=yes
22576 hardcode_into_libs=yes
22577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022578 esac
22579 ;;
22580
22581gnu*)
22582 version_type=linux
22583 need_lib_prefix=no
22584 need_version=no
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22586 soname_spec='${libname}${release}${shared_ext}$major'
22587 shlibpath_var=LD_LIBRARY_PATH
22588 hardcode_into_libs=yes
22589 ;;
22590
22591hpux9* | hpux10* | hpux11*)
22592 # Give a soname corresponding to the major version so that dld.sl refuses to
22593 # link against other versions.
22594 version_type=sunos
22595 need_lib_prefix=no
22596 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022597 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022598 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022599 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022600 hardcode_into_libs=yes
22601 dynamic_linker="$host_os dld.so"
22602 shlibpath_var=LD_LIBRARY_PATH
22603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22605 soname_spec='${libname}${release}${shared_ext}$major'
22606 if test "X$HPUX_IA64_MODE" = X32; then
22607 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22608 else
22609 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22610 fi
22611 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22612 ;;
22613 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022614 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022615 hardcode_into_libs=yes
22616 dynamic_linker="$host_os dld.sl"
22617 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22620 soname_spec='${libname}${release}${shared_ext}$major'
22621 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22623 ;;
22624 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022625 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022626 dynamic_linker="$host_os dld.sl"
22627 shlibpath_var=SHLIB_PATH
22628 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 ;;
22632 esac
22633 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22634 postinstall_cmds='chmod 555 $lib'
22635 ;;
22636
Reid Spencera773bd52006-08-04 18:18:08 +000022637interix3*)
22638 version_type=linux
22639 need_lib_prefix=no
22640 need_version=no
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22644 shlibpath_var=LD_LIBRARY_PATH
22645 shlibpath_overrides_runpath=no
22646 hardcode_into_libs=yes
22647 ;;
22648
John Criswell47fdd832003-07-14 16:52:07 +000022649irix5* | irix6* | nonstopux*)
22650 case $host_os in
22651 nonstopux*) version_type=nonstopux ;;
22652 *)
22653 if test "$lt_cv_prog_gnu_ld" = yes; then
22654 version_type=linux
22655 else
22656 version_type=irix
22657 fi ;;
22658 esac
22659 need_lib_prefix=no
22660 need_version=no
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22663 case $host_os in
22664 irix5* | nonstopux*)
22665 libsuff= shlibsuff=
22666 ;;
22667 *)
22668 case $LD in # libtool.m4 will add one of these switches to LD
22669 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22670 libsuff= shlibsuff= libmagic=32-bit;;
22671 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22672 libsuff=32 shlibsuff=N32 libmagic=N32;;
22673 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22674 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22675 *) libsuff= shlibsuff= libmagic=never-match;;
22676 esac
22677 ;;
22678 esac
22679 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22680 shlibpath_overrides_runpath=no
22681 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22682 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22683 hardcode_into_libs=yes
22684 ;;
22685
22686# No shared lib support for Linux oldld, aout, or coff.
22687linux*oldld* | linux*aout* | linux*coff*)
22688 dynamic_linker=no
22689 ;;
22690
22691# This must be Linux ELF.
22692linux*)
22693 version_type=linux
22694 need_lib_prefix=no
22695 need_version=no
22696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22697 soname_spec='${libname}${release}${shared_ext}$major'
22698 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22699 shlibpath_var=LD_LIBRARY_PATH
22700 shlibpath_overrides_runpath=no
22701 # This implies no fast_install, which is unacceptable.
22702 # Some rework will be needed to allow for fast_install
22703 # before this can be enabled.
22704 hardcode_into_libs=yes
22705
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706 # Append ld.so.conf contents to the search path
22707 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022708 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000022709 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22710 fi
22711
John Criswell47fdd832003-07-14 16:52:07 +000022712 # We used to test for /lib/ld.so.1 and disable shared libraries on
22713 # powerpc, because MkLinux only supported shared libraries with the
22714 # GNU dynamic linker. Since this was broken with cross compilers,
22715 # most powerpc-linux boxes support dynamic linking these days and
22716 # people can always --disable-shared, the test was removed, and we
22717 # assume the GNU/Linux dynamic linker is in use.
22718 dynamic_linker='GNU/Linux ld.so'
22719 ;;
22720
Reid Spencer2706f8c2004-09-19 23:53:36 +000022721knetbsd*-gnu)
22722 version_type=linux
22723 need_lib_prefix=no
22724 need_version=no
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 shlibpath_var=LD_LIBRARY_PATH
22728 shlibpath_overrides_runpath=no
22729 hardcode_into_libs=yes
22730 dynamic_linker='GNU ld.so'
22731 ;;
22732
John Criswell47fdd832003-07-14 16:52:07 +000022733netbsd*)
22734 version_type=sunos
22735 need_lib_prefix=no
22736 need_version=no
22737 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22740 dynamic_linker='NetBSD (a.out) ld.so'
22741 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022743 soname_spec='${libname}${release}${shared_ext}$major'
22744 dynamic_linker='NetBSD ld.elf_so'
22745 fi
22746 shlibpath_var=LD_LIBRARY_PATH
22747 shlibpath_overrides_runpath=yes
22748 hardcode_into_libs=yes
22749 ;;
22750
22751newsos6)
22752 version_type=linux
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 shlibpath_overrides_runpath=yes
22756 ;;
22757
Reid Spencer2706f8c2004-09-19 23:53:36 +000022758nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022759 version_type=linux
22760 need_lib_prefix=no
22761 need_version=no
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 shlibpath_overrides_runpath=yes
22766 ;;
22767
22768openbsd*)
22769 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022770 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022771 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022772 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22773 case $host_os in
22774 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22775 *) need_version=no ;;
22776 esac
John Criswell47fdd832003-07-14 16:52:07 +000022777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22778 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22779 shlibpath_var=LD_LIBRARY_PATH
22780 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22781 case $host_os in
22782 openbsd2.[89] | openbsd2.[89].*)
22783 shlibpath_overrides_runpath=no
22784 ;;
22785 *)
22786 shlibpath_overrides_runpath=yes
22787 ;;
22788 esac
22789 else
22790 shlibpath_overrides_runpath=yes
22791 fi
22792 ;;
22793
22794os2*)
22795 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022797 need_lib_prefix=no
22798 library_names_spec='$libname${shared_ext} $libname.a'
22799 dynamic_linker='OS/2 ld.exe'
22800 shlibpath_var=LIBPATH
22801 ;;
22802
22803osf3* | osf4* | osf5*)
22804 version_type=osf
22805 need_lib_prefix=no
22806 need_version=no
22807 soname_spec='${libname}${release}${shared_ext}$major'
22808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22809 shlibpath_var=LD_LIBRARY_PATH
22810 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22811 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22812 ;;
22813
John Criswell47fdd832003-07-14 16:52:07 +000022814solaris*)
22815 version_type=linux
22816 need_lib_prefix=no
22817 need_version=no
22818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22819 soname_spec='${libname}${release}${shared_ext}$major'
22820 shlibpath_var=LD_LIBRARY_PATH
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22823 # ldd complains unless libraries are executable
22824 postinstall_cmds='chmod +x $lib'
22825 ;;
22826
22827sunos4*)
22828 version_type=sunos
22829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22830 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22831 shlibpath_var=LD_LIBRARY_PATH
22832 shlibpath_overrides_runpath=yes
22833 if test "$with_gnu_ld" = yes; then
22834 need_lib_prefix=no
22835 fi
22836 need_version=yes
22837 ;;
22838
Reid Spencera773bd52006-08-04 18:18:08 +000022839sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022840 version_type=linux
22841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22842 soname_spec='${libname}${release}${shared_ext}$major'
22843 shlibpath_var=LD_LIBRARY_PATH
22844 case $host_vendor in
22845 sni)
22846 shlibpath_overrides_runpath=no
22847 need_lib_prefix=no
22848 export_dynamic_flag_spec='${wl}-Blargedynsym'
22849 runpath_var=LD_RUN_PATH
22850 ;;
22851 siemens)
22852 need_lib_prefix=no
22853 ;;
22854 motorola)
22855 need_lib_prefix=no
22856 need_version=no
22857 shlibpath_overrides_runpath=no
22858 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22859 ;;
22860 esac
22861 ;;
22862
22863sysv4*MP*)
22864 if test -d /usr/nec ;then
22865 version_type=linux
22866 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22867 soname_spec='$libname${shared_ext}.$major'
22868 shlibpath_var=LD_LIBRARY_PATH
22869 fi
22870 ;;
22871
Reid Spencera773bd52006-08-04 18:18:08 +000022872sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22873 version_type=freebsd-elf
22874 need_lib_prefix=no
22875 need_version=no
22876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22877 soname_spec='${libname}${release}${shared_ext}$major'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 hardcode_into_libs=yes
22880 if test "$with_gnu_ld" = yes; then
22881 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22882 shlibpath_overrides_runpath=no
22883 else
22884 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22885 shlibpath_overrides_runpath=yes
22886 case $host_os in
22887 sco3.2v5*)
22888 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22889 ;;
22890 esac
22891 fi
22892 sys_lib_dlsearch_path_spec='/usr/lib'
22893 ;;
22894
John Criswell47fdd832003-07-14 16:52:07 +000022895uts4*)
22896 version_type=linux
22897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22898 soname_spec='${libname}${release}${shared_ext}$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 ;;
22901
22902*)
22903 dynamic_linker=no
22904 ;;
22905esac
Reid Spencera773bd52006-08-04 18:18:08 +000022906{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22907echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022908test "$dynamic_linker" = no && can_build_shared=no
22909
Reid Spencera773bd52006-08-04 18:18:08 +000022910variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22911if test "$GCC" = yes; then
22912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22913fi
22914
22915{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22916echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022917hardcode_action_F77=
22918if test -n "$hardcode_libdir_flag_spec_F77" || \
22919 test -n "$runpath_var_F77" || \
22920 test "X$hardcode_automatic_F77" = "Xyes" ; then
22921
22922 # We can hardcode non-existant directories.
22923 if test "$hardcode_direct_F77" != no &&
22924 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22925 # have to relink, otherwise we might link with an installed library
22926 # when we should be linking with a yet-to-be-installed one
22927 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22928 test "$hardcode_minus_L_F77" != no; then
22929 # Linking always hardcodes the temporary library directory.
22930 hardcode_action_F77=relink
22931 else
22932 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22933 hardcode_action_F77=immediate
22934 fi
22935else
22936 # We cannot hardcode anything, or else we can only hardcode existing
22937 # directories.
22938 hardcode_action_F77=unsupported
22939fi
Reid Spencera773bd52006-08-04 18:18:08 +000022940{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22941echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942
22943if test "$hardcode_action_F77" = relink; then
22944 # Fast installation is not supported
22945 enable_fast_install=no
22946elif test "$shlibpath_overrides_runpath" = yes ||
22947 test "$enable_shared" = no; then
22948 # Fast installation is not necessary
22949 enable_fast_install=needless
22950fi
22951
John Criswell47fdd832003-07-14 16:52:07 +000022952
22953# The else clause should only fire when bootstrapping the
22954# libtool distribution, otherwise you forgot to ship ltmain.sh
22955# with your package, and you will get complaints that there are
22956# no rules to generate ltmain.sh.
22957if test -f "$ltmain"; then
22958 # See if we are running on zsh, and set the options which allow our commands through
22959 # without removal of \ escapes.
22960 if test -n "${ZSH_VERSION+set}" ; then
22961 setopt NO_GLOB_SUBST
22962 fi
22963 # Now quote all the things that may contain metacharacters while being
22964 # careful not to overquote the AC_SUBSTed values. We take copies of the
22965 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022966 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022967 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022968 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22969 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22970 deplibs_check_method reload_flag reload_cmds need_locks \
22971 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22972 lt_cv_sys_global_symbol_to_c_name_address \
22973 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22974 old_postinstall_cmds old_postuninstall_cmds \
22975 compiler_F77 \
22976 CC_F77 \
22977 LD_F77 \
22978 lt_prog_compiler_wl_F77 \
22979 lt_prog_compiler_pic_F77 \
22980 lt_prog_compiler_static_F77 \
22981 lt_prog_compiler_no_builtin_flag_F77 \
22982 export_dynamic_flag_spec_F77 \
22983 thread_safe_flag_spec_F77 \
22984 whole_archive_flag_spec_F77 \
22985 enable_shared_with_static_runtimes_F77 \
22986 old_archive_cmds_F77 \
22987 old_archive_from_new_cmds_F77 \
22988 predep_objects_F77 \
22989 postdep_objects_F77 \
22990 predeps_F77 \
22991 postdeps_F77 \
22992 compiler_lib_search_path_F77 \
22993 archive_cmds_F77 \
22994 archive_expsym_cmds_F77 \
22995 postinstall_cmds_F77 \
22996 postuninstall_cmds_F77 \
22997 old_archive_from_expsyms_cmds_F77 \
22998 allow_undefined_flag_F77 \
22999 no_undefined_flag_F77 \
23000 export_symbols_cmds_F77 \
23001 hardcode_libdir_flag_spec_F77 \
23002 hardcode_libdir_flag_spec_ld_F77 \
23003 hardcode_libdir_separator_F77 \
23004 hardcode_automatic_F77 \
23005 module_cmds_F77 \
23006 module_expsym_cmds_F77 \
23007 lt_cv_prog_compiler_c_o_F77 \
23008 exclude_expsyms_F77 \
23009 include_expsyms_F77; do
23010
23011 case $var in
23012 old_archive_cmds_F77 | \
23013 old_archive_from_new_cmds_F77 | \
23014 archive_cmds_F77 | \
23015 archive_expsym_cmds_F77 | \
23016 module_cmds_F77 | \
23017 module_expsym_cmds_F77 | \
23018 old_archive_from_expsyms_cmds_F77 | \
23019 export_symbols_cmds_F77 | \
23020 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23021 postinstall_cmds | postuninstall_cmds | \
23022 old_postinstall_cmds | old_postuninstall_cmds | \
23023 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23024 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023025 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000023026 ;;
23027 *)
23028 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23029 ;;
23030 esac
23031 done
23032
23033 case $lt_echo in
23034 *'\$0 --fallback-echo"')
23035 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23036 ;;
23037 esac
23038
23039cfgfile="$ofile"
23040
23041 cat <<__EOF__ >> "$cfgfile"
23042# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23043
23044# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23045
23046# Shell to use when invoking shell scripts.
23047SHELL=$lt_SHELL
23048
23049# Whether or not to build shared libraries.
23050build_libtool_libs=$enable_shared
23051
23052# Whether or not to build static libraries.
23053build_old_libs=$enable_static
23054
23055# Whether or not to add -lc for building shared libraries.
23056build_libtool_need_lc=$archive_cmds_need_lc_F77
23057
23058# Whether or not to disallow shared libs when runtime libs are static
23059allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23060
23061# Whether or not to optimize for fast installation.
23062fast_install=$enable_fast_install
23063
23064# The host system.
23065host_alias=$host_alias
23066host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023067host_os=$host_os
23068
23069# The build system.
23070build_alias=$build_alias
23071build=$build
23072build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023073
23074# An echo program that does not interpret backslashes.
23075echo=$lt_echo
23076
23077# The archiver.
23078AR=$lt_AR
23079AR_FLAGS=$lt_AR_FLAGS
23080
23081# A C compiler.
23082LTCC=$lt_LTCC
23083
Reid Spencera773bd52006-08-04 18:18:08 +000023084# LTCC compiler flags.
23085LTCFLAGS=$lt_LTCFLAGS
23086
John Criswell47fdd832003-07-14 16:52:07 +000023087# A language-specific compiler.
23088CC=$lt_compiler_F77
23089
23090# Is the compiler the GNU C compiler?
23091with_gcc=$GCC_F77
23092
23093# An ERE matcher.
23094EGREP=$lt_EGREP
23095
23096# The linker used to build libraries.
23097LD=$lt_LD_F77
23098
23099# Whether we need hard or soft links.
23100LN_S=$lt_LN_S
23101
23102# A BSD-compatible nm program.
23103NM=$lt_NM
23104
23105# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023106STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023107
23108# Used to examine libraries when file_magic_cmd begins "file"
23109MAGIC_CMD=$MAGIC_CMD
23110
23111# Used on cygwin: DLL creation program.
23112DLLTOOL="$DLLTOOL"
23113
23114# Used on cygwin: object dumper.
23115OBJDUMP="$OBJDUMP"
23116
23117# Used on cygwin: assembler.
23118AS="$AS"
23119
23120# The name of the directory that contains temporary libtool files.
23121objdir=$objdir
23122
23123# How to create reloadable object files.
23124reload_flag=$lt_reload_flag
23125reload_cmds=$lt_reload_cmds
23126
23127# How to pass a linker flag through the compiler.
23128wl=$lt_lt_prog_compiler_wl_F77
23129
23130# Object file suffix (normally "o").
23131objext="$ac_objext"
23132
23133# Old archive suffix (normally "a").
23134libext="$libext"
23135
23136# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023138
23139# Executable file suffix (normally "").
23140exeext="$exeext"
23141
23142# Additional compiler flags for building library objects.
23143pic_flag=$lt_lt_prog_compiler_pic_F77
23144pic_mode=$pic_mode
23145
23146# What is the maximum length of a command?
23147max_cmd_len=$lt_cv_sys_max_cmd_len
23148
23149# Does compiler simultaneously support -c and -o options?
23150compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23151
Reid Spencera773bd52006-08-04 18:18:08 +000023152# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023153need_locks=$lt_need_locks
23154
23155# Do we need the lib prefix for modules?
23156need_lib_prefix=$need_lib_prefix
23157
23158# Do we need a version for libraries?
23159need_version=$need_version
23160
23161# Whether dlopen is supported.
23162dlopen_support=$enable_dlopen
23163
23164# Whether dlopen of programs is supported.
23165dlopen_self=$enable_dlopen_self
23166
23167# Whether dlopen of statically linked programs is supported.
23168dlopen_self_static=$enable_dlopen_self_static
23169
23170# Compiler flag to prevent dynamic linking.
23171link_static_flag=$lt_lt_prog_compiler_static_F77
23172
23173# Compiler flag to turn off builtin functions.
23174no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23175
23176# Compiler flag to allow reflexive dlopens.
23177export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23178
23179# Compiler flag to generate shared objects directly from archives.
23180whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23181
23182# Compiler flag to generate thread-safe objects.
23183thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23184
23185# Library versioning type.
23186version_type=$version_type
23187
23188# Format of library name prefix.
23189libname_spec=$lt_libname_spec
23190
23191# List of archive names. First name is the real one, the rest are links.
23192# The last name is the one that the linker finds with -lNAME.
23193library_names_spec=$lt_library_names_spec
23194
23195# The coded name of the library, if different from the real name.
23196soname_spec=$lt_soname_spec
23197
23198# Commands used to build and install an old-style archive.
23199RANLIB=$lt_RANLIB
23200old_archive_cmds=$lt_old_archive_cmds_F77
23201old_postinstall_cmds=$lt_old_postinstall_cmds
23202old_postuninstall_cmds=$lt_old_postuninstall_cmds
23203
23204# Create an old-style archive from a shared archive.
23205old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23206
23207# Create a temporary old-style archive to link instead of a shared archive.
23208old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23209
23210# Commands used to build and install a shared archive.
23211archive_cmds=$lt_archive_cmds_F77
23212archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23213postinstall_cmds=$lt_postinstall_cmds
23214postuninstall_cmds=$lt_postuninstall_cmds
23215
23216# Commands used to build a loadable module (assumed same as above if empty)
23217module_cmds=$lt_module_cmds_F77
23218module_expsym_cmds=$lt_module_expsym_cmds_F77
23219
23220# Commands to strip libraries.
23221old_striplib=$lt_old_striplib
23222striplib=$lt_striplib
23223
23224# Dependencies to place before the objects being linked to create a
23225# shared library.
23226predep_objects=$lt_predep_objects_F77
23227
23228# Dependencies to place after the objects being linked to create a
23229# shared library.
23230postdep_objects=$lt_postdep_objects_F77
23231
23232# Dependencies to place before the objects being linked to create a
23233# shared library.
23234predeps=$lt_predeps_F77
23235
23236# Dependencies to place after the objects being linked to create a
23237# shared library.
23238postdeps=$lt_postdeps_F77
23239
23240# The library search path used internally by the compiler when linking
23241# a shared library.
23242compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23243
23244# Method to check whether dependent libraries are shared objects.
23245deplibs_check_method=$lt_deplibs_check_method
23246
23247# Command to use when deplibs_check_method == file_magic.
23248file_magic_cmd=$lt_file_magic_cmd
23249
23250# Flag that allows shared libraries with undefined symbols to be built.
23251allow_undefined_flag=$lt_allow_undefined_flag_F77
23252
23253# Flag that forces no undefined symbols.
23254no_undefined_flag=$lt_no_undefined_flag_F77
23255
23256# Commands used to finish a libtool library installation in a directory.
23257finish_cmds=$lt_finish_cmds
23258
23259# Same as above, but a single script fragment to be evaled but not shown.
23260finish_eval=$lt_finish_eval
23261
23262# Take the output of nm and produce a listing of raw symbols and C names.
23263global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23264
23265# Transform the output of nm in a proper C declaration
23266global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23267
23268# Transform the output of nm in a C name address pair
23269global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23270
23271# This is the shared library runtime path variable.
23272runpath_var=$runpath_var
23273
23274# This is the shared library path variable.
23275shlibpath_var=$shlibpath_var
23276
23277# Is shlibpath searched before the hard-coded library search path?
23278shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23279
23280# How to hardcode a shared library path into an executable.
23281hardcode_action=$hardcode_action_F77
23282
23283# Whether we should hardcode library paths into libraries.
23284hardcode_into_libs=$hardcode_into_libs
23285
23286# Flag to hardcode \$libdir into a binary during linking.
23287# This must work even if \$libdir does not exist.
23288hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23289
23290# If ld is used when linking, flag to hardcode \$libdir into
23291# a binary during linking. This must work even if \$libdir does
23292# not exist.
23293hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23294
23295# Whether we need a single -rpath flag with a separated argument.
23296hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23297
23298# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23299# resulting binary.
23300hardcode_direct=$hardcode_direct_F77
23301
23302# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23303# resulting binary.
23304hardcode_minus_L=$hardcode_minus_L_F77
23305
23306# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23307# the resulting binary.
23308hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23309
23310# Set to yes if building a shared library automatically hardcodes DIR into the library
23311# and all subsequent libraries and executables linked against it.
23312hardcode_automatic=$hardcode_automatic_F77
23313
23314# Variables whose values should be saved in libtool wrapper scripts and
23315# restored at relink time.
23316variables_saved_for_relink="$variables_saved_for_relink"
23317
23318# Whether libtool must link a program against all its dependency libraries.
23319link_all_deplibs=$link_all_deplibs_F77
23320
23321# Compile-time system search path for libraries
23322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23323
23324# Run-time system search path for libraries
23325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23326
23327# Fix the shell variable \$srcfile for the compiler.
23328fix_srcfile_path="$fix_srcfile_path_F77"
23329
23330# Set to yes if exported symbols are required.
23331always_export_symbols=$always_export_symbols_F77
23332
23333# The commands to list exported symbols.
23334export_symbols_cmds=$lt_export_symbols_cmds_F77
23335
23336# The commands to extract the exported symbol list from a shared archive.
23337extract_expsyms_cmds=$lt_extract_expsyms_cmds
23338
23339# Symbols that should not be listed in the preloaded symbols.
23340exclude_expsyms=$lt_exclude_expsyms_F77
23341
23342# Symbols that must always be exported.
23343include_expsyms=$lt_include_expsyms_F77
23344
23345# ### END LIBTOOL TAG CONFIG: $tagname
23346
23347__EOF__
23348
23349
23350else
23351 # If there is no Makefile yet, we rely on a make rule to execute
23352 # `config.status --recheck' to rerun these tests and create the
23353 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023354 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23355 if test -f "$ltmain_in"; then
23356 test -f Makefile && make "$ltmain"
23357 fi
John Criswell47fdd832003-07-14 16:52:07 +000023358fi
23359
23360
23361ac_ext=c
23362ac_cpp='$CPP $CPPFLAGS'
23363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23365ac_compiler_gnu=$ac_cv_c_compiler_gnu
23366
23367CC="$lt_save_CC"
23368
23369 else
23370 tagname=""
23371 fi
23372 ;;
23373
23374 GCJ)
23375 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023376 ac_ext=c
23377ac_cpp='$CPP $CPPFLAGS'
23378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023381
23382
23383# Source file extension for Java test sources.
23384ac_ext=java
23385
23386# Object file extension for compiled Java test sources.
23387objext=o
23388objext_GCJ=$objext
23389
23390# Code to be used in simple compile tests
23391lt_simple_compile_test_code="class foo {}\n"
23392
23393# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023394lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023395
23396# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23397
23398# If no C compiler was specified, use CC.
23399LTCC=${LTCC-"$CC"}
23400
Reid Spencera773bd52006-08-04 18:18:08 +000023401# If no C compiler flags were specified, use CFLAGS.
23402LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23403
John Criswell47fdd832003-07-14 16:52:07 +000023404# Allow CC to be a program name with arguments.
23405compiler=$CC
23406
23407
Reid Spencera773bd52006-08-04 18:18:08 +000023408# save warnings/boilerplate of simple test code
23409ac_outfile=conftest.$ac_objext
23410printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23411eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23412_lt_compiler_boilerplate=`cat conftest.err`
23413$rm conftest*
23414
23415ac_outfile=conftest.$ac_objext
23416printf "$lt_simple_link_test_code" >conftest.$ac_ext
23417eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23418_lt_linker_boilerplate=`cat conftest.err`
23419$rm conftest*
23420
23421
John Criswell47fdd832003-07-14 16:52:07 +000023422# Allow CC to be a program name with arguments.
23423lt_save_CC="$CC"
23424CC=${GCJ-"gcj"}
23425compiler=$CC
23426compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023427for cc_temp in $compiler""; do
23428 case $cc_temp in
23429 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23430 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23431 \-*) ;;
23432 *) break;;
23433 esac
23434done
23435cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23436
John Criswell47fdd832003-07-14 16:52:07 +000023437
23438# GCJ did not exist at the time GCC didn't implicitly link libc in.
23439archive_cmds_need_lc_GCJ=no
23440
Reid Spencera773bd52006-08-04 18:18:08 +000023441old_archive_cmds_GCJ=$old_archive_cmds
23442
John Criswell47fdd832003-07-14 16:52:07 +000023443
23444lt_prog_compiler_no_builtin_flag_GCJ=
23445
23446if test "$GCC" = yes; then
23447 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23448
Reid Spencer2706f8c2004-09-19 23:53:36 +000023449
Reid Spencera773bd52006-08-04 18:18:08 +000023450{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23451echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023452if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23453 echo $ECHO_N "(cached) $ECHO_C" >&6
23454else
23455 lt_cv_prog_compiler_rtti_exceptions=no
23456 ac_outfile=conftest.$ac_objext
23457 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23458 lt_compiler_flag="-fno-rtti -fno-exceptions"
23459 # Insert the option either (1) after the last *FLAGS variable, or
23460 # (2) before a word containing "conftest.", or (3) at the end.
23461 # Note that $ac_compile itself does not contain backslashes and begins
23462 # with a dollar sign (not a hyphen), so the echo should work correctly.
23463 # The option is referenced via a variable to avoid confusing sed.
23464 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023465 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023466 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23467 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000023468 (eval echo "\"\$as_me:23468: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023469 (eval "$lt_compile" 2>conftest.err)
23470 ac_status=$?
23471 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000023472 echo "$as_me:23472: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023473 if (exit $ac_status) && test -s "$ac_outfile"; then
23474 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023475 # So say no if there are warnings other than the usual output.
23476 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23477 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23478 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023479 lt_cv_prog_compiler_rtti_exceptions=yes
23480 fi
23481 fi
23482 $rm conftest*
23483
23484fi
Reid Spencera773bd52006-08-04 18:18:08 +000023485{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23486echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023487
23488if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23489 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23490else
23491 :
23492fi
23493
23494fi
23495
23496lt_prog_compiler_wl_GCJ=
23497lt_prog_compiler_pic_GCJ=
23498lt_prog_compiler_static_GCJ=
23499
Reid Spencera773bd52006-08-04 18:18:08 +000023500{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23501echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023502
23503 if test "$GCC" = yes; then
23504 lt_prog_compiler_wl_GCJ='-Wl,'
23505 lt_prog_compiler_static_GCJ='-static'
23506
23507 case $host_os in
23508 aix*)
23509 # All AIX code is PIC.
23510 if test "$host_cpu" = ia64; then
23511 # AIX 5 now supports IA64 processor
23512 lt_prog_compiler_static_GCJ='-Bstatic'
23513 fi
23514 ;;
23515
23516 amigaos*)
23517 # FIXME: we need at least 68020 code to build shared libraries, but
23518 # adding the `-m68020' flag to GCC prevents building anything better,
23519 # like `-m68040'.
23520 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23521 ;;
23522
23523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23524 # PIC is the default for these OSes.
23525 ;;
23526
23527 mingw* | pw32* | os2*)
23528 # This hack is so that the source file can tell whether it is being
23529 # built for inclusion in a dll (and should export symbols for example).
23530 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23531 ;;
23532
23533 darwin* | rhapsody*)
23534 # PIC is the default on this platform
23535 # Common symbols not allowed in MH_DYLIB files
23536 lt_prog_compiler_pic_GCJ='-fno-common'
23537 ;;
23538
Reid Spencera773bd52006-08-04 18:18:08 +000023539 interix3*)
23540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23541 # Instead, we relocate shared libraries at runtime.
23542 ;;
23543
John Criswell47fdd832003-07-14 16:52:07 +000023544 msdosdjgpp*)
23545 # Just because we use GCC doesn't mean we suddenly get shared libraries
23546 # on systems that don't support them.
23547 lt_prog_compiler_can_build_shared_GCJ=no
23548 enable_shared=no
23549 ;;
23550
23551 sysv4*MP*)
23552 if test -d /usr/nec; then
23553 lt_prog_compiler_pic_GCJ=-Kconform_pic
23554 fi
23555 ;;
23556
23557 hpux*)
23558 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23559 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023560 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023561 hppa*64*|ia64*)
23562 # +Z the default
23563 ;;
23564 *)
23565 lt_prog_compiler_pic_GCJ='-fPIC'
23566 ;;
23567 esac
23568 ;;
23569
23570 *)
23571 lt_prog_compiler_pic_GCJ='-fPIC'
23572 ;;
23573 esac
23574 else
23575 # PORTME Check for flag to pass linker flags through the system compiler.
23576 case $host_os in
23577 aix*)
23578 lt_prog_compiler_wl_GCJ='-Wl,'
23579 if test "$host_cpu" = ia64; then
23580 # AIX 5 now supports IA64 processor
23581 lt_prog_compiler_static_GCJ='-Bstatic'
23582 else
23583 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23584 fi
23585 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023586 darwin*)
23587 # PIC is the default on this platform
23588 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023589 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023590 xlc*)
23591 lt_prog_compiler_pic_GCJ='-qnocommon'
23592 lt_prog_compiler_wl_GCJ='-Wl,'
23593 ;;
23594 esac
23595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023596
23597 mingw* | pw32* | os2*)
23598 # This hack is so that the source file can tell whether it is being
23599 # built for inclusion in a dll (and should export symbols for example).
23600 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23601 ;;
23602
23603 hpux9* | hpux10* | hpux11*)
23604 lt_prog_compiler_wl_GCJ='-Wl,'
23605 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23606 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023607 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023608 hppa*64*|ia64*)
23609 # +Z the default
23610 ;;
23611 *)
23612 lt_prog_compiler_pic_GCJ='+Z'
23613 ;;
23614 esac
23615 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23616 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23617 ;;
23618
23619 irix5* | irix6* | nonstopux*)
23620 lt_prog_compiler_wl_GCJ='-Wl,'
23621 # PIC (with -KPIC) is the default.
23622 lt_prog_compiler_static_GCJ='-non_shared'
23623 ;;
23624
23625 newsos6)
23626 lt_prog_compiler_pic_GCJ='-KPIC'
23627 lt_prog_compiler_static_GCJ='-Bstatic'
23628 ;;
23629
23630 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023631 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023632 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 lt_prog_compiler_pic_GCJ='-KPIC'
23635 lt_prog_compiler_static_GCJ='-static'
23636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023637 pgcc* | pgf77* | pgf90* | pgf95*)
23638 # Portland Group compilers (*not* the Pentium gcc compiler,
23639 # which looks to be a dead project)
23640 lt_prog_compiler_wl_GCJ='-Wl,'
23641 lt_prog_compiler_pic_GCJ='-fpic'
23642 lt_prog_compiler_static_GCJ='-Bstatic'
23643 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023644 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023645 lt_prog_compiler_wl_GCJ='-Wl,'
23646 # All Alpha code is PIC.
23647 lt_prog_compiler_static_GCJ='-non_shared'
23648 ;;
23649 esac
23650 ;;
23651
23652 osf3* | osf4* | osf5*)
23653 lt_prog_compiler_wl_GCJ='-Wl,'
23654 # All OSF/1 code is PIC.
23655 lt_prog_compiler_static_GCJ='-non_shared'
23656 ;;
23657
John Criswell47fdd832003-07-14 16:52:07 +000023658 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023659 lt_prog_compiler_pic_GCJ='-KPIC'
23660 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023661 case $cc_basename in
23662 f77* | f90* | f95*)
23663 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23664 *)
23665 lt_prog_compiler_wl_GCJ='-Wl,';;
23666 esac
John Criswell47fdd832003-07-14 16:52:07 +000023667 ;;
23668
23669 sunos4*)
23670 lt_prog_compiler_wl_GCJ='-Qoption ld '
23671 lt_prog_compiler_pic_GCJ='-PIC'
23672 lt_prog_compiler_static_GCJ='-Bstatic'
23673 ;;
23674
Reid Spencera773bd52006-08-04 18:18:08 +000023675 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 lt_prog_compiler_pic_GCJ='-KPIC'
23678 lt_prog_compiler_static_GCJ='-Bstatic'
23679 ;;
23680
23681 sysv4*MP*)
23682 if test -d /usr/nec ;then
23683 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23685 fi
23686 ;;
23687
Reid Spencera773bd52006-08-04 18:18:08 +000023688 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23689 lt_prog_compiler_wl_GCJ='-Wl,'
23690 lt_prog_compiler_pic_GCJ='-KPIC'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
23692 ;;
23693
23694 unicos*)
23695 lt_prog_compiler_wl_GCJ='-Wl,'
23696 lt_prog_compiler_can_build_shared_GCJ=no
23697 ;;
23698
John Criswell47fdd832003-07-14 16:52:07 +000023699 uts4*)
23700 lt_prog_compiler_pic_GCJ='-pic'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23702 ;;
23703
23704 *)
23705 lt_prog_compiler_can_build_shared_GCJ=no
23706 ;;
23707 esac
23708 fi
23709
Reid Spencera773bd52006-08-04 18:18:08 +000023710{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23711echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023712
23713#
23714# Check to make sure the PIC flag actually works.
23715#
23716if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023717
Reid Spencera773bd52006-08-04 18:18:08 +000023718{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23719echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023720if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23722else
23723 lt_prog_compiler_pic_works_GCJ=no
23724 ac_outfile=conftest.$ac_objext
23725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23726 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23727 # Insert the option either (1) after the last *FLAGS variable, or
23728 # (2) before a word containing "conftest.", or (3) at the end.
23729 # Note that $ac_compile itself does not contain backslashes and begins
23730 # with a dollar sign (not a hyphen), so the echo should work correctly.
23731 # The option is referenced via a variable to avoid confusing sed.
23732 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23735 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000023736 (eval echo "\"\$as_me:23736: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023737 (eval "$lt_compile" 2>conftest.err)
23738 ac_status=$?
23739 cat conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000023740 echo "$as_me:23740: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023741 if (exit $ac_status) && test -s "$ac_outfile"; then
23742 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023743 # So say no if there are warnings other than the usual output.
23744 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023747 lt_prog_compiler_pic_works_GCJ=yes
23748 fi
23749 fi
23750 $rm conftest*
23751
23752fi
Reid Spencera773bd52006-08-04 18:18:08 +000023753{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23754echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023755
23756if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23757 case $lt_prog_compiler_pic_GCJ in
23758 "" | " "*) ;;
23759 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23760 esac
23761else
23762 lt_prog_compiler_pic_GCJ=
23763 lt_prog_compiler_can_build_shared_GCJ=no
23764fi
23765
23766fi
Reid Spencera773bd52006-08-04 18:18:08 +000023767case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023768 # For platforms which do not support PIC, -DPIC is meaningless:
23769 *djgpp*)
23770 lt_prog_compiler_pic_GCJ=
23771 ;;
23772 *)
23773 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23774 ;;
23775esac
23776
Reid Spencera773bd52006-08-04 18:18:08 +000023777#
23778# Check to make sure the static flag actually works.
23779#
23780wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23781{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23782echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23783if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23784 echo $ECHO_N "(cached) $ECHO_C" >&6
23785else
23786 lt_prog_compiler_static_works_GCJ=no
23787 save_LDFLAGS="$LDFLAGS"
23788 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23789 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23791 # The linker can only warn and ignore the option if not recognized
23792 # So say no if there are warnings
23793 if test -s conftest.err; then
23794 # Append any errors to the config.log.
23795 cat conftest.err 1>&5
23796 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23798 if diff conftest.exp conftest.er2 >/dev/null; then
23799 lt_prog_compiler_static_works_GCJ=yes
23800 fi
23801 else
23802 lt_prog_compiler_static_works_GCJ=yes
23803 fi
23804 fi
23805 $rm conftest*
23806 LDFLAGS="$save_LDFLAGS"
23807
23808fi
23809{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23810echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23811
23812if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23813 :
23814else
23815 lt_prog_compiler_static_GCJ=
23816fi
23817
23818
23819{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23820echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023821if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23822 echo $ECHO_N "(cached) $ECHO_C" >&6
23823else
23824 lt_cv_prog_compiler_c_o_GCJ=no
23825 $rm -r conftest 2>/dev/null
23826 mkdir conftest
23827 cd conftest
23828 mkdir out
23829 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23830
John Criswell47fdd832003-07-14 16:52:07 +000023831 lt_compiler_flag="-o out/conftest2.$ac_objext"
23832 # Insert the option either (1) after the last *FLAGS variable, or
23833 # (2) before a word containing "conftest.", or (3) at the end.
23834 # Note that $ac_compile itself does not contain backslashes and begins
23835 # with a dollar sign (not a hyphen), so the echo should work correctly.
23836 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23839 -e 's:$: $lt_compiler_flag:'`
Reid Spencer8b2e1412006-11-17 03:32:33 +000023840 (eval echo "\"\$as_me:23840: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023841 (eval "$lt_compile" 2>out/conftest.err)
23842 ac_status=$?
23843 cat out/conftest.err >&5
Reid Spencer8b2e1412006-11-17 03:32:33 +000023844 echo "$as_me:23844: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23846 then
23847 # The compiler can only warn and ignore the option if not recognized
23848 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023849 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023852 lt_cv_prog_compiler_c_o_GCJ=yes
23853 fi
23854 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023855 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023856 $rm conftest*
23857 # SGI C++ compiler will create directory out/ii_files/ for
23858 # template instantiation
23859 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23860 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023861 cd ..
23862 rmdir conftest
23863 $rm conftest*
23864
23865fi
Reid Spencera773bd52006-08-04 18:18:08 +000023866{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23867echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023868
23869
23870hard_links="nottested"
23871if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23872 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023873 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23874echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023875 hard_links=yes
23876 $rm conftest*
23877 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23878 touch conftest.a
23879 ln conftest.a conftest.b 2>&5 || hard_links=no
23880 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023881 { echo "$as_me:$LINENO: result: $hard_links" >&5
23882echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023883 if test "$hard_links" = no; then
23884 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23885echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23886 need_locks=warn
23887 fi
23888else
23889 need_locks=no
23890fi
23891
Reid Spencera773bd52006-08-04 18:18:08 +000023892{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23893echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023894
23895 runpath_var=
23896 allow_undefined_flag_GCJ=
23897 enable_shared_with_static_runtimes_GCJ=no
23898 archive_cmds_GCJ=
23899 archive_expsym_cmds_GCJ=
23900 old_archive_From_new_cmds_GCJ=
23901 old_archive_from_expsyms_cmds_GCJ=
23902 export_dynamic_flag_spec_GCJ=
23903 whole_archive_flag_spec_GCJ=
23904 thread_safe_flag_spec_GCJ=
23905 hardcode_libdir_flag_spec_GCJ=
23906 hardcode_libdir_flag_spec_ld_GCJ=
23907 hardcode_libdir_separator_GCJ=
23908 hardcode_direct_GCJ=no
23909 hardcode_minus_L_GCJ=no
23910 hardcode_shlibpath_var_GCJ=unsupported
23911 link_all_deplibs_GCJ=unknown
23912 hardcode_automatic_GCJ=no
23913 module_cmds_GCJ=
23914 module_expsym_cmds_GCJ=
23915 always_export_symbols_GCJ=no
23916 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23917 # include_expsyms should be a list of space-separated symbols to be *always*
23918 # included in the symbol list
23919 include_expsyms_GCJ=
23920 # exclude_expsyms can be an extended regexp of symbols to exclude
23921 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23922 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23923 # as well as any symbol that contains `d'.
23924 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23925 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23926 # platforms (ab)use it in PIC code, but their linkers get confused if
23927 # the symbol is explicitly referenced. Since portable code cannot
23928 # rely on this symbol name, it's probably fine to never include it in
23929 # preloaded symbol tables.
23930 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023931 # Just being paranoid about ensuring that cc_basename is set.
23932 for cc_temp in $compiler""; do
23933 case $cc_temp in
23934 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23935 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23936 \-*) ;;
23937 *) break;;
23938 esac
23939done
23940cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023941
23942 case $host_os in
23943 cygwin* | mingw* | pw32*)
23944 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23945 # When not using gcc, we currently assume that we are using
23946 # Microsoft Visual C++.
23947 if test "$GCC" != yes; then
23948 with_gnu_ld=no
23949 fi
23950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023951 interix*)
23952 # we just hope/assume this is gcc and not c89 (= MSVC++)
23953 with_gnu_ld=yes
23954 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023955 openbsd*)
23956 with_gnu_ld=no
23957 ;;
23958 esac
23959
23960 ld_shlibs_GCJ=yes
23961 if test "$with_gnu_ld" = yes; then
23962 # If archive_cmds runs LD, not CC, wlarc should be empty
23963 wlarc='${wl}'
23964
Reid Spencera773bd52006-08-04 18:18:08 +000023965 # Set some defaults for GNU ld with shared library support. These
23966 # are reset later if shared libraries are not supported. Putting them
23967 # here allows them to be overridden if necessary.
23968 runpath_var=LD_RUN_PATH
23969 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23970 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23971 # ancient GNU ld didn't support --whole-archive et. al.
23972 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23973 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23974 else
23975 whole_archive_flag_spec_GCJ=
23976 fi
23977 supports_anon_versioning=no
23978 case `$LD -v 2>/dev/null` in
23979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23982 *\ 2.11.*) ;; # other 2.11 versions
23983 *) supports_anon_versioning=yes ;;
23984 esac
23985
John Criswell47fdd832003-07-14 16:52:07 +000023986 # See if GNU ld supports shared libraries.
23987 case $host_os in
23988 aix3* | aix4* | aix5*)
23989 # On AIX/PPC, the GNU linker is very broken
23990 if test "$host_cpu" != ia64; then
23991 ld_shlibs_GCJ=no
23992 cat <<EOF 1>&2
23993
23994*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23995*** to be unable to reliably create shared libraries on AIX.
23996*** Therefore, libtool is disabling shared libraries support. If you
23997*** really care for shared libraries, you may want to modify your PATH
23998*** so that a non-GNU linker is found, and then restart.
23999
24000EOF
24001 fi
24002 ;;
24003
24004 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024005 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)'
John Criswell47fdd832003-07-14 16:52:07 +000024006 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24007 hardcode_minus_L_GCJ=yes
24008
24009 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24010 # that the semantics of dynamic libraries on AmigaOS, at least up
24011 # to version 4, is to share data among multiple programs linked
24012 # with the same dynamic library. Since this doesn't match the
24013 # behavior of shared libraries on other platforms, we can't use
24014 # them.
24015 ld_shlibs_GCJ=no
24016 ;;
24017
24018 beos*)
24019 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24020 allow_undefined_flag_GCJ=unsupported
24021 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24022 # support --undefined. This deserves some investigation. FIXME
24023 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24024 else
24025 ld_shlibs_GCJ=no
24026 fi
24027 ;;
24028
24029 cygwin* | mingw* | pw32*)
24030 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24031 # as there is no search path for DLLs.
24032 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24033 allow_undefined_flag_GCJ=unsupported
24034 always_export_symbols_GCJ=no
24035 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024036 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000024037
24038 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024039 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024040 # If the export-symbols file already is a .def file (1st line
24041 # is EXPORTS), use it as is; otherwise, prepend...
24042 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24043 cp $export_symbols $output_objdir/$soname.def;
24044 else
24045 echo EXPORTS > $output_objdir/$soname.def;
24046 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024047 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024048 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024049 else
Reid Spencera773bd52006-08-04 18:18:08 +000024050 ld_shlibs_GCJ=no
24051 fi
24052 ;;
24053
24054 interix3*)
24055 hardcode_direct_GCJ=no
24056 hardcode_shlibpath_var_GCJ=no
24057 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24058 export_dynamic_flag_spec_GCJ='${wl}-E'
24059 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24060 # Instead, shared libraries are loaded at an image base (0x10000000 by
24061 # default) and relocated if they conflict, which is a slow very memory
24062 # consuming and fragmenting process. To avoid this, we pick a random,
24063 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24064 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24065 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'
24066 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'
24067 ;;
24068
24069 linux*)
24070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24071 tmp_addflag=
24072 case $cc_basename,$host_cpu in
24073 pgcc*) # Portland Group C compiler
24074 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'
24075 tmp_addflag=' $pic_flag'
24076 ;;
24077 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24078 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'
24079 tmp_addflag=' $pic_flag -Mnomain' ;;
24080 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24081 tmp_addflag=' -i_dynamic' ;;
24082 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24083 tmp_addflag=' -i_dynamic -nofor_main' ;;
24084 ifc* | ifort*) # Intel Fortran compiler
24085 tmp_addflag=' -nofor_main' ;;
24086 esac
24087 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24088
24089 if test $supports_anon_versioning = yes; then
24090 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24091 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24092 $echo "local: *; };" >> $output_objdir/$libname.ver~
24093 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24094 fi
24095 else
24096 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024097 fi
24098 ;;
24099
24100 netbsd*)
24101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24102 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24103 wlarc=
24104 else
24105 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24106 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24107 fi
24108 ;;
24109
Reid Spencera773bd52006-08-04 18:18:08 +000024110 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024111 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24112 ld_shlibs_GCJ=no
24113 cat <<EOF 1>&2
24114
24115*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24116*** create shared libraries on Solaris systems. Therefore, libtool
24117*** is disabling shared libraries support. We urge you to upgrade GNU
24118*** binutils to release 2.9.1 or newer. Another option is to modify
24119*** your PATH or compiler configuration so that the native linker is
24120*** used, and then restart.
24121
24122EOF
24123 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24124 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24125 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24126 else
24127 ld_shlibs_GCJ=no
24128 fi
24129 ;;
24130
Reid Spencera773bd52006-08-04 18:18:08 +000024131 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24132 case `$LD -v 2>&1` in
24133 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24134 ld_shlibs_GCJ=no
24135 cat <<_LT_EOF 1>&2
24136
24137*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24138*** reliably create shared libraries on SCO systems. Therefore, libtool
24139*** is disabling shared libraries support. We urge you to upgrade GNU
24140*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24141*** your PATH or compiler configuration so that the native linker is
24142*** used, and then restart.
24143
24144_LT_EOF
24145 ;;
24146 *)
24147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24148 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24149 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24150 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24151 else
24152 ld_shlibs_GCJ=no
24153 fi
24154 ;;
24155 esac
24156 ;;
24157
John Criswell47fdd832003-07-14 16:52:07 +000024158 sunos4*)
24159 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24160 wlarc=
24161 hardcode_direct_GCJ=yes
24162 hardcode_shlibpath_var_GCJ=no
24163 ;;
24164
24165 *)
24166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24167 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24168 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24169 else
24170 ld_shlibs_GCJ=no
24171 fi
24172 ;;
24173 esac
24174
Reid Spencera773bd52006-08-04 18:18:08 +000024175 if test "$ld_shlibs_GCJ" = no; then
24176 runpath_var=
24177 hardcode_libdir_flag_spec_GCJ=
24178 export_dynamic_flag_spec_GCJ=
24179 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024180 fi
24181 else
24182 # PORTME fill in a description of your system's linker (not GNU ld)
24183 case $host_os in
24184 aix3*)
24185 allow_undefined_flag_GCJ=unsupported
24186 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024187 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'
John Criswell47fdd832003-07-14 16:52:07 +000024188 # Note: this linker hardcodes the directories in LIBPATH if there
24189 # are no directories specified by -L.
24190 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024191 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024192 # Neither direct hardcoding nor static linking is supported with a
24193 # broken collect2.
24194 hardcode_direct_GCJ=unsupported
24195 fi
24196 ;;
24197
24198 aix4* | aix5*)
24199 if test "$host_cpu" = ia64; then
24200 # On IA64, the linker does run time linking by default, so we don't
24201 # have to do anything special.
24202 aix_use_runtimelinking=no
24203 exp_sym_flag='-Bexport'
24204 no_entry_flag=""
24205 else
24206 # If we're using GNU nm, then we don't want the "-C" option.
24207 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24208 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24209 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'
24210 else
24211 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'
24212 fi
24213 aix_use_runtimelinking=no
24214
24215 # Test if we are trying to use run time linking or normal
24216 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24217 # need to do runtime linking.
24218 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24219 for ld_flag in $LDFLAGS; do
24220 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24221 aix_use_runtimelinking=yes
24222 break
24223 fi
24224 done
Reid Spencera773bd52006-08-04 18:18:08 +000024225 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024226 esac
24227
24228 exp_sym_flag='-bexport'
24229 no_entry_flag='-bnoentry'
24230 fi
24231
24232 # When large executables or shared objects are built, AIX ld can
24233 # have problems creating the table of contents. If linking a library
24234 # or program results in "error TOC overflow" add -mminimal-toc to
24235 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24236 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24237
24238 archive_cmds_GCJ=''
24239 hardcode_direct_GCJ=yes
24240 hardcode_libdir_separator_GCJ=':'
24241 link_all_deplibs_GCJ=yes
24242
24243 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024244 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024245 # We only want to do this on AIX 4.2 and lower, the check
24246 # below for broken collect2 doesn't work under 4.3+
24247 collect2name=`${CC} -print-prog-name=collect2`
24248 if test -f "$collect2name" && \
24249 strings "$collect2name" | grep resolve_lib_name >/dev/null
24250 then
24251 # We have reworked collect2
24252 hardcode_direct_GCJ=yes
24253 else
24254 # We have old collect2
24255 hardcode_direct_GCJ=unsupported
24256 # It fails to find uninstalled libraries when the uninstalled
24257 # path is not listed in the libpath. Setting hardcode_minus_L
24258 # to unsupported forces relinking
24259 hardcode_minus_L_GCJ=yes
24260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24261 hardcode_libdir_separator_GCJ=
24262 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024263 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024264 esac
24265 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024266 if test "$aix_use_runtimelinking" = yes; then
24267 shared_flag="$shared_flag "'${wl}-G'
24268 fi
John Criswell47fdd832003-07-14 16:52:07 +000024269 else
24270 # not using gcc
24271 if test "$host_cpu" = ia64; then
24272 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24273 # chokes on -Wl,-G. The following line is correct:
24274 shared_flag='-G'
24275 else
Reid Spencera773bd52006-08-04 18:18:08 +000024276 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024277 shared_flag='${wl}-G'
24278 else
24279 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024280 fi
John Criswell47fdd832003-07-14 16:52:07 +000024281 fi
24282 fi
24283
24284 # It seems that -bexpall does not export symbols beginning with
24285 # underscore (_), so it is better to generate a list of symbols to export.
24286 always_export_symbols_GCJ=yes
24287 if test "$aix_use_runtimelinking" = yes; then
24288 # Warning - without using the other runtime loading flags (-brtl),
24289 # -berok will link without error, but may produce a broken library.
24290 allow_undefined_flag_GCJ='-berok'
24291 # Determine the default libpath from the value encoded in an empty executable.
24292 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024293/* confdefs.h. */
24294_ACEOF
24295cat confdefs.h >>conftest.$ac_ext
24296cat >>conftest.$ac_ext <<_ACEOF
24297/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024298
John Criswell47fdd832003-07-14 16:52:07 +000024299int
24300main ()
24301{
24302
24303 ;
24304 return 0;
24305}
24306_ACEOF
24307rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024308if { (ac_try="$ac_link"
24309case "(($ac_try" in
24310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24311 *) ac_try_echo=$ac_try;;
24312esac
24313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24314 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024316 grep -v '^ *+' conftest.er1 >conftest.err
24317 rm -f conftest.er1
24318 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24322 { (case "(($ac_try" in
24323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24324 *) ac_try_echo=$ac_try;;
24325esac
24326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24327 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; } &&
24331 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024332 { (case "(($ac_try" in
24333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334 *) ac_try_echo=$ac_try;;
24335esac
24336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024338 ac_status=$?
24339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24340 (exit $ac_status); }; }; then
24341
24342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24343}'`
24344# Check for a 64-bit object if we didn't find anything.
24345if 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; }
24346}'`; fi
24347else
24348 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024349sed 's/^/| /' conftest.$ac_ext >&5
24350
Reid Spencera773bd52006-08-04 18:18:08 +000024351
John Criswell47fdd832003-07-14 16:52:07 +000024352fi
Reid Spencera773bd52006-08-04 18:18:08 +000024353
24354rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024355 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24357
24358 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024359 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"
John Criswell47fdd832003-07-14 16:52:07 +000024360 else
24361 if test "$host_cpu" = ia64; then
24362 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24363 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024364 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"
John Criswell47fdd832003-07-14 16:52:07 +000024365 else
24366 # Determine the default libpath from the value encoded in an empty executable.
24367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024373
John Criswell47fdd832003-07-14 16:52:07 +000024374int
24375main ()
24376{
24377
24378 ;
24379 return 0;
24380}
24381_ACEOF
24382rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024383if { (ac_try="$ac_link"
24384case "(($ac_try" in
24385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24386 *) ac_try_echo=$ac_try;;
24387esac
24388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024390 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24397 { (case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400esac
24401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024403 ac_status=$?
24404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405 (exit $ac_status); }; } &&
24406 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024407 { (case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24410esac
24411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024413 ac_status=$?
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416
24417aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24418}'`
24419# Check for a 64-bit object if we didn't find anything.
24420if 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; }
24421}'`; fi
24422else
24423 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024424sed 's/^/| /' conftest.$ac_ext >&5
24425
Reid Spencera773bd52006-08-04 18:18:08 +000024426
John Criswell47fdd832003-07-14 16:52:07 +000024427fi
Reid Spencera773bd52006-08-04 18:18:08 +000024428
24429rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024430 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024431if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24432
24433 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24434 # Warning - without using the other run time loading flags,
24435 # -berok will link without error, but may produce a broken library.
24436 no_undefined_flag_GCJ=' ${wl}-bernotok'
24437 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024438 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024439 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024440 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024441 # This is similar to how AIX traditionally builds its shared libraries.
24442 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'
John Criswell47fdd832003-07-14 16:52:07 +000024443 fi
24444 fi
24445 ;;
24446
24447 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024448 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)'
John Criswell47fdd832003-07-14 16:52:07 +000024449 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24450 hardcode_minus_L_GCJ=yes
24451 # see comment about different semantics on the GNU ld section
24452 ld_shlibs_GCJ=no
24453 ;;
24454
Reid Spencer2706f8c2004-09-19 23:53:36 +000024455 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024456 export_dynamic_flag_spec_GCJ=-rdynamic
24457 ;;
24458
24459 cygwin* | mingw* | pw32*)
24460 # When not using gcc, we currently assume that we are using
24461 # Microsoft Visual C++.
24462 # hardcode_libdir_flag_spec is actually meaningless, as there is
24463 # no search path for DLLs.
24464 hardcode_libdir_flag_spec_GCJ=' '
24465 allow_undefined_flag_GCJ=unsupported
24466 # Tell ltmain to make .lib files, not .a files.
24467 libext=lib
24468 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024469 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024470 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024471 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000024472 # The linker will automatically build a .lib file if we build a DLL.
24473 old_archive_From_new_cmds_GCJ='true'
24474 # FIXME: Should let the user specify the lib program.
24475 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024476 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024477 enable_shared_with_static_runtimes_GCJ=yes
24478 ;;
24479
24480 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024481 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024482 rhapsody* | darwin1.[012])
24483 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24484 ;;
24485 *) # Darwin 1.3 on
24486 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24487 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24488 else
24489 case ${MACOSX_DEPLOYMENT_TARGET} in
24490 10.[012])
24491 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24492 ;;
24493 10.*)
24494 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24495 ;;
24496 esac
24497 fi
24498 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024499 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024500 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024501 hardcode_direct_GCJ=no
24502 hardcode_automatic_GCJ=yes
24503 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024504 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024505 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024506 if test "$GCC" = yes ; then
24507 output_verbose_link_cmd='echo'
24508 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24509 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024510 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000024511 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}'
24512 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024513 else
Reid Spencera773bd52006-08-04 18:18:08 +000024514 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024515 xlc*)
24516 output_verbose_link_cmd='echo'
24517 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24518 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024519 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000024520 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}'
24521 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}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024522 ;;
24523 *)
24524 ld_shlibs_GCJ=no
24525 ;;
24526 esac
John Criswell47fdd832003-07-14 16:52:07 +000024527 fi
24528 ;;
24529
24530 dgux*)
24531 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24533 hardcode_shlibpath_var_GCJ=no
24534 ;;
24535
24536 freebsd1*)
24537 ld_shlibs_GCJ=no
24538 ;;
24539
24540 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24541 # support. Future versions do this automatically, but an explicit c++rt0.o
24542 # does not break anything, and helps significantly (at the cost of a little
24543 # extra space).
24544 freebsd2.2*)
24545 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24546 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24547 hardcode_direct_GCJ=yes
24548 hardcode_shlibpath_var_GCJ=no
24549 ;;
24550
24551 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24552 freebsd2*)
24553 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24554 hardcode_direct_GCJ=yes
24555 hardcode_minus_L_GCJ=yes
24556 hardcode_shlibpath_var_GCJ=no
24557 ;;
24558
24559 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024560 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024561 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24562 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24563 hardcode_direct_GCJ=yes
24564 hardcode_shlibpath_var_GCJ=no
24565 ;;
24566
24567 hpux9*)
24568 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024569 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'
John Criswell47fdd832003-07-14 16:52:07 +000024570 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024571 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'
John Criswell47fdd832003-07-14 16:52:07 +000024572 fi
24573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574 hardcode_libdir_separator_GCJ=:
24575 hardcode_direct_GCJ=yes
24576
24577 # hardcode_minus_L: Not really in the search PATH,
24578 # but as the default location of the library.
24579 hardcode_minus_L_GCJ=yes
24580 export_dynamic_flag_spec_GCJ='${wl}-E'
24581 ;;
24582
Reid Spencera773bd52006-08-04 18:18:08 +000024583 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024585 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24586 else
24587 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24588 fi
24589 if test "$with_gnu_ld" = no; then
24590 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24591 hardcode_libdir_separator_GCJ=:
24592
24593 hardcode_direct_GCJ=yes
24594 export_dynamic_flag_spec_GCJ='${wl}-E'
24595
24596 # hardcode_minus_L: Not really in the search PATH,
24597 # but as the default location of the library.
24598 hardcode_minus_L_GCJ=yes
24599 fi
24600 ;;
24601
24602 hpux11*)
24603 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24604 case $host_cpu in
24605 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024606 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24607 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024608 ia64*)
24609 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24610 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024611 *)
24612 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24613 ;;
24614 esac
24615 else
Reid Spencera773bd52006-08-04 18:18:08 +000024616 case $host_cpu in
24617 hppa*64*)
24618 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24619 ;;
24620 ia64*)
24621 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024622 ;;
24623 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024624 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024625 ;;
24626 esac
24627 fi
24628 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024629 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24630 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024631
Reid Spencera773bd52006-08-04 18:18:08 +000024632 case $host_cpu in
24633 hppa*64*|ia64*)
24634 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24635 hardcode_direct_GCJ=no
24636 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024637 ;;
24638 *)
John Criswell47fdd832003-07-14 16:52:07 +000024639 hardcode_direct_GCJ=yes
24640 export_dynamic_flag_spec_GCJ='${wl}-E'
24641
24642 # hardcode_minus_L: Not really in the search PATH,
24643 # but as the default location of the library.
24644 hardcode_minus_L_GCJ=yes
24645 ;;
24646 esac
24647 fi
24648 ;;
24649
24650 irix5* | irix6* | nonstopux*)
24651 if test "$GCC" = yes; then
24652 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'
24653 else
24654 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'
24655 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24656 fi
24657 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24658 hardcode_libdir_separator_GCJ=:
24659 link_all_deplibs_GCJ=yes
24660 ;;
24661
24662 netbsd*)
24663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24664 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24665 else
24666 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24667 fi
24668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24669 hardcode_direct_GCJ=yes
24670 hardcode_shlibpath_var_GCJ=no
24671 ;;
24672
24673 newsos6)
24674 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24675 hardcode_direct_GCJ=yes
24676 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24677 hardcode_libdir_separator_GCJ=:
24678 hardcode_shlibpath_var_GCJ=no
24679 ;;
24680
24681 openbsd*)
24682 hardcode_direct_GCJ=yes
24683 hardcode_shlibpath_var_GCJ=no
24684 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24685 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024686 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000024687 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24688 export_dynamic_flag_spec_GCJ='${wl}-E'
24689 else
24690 case $host_os in
24691 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24692 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24693 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24694 ;;
24695 *)
24696 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24697 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24698 ;;
24699 esac
24700 fi
24701 ;;
24702
24703 os2*)
24704 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24705 hardcode_minus_L_GCJ=yes
24706 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024707 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'
John Criswell47fdd832003-07-14 16:52:07 +000024708 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24709 ;;
24710
24711 osf3*)
24712 if test "$GCC" = yes; then
24713 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24714 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'
24715 else
24716 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24717 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'
24718 fi
24719 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24720 hardcode_libdir_separator_GCJ=:
24721 ;;
24722
24723 osf4* | osf5*) # as osf3* with the addition of -msym flag
24724 if test "$GCC" = yes; then
24725 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24726 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'
24727 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24728 else
24729 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24730 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'
Reid Spencer177dbe22004-10-13 01:01:03 +000024731 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~
Reid Spencera773bd52006-08-04 18:18:08 +000024732 $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'
Reid Spencer177dbe22004-10-13 01:01:03 +000024733
John Criswell47fdd832003-07-14 16:52:07 +000024734 # Both c and cxx compiler support -rpath directly
24735 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24736 fi
24737 hardcode_libdir_separator_GCJ=:
24738 ;;
24739
John Criswell47fdd832003-07-14 16:52:07 +000024740 solaris*)
24741 no_undefined_flag_GCJ=' -z text'
24742 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024743 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024744 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024745 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000024747 else
Reid Spencera773bd52006-08-04 18:18:08 +000024748 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024749 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024750 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000024752 fi
24753 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24754 hardcode_shlibpath_var_GCJ=no
24755 case $host_os in
24756 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024757 *)
24758 # The compiler driver will combine linker options so we
24759 # cannot just pass the convience library names through
24760 # without $wl, iff we do not link with $LD.
24761 # Luckily, gcc supports the same syntax we need for Sun Studio.
24762 # Supported since Solaris 2.6 (maybe 2.5.1?)
24763 case $wlarc in
24764 '')
24765 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24766 *)
24767 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' ;;
24768 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024769 esac
24770 link_all_deplibs_GCJ=yes
24771 ;;
24772
24773 sunos4*)
24774 if test "x$host_vendor" = xsequent; then
24775 # Use $CC to link under sequent, because it throws in some extra .o
24776 # files that make .init and .fini sections work.
24777 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24778 else
24779 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24780 fi
24781 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24782 hardcode_direct_GCJ=yes
24783 hardcode_minus_L_GCJ=yes
24784 hardcode_shlibpath_var_GCJ=no
24785 ;;
24786
24787 sysv4)
24788 case $host_vendor in
24789 sni)
24790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24791 hardcode_direct_GCJ=yes # is this really true???
24792 ;;
24793 siemens)
24794 ## LD is ld it makes a PLAMLIB
24795 ## CC just makes a GrossModule.
24796 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24797 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24798 hardcode_direct_GCJ=no
24799 ;;
24800 motorola)
24801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24802 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24803 ;;
24804 esac
24805 runpath_var='LD_RUN_PATH'
24806 hardcode_shlibpath_var_GCJ=no
24807 ;;
24808
24809 sysv4.3*)
24810 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24811 hardcode_shlibpath_var_GCJ=no
24812 export_dynamic_flag_spec_GCJ='-Bexport'
24813 ;;
24814
24815 sysv4*MP*)
24816 if test -d /usr/nec; then
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_shlibpath_var_GCJ=no
24819 runpath_var=LD_RUN_PATH
24820 hardcode_runpath_var=yes
24821 ld_shlibs_GCJ=yes
24822 fi
24823 ;;
24824
Reid Spencera773bd52006-08-04 18:18:08 +000024825 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24826 no_undefined_flag_GCJ='${wl}-z,text'
24827 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024828 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024829 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024830
John Criswell47fdd832003-07-14 16:52:07 +000024831 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024832 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24833 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024834 else
Reid Spencera773bd52006-08-04 18:18:08 +000024835 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24836 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024837 fi
John Criswell47fdd832003-07-14 16:52:07 +000024838 ;;
24839
Reid Spencera773bd52006-08-04 18:18:08 +000024840 sysv5* | sco3.2v5* | sco5v6*)
24841 # Note: We can NOT use -z defs as we might desire, because we do not
24842 # link with -lc, and that would cause any symbols used from libc to
24843 # always be unresolved, which means just about no library would
24844 # ever link correctly. If we're not using GNU ld we use -z text
24845 # though, which does catch some bad symbols but isn't as heavy-handed
24846 # as -z defs.
24847 no_undefined_flag_GCJ='${wl}-z,text'
24848 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24849 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024850 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024851 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24852 hardcode_libdir_separator_GCJ=':'
24853 link_all_deplibs_GCJ=yes
24854 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024855 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024856
24857 if test "$GCC" = yes; then
24858 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24859 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860 else
24861 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24863 fi
John Criswell47fdd832003-07-14 16:52:07 +000024864 ;;
24865
24866 uts4*)
24867 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24868 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24869 hardcode_shlibpath_var_GCJ=no
24870 ;;
24871
24872 *)
24873 ld_shlibs_GCJ=no
24874 ;;
24875 esac
24876 fi
24877
Reid Spencera773bd52006-08-04 18:18:08 +000024878{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24879echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024880test "$ld_shlibs_GCJ" = no && can_build_shared=no
24881
John Criswell47fdd832003-07-14 16:52:07 +000024882#
24883# Do we need to explicitly link libc?
24884#
24885case "x$archive_cmds_need_lc_GCJ" in
24886x|xyes)
24887 # Assume -lc should be added
24888 archive_cmds_need_lc_GCJ=yes
24889
24890 if test "$enable_shared" = yes && test "$GCC" = yes; then
24891 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024892 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024893 # FIXME: we may have to deal with multi-command sequences.
24894 ;;
24895 '$CC '*)
24896 # Test whether the compiler implicitly links with -lc since on some
24897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24898 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024899 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24900echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024901 $rm conftest*
24902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24903
24904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24905 (eval $ac_compile) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); } 2>conftest.err; then
24909 soname=conftest
24910 lib=conftest
24911 libobjs=conftest.$ac_objext
24912 deplibs=
24913 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024914 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024915 compiler_flags=-v
24916 linker_flags=-v
24917 verstring=
24918 output_objdir=.
24919 libname=conftest
24920 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24921 allow_undefined_flag_GCJ=
24922 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24923 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }
24927 then
24928 archive_cmds_need_lc_GCJ=no
24929 else
24930 archive_cmds_need_lc_GCJ=yes
24931 fi
24932 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24933 else
24934 cat conftest.err 1>&5
24935 fi
24936 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024937 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24938echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024939 ;;
24940 esac
24941 fi
24942 ;;
24943esac
24944
Reid Spencera773bd52006-08-04 18:18:08 +000024945{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24946echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024947library_names_spec=
24948libname_spec='lib$name'
24949soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024950shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024951postinstall_cmds=
24952postuninstall_cmds=
24953finish_cmds=
24954finish_eval=
24955shlibpath_var=
24956shlibpath_overrides_runpath=unknown
24957version_type=none
24958dynamic_linker="$host_os ld.so"
24959sys_lib_dlsearch_path_spec="/lib /usr/lib"
24960if test "$GCC" = yes; then
24961 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24962 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24963 # if the path contains ";" then we assume it to be the separator
24964 # otherwise default to the standard path separator (i.e. ":") - it is
24965 # assumed that no part of a normal pathname contains ";" but that should
24966 # okay in the real world where ";" in dirpaths is itself problematic.
24967 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24968 else
24969 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24970 fi
24971else
24972 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24973fi
24974need_lib_prefix=unknown
24975hardcode_into_libs=no
24976
24977# when you set need_version to no, make sure it does not cause -set_version
24978# flags to be left without arguments
24979need_version=unknown
24980
24981case $host_os in
24982aix3*)
24983 version_type=linux
24984 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24985 shlibpath_var=LIBPATH
24986
24987 # AIX 3 has no versioning support, so we append a major version to the name.
24988 soname_spec='${libname}${release}${shared_ext}$major'
24989 ;;
24990
24991aix4* | aix5*)
24992 version_type=linux
24993 need_lib_prefix=no
24994 need_version=no
24995 hardcode_into_libs=yes
24996 if test "$host_cpu" = ia64; then
24997 # AIX 5 supports IA64
24998 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24999 shlibpath_var=LD_LIBRARY_PATH
25000 else
25001 # With GCC up to 2.95.x, collect2 would create an import file
25002 # for dependence libraries. The import file would start with
25003 # the line `#! .'. This would cause the generated library to
25004 # depend on `.', always an invalid library. This was fixed in
25005 # development snapshots of GCC prior to 3.0.
25006 case $host_os in
25007 aix4 | aix4.[01] | aix4.[01].*)
25008 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25009 echo ' yes '
25010 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25011 :
25012 else
25013 can_build_shared=no
25014 fi
25015 ;;
25016 esac
25017 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25018 # soname into executable. Probably we can add versioning support to
25019 # collect2, so additional links can be useful in future.
25020 if test "$aix_use_runtimelinking" = yes; then
25021 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25022 # instead of lib<name>.a to let people know that these are not
25023 # typical AIX shared libraries.
25024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25025 else
25026 # We preserve .a as extension for shared libraries through AIX4.2
25027 # and later when we are not doing run time linking.
25028 library_names_spec='${libname}${release}.a $libname.a'
25029 soname_spec='${libname}${release}${shared_ext}$major'
25030 fi
25031 shlibpath_var=LIBPATH
25032 fi
25033 ;;
25034
25035amigaos*)
25036 library_names_spec='$libname.ixlibrary $libname.a'
25037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025038 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'
John Criswell47fdd832003-07-14 16:52:07 +000025039 ;;
25040
25041beos*)
25042 library_names_spec='${libname}${shared_ext}'
25043 dynamic_linker="$host_os ld.so"
25044 shlibpath_var=LIBRARY_PATH
25045 ;;
25046
Reid Spencer2706f8c2004-09-19 23:53:36 +000025047bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025048 version_type=linux
25049 need_version=no
25050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25051 soname_spec='${libname}${release}${shared_ext}$major'
25052 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25053 shlibpath_var=LD_LIBRARY_PATH
25054 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25055 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25056 # the default ld.so.conf also contains /usr/contrib/lib and
25057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25058 # libtool to hard-code these into programs
25059 ;;
25060
25061cygwin* | mingw* | pw32*)
25062 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025063 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025064 need_version=no
25065 need_lib_prefix=no
25066
25067 case $GCC,$host_os in
25068 yes,cygwin* | yes,mingw* | yes,pw32*)
25069 library_names_spec='$libname.dll.a'
25070 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025071 postinstall_cmds='base_file=`basename \${file}`~
25072 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25073 dldir=$destdir/`dirname \$dlpath`~
25074 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025075 $install_prog $dir/$dlname \$dldir/$dlname~
25076 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25078 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025079 $rm \$dlpath'
25080 shlibpath_overrides_runpath=yes
25081
25082 case $host_os in
25083 cygwin*)
25084 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25085 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025086 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025087 ;;
25088 mingw*)
25089 # MinGW DLLs use traditional 'lib' prefix
25090 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25091 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25092 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25093 # It is most probably a Windows format PATH printed by
25094 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25095 # path with ; separators, and with drive letters. We can handle the
25096 # drive letters (cygwin fileutils understands them), so leave them,
25097 # especially as we might pass files found there to a mingw objdump,
25098 # which wouldn't understand a cygwinified path. Ahh.
25099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25100 else
25101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25102 fi
25103 ;;
25104 pw32*)
25105 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025106 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025107 ;;
25108 esac
25109 ;;
25110
25111 *)
25112 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25113 ;;
25114 esac
25115 dynamic_linker='Win32 ld.exe'
25116 # FIXME: first we should search . and the directory the executable is in
25117 shlibpath_var=PATH
25118 ;;
25119
25120darwin* | rhapsody*)
25121 dynamic_linker="$host_os dyld"
25122 version_type=darwin
25123 need_lib_prefix=no
25124 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025125 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025126 soname_spec='${libname}${release}${major}$shared_ext'
25127 shlibpath_overrides_runpath=yes
25128 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025130 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025131 if test "$GCC" = yes; then
25132 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"`
25133 else
25134 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025135 fi
25136 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25137 ;;
25138
25139dgux*)
25140 version_type=linux
25141 need_lib_prefix=no
25142 need_version=no
25143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25144 soname_spec='${libname}${release}${shared_ext}$major'
25145 shlibpath_var=LD_LIBRARY_PATH
25146 ;;
25147
25148freebsd1*)
25149 dynamic_linker=no
25150 ;;
25151
Reid Spencer2706f8c2004-09-19 23:53:36 +000025152kfreebsd*-gnu)
25153 version_type=linux
25154 need_lib_prefix=no
25155 need_version=no
25156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25157 soname_spec='${libname}${release}${shared_ext}$major'
25158 shlibpath_var=LD_LIBRARY_PATH
25159 shlibpath_overrides_runpath=no
25160 hardcode_into_libs=yes
25161 dynamic_linker='GNU ld.so'
25162 ;;
25163
Reid Spencera773bd52006-08-04 18:18:08 +000025164freebsd* | dragonfly*)
25165 # DragonFly does not have aout. When/if they implement a new
25166 # versioning mechanism, adjust this.
25167 if test -x /usr/bin/objformat; then
25168 objformat=`/usr/bin/objformat`
25169 else
25170 case $host_os in
25171 freebsd[123]*) objformat=aout ;;
25172 *) objformat=elf ;;
25173 esac
25174 fi
John Criswell47fdd832003-07-14 16:52:07 +000025175 version_type=freebsd-$objformat
25176 case $version_type in
25177 freebsd-elf*)
25178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25179 need_version=no
25180 need_lib_prefix=no
25181 ;;
25182 freebsd-*)
25183 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25184 need_version=yes
25185 ;;
25186 esac
25187 shlibpath_var=LD_LIBRARY_PATH
25188 case $host_os in
25189 freebsd2*)
25190 shlibpath_overrides_runpath=yes
25191 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025192 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025193 shlibpath_overrides_runpath=yes
25194 hardcode_into_libs=yes
25195 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025196 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25197 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025198 shlibpath_overrides_runpath=no
25199 hardcode_into_libs=yes
25200 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025201 freebsd*) # from 4.6 on
25202 shlibpath_overrides_runpath=yes
25203 hardcode_into_libs=yes
25204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025205 esac
25206 ;;
25207
25208gnu*)
25209 version_type=linux
25210 need_lib_prefix=no
25211 need_version=no
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25213 soname_spec='${libname}${release}${shared_ext}$major'
25214 shlibpath_var=LD_LIBRARY_PATH
25215 hardcode_into_libs=yes
25216 ;;
25217
25218hpux9* | hpux10* | hpux11*)
25219 # Give a soname corresponding to the major version so that dld.sl refuses to
25220 # link against other versions.
25221 version_type=sunos
25222 need_lib_prefix=no
25223 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025224 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025225 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025226 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025227 hardcode_into_libs=yes
25228 dynamic_linker="$host_os dld.so"
25229 shlibpath_var=LD_LIBRARY_PATH
25230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25232 soname_spec='${libname}${release}${shared_ext}$major'
25233 if test "X$HPUX_IA64_MODE" = X32; then
25234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25235 else
25236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25237 fi
25238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25239 ;;
25240 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025241 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025242 hardcode_into_libs=yes
25243 dynamic_linker="$host_os dld.sl"
25244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25247 soname_spec='${libname}${release}${shared_ext}$major'
25248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25250 ;;
25251 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025252 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025253 dynamic_linker="$host_os dld.sl"
25254 shlibpath_var=SHLIB_PATH
25255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25257 soname_spec='${libname}${release}${shared_ext}$major'
25258 ;;
25259 esac
25260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25261 postinstall_cmds='chmod 555 $lib'
25262 ;;
25263
Reid Spencera773bd52006-08-04 18:18:08 +000025264interix3*)
25265 version_type=linux
25266 need_lib_prefix=no
25267 need_version=no
25268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25269 soname_spec='${libname}${release}${shared_ext}$major'
25270 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25271 shlibpath_var=LD_LIBRARY_PATH
25272 shlibpath_overrides_runpath=no
25273 hardcode_into_libs=yes
25274 ;;
25275
John Criswell47fdd832003-07-14 16:52:07 +000025276irix5* | irix6* | nonstopux*)
25277 case $host_os in
25278 nonstopux*) version_type=nonstopux ;;
25279 *)
25280 if test "$lt_cv_prog_gnu_ld" = yes; then
25281 version_type=linux
25282 else
25283 version_type=irix
25284 fi ;;
25285 esac
25286 need_lib_prefix=no
25287 need_version=no
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25290 case $host_os in
25291 irix5* | nonstopux*)
25292 libsuff= shlibsuff=
25293 ;;
25294 *)
25295 case $LD in # libtool.m4 will add one of these switches to LD
25296 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25297 libsuff= shlibsuff= libmagic=32-bit;;
25298 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25299 libsuff=32 shlibsuff=N32 libmagic=N32;;
25300 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25301 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25302 *) libsuff= shlibsuff= libmagic=never-match;;
25303 esac
25304 ;;
25305 esac
25306 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25307 shlibpath_overrides_runpath=no
25308 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25309 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25310 hardcode_into_libs=yes
25311 ;;
25312
25313# No shared lib support for Linux oldld, aout, or coff.
25314linux*oldld* | linux*aout* | linux*coff*)
25315 dynamic_linker=no
25316 ;;
25317
25318# This must be Linux ELF.
25319linux*)
25320 version_type=linux
25321 need_lib_prefix=no
25322 need_version=no
25323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25324 soname_spec='${libname}${release}${shared_ext}$major'
25325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25326 shlibpath_var=LD_LIBRARY_PATH
25327 shlibpath_overrides_runpath=no
25328 # This implies no fast_install, which is unacceptable.
25329 # Some rework will be needed to allow for fast_install
25330 # before this can be enabled.
25331 hardcode_into_libs=yes
25332
Reid Spencer2706f8c2004-09-19 23:53:36 +000025333 # Append ld.so.conf contents to the search path
25334 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025335 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' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025336 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25337 fi
25338
John Criswell47fdd832003-07-14 16:52:07 +000025339 # We used to test for /lib/ld.so.1 and disable shared libraries on
25340 # powerpc, because MkLinux only supported shared libraries with the
25341 # GNU dynamic linker. Since this was broken with cross compilers,
25342 # most powerpc-linux boxes support dynamic linking these days and
25343 # people can always --disable-shared, the test was removed, and we
25344 # assume the GNU/Linux dynamic linker is in use.
25345 dynamic_linker='GNU/Linux ld.so'
25346 ;;
25347
Reid Spencer2706f8c2004-09-19 23:53:36 +000025348knetbsd*-gnu)
25349 version_type=linux
25350 need_lib_prefix=no
25351 need_version=no
25352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25353 soname_spec='${libname}${release}${shared_ext}$major'
25354 shlibpath_var=LD_LIBRARY_PATH
25355 shlibpath_overrides_runpath=no
25356 hardcode_into_libs=yes
25357 dynamic_linker='GNU ld.so'
25358 ;;
25359
John Criswell47fdd832003-07-14 16:52:07 +000025360netbsd*)
25361 version_type=sunos
25362 need_lib_prefix=no
25363 need_version=no
25364 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25366 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25367 dynamic_linker='NetBSD (a.out) ld.so'
25368 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025370 soname_spec='${libname}${release}${shared_ext}$major'
25371 dynamic_linker='NetBSD ld.elf_so'
25372 fi
25373 shlibpath_var=LD_LIBRARY_PATH
25374 shlibpath_overrides_runpath=yes
25375 hardcode_into_libs=yes
25376 ;;
25377
25378newsos6)
25379 version_type=linux
25380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25381 shlibpath_var=LD_LIBRARY_PATH
25382 shlibpath_overrides_runpath=yes
25383 ;;
25384
Reid Spencer2706f8c2004-09-19 23:53:36 +000025385nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025386 version_type=linux
25387 need_lib_prefix=no
25388 need_version=no
25389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25390 soname_spec='${libname}${release}${shared_ext}$major'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 shlibpath_overrides_runpath=yes
25393 ;;
25394
25395openbsd*)
25396 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025397 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025398 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025399 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25400 case $host_os in
25401 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25402 *) need_version=no ;;
25403 esac
John Criswell47fdd832003-07-14 16:52:07 +000025404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25406 shlibpath_var=LD_LIBRARY_PATH
25407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25408 case $host_os in
25409 openbsd2.[89] | openbsd2.[89].*)
25410 shlibpath_overrides_runpath=no
25411 ;;
25412 *)
25413 shlibpath_overrides_runpath=yes
25414 ;;
25415 esac
25416 else
25417 shlibpath_overrides_runpath=yes
25418 fi
25419 ;;
25420
25421os2*)
25422 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025423 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025424 need_lib_prefix=no
25425 library_names_spec='$libname${shared_ext} $libname.a'
25426 dynamic_linker='OS/2 ld.exe'
25427 shlibpath_var=LIBPATH
25428 ;;
25429
25430osf3* | osf4* | osf5*)
25431 version_type=osf
25432 need_lib_prefix=no
25433 need_version=no
25434 soname_spec='${libname}${release}${shared_ext}$major'
25435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25436 shlibpath_var=LD_LIBRARY_PATH
25437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25439 ;;
25440
John Criswell47fdd832003-07-14 16:52:07 +000025441solaris*)
25442 version_type=linux
25443 need_lib_prefix=no
25444 need_version=no
25445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25446 soname_spec='${libname}${release}${shared_ext}$major'
25447 shlibpath_var=LD_LIBRARY_PATH
25448 shlibpath_overrides_runpath=yes
25449 hardcode_into_libs=yes
25450 # ldd complains unless libraries are executable
25451 postinstall_cmds='chmod +x $lib'
25452 ;;
25453
25454sunos4*)
25455 version_type=sunos
25456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25458 shlibpath_var=LD_LIBRARY_PATH
25459 shlibpath_overrides_runpath=yes
25460 if test "$with_gnu_ld" = yes; then
25461 need_lib_prefix=no
25462 fi
25463 need_version=yes
25464 ;;
25465
Reid Spencera773bd52006-08-04 18:18:08 +000025466sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025467 version_type=linux
25468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25469 soname_spec='${libname}${release}${shared_ext}$major'
25470 shlibpath_var=LD_LIBRARY_PATH
25471 case $host_vendor in
25472 sni)
25473 shlibpath_overrides_runpath=no
25474 need_lib_prefix=no
25475 export_dynamic_flag_spec='${wl}-Blargedynsym'
25476 runpath_var=LD_RUN_PATH
25477 ;;
25478 siemens)
25479 need_lib_prefix=no
25480 ;;
25481 motorola)
25482 need_lib_prefix=no
25483 need_version=no
25484 shlibpath_overrides_runpath=no
25485 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25486 ;;
25487 esac
25488 ;;
25489
25490sysv4*MP*)
25491 if test -d /usr/nec ;then
25492 version_type=linux
25493 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25494 soname_spec='$libname${shared_ext}.$major'
25495 shlibpath_var=LD_LIBRARY_PATH
25496 fi
25497 ;;
25498
Reid Spencera773bd52006-08-04 18:18:08 +000025499sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25500 version_type=freebsd-elf
25501 need_lib_prefix=no
25502 need_version=no
25503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25504 soname_spec='${libname}${release}${shared_ext}$major'
25505 shlibpath_var=LD_LIBRARY_PATH
25506 hardcode_into_libs=yes
25507 if test "$with_gnu_ld" = yes; then
25508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25509 shlibpath_overrides_runpath=no
25510 else
25511 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25512 shlibpath_overrides_runpath=yes
25513 case $host_os in
25514 sco3.2v5*)
25515 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25516 ;;
25517 esac
25518 fi
25519 sys_lib_dlsearch_path_spec='/usr/lib'
25520 ;;
25521
John Criswell47fdd832003-07-14 16:52:07 +000025522uts4*)
25523 version_type=linux
25524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25525 soname_spec='${libname}${release}${shared_ext}$major'
25526 shlibpath_var=LD_LIBRARY_PATH
25527 ;;
25528
25529*)
25530 dynamic_linker=no
25531 ;;
25532esac
Reid Spencera773bd52006-08-04 18:18:08 +000025533{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25534echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025535test "$dynamic_linker" = no && can_build_shared=no
25536
Reid Spencera773bd52006-08-04 18:18:08 +000025537variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25538if test "$GCC" = yes; then
25539 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25540fi
25541
25542{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25543echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025544hardcode_action_GCJ=
25545if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25546 test -n "$runpath_var_GCJ" || \
25547 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25548
25549 # We can hardcode non-existant directories.
25550 if test "$hardcode_direct_GCJ" != no &&
25551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25552 # have to relink, otherwise we might link with an installed library
25553 # when we should be linking with a yet-to-be-installed one
25554 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25555 test "$hardcode_minus_L_GCJ" != no; then
25556 # Linking always hardcodes the temporary library directory.
25557 hardcode_action_GCJ=relink
25558 else
25559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25560 hardcode_action_GCJ=immediate
25561 fi
25562else
25563 # We cannot hardcode anything, or else we can only hardcode existing
25564 # directories.
25565 hardcode_action_GCJ=unsupported
25566fi
Reid Spencera773bd52006-08-04 18:18:08 +000025567{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25568echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025569
25570if test "$hardcode_action_GCJ" = relink; then
25571 # Fast installation is not supported
25572 enable_fast_install=no
25573elif test "$shlibpath_overrides_runpath" = yes ||
25574 test "$enable_shared" = no; then
25575 # Fast installation is not necessary
25576 enable_fast_install=needless
25577fi
25578
John Criswell47fdd832003-07-14 16:52:07 +000025579
25580# The else clause should only fire when bootstrapping the
25581# libtool distribution, otherwise you forgot to ship ltmain.sh
25582# with your package, and you will get complaints that there are
25583# no rules to generate ltmain.sh.
25584if test -f "$ltmain"; then
25585 # See if we are running on zsh, and set the options which allow our commands through
25586 # without removal of \ escapes.
25587 if test -n "${ZSH_VERSION+set}" ; then
25588 setopt NO_GLOB_SUBST
25589 fi
25590 # Now quote all the things that may contain metacharacters while being
25591 # careful not to overquote the AC_SUBSTed values. We take copies of the
25592 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025593 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025594 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025595 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25596 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25597 deplibs_check_method reload_flag reload_cmds need_locks \
25598 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25599 lt_cv_sys_global_symbol_to_c_name_address \
25600 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25601 old_postinstall_cmds old_postuninstall_cmds \
25602 compiler_GCJ \
25603 CC_GCJ \
25604 LD_GCJ \
25605 lt_prog_compiler_wl_GCJ \
25606 lt_prog_compiler_pic_GCJ \
25607 lt_prog_compiler_static_GCJ \
25608 lt_prog_compiler_no_builtin_flag_GCJ \
25609 export_dynamic_flag_spec_GCJ \
25610 thread_safe_flag_spec_GCJ \
25611 whole_archive_flag_spec_GCJ \
25612 enable_shared_with_static_runtimes_GCJ \
25613 old_archive_cmds_GCJ \
25614 old_archive_from_new_cmds_GCJ \
25615 predep_objects_GCJ \
25616 postdep_objects_GCJ \
25617 predeps_GCJ \
25618 postdeps_GCJ \
25619 compiler_lib_search_path_GCJ \
25620 archive_cmds_GCJ \
25621 archive_expsym_cmds_GCJ \
25622 postinstall_cmds_GCJ \
25623 postuninstall_cmds_GCJ \
25624 old_archive_from_expsyms_cmds_GCJ \
25625 allow_undefined_flag_GCJ \
25626 no_undefined_flag_GCJ \
25627 export_symbols_cmds_GCJ \
25628 hardcode_libdir_flag_spec_GCJ \
25629 hardcode_libdir_flag_spec_ld_GCJ \
25630 hardcode_libdir_separator_GCJ \
25631 hardcode_automatic_GCJ \
25632 module_cmds_GCJ \
25633 module_expsym_cmds_GCJ \
25634 lt_cv_prog_compiler_c_o_GCJ \
25635 exclude_expsyms_GCJ \
25636 include_expsyms_GCJ; do
25637
25638 case $var in
25639 old_archive_cmds_GCJ | \
25640 old_archive_from_new_cmds_GCJ | \
25641 archive_cmds_GCJ | \
25642 archive_expsym_cmds_GCJ | \
25643 module_cmds_GCJ | \
25644 module_expsym_cmds_GCJ | \
25645 old_archive_from_expsyms_cmds_GCJ | \
25646 export_symbols_cmds_GCJ | \
25647 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25648 postinstall_cmds | postuninstall_cmds | \
25649 old_postinstall_cmds | old_postuninstall_cmds | \
25650 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25651 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000025653 ;;
25654 *)
25655 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25656 ;;
25657 esac
25658 done
25659
25660 case $lt_echo in
25661 *'\$0 --fallback-echo"')
25662 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25663 ;;
25664 esac
25665
25666cfgfile="$ofile"
25667
25668 cat <<__EOF__ >> "$cfgfile"
25669# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25670
25671# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25672
25673# Shell to use when invoking shell scripts.
25674SHELL=$lt_SHELL
25675
25676# Whether or not to build shared libraries.
25677build_libtool_libs=$enable_shared
25678
25679# Whether or not to build static libraries.
25680build_old_libs=$enable_static
25681
25682# Whether or not to add -lc for building shared libraries.
25683build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25684
25685# Whether or not to disallow shared libs when runtime libs are static
25686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25687
25688# Whether or not to optimize for fast installation.
25689fast_install=$enable_fast_install
25690
25691# The host system.
25692host_alias=$host_alias
25693host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025694host_os=$host_os
25695
25696# The build system.
25697build_alias=$build_alias
25698build=$build
25699build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025700
25701# An echo program that does not interpret backslashes.
25702echo=$lt_echo
25703
25704# The archiver.
25705AR=$lt_AR
25706AR_FLAGS=$lt_AR_FLAGS
25707
25708# A C compiler.
25709LTCC=$lt_LTCC
25710
Reid Spencera773bd52006-08-04 18:18:08 +000025711# LTCC compiler flags.
25712LTCFLAGS=$lt_LTCFLAGS
25713
John Criswell47fdd832003-07-14 16:52:07 +000025714# A language-specific compiler.
25715CC=$lt_compiler_GCJ
25716
25717# Is the compiler the GNU C compiler?
25718with_gcc=$GCC_GCJ
25719
25720# An ERE matcher.
25721EGREP=$lt_EGREP
25722
25723# The linker used to build libraries.
25724LD=$lt_LD_GCJ
25725
25726# Whether we need hard or soft links.
25727LN_S=$lt_LN_S
25728
25729# A BSD-compatible nm program.
25730NM=$lt_NM
25731
25732# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025733STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025734
25735# Used to examine libraries when file_magic_cmd begins "file"
25736MAGIC_CMD=$MAGIC_CMD
25737
25738# Used on cygwin: DLL creation program.
25739DLLTOOL="$DLLTOOL"
25740
25741# Used on cygwin: object dumper.
25742OBJDUMP="$OBJDUMP"
25743
25744# Used on cygwin: assembler.
25745AS="$AS"
25746
25747# The name of the directory that contains temporary libtool files.
25748objdir=$objdir
25749
25750# How to create reloadable object files.
25751reload_flag=$lt_reload_flag
25752reload_cmds=$lt_reload_cmds
25753
25754# How to pass a linker flag through the compiler.
25755wl=$lt_lt_prog_compiler_wl_GCJ
25756
25757# Object file suffix (normally "o").
25758objext="$ac_objext"
25759
25760# Old archive suffix (normally "a").
25761libext="$libext"
25762
25763# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025764shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025765
25766# Executable file suffix (normally "").
25767exeext="$exeext"
25768
25769# Additional compiler flags for building library objects.
25770pic_flag=$lt_lt_prog_compiler_pic_GCJ
25771pic_mode=$pic_mode
25772
25773# What is the maximum length of a command?
25774max_cmd_len=$lt_cv_sys_max_cmd_len
25775
25776# Does compiler simultaneously support -c and -o options?
25777compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25778
Reid Spencera773bd52006-08-04 18:18:08 +000025779# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025780need_locks=$lt_need_locks
25781
25782# Do we need the lib prefix for modules?
25783need_lib_prefix=$need_lib_prefix
25784
25785# Do we need a version for libraries?
25786need_version=$need_version
25787
25788# Whether dlopen is supported.
25789dlopen_support=$enable_dlopen
25790
25791# Whether dlopen of programs is supported.
25792dlopen_self=$enable_dlopen_self
25793
25794# Whether dlopen of statically linked programs is supported.
25795dlopen_self_static=$enable_dlopen_self_static
25796
25797# Compiler flag to prevent dynamic linking.
25798link_static_flag=$lt_lt_prog_compiler_static_GCJ
25799
25800# Compiler flag to turn off builtin functions.
25801no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25802
25803# Compiler flag to allow reflexive dlopens.
25804export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25805
25806# Compiler flag to generate shared objects directly from archives.
25807whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25808
25809# Compiler flag to generate thread-safe objects.
25810thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25811
25812# Library versioning type.
25813version_type=$version_type
25814
25815# Format of library name prefix.
25816libname_spec=$lt_libname_spec
25817
25818# List of archive names. First name is the real one, the rest are links.
25819# The last name is the one that the linker finds with -lNAME.
25820library_names_spec=$lt_library_names_spec
25821
25822# The coded name of the library, if different from the real name.
25823soname_spec=$lt_soname_spec
25824
25825# Commands used to build and install an old-style archive.
25826RANLIB=$lt_RANLIB
25827old_archive_cmds=$lt_old_archive_cmds_GCJ
25828old_postinstall_cmds=$lt_old_postinstall_cmds
25829old_postuninstall_cmds=$lt_old_postuninstall_cmds
25830
25831# Create an old-style archive from a shared archive.
25832old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25833
25834# Create a temporary old-style archive to link instead of a shared archive.
25835old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25836
25837# Commands used to build and install a shared archive.
25838archive_cmds=$lt_archive_cmds_GCJ
25839archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25840postinstall_cmds=$lt_postinstall_cmds
25841postuninstall_cmds=$lt_postuninstall_cmds
25842
25843# Commands used to build a loadable module (assumed same as above if empty)
25844module_cmds=$lt_module_cmds_GCJ
25845module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25846
25847# Commands to strip libraries.
25848old_striplib=$lt_old_striplib
25849striplib=$lt_striplib
25850
25851# Dependencies to place before the objects being linked to create a
25852# shared library.
25853predep_objects=$lt_predep_objects_GCJ
25854
25855# Dependencies to place after the objects being linked to create a
25856# shared library.
25857postdep_objects=$lt_postdep_objects_GCJ
25858
25859# Dependencies to place before the objects being linked to create a
25860# shared library.
25861predeps=$lt_predeps_GCJ
25862
25863# Dependencies to place after the objects being linked to create a
25864# shared library.
25865postdeps=$lt_postdeps_GCJ
25866
25867# The library search path used internally by the compiler when linking
25868# a shared library.
25869compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25870
25871# Method to check whether dependent libraries are shared objects.
25872deplibs_check_method=$lt_deplibs_check_method
25873
25874# Command to use when deplibs_check_method == file_magic.
25875file_magic_cmd=$lt_file_magic_cmd
25876
25877# Flag that allows shared libraries with undefined symbols to be built.
25878allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25879
25880# Flag that forces no undefined symbols.
25881no_undefined_flag=$lt_no_undefined_flag_GCJ
25882
25883# Commands used to finish a libtool library installation in a directory.
25884finish_cmds=$lt_finish_cmds
25885
25886# Same as above, but a single script fragment to be evaled but not shown.
25887finish_eval=$lt_finish_eval
25888
25889# Take the output of nm and produce a listing of raw symbols and C names.
25890global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25891
25892# Transform the output of nm in a proper C declaration
25893global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25894
25895# Transform the output of nm in a C name address pair
25896global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25897
25898# This is the shared library runtime path variable.
25899runpath_var=$runpath_var
25900
25901# This is the shared library path variable.
25902shlibpath_var=$shlibpath_var
25903
25904# Is shlibpath searched before the hard-coded library search path?
25905shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25906
25907# How to hardcode a shared library path into an executable.
25908hardcode_action=$hardcode_action_GCJ
25909
25910# Whether we should hardcode library paths into libraries.
25911hardcode_into_libs=$hardcode_into_libs
25912
25913# Flag to hardcode \$libdir into a binary during linking.
25914# This must work even if \$libdir does not exist.
25915hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25916
25917# If ld is used when linking, flag to hardcode \$libdir into
25918# a binary during linking. This must work even if \$libdir does
25919# not exist.
25920hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25921
25922# Whether we need a single -rpath flag with a separated argument.
25923hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25924
25925# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25926# resulting binary.
25927hardcode_direct=$hardcode_direct_GCJ
25928
25929# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25930# resulting binary.
25931hardcode_minus_L=$hardcode_minus_L_GCJ
25932
25933# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25934# the resulting binary.
25935hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25936
25937# Set to yes if building a shared library automatically hardcodes DIR into the library
25938# and all subsequent libraries and executables linked against it.
25939hardcode_automatic=$hardcode_automatic_GCJ
25940
25941# Variables whose values should be saved in libtool wrapper scripts and
25942# restored at relink time.
25943variables_saved_for_relink="$variables_saved_for_relink"
25944
25945# Whether libtool must link a program against all its dependency libraries.
25946link_all_deplibs=$link_all_deplibs_GCJ
25947
25948# Compile-time system search path for libraries
25949sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25950
25951# Run-time system search path for libraries
25952sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25953
25954# Fix the shell variable \$srcfile for the compiler.
25955fix_srcfile_path="$fix_srcfile_path_GCJ"
25956
25957# Set to yes if exported symbols are required.
25958always_export_symbols=$always_export_symbols_GCJ
25959
25960# The commands to list exported symbols.
25961export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25962
25963# The commands to extract the exported symbol list from a shared archive.
25964extract_expsyms_cmds=$lt_extract_expsyms_cmds
25965
25966# Symbols that should not be listed in the preloaded symbols.
25967exclude_expsyms=$lt_exclude_expsyms_GCJ
25968
25969# Symbols that must always be exported.
25970include_expsyms=$lt_include_expsyms_GCJ
25971
25972# ### END LIBTOOL TAG CONFIG: $tagname
25973
25974__EOF__
25975
25976
25977else
25978 # If there is no Makefile yet, we rely on a make rule to execute
25979 # `config.status --recheck' to rerun these tests and create the
25980 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025981 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25982 if test -f "$ltmain_in"; then
25983 test -f Makefile && make "$ltmain"
25984 fi
John Criswell47fdd832003-07-14 16:52:07 +000025985fi
25986
25987
25988ac_ext=c
25989ac_cpp='$CPP $CPPFLAGS'
25990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992ac_compiler_gnu=$ac_cv_c_compiler_gnu
25993
25994CC="$lt_save_CC"
25995
25996 else
25997 tagname=""
25998 fi
25999 ;;
26000
26001 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026002 ac_ext=c
26003ac_cpp='$CPP $CPPFLAGS'
26004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26006ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026007
26008
26009# Source file extension for RC test sources.
26010ac_ext=rc
26011
26012# Object file extension for compiled RC test sources.
26013objext=o
26014objext_RC=$objext
26015
26016# Code to be used in simple compile tests
26017lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26018
26019# Code to be used in simple link tests
26020lt_simple_link_test_code="$lt_simple_compile_test_code"
26021
26022# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26023
26024# If no C compiler was specified, use CC.
26025LTCC=${LTCC-"$CC"}
26026
Reid Spencera773bd52006-08-04 18:18:08 +000026027# If no C compiler flags were specified, use CFLAGS.
26028LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26029
John Criswell47fdd832003-07-14 16:52:07 +000026030# Allow CC to be a program name with arguments.
26031compiler=$CC
26032
26033
Reid Spencera773bd52006-08-04 18:18:08 +000026034# save warnings/boilerplate of simple test code
26035ac_outfile=conftest.$ac_objext
26036printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26037eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26038_lt_compiler_boilerplate=`cat conftest.err`
26039$rm conftest*
26040
26041ac_outfile=conftest.$ac_objext
26042printf "$lt_simple_link_test_code" >conftest.$ac_ext
26043eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26044_lt_linker_boilerplate=`cat conftest.err`
26045$rm conftest*
26046
26047
John Criswell47fdd832003-07-14 16:52:07 +000026048# Allow CC to be a program name with arguments.
26049lt_save_CC="$CC"
26050CC=${RC-"windres"}
26051compiler=$CC
26052compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026053for cc_temp in $compiler""; do
26054 case $cc_temp in
26055 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26056 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26057 \-*) ;;
26058 *) break;;
26059 esac
26060done
26061cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26062
John Criswell47fdd832003-07-14 16:52:07 +000026063lt_cv_prog_compiler_c_o_RC=yes
26064
26065# The else clause should only fire when bootstrapping the
26066# libtool distribution, otherwise you forgot to ship ltmain.sh
26067# with your package, and you will get complaints that there are
26068# no rules to generate ltmain.sh.
26069if test -f "$ltmain"; then
26070 # See if we are running on zsh, and set the options which allow our commands through
26071 # without removal of \ escapes.
26072 if test -n "${ZSH_VERSION+set}" ; then
26073 setopt NO_GLOB_SUBST
26074 fi
26075 # Now quote all the things that may contain metacharacters while being
26076 # careful not to overquote the AC_SUBSTed values. We take copies of the
26077 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026079 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26082 deplibs_check_method reload_flag reload_cmds need_locks \
26083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26084 lt_cv_sys_global_symbol_to_c_name_address \
26085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26086 old_postinstall_cmds old_postuninstall_cmds \
26087 compiler_RC \
26088 CC_RC \
26089 LD_RC \
26090 lt_prog_compiler_wl_RC \
26091 lt_prog_compiler_pic_RC \
26092 lt_prog_compiler_static_RC \
26093 lt_prog_compiler_no_builtin_flag_RC \
26094 export_dynamic_flag_spec_RC \
26095 thread_safe_flag_spec_RC \
26096 whole_archive_flag_spec_RC \
26097 enable_shared_with_static_runtimes_RC \
26098 old_archive_cmds_RC \
26099 old_archive_from_new_cmds_RC \
26100 predep_objects_RC \
26101 postdep_objects_RC \
26102 predeps_RC \
26103 postdeps_RC \
26104 compiler_lib_search_path_RC \
26105 archive_cmds_RC \
26106 archive_expsym_cmds_RC \
26107 postinstall_cmds_RC \
26108 postuninstall_cmds_RC \
26109 old_archive_from_expsyms_cmds_RC \
26110 allow_undefined_flag_RC \
26111 no_undefined_flag_RC \
26112 export_symbols_cmds_RC \
26113 hardcode_libdir_flag_spec_RC \
26114 hardcode_libdir_flag_spec_ld_RC \
26115 hardcode_libdir_separator_RC \
26116 hardcode_automatic_RC \
26117 module_cmds_RC \
26118 module_expsym_cmds_RC \
26119 lt_cv_prog_compiler_c_o_RC \
26120 exclude_expsyms_RC \
26121 include_expsyms_RC; do
26122
26123 case $var in
26124 old_archive_cmds_RC | \
26125 old_archive_from_new_cmds_RC | \
26126 archive_cmds_RC | \
26127 archive_expsym_cmds_RC | \
26128 module_cmds_RC | \
26129 module_expsym_cmds_RC | \
26130 old_archive_from_expsyms_cmds_RC | \
26131 export_symbols_cmds_RC | \
26132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26133 postinstall_cmds | postuninstall_cmds | \
26134 old_postinstall_cmds | old_postuninstall_cmds | \
26135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26136 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000026138 ;;
26139 *)
26140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26141 ;;
26142 esac
26143 done
26144
26145 case $lt_echo in
26146 *'\$0 --fallback-echo"')
26147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26148 ;;
26149 esac
26150
26151cfgfile="$ofile"
26152
26153 cat <<__EOF__ >> "$cfgfile"
26154# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26155
26156# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26157
26158# Shell to use when invoking shell scripts.
26159SHELL=$lt_SHELL
26160
26161# Whether or not to build shared libraries.
26162build_libtool_libs=$enable_shared
26163
26164# Whether or not to build static libraries.
26165build_old_libs=$enable_static
26166
26167# Whether or not to add -lc for building shared libraries.
26168build_libtool_need_lc=$archive_cmds_need_lc_RC
26169
26170# Whether or not to disallow shared libs when runtime libs are static
26171allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26172
26173# Whether or not to optimize for fast installation.
26174fast_install=$enable_fast_install
26175
26176# The host system.
26177host_alias=$host_alias
26178host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026179host_os=$host_os
26180
26181# The build system.
26182build_alias=$build_alias
26183build=$build
26184build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026185
26186# An echo program that does not interpret backslashes.
26187echo=$lt_echo
26188
26189# The archiver.
26190AR=$lt_AR
26191AR_FLAGS=$lt_AR_FLAGS
26192
26193# A C compiler.
26194LTCC=$lt_LTCC
26195
Reid Spencera773bd52006-08-04 18:18:08 +000026196# LTCC compiler flags.
26197LTCFLAGS=$lt_LTCFLAGS
26198
John Criswell47fdd832003-07-14 16:52:07 +000026199# A language-specific compiler.
26200CC=$lt_compiler_RC
26201
26202# Is the compiler the GNU C compiler?
26203with_gcc=$GCC_RC
26204
26205# An ERE matcher.
26206EGREP=$lt_EGREP
26207
26208# The linker used to build libraries.
26209LD=$lt_LD_RC
26210
26211# Whether we need hard or soft links.
26212LN_S=$lt_LN_S
26213
26214# A BSD-compatible nm program.
26215NM=$lt_NM
26216
26217# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026218STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026219
26220# Used to examine libraries when file_magic_cmd begins "file"
26221MAGIC_CMD=$MAGIC_CMD
26222
26223# Used on cygwin: DLL creation program.
26224DLLTOOL="$DLLTOOL"
26225
26226# Used on cygwin: object dumper.
26227OBJDUMP="$OBJDUMP"
26228
26229# Used on cygwin: assembler.
26230AS="$AS"
26231
26232# The name of the directory that contains temporary libtool files.
26233objdir=$objdir
26234
26235# How to create reloadable object files.
26236reload_flag=$lt_reload_flag
26237reload_cmds=$lt_reload_cmds
26238
26239# How to pass a linker flag through the compiler.
26240wl=$lt_lt_prog_compiler_wl_RC
26241
26242# Object file suffix (normally "o").
26243objext="$ac_objext"
26244
26245# Old archive suffix (normally "a").
26246libext="$libext"
26247
26248# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026249shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026250
26251# Executable file suffix (normally "").
26252exeext="$exeext"
26253
26254# Additional compiler flags for building library objects.
26255pic_flag=$lt_lt_prog_compiler_pic_RC
26256pic_mode=$pic_mode
26257
26258# What is the maximum length of a command?
26259max_cmd_len=$lt_cv_sys_max_cmd_len
26260
26261# Does compiler simultaneously support -c and -o options?
26262compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26263
Reid Spencera773bd52006-08-04 18:18:08 +000026264# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026265need_locks=$lt_need_locks
26266
26267# Do we need the lib prefix for modules?
26268need_lib_prefix=$need_lib_prefix
26269
26270# Do we need a version for libraries?
26271need_version=$need_version
26272
26273# Whether dlopen is supported.
26274dlopen_support=$enable_dlopen
26275
26276# Whether dlopen of programs is supported.
26277dlopen_self=$enable_dlopen_self
26278
26279# Whether dlopen of statically linked programs is supported.
26280dlopen_self_static=$enable_dlopen_self_static
26281
26282# Compiler flag to prevent dynamic linking.
26283link_static_flag=$lt_lt_prog_compiler_static_RC
26284
26285# Compiler flag to turn off builtin functions.
26286no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26287
26288# Compiler flag to allow reflexive dlopens.
26289export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26290
26291# Compiler flag to generate shared objects directly from archives.
26292whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26293
26294# Compiler flag to generate thread-safe objects.
26295thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26296
26297# Library versioning type.
26298version_type=$version_type
26299
26300# Format of library name prefix.
26301libname_spec=$lt_libname_spec
26302
26303# List of archive names. First name is the real one, the rest are links.
26304# The last name is the one that the linker finds with -lNAME.
26305library_names_spec=$lt_library_names_spec
26306
26307# The coded name of the library, if different from the real name.
26308soname_spec=$lt_soname_spec
26309
26310# Commands used to build and install an old-style archive.
26311RANLIB=$lt_RANLIB
26312old_archive_cmds=$lt_old_archive_cmds_RC
26313old_postinstall_cmds=$lt_old_postinstall_cmds
26314old_postuninstall_cmds=$lt_old_postuninstall_cmds
26315
26316# Create an old-style archive from a shared archive.
26317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26318
26319# Create a temporary old-style archive to link instead of a shared archive.
26320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26321
26322# Commands used to build and install a shared archive.
26323archive_cmds=$lt_archive_cmds_RC
26324archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26325postinstall_cmds=$lt_postinstall_cmds
26326postuninstall_cmds=$lt_postuninstall_cmds
26327
26328# Commands used to build a loadable module (assumed same as above if empty)
26329module_cmds=$lt_module_cmds_RC
26330module_expsym_cmds=$lt_module_expsym_cmds_RC
26331
26332# Commands to strip libraries.
26333old_striplib=$lt_old_striplib
26334striplib=$lt_striplib
26335
26336# Dependencies to place before the objects being linked to create a
26337# shared library.
26338predep_objects=$lt_predep_objects_RC
26339
26340# Dependencies to place after the objects being linked to create a
26341# shared library.
26342postdep_objects=$lt_postdep_objects_RC
26343
26344# Dependencies to place before the objects being linked to create a
26345# shared library.
26346predeps=$lt_predeps_RC
26347
26348# Dependencies to place after the objects being linked to create a
26349# shared library.
26350postdeps=$lt_postdeps_RC
26351
26352# The library search path used internally by the compiler when linking
26353# a shared library.
26354compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26355
26356# Method to check whether dependent libraries are shared objects.
26357deplibs_check_method=$lt_deplibs_check_method
26358
26359# Command to use when deplibs_check_method == file_magic.
26360file_magic_cmd=$lt_file_magic_cmd
26361
26362# Flag that allows shared libraries with undefined symbols to be built.
26363allow_undefined_flag=$lt_allow_undefined_flag_RC
26364
26365# Flag that forces no undefined symbols.
26366no_undefined_flag=$lt_no_undefined_flag_RC
26367
26368# Commands used to finish a libtool library installation in a directory.
26369finish_cmds=$lt_finish_cmds
26370
26371# Same as above, but a single script fragment to be evaled but not shown.
26372finish_eval=$lt_finish_eval
26373
26374# Take the output of nm and produce a listing of raw symbols and C names.
26375global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26376
26377# Transform the output of nm in a proper C declaration
26378global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26379
26380# Transform the output of nm in a C name address pair
26381global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26382
26383# This is the shared library runtime path variable.
26384runpath_var=$runpath_var
26385
26386# This is the shared library path variable.
26387shlibpath_var=$shlibpath_var
26388
26389# Is shlibpath searched before the hard-coded library search path?
26390shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26391
26392# How to hardcode a shared library path into an executable.
26393hardcode_action=$hardcode_action_RC
26394
26395# Whether we should hardcode library paths into libraries.
26396hardcode_into_libs=$hardcode_into_libs
26397
26398# Flag to hardcode \$libdir into a binary during linking.
26399# This must work even if \$libdir does not exist.
26400hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26401
26402# If ld is used when linking, flag to hardcode \$libdir into
26403# a binary during linking. This must work even if \$libdir does
26404# not exist.
26405hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26406
26407# Whether we need a single -rpath flag with a separated argument.
26408hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26409
26410# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26411# resulting binary.
26412hardcode_direct=$hardcode_direct_RC
26413
26414# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26415# resulting binary.
26416hardcode_minus_L=$hardcode_minus_L_RC
26417
26418# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26419# the resulting binary.
26420hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26421
26422# Set to yes if building a shared library automatically hardcodes DIR into the library
26423# and all subsequent libraries and executables linked against it.
26424hardcode_automatic=$hardcode_automatic_RC
26425
26426# Variables whose values should be saved in libtool wrapper scripts and
26427# restored at relink time.
26428variables_saved_for_relink="$variables_saved_for_relink"
26429
26430# Whether libtool must link a program against all its dependency libraries.
26431link_all_deplibs=$link_all_deplibs_RC
26432
26433# Compile-time system search path for libraries
26434sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26435
26436# Run-time system search path for libraries
26437sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26438
26439# Fix the shell variable \$srcfile for the compiler.
26440fix_srcfile_path="$fix_srcfile_path_RC"
26441
26442# Set to yes if exported symbols are required.
26443always_export_symbols=$always_export_symbols_RC
26444
26445# The commands to list exported symbols.
26446export_symbols_cmds=$lt_export_symbols_cmds_RC
26447
26448# The commands to extract the exported symbol list from a shared archive.
26449extract_expsyms_cmds=$lt_extract_expsyms_cmds
26450
26451# Symbols that should not be listed in the preloaded symbols.
26452exclude_expsyms=$lt_exclude_expsyms_RC
26453
26454# Symbols that must always be exported.
26455include_expsyms=$lt_include_expsyms_RC
26456
26457# ### END LIBTOOL TAG CONFIG: $tagname
26458
26459__EOF__
26460
26461
26462else
26463 # If there is no Makefile yet, we rely on a make rule to execute
26464 # `config.status --recheck' to rerun these tests and create the
26465 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026466 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26467 if test -f "$ltmain_in"; then
26468 test -f Makefile && make "$ltmain"
26469 fi
John Criswell47fdd832003-07-14 16:52:07 +000026470fi
26471
26472
26473ac_ext=c
26474ac_cpp='$CPP $CPPFLAGS'
26475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26477ac_compiler_gnu=$ac_cv_c_compiler_gnu
26478
26479CC="$lt_save_CC"
26480
26481 ;;
26482
26483 *)
26484 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26485echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26486 { (exit 1); exit 1; }; }
26487 ;;
26488 esac
26489
26490 # Append the new tag name to the list of available tags.
26491 if test -n "$tagname" ; then
26492 available_tags="$available_tags $tagname"
26493 fi
26494 fi
26495 done
26496 IFS="$lt_save_ifs"
26497
26498 # Now substitute the updated list of available tags.
26499 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26500 mv "${ofile}T" "$ofile"
26501 chmod +x "$ofile"
26502 else
26503 rm -f "${ofile}T"
26504 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26505echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26506 { (exit 1); exit 1; }; }
26507 fi
26508fi
John Criswell7a73b802003-06-30 21:59:07 +000026509
26510
26511
26512# This can be used to rebuild libtool when needed
26513LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26514
26515# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026516LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026517
26518# Prevent multiple expansion
26519
26520
26521
John Criswell47fdd832003-07-14 16:52:07 +000026522
26523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026539
Reid Spencer582a23c2004-12-29 07:07:57 +000026540if test "$lt_cv_dlopen_self" = "yes" ; then
26541
26542cat >>confdefs.h <<\_ACEOF
26543#define CAN_DLOPEN_SELF 1
26544_ACEOF
26545
26546fi
26547
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026548etags_version=`$ETAGS --version 2>&1`
26549case "$etags_version" in
26550 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26551 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26552 *) ETAGSFLAGS="" ;;
26553esac
26554ETAGSFLAGS=$ETAGSFLAGS
26555
26556
Reid Spencer7931a782004-12-27 06:15:02 +000026557if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026558 LLVMGCC="llvm-gcc${EXEEXT}"
26559 LLVMGXX="llvm-g++${EXEEXT}"
26560 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26561set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026564if test "${ac_cv_path_LLVMGCC+set}" = set; then
26565 echo $ECHO_N "(cached) $ECHO_C" >&6
26566else
26567 case $LLVMGCC in
26568 [\\/]* | ?:[\\/]*)
26569 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26570 ;;
26571 *)
26572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26573for as_dir in $PATH
26574do
26575 IFS=$as_save_IFS
26576 test -z "$as_dir" && as_dir=.
26577 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026579 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26581 break 2
26582 fi
26583done
26584done
Reid Spencera773bd52006-08-04 18:18:08 +000026585IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026586
Reid Spencer59473af2004-12-25 07:31:29 +000026587 ;;
26588esac
26589fi
26590LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026591if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026592 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26593echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026594else
Reid Spencera773bd52006-08-04 18:18:08 +000026595 { echo "$as_me:$LINENO: result: no" >&5
26596echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026597fi
26598
Reid Spencera773bd52006-08-04 18:18:08 +000026599
Reid Spencerc84492c2005-06-02 22:34:49 +000026600 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26601set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026604if test "${ac_cv_path_LLVMGXX+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606else
26607 case $LLVMGXX in
26608 [\\/]* | ?:[\\/]*)
26609 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26610 ;;
26611 *)
26612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613for as_dir in $PATH
26614do
26615 IFS=$as_save_IFS
26616 test -z "$as_dir" && as_dir=.
26617 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026619 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621 break 2
26622 fi
26623done
26624done
Reid Spencera773bd52006-08-04 18:18:08 +000026625IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026626
Reid Spencer59473af2004-12-25 07:31:29 +000026627 ;;
26628esac
26629fi
26630LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026631if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026632 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26633echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026634else
Reid Spencera773bd52006-08-04 18:18:08 +000026635 { echo "$as_me:$LINENO: result: no" >&5
26636echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026637fi
26638
Reid Spencera773bd52006-08-04 18:18:08 +000026639
Reid Spencer59473af2004-12-25 07:31:29 +000026640else
Reid Spencerc84492c2005-06-02 22:34:49 +000026641 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26642 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026643 LLVMGCC=$LLVMGCC
26644
26645 LLVMGXX=$LLVMGXX
26646
26647fi
26648
Reid Spencera773bd52006-08-04 18:18:08 +000026649{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26650echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026651
Reid Spencer86901802004-12-08 23:07:27 +000026652ICC=no
26653IXX=no
26654case $CC in
26655 icc*|icpc*)
26656 ICC=yes
26657 IXX=yes
26658 ;;
26659 *)
26660 ;;
26661esac
26662
Duraid Madina937c60a2006-02-15 07:57:42 +000026663if test "$GCC" != "yes" && test "$ICC" != "yes"
26664then
26665 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26666echo "$as_me: error: gcc|icc required but not found" >&2;}
26667 { (exit 1); exit 1; }; }
26668fi
26669
26670if test "$GXX" != "yes" && test "$IXX" != "yes"
26671then
26672 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26673echo "$as_me: error: g++|icc required but not found" >&2;}
26674 { (exit 1); exit 1; }; }
26675fi
26676
Reid Spencer86901802004-12-08 23:07:27 +000026677if test "$GCC" = "yes"
26678then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026679 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026680 if test "$gccmajor" -lt "3"
26681 then
26682 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026683echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26684 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026685 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026686fi
26687
26688if test -z "$llvm_cv_gnu_make_command"
26689then
26690 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26691echo "$as_me: error: GNU Make required but not found" >&2;}
26692 { (exit 1); exit 1; }; }
26693fi
26694
Reid Spencera773bd52006-08-04 18:18:08 +000026695{ echo "$as_me:$LINENO: result: ok" >&5
26696echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026697
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026698
John Criswell7a73b802003-06-30 21:59:07 +000026699
Reid Spencera773bd52006-08-04 18:18:08 +000026700{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26701echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026702if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26703 echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705 ac_check_lib_save_LIBS=$LIBS
26706LIBS="-lelf $LIBS"
26707cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026708/* confdefs.h. */
26709_ACEOF
26710cat confdefs.h >>conftest.$ac_ext
26711cat >>conftest.$ac_ext <<_ACEOF
26712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026713
Reid Spencera773bd52006-08-04 18:18:08 +000026714/* Override any GCC internal prototype to avoid an error.
26715 Use char because int might match the return type of a GCC
26716 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026717#ifdef __cplusplus
26718extern "C"
26719#endif
John Criswell7a73b802003-06-30 21:59:07 +000026720char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026721int
26722main ()
26723{
Reid Spencera773bd52006-08-04 18:18:08 +000026724return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026725 ;
26726 return 0;
26727}
26728_ACEOF
26729rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026730if { (ac_try="$ac_link"
26731case "(($ac_try" in
26732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733 *) ac_try_echo=$ac_try;;
26734esac
26735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26736 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026738 grep -v '^ *+' conftest.er1 >conftest.err
26739 rm -f conftest.er1
26740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26744 { (case "(($ac_try" in
26745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26746 *) ac_try_echo=$ac_try;;
26747esac
26748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26749 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026754 { (case "(($ac_try" in
26755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756 *) ac_try_echo=$ac_try;;
26757esac
26758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; }; then
26763 ac_cv_lib_elf_elf_begin=yes
26764else
26765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026766sed 's/^/| /' conftest.$ac_ext >&5
26767
Reid Spencera773bd52006-08-04 18:18:08 +000026768 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026769fi
Reid Spencera773bd52006-08-04 18:18:08 +000026770
26771rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026772 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026773LIBS=$ac_check_lib_save_LIBS
26774fi
Reid Spencera773bd52006-08-04 18:18:08 +000026775{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26776echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026777if test $ac_cv_lib_elf_elf_begin = yes; then
26778 cat >>confdefs.h <<_ACEOF
26779#define HAVE_LIBELF 1
26780_ACEOF
26781
26782 LIBS="-lelf $LIBS"
26783
26784fi
26785
26786
Reid Spencera773bd52006-08-04 18:18:08 +000026787{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26788echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026789if test "${ac_cv_lib_m_sin+set}" = set; then
26790 echo $ECHO_N "(cached) $ECHO_C" >&6
26791else
26792 ac_check_lib_save_LIBS=$LIBS
26793LIBS="-lm $LIBS"
26794cat >conftest.$ac_ext <<_ACEOF
26795/* confdefs.h. */
26796_ACEOF
26797cat confdefs.h >>conftest.$ac_ext
26798cat >>conftest.$ac_ext <<_ACEOF
26799/* end confdefs.h. */
26800
Reid Spencera773bd52006-08-04 18:18:08 +000026801/* Override any GCC internal prototype to avoid an error.
26802 Use char because int might match the return type of a GCC
26803 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026804#ifdef __cplusplus
26805extern "C"
26806#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026807char sin ();
26808int
26809main ()
26810{
Reid Spencera773bd52006-08-04 18:18:08 +000026811return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026812 ;
26813 return 0;
26814}
26815_ACEOF
26816rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026817if { (ac_try="$ac_link"
26818case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26821esac
26822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026824 ac_status=$?
26825 grep -v '^ *+' conftest.er1 >conftest.err
26826 rm -f conftest.er1
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26831 { (case "(($ac_try" in
26832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833 *) ac_try_echo=$ac_try;;
26834esac
26835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26836 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026837 ac_status=$?
26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839 (exit $ac_status); }; } &&
26840 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026841 { (case "(($ac_try" in
26842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26843 *) ac_try_echo=$ac_try;;
26844esac
26845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26846 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026847 ac_status=$?
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); }; }; then
26850 ac_cv_lib_m_sin=yes
26851else
26852 echo "$as_me: failed program was:" >&5
26853sed 's/^/| /' conftest.$ac_ext >&5
26854
Reid Spencera773bd52006-08-04 18:18:08 +000026855 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026856fi
Reid Spencera773bd52006-08-04 18:18:08 +000026857
26858rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026859 conftest$ac_exeext conftest.$ac_ext
26860LIBS=$ac_check_lib_save_LIBS
26861fi
Reid Spencera773bd52006-08-04 18:18:08 +000026862{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26863echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026864if test $ac_cv_lib_m_sin = yes; then
26865 cat >>confdefs.h <<_ACEOF
26866#define HAVE_LIBM 1
26867_ACEOF
26868
26869 LIBS="-lm $LIBS"
26870
26871fi
26872
Reid Spencer484fc8e2006-06-01 16:55:59 +000026873if test "$llvm_cv_os_type" == "MingW" ; then
26874
Reid Spencera773bd52006-08-04 18:18:08 +000026875{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26876echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026877if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026878 echo $ECHO_N "(cached) $ECHO_C" >&6
26879else
26880 ac_check_lib_save_LIBS=$LIBS
26881LIBS="-limagehlp $LIBS"
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h. */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h. */
26888
Reid Spencer48fdf912006-06-01 19:03:21 +000026889
Reid Spencer484fc8e2006-06-01 16:55:59 +000026890int
26891main ()
26892{
Reid Spencera773bd52006-08-04 18:18:08 +000026893return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026894 ;
26895 return 0;
26896}
26897_ACEOF
26898rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026899if { (ac_try="$ac_link"
26900case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26903esac
26904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026906 ac_status=$?
26907 grep -v '^ *+' conftest.er1 >conftest.err
26908 rm -f conftest.er1
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26913 { (case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26916esac
26917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026923 { (case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926esac
26927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026929 ac_status=$?
26930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26931 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026932 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026933else
26934 echo "$as_me: failed program was:" >&5
26935sed 's/^/| /' conftest.$ac_ext >&5
26936
Reid Spencera773bd52006-08-04 18:18:08 +000026937 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026938fi
Reid Spencera773bd52006-08-04 18:18:08 +000026939
26940rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026941 conftest$ac_exeext conftest.$ac_ext
26942LIBS=$ac_check_lib_save_LIBS
26943fi
Reid Spencera773bd52006-08-04 18:18:08 +000026944{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26945echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026946if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026947 cat >>confdefs.h <<_ACEOF
26948#define HAVE_LIBIMAGEHLP 1
26949_ACEOF
26950
26951 LIBS="-limagehlp $LIBS"
26952
26953fi
26954
26955
Reid Spencera773bd52006-08-04 18:18:08 +000026956{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26957echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026958if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026959 echo $ECHO_N "(cached) $ECHO_C" >&6
26960else
26961 ac_check_lib_save_LIBS=$LIBS
26962LIBS="-lpsapi $LIBS"
26963cat >conftest.$ac_ext <<_ACEOF
26964/* confdefs.h. */
26965_ACEOF
26966cat confdefs.h >>conftest.$ac_ext
26967cat >>conftest.$ac_ext <<_ACEOF
26968/* end confdefs.h. */
26969
Reid Spencer48fdf912006-06-01 19:03:21 +000026970
Reid Spencer484fc8e2006-06-01 16:55:59 +000026971int
26972main ()
26973{
Reid Spencera773bd52006-08-04 18:18:08 +000026974return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026975 ;
26976 return 0;
26977}
26978_ACEOF
26979rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026980if { (ac_try="$ac_link"
26981case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984esac
26985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026987 ac_status=$?
26988 grep -v '^ *+' conftest.er1 >conftest.err
26989 rm -f conftest.er1
26990 cat conftest.err >&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26994 { (case "(($ac_try" in
26995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26996 *) ac_try_echo=$ac_try;;
26997esac
26998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26999 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027000 ac_status=$?
27001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); }; } &&
27003 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027004 { (case "(($ac_try" in
27005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27006 *) ac_try_echo=$ac_try;;
27007esac
27008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27009 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027010 ac_status=$?
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027013 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027014else
27015 echo "$as_me: failed program was:" >&5
27016sed 's/^/| /' conftest.$ac_ext >&5
27017
Reid Spencera773bd52006-08-04 18:18:08 +000027018 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027019fi
Reid Spencera773bd52006-08-04 18:18:08 +000027020
27021rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027022 conftest$ac_exeext conftest.$ac_ext
27023LIBS=$ac_check_lib_save_LIBS
27024fi
Reid Spencera773bd52006-08-04 18:18:08 +000027025{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27026echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027027if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027028 cat >>confdefs.h <<_ACEOF
27029#define HAVE_LIBPSAPI 1
27030_ACEOF
27031
27032 LIBS="-lpsapi $LIBS"
27033
27034fi
27035
27036fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027037
Reid Spencera773bd52006-08-04 18:18:08 +000027038{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27039echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027040if test "${ac_cv_search_lt_dlopen+set}" = set; then
27041 echo $ECHO_N "(cached) $ECHO_C" >&6
27042else
27043 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027044cat >conftest.$ac_ext <<_ACEOF
27045/* confdefs.h. */
27046_ACEOF
27047cat confdefs.h >>conftest.$ac_ext
27048cat >>conftest.$ac_ext <<_ACEOF
27049/* end confdefs.h. */
27050
Reid Spencera773bd52006-08-04 18:18:08 +000027051/* Override any GCC internal prototype to avoid an error.
27052 Use char because int might match the return type of a GCC
27053 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027054#ifdef __cplusplus
27055extern "C"
27056#endif
Reid Spencer17795972004-11-18 09:47:37 +000027057char lt_dlopen ();
27058int
27059main ()
27060{
Reid Spencera773bd52006-08-04 18:18:08 +000027061return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027062 ;
27063 return 0;
27064}
27065_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027066for ac_lib in '' ltdl; do
27067 if test -z "$ac_lib"; then
27068 ac_res="none required"
27069 else
27070 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027072 fi
27073 rm -f conftest.$ac_objext conftest$ac_exeext
27074if { (ac_try="$ac_link"
27075case "(($ac_try" in
27076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077 *) ac_try_echo=$ac_try;;
27078esac
27079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27080 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027081 ac_status=$?
27082 grep -v '^ *+' conftest.er1 >conftest.err
27083 rm -f conftest.er1
27084 cat conftest.err >&5
27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27086 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27088 { (case "(($ac_try" in
27089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27090 *) ac_try_echo=$ac_try;;
27091esac
27092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27093 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027094 ac_status=$?
27095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27096 (exit $ac_status); }; } &&
27097 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027098 { (case "(($ac_try" in
27099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27100 *) ac_try_echo=$ac_try;;
27101esac
27102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27103 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027107 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027108else
27109 echo "$as_me: failed program was:" >&5
27110sed 's/^/| /' conftest.$ac_ext >&5
27111
Reid Spencera773bd52006-08-04 18:18:08 +000027112
Reid Spencer17795972004-11-18 09:47:37 +000027113fi
Reid Spencera773bd52006-08-04 18:18:08 +000027114
27115rm -f core conftest.err conftest.$ac_objext \
27116 conftest$ac_exeext
27117 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27118 break
Reid Spencer17795972004-11-18 09:47:37 +000027119fi
Reid Spencera773bd52006-08-04 18:18:08 +000027120done
27121if test "${ac_cv_search_lt_dlopen+set}" = set; then
27122 :
27123else
27124 ac_cv_search_lt_dlopen=no
27125fi
27126rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027127LIBS=$ac_func_search_save_LIBS
27128fi
Reid Spencera773bd52006-08-04 18:18:08 +000027129{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27130echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27131ac_res=$ac_cv_search_lt_dlopen
27132if test "$ac_res" != no; then
27133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027134
27135cat >>confdefs.h <<\_ACEOF
27136#define HAVE_LT_DLOPEN 1
27137_ACEOF
27138
27139else
27140 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27141 not be available" >&5
27142echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27143 not be available" >&2;}
27144fi
27145
27146
Reid Spencera773bd52006-08-04 18:18:08 +000027147{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27148echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027149if test "${ac_cv_search_dlopen+set}" = set; then
27150 echo $ECHO_N "(cached) $ECHO_C" >&6
27151else
27152 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027153cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027159
Reid Spencera773bd52006-08-04 18:18:08 +000027160/* Override any GCC internal prototype to avoid an error.
27161 Use char because int might match the return type of a GCC
27162 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027163#ifdef __cplusplus
27164extern "C"
27165#endif
John Criswell7a73b802003-06-30 21:59:07 +000027166char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027167int
27168main ()
27169{
Reid Spencera773bd52006-08-04 18:18:08 +000027170return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027171 ;
27172 return 0;
27173}
27174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027175for ac_lib in '' dl; do
27176 if test -z "$ac_lib"; then
27177 ac_res="none required"
27178 else
27179 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027181 fi
27182 rm -f conftest.$ac_objext conftest$ac_exeext
27183if { (ac_try="$ac_link"
27184case "(($ac_try" in
27185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27186 *) ac_try_echo=$ac_try;;
27187esac
27188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27189 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027190 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027191 grep -v '^ *+' conftest.er1 >conftest.err
27192 rm -f conftest.er1
27193 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27197 { (case "(($ac_try" in
27198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27199 *) ac_try_echo=$ac_try;;
27200esac
27201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27202 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027203 ac_status=$?
27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27205 (exit $ac_status); }; } &&
27206 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027207 { (case "(($ac_try" in
27208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27209 *) ac_try_echo=$ac_try;;
27210esac
27211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27212 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027213 ac_status=$?
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027216 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027217else
27218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027219sed 's/^/| /' conftest.$ac_ext >&5
27220
Reid Spencera773bd52006-08-04 18:18:08 +000027221
John Criswell7a73b802003-06-30 21:59:07 +000027222fi
Reid Spencera773bd52006-08-04 18:18:08 +000027223
27224rm -f core conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext
27226 if test "${ac_cv_search_dlopen+set}" = set; then
27227 break
John Criswell7a73b802003-06-30 21:59:07 +000027228fi
Reid Spencera773bd52006-08-04 18:18:08 +000027229done
27230if test "${ac_cv_search_dlopen+set}" = set; then
27231 :
27232else
27233 ac_cv_search_dlopen=no
27234fi
27235rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027236LIBS=$ac_func_search_save_LIBS
27237fi
Reid Spencera773bd52006-08-04 18:18:08 +000027238{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27239echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27240ac_res=$ac_cv_search_dlopen
27241if test "$ac_res" != no; then
27242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027243
27244cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027245#define HAVE_DLOPEN 1
27246_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027247
27248else
Brian Gaekec45be042003-10-07 06:01:34 +000027249 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27250echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027251fi
27252
27253
Reid Spencera773bd52006-08-04 18:18:08 +000027254{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27255echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027256if test "${ac_cv_search_mallinfo+set}" = set; then
27257 echo $ECHO_N "(cached) $ECHO_C" >&6
27258else
27259 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027260cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027261/* confdefs.h. */
27262_ACEOF
27263cat confdefs.h >>conftest.$ac_ext
27264cat >>conftest.$ac_ext <<_ACEOF
27265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027266
Reid Spencera773bd52006-08-04 18:18:08 +000027267/* Override any GCC internal prototype to avoid an error.
27268 Use char because int might match the return type of a GCC
27269 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027270#ifdef __cplusplus
27271extern "C"
27272#endif
John Criswell7a73b802003-06-30 21:59:07 +000027273char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027274int
27275main ()
27276{
Reid Spencera773bd52006-08-04 18:18:08 +000027277return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027278 ;
27279 return 0;
27280}
27281_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027282for ac_lib in '' malloc; do
27283 if test -z "$ac_lib"; then
27284 ac_res="none required"
27285 else
27286 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027288 fi
27289 rm -f conftest.$ac_objext conftest$ac_exeext
27290if { (ac_try="$ac_link"
27291case "(($ac_try" in
27292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27293 *) ac_try_echo=$ac_try;;
27294esac
27295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27296 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027298 grep -v '^ *+' conftest.er1 >conftest.err
27299 rm -f conftest.er1
27300 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27304 { (case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307esac
27308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; } &&
27313 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027314 { (case "(($ac_try" in
27315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27316 *) ac_try_echo=$ac_try;;
27317esac
27318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27319 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027320 ac_status=$?
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027323 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027324else
27325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027326sed 's/^/| /' conftest.$ac_ext >&5
27327
Reid Spencera773bd52006-08-04 18:18:08 +000027328
John Criswell7a73b802003-06-30 21:59:07 +000027329fi
Reid Spencera773bd52006-08-04 18:18:08 +000027330
27331rm -f core conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext
27333 if test "${ac_cv_search_mallinfo+set}" = set; then
27334 break
John Criswell7a73b802003-06-30 21:59:07 +000027335fi
Reid Spencera773bd52006-08-04 18:18:08 +000027336done
27337if test "${ac_cv_search_mallinfo+set}" = set; then
27338 :
27339else
27340 ac_cv_search_mallinfo=no
27341fi
27342rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027343LIBS=$ac_func_search_save_LIBS
27344fi
Reid Spencera773bd52006-08-04 18:18:08 +000027345{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27346echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27347ac_res=$ac_cv_search_mallinfo
27348if test "$ac_res" != no; then
27349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027350
27351cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027352#define HAVE_MALLINFO 1
27353_ACEOF
27354
27355fi
27356
27357
Reid Spencer0a262ba2005-08-24 10:07:20 +000027358if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027359
Reid Spencera773bd52006-08-04 18:18:08 +000027360{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27361echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027362if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364else
27365 ac_check_lib_save_LIBS=$LIBS
27366LIBS="-lpthread $LIBS"
27367cat >conftest.$ac_ext <<_ACEOF
27368/* confdefs.h. */
27369_ACEOF
27370cat confdefs.h >>conftest.$ac_ext
27371cat >>conftest.$ac_ext <<_ACEOF
27372/* end confdefs.h. */
27373
Reid Spencera773bd52006-08-04 18:18:08 +000027374/* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027377#ifdef __cplusplus
27378extern "C"
27379#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027380char pthread_mutex_init ();
27381int
27382main ()
27383{
Reid Spencera773bd52006-08-04 18:18:08 +000027384return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027385 ;
27386 return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027390if { (ac_try="$ac_link"
27391case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394esac
27395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27402 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27407esac
27408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
27423 ac_cv_lib_pthread_pthread_mutex_init=yes
27424else
27425 echo "$as_me: failed program was:" >&5
27426sed 's/^/| /' conftest.$ac_ext >&5
27427
Reid Spencera773bd52006-08-04 18:18:08 +000027428 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430
27431rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027432 conftest$ac_exeext conftest.$ac_ext
27433LIBS=$ac_check_lib_save_LIBS
27434fi
Reid Spencera773bd52006-08-04 18:18:08 +000027435{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27436echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027437if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439#define HAVE_LIBPTHREAD 1
27440_ACEOF
27441
27442 LIBS="-lpthread $LIBS"
27443
27444fi
27445
Reid Spencera773bd52006-08-04 18:18:08 +000027446 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27447echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027448if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450else
27451 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027452cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027453/* confdefs.h. */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h. */
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459/* Override any GCC internal prototype to avoid an error.
27460 Use char because int might match the return type of a GCC
27461 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027462#ifdef __cplusplus
27463extern "C"
27464#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027465char pthread_mutex_lock ();
27466int
27467main ()
27468{
Reid Spencera773bd52006-08-04 18:18:08 +000027469return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027470 ;
27471 return 0;
27472}
27473_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027474for ac_lib in '' pthread; do
27475 if test -z "$ac_lib"; then
27476 ac_res="none required"
27477 else
27478 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027480 fi
27481 rm -f conftest.$ac_objext conftest$ac_exeext
27482if { (ac_try="$ac_link"
27483case "(($ac_try" in
27484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27485 *) ac_try_echo=$ac_try;;
27486esac
27487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27488 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027489 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027490 grep -v '^ *+' conftest.er1 >conftest.err
27491 rm -f conftest.er1
27492 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499esac
27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; } &&
27505 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027506 { (case "(($ac_try" in
27507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27508 *) ac_try_echo=$ac_try;;
27509esac
27510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27511 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027512 ac_status=$?
27513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027515 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027516else
27517 echo "$as_me: failed program was:" >&5
27518sed 's/^/| /' conftest.$ac_ext >&5
27519
Reid Spencera773bd52006-08-04 18:18:08 +000027520
Brian Gaeke5f268f72003-12-05 19:29:01 +000027521fi
Reid Spencera773bd52006-08-04 18:18:08 +000027522
27523rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext
27525 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27526 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027527fi
Reid Spencera773bd52006-08-04 18:18:08 +000027528done
27529if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27530 :
27531else
27532 ac_cv_search_pthread_mutex_lock=no
27533fi
27534rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027535LIBS=$ac_func_search_save_LIBS
27536fi
Reid Spencera773bd52006-08-04 18:18:08 +000027537{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27538echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27539ac_res=$ac_cv_search_pthread_mutex_lock
27540if test "$ac_res" != no; then
27541 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027542
John Criswell40468462004-09-24 21:19:06 +000027543cat >>confdefs.h <<\_ACEOF
27544#define HAVE_PTHREAD_MUTEX_LOCK 1
27545_ACEOF
27546
27547fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027548
Reid Spencer0a262ba2005-08-24 10:07:20 +000027549fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027550
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027551
Reid Spencer59473af2004-12-25 07:31:29 +000027552
27553
27554
27555
27556
27557ac_header_dirent=no
27558for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27559 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027560{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27561echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564else
27565 cat >conftest.$ac_ext <<_ACEOF
27566/* confdefs.h. */
27567_ACEOF
27568cat confdefs.h >>conftest.$ac_ext
27569cat >>conftest.$ac_ext <<_ACEOF
27570/* end confdefs.h. */
27571#include <sys/types.h>
27572#include <$ac_hdr>
27573
27574int
27575main ()
27576{
27577if ((DIR *) 0)
27578return 0;
27579 ;
27580 return 0;
27581}
27582_ACEOF
27583rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027584if { (ac_try="$ac_compile"
27585case "(($ac_try" in
27586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27587 *) ac_try_echo=$ac_try;;
27588esac
27589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27590 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027591 ac_status=$?
27592 grep -v '^ *+' conftest.er1 >conftest.err
27593 rm -f conftest.er1
27594 cat conftest.err >&5
27595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27598 { (case "(($ac_try" in
27599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27600 *) ac_try_echo=$ac_try;;
27601esac
27602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27603 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027604 ac_status=$?
27605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27606 (exit $ac_status); }; } &&
27607 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027608 { (case "(($ac_try" in
27609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27610 *) ac_try_echo=$ac_try;;
27611esac
27612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27613 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027614 ac_status=$?
27615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616 (exit $ac_status); }; }; then
27617 eval "$as_ac_Header=yes"
27618else
27619 echo "$as_me: failed program was:" >&5
27620sed 's/^/| /' conftest.$ac_ext >&5
27621
Reid Spencera773bd52006-08-04 18:18:08 +000027622 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027623fi
Reid Spencera773bd52006-08-04 18:18:08 +000027624
27625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027626fi
Reid Spencera773bd52006-08-04 18:18:08 +000027627ac_res=`eval echo '${'$as_ac_Header'}'`
27628 { echo "$as_me:$LINENO: result: $ac_res" >&5
27629echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027630if test `eval echo '${'$as_ac_Header'}'` = yes; then
27631 cat >>confdefs.h <<_ACEOF
27632#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27633_ACEOF
27634
27635ac_header_dirent=$ac_hdr; break
27636fi
27637
27638done
27639# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27640if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027641 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27642echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027643if test "${ac_cv_search_opendir+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27645else
27646 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027647cat >conftest.$ac_ext <<_ACEOF
27648/* confdefs.h. */
27649_ACEOF
27650cat confdefs.h >>conftest.$ac_ext
27651cat >>conftest.$ac_ext <<_ACEOF
27652/* end confdefs.h. */
27653
Reid Spencera773bd52006-08-04 18:18:08 +000027654/* Override any GCC internal prototype to avoid an error.
27655 Use char because int might match the return type of a GCC
27656 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027657#ifdef __cplusplus
27658extern "C"
27659#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027660char opendir ();
27661int
27662main ()
27663{
Reid Spencera773bd52006-08-04 18:18:08 +000027664return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027665 ;
27666 return 0;
27667}
27668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027669for ac_lib in '' dir; do
27670 if test -z "$ac_lib"; then
27671 ac_res="none required"
27672 else
27673 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027674 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027675 fi
27676 rm -f conftest.$ac_objext conftest$ac_exeext
27677if { (ac_try="$ac_link"
27678case "(($ac_try" in
27679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680 *) ac_try_echo=$ac_try;;
27681esac
27682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027684 ac_status=$?
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691 { (case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27694esac
27695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027701 { (case "(($ac_try" in
27702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703 *) ac_try_echo=$ac_try;;
27704esac
27705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027710 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027711else
27712 echo "$as_me: failed program was:" >&5
27713sed 's/^/| /' conftest.$ac_ext >&5
27714
Reid Spencera773bd52006-08-04 18:18:08 +000027715
Reid Spencer59473af2004-12-25 07:31:29 +000027716fi
Reid Spencera773bd52006-08-04 18:18:08 +000027717
27718rm -f core conftest.err conftest.$ac_objext \
27719 conftest$ac_exeext
27720 if test "${ac_cv_search_opendir+set}" = set; then
27721 break
Reid Spencer59473af2004-12-25 07:31:29 +000027722fi
Reid Spencera773bd52006-08-04 18:18:08 +000027723done
27724if test "${ac_cv_search_opendir+set}" = set; then
27725 :
27726else
27727 ac_cv_search_opendir=no
27728fi
27729rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027730LIBS=$ac_func_search_save_LIBS
27731fi
Reid Spencera773bd52006-08-04 18:18:08 +000027732{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27733echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27734ac_res=$ac_cv_search_opendir
27735if test "$ac_res" != no; then
27736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027737
27738fi
27739
27740else
Reid Spencera773bd52006-08-04 18:18:08 +000027741 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27742echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027743if test "${ac_cv_search_opendir+set}" = set; then
27744 echo $ECHO_N "(cached) $ECHO_C" >&6
27745else
27746 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027747cat >conftest.$ac_ext <<_ACEOF
27748/* confdefs.h. */
27749_ACEOF
27750cat confdefs.h >>conftest.$ac_ext
27751cat >>conftest.$ac_ext <<_ACEOF
27752/* end confdefs.h. */
27753
Reid Spencera773bd52006-08-04 18:18:08 +000027754/* Override any GCC internal prototype to avoid an error.
27755 Use char because int might match the return type of a GCC
27756 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027757#ifdef __cplusplus
27758extern "C"
27759#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027760char opendir ();
27761int
27762main ()
27763{
Reid Spencera773bd52006-08-04 18:18:08 +000027764return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027765 ;
27766 return 0;
27767}
27768_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027769for ac_lib in '' x; do
27770 if test -z "$ac_lib"; then
27771 ac_res="none required"
27772 else
27773 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027775 fi
27776 rm -f conftest.$ac_objext conftest$ac_exeext
27777if { (ac_try="$ac_link"
27778case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781esac
27782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027784 ac_status=$?
27785 grep -v '^ *+' conftest.er1 >conftest.err
27786 rm -f conftest.er1
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27791 { (case "(($ac_try" in
27792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27793 *) ac_try_echo=$ac_try;;
27794esac
27795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27796 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027797 ac_status=$?
27798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799 (exit $ac_status); }; } &&
27800 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027801 { (case "(($ac_try" in
27802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27803 *) ac_try_echo=$ac_try;;
27804esac
27805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27806 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027807 ac_status=$?
27808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027810 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027811else
27812 echo "$as_me: failed program was:" >&5
27813sed 's/^/| /' conftest.$ac_ext >&5
27814
Reid Spencera773bd52006-08-04 18:18:08 +000027815
Reid Spencer59473af2004-12-25 07:31:29 +000027816fi
Reid Spencera773bd52006-08-04 18:18:08 +000027817
27818rm -f core conftest.err conftest.$ac_objext \
27819 conftest$ac_exeext
27820 if test "${ac_cv_search_opendir+set}" = set; then
27821 break
Reid Spencer59473af2004-12-25 07:31:29 +000027822fi
Reid Spencera773bd52006-08-04 18:18:08 +000027823done
27824if test "${ac_cv_search_opendir+set}" = set; then
27825 :
27826else
27827 ac_cv_search_opendir=no
27828fi
27829rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027830LIBS=$ac_func_search_save_LIBS
27831fi
Reid Spencera773bd52006-08-04 18:18:08 +000027832{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27833echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27834ac_res=$ac_cv_search_opendir
27835if test "$ac_res" != no; then
27836 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027837
27838fi
27839
27840fi
27841
Reid Spencera773bd52006-08-04 18:18:08 +000027842{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27843echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027844if test "${ac_cv_header_mmap_anon+set}" = set; then
27845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847 ac_ext=c
27848ac_cpp='$CPP $CPPFLAGS'
27849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27851ac_compiler_gnu=$ac_cv_c_compiler_gnu
27852
27853 cat >conftest.$ac_ext <<_ACEOF
27854/* confdefs.h. */
27855_ACEOF
27856cat confdefs.h >>conftest.$ac_ext
27857cat >>conftest.$ac_ext <<_ACEOF
27858/* end confdefs.h. */
27859#include <sys/mman.h>
27860#include <unistd.h>
27861#include <fcntl.h>
27862int
27863main ()
27864{
27865mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27866 ;
27867 return 0;
27868}
27869_ACEOF
27870rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027871if { (ac_try="$ac_compile"
27872case "(($ac_try" in
27873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27874 *) ac_try_echo=$ac_try;;
27875esac
27876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27877 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027878 ac_status=$?
27879 grep -v '^ *+' conftest.er1 >conftest.err
27880 rm -f conftest.er1
27881 cat conftest.err >&5
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27885 { (case "(($ac_try" in
27886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27887 *) ac_try_echo=$ac_try;;
27888esac
27889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27890 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027891 ac_status=$?
27892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893 (exit $ac_status); }; } &&
27894 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027895 { (case "(($ac_try" in
27896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27897 *) ac_try_echo=$ac_try;;
27898esac
27899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27900 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027901 ac_status=$?
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); }; }; then
27904 ac_cv_header_mmap_anon=yes
27905else
27906 echo "$as_me: failed program was:" >&5
27907sed 's/^/| /' conftest.$ac_ext >&5
27908
Reid Spencera773bd52006-08-04 18:18:08 +000027909 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027910fi
Reid Spencera773bd52006-08-04 18:18:08 +000027911
27912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027913 ac_ext=c
27914ac_cpp='$CPP $CPPFLAGS'
27915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27917ac_compiler_gnu=$ac_cv_c_compiler_gnu
27918
27919
27920fi
Reid Spencera773bd52006-08-04 18:18:08 +000027921{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27922echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027923if test "$ac_cv_header_mmap_anon" = yes; then
27924
27925cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027926#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027927_ACEOF
27928
27929fi
27930
Reid Spencera773bd52006-08-04 18:18:08 +000027931{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27932echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027933if test "${ac_cv_header_stat_broken+set}" = set; then
27934 echo $ECHO_N "(cached) $ECHO_C" >&6
27935else
27936 cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h. */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h. */
27942#include <sys/types.h>
27943#include <sys/stat.h>
27944
Reid Spencera773bd52006-08-04 18:18:08 +000027945#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027946# if S_ISBLK (S_IFDIR)
27947You lose.
27948# endif
27949#endif
27950
Reid Spencera773bd52006-08-04 18:18:08 +000027951#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027952# if S_ISBLK (S_IFCHR)
27953You lose.
27954# endif
27955#endif
27956
Reid Spencera773bd52006-08-04 18:18:08 +000027957#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027958# if S_ISLNK (S_IFREG)
27959You lose.
27960# endif
27961#endif
27962
Reid Spencera773bd52006-08-04 18:18:08 +000027963#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027964# if S_ISSOCK (S_IFREG)
27965You lose.
27966# endif
27967#endif
27968
27969_ACEOF
27970if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27971 $EGREP "You lose" >/dev/null 2>&1; then
27972 ac_cv_header_stat_broken=yes
27973else
27974 ac_cv_header_stat_broken=no
27975fi
27976rm -f conftest*
27977
27978fi
Reid Spencera773bd52006-08-04 18:18:08 +000027979{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27980echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027981if test $ac_cv_header_stat_broken = yes; then
27982
27983cat >>confdefs.h <<\_ACEOF
27984#define STAT_MACROS_BROKEN 1
27985_ACEOF
27986
27987fi
27988
Reid Spencera773bd52006-08-04 18:18:08 +000027989{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27990echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027991if test "${ac_cv_header_stdc+set}" = set; then
27992 echo $ECHO_N "(cached) $ECHO_C" >&6
27993else
27994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027995/* confdefs.h. */
27996_ACEOF
27997cat confdefs.h >>conftest.$ac_ext
27998cat >>conftest.$ac_ext <<_ACEOF
27999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028000#include <stdlib.h>
28001#include <stdarg.h>
28002#include <string.h>
28003#include <float.h>
28004
John Criswell0c38eaf2003-09-10 15:17:25 +000028005int
28006main ()
28007{
28008
28009 ;
28010 return 0;
28011}
John Criswell7a73b802003-06-30 21:59:07 +000028012_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028013rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028014if { (ac_try="$ac_compile"
28015case "(($ac_try" in
28016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28017 *) ac_try_echo=$ac_try;;
28018esac
28019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28020 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028022 grep -v '^ *+' conftest.er1 >conftest.err
28023 rm -f conftest.er1
28024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028026 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28028 { (case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28031esac
28032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; } &&
28037 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028038 { (case "(($ac_try" in
28039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28040 *) ac_try_echo=$ac_try;;
28041esac
28042eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28043 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028047 ac_cv_header_stdc=yes
28048else
28049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028050sed 's/^/| /' conftest.$ac_ext >&5
28051
Reid Spencera773bd52006-08-04 18:18:08 +000028052 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028053fi
Reid Spencera773bd52006-08-04 18:18:08 +000028054
28055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028056
28057if test $ac_cv_header_stdc = yes; then
28058 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028060/* confdefs.h. */
28061_ACEOF
28062cat confdefs.h >>conftest.$ac_ext
28063cat >>conftest.$ac_ext <<_ACEOF
28064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028065#include <string.h>
28066
28067_ACEOF
28068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028069 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028070 :
28071else
28072 ac_cv_header_stdc=no
28073fi
28074rm -f conftest*
28075
28076fi
28077
28078if test $ac_cv_header_stdc = yes; then
28079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28080 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028081/* confdefs.h. */
28082_ACEOF
28083cat confdefs.h >>conftest.$ac_ext
28084cat >>conftest.$ac_ext <<_ACEOF
28085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028086#include <stdlib.h>
28087
28088_ACEOF
28089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028090 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028091 :
28092else
28093 ac_cv_header_stdc=no
28094fi
28095rm -f conftest*
28096
28097fi
28098
28099if test $ac_cv_header_stdc = yes; then
28100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28101 if test "$cross_compiling" = yes; then
28102 :
28103else
28104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028105/* confdefs.h. */
28106_ACEOF
28107cat confdefs.h >>conftest.$ac_ext
28108cat >>conftest.$ac_ext <<_ACEOF
28109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028110#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028111#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028112#if ((' ' & 0x0FF) == 0x020)
28113# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28114# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28115#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028116# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028117 (('a' <= (c) && (c) <= 'i') \
28118 || ('j' <= (c) && (c) <= 'r') \
28119 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028120# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28121#endif
28122
28123#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28124int
28125main ()
28126{
28127 int i;
28128 for (i = 0; i < 256; i++)
28129 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028130 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028131 return 2;
28132 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028133}
28134_ACEOF
28135rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028136if { (ac_try="$ac_link"
28137case "(($ac_try" in
28138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139 *) ac_try_echo=$ac_try;;
28140esac
28141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028143 ac_status=$?
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028146 { (case "(($ac_try" in
28147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148 *) ac_try_echo=$ac_try;;
28149esac
28150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; }; then
28155 :
28156else
28157 echo "$as_me: program exited with status $ac_status" >&5
28158echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028159sed 's/^/| /' conftest.$ac_ext >&5
28160
John Criswell7a73b802003-06-30 21:59:07 +000028161( exit $ac_status )
28162ac_cv_header_stdc=no
28163fi
Reid Spencera773bd52006-08-04 18:18:08 +000028164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28165fi
28166
28167
John Criswell7a73b802003-06-30 21:59:07 +000028168fi
28169fi
Reid Spencera773bd52006-08-04 18:18:08 +000028170{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28171echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028172if test $ac_cv_header_stdc = yes; then
28173
28174cat >>confdefs.h <<\_ACEOF
28175#define STDC_HEADERS 1
28176_ACEOF
28177
28178fi
28179
Reid Spencera773bd52006-08-04 18:18:08 +000028180{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28181echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028182if test "${ac_cv_header_sys_wait_h+set}" = set; then
28183 echo $ECHO_N "(cached) $ECHO_C" >&6
28184else
28185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028186/* confdefs.h. */
28187_ACEOF
28188cat confdefs.h >>conftest.$ac_ext
28189cat >>conftest.$ac_ext <<_ACEOF
28190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028191#include <sys/types.h>
28192#include <sys/wait.h>
28193#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028194# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028195#endif
28196#ifndef WIFEXITED
28197# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28198#endif
28199
John Criswell7a73b802003-06-30 21:59:07 +000028200int
28201main ()
28202{
28203 int s;
28204 wait (&s);
28205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28206 ;
28207 return 0;
28208}
28209_ACEOF
28210rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028211if { (ac_try="$ac_compile"
28212case "(($ac_try" in
28213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28214 *) ac_try_echo=$ac_try;;
28215esac
28216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28217 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028218 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028219 grep -v '^ *+' conftest.er1 >conftest.err
28220 rm -f conftest.er1
28221 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28225 { (case "(($ac_try" in
28226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28227 *) ac_try_echo=$ac_try;;
28228esac
28229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28230 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; } &&
28234 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028235 { (case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28238esac
28239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28240 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028241 ac_status=$?
28242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28243 (exit $ac_status); }; }; then
28244 ac_cv_header_sys_wait_h=yes
28245else
28246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028247sed 's/^/| /' conftest.$ac_ext >&5
28248
Reid Spencera773bd52006-08-04 18:18:08 +000028249 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028250fi
Reid Spencera773bd52006-08-04 18:18:08 +000028251
28252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028253fi
Reid Spencera773bd52006-08-04 18:18:08 +000028254{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28255echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028256if test $ac_cv_header_sys_wait_h = yes; then
28257
28258cat >>confdefs.h <<\_ACEOF
28259#define HAVE_SYS_WAIT_H 1
28260_ACEOF
28261
28262fi
28263
Reid Spencera773bd52006-08-04 18:18:08 +000028264{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28265echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028266if test "${ac_cv_header_time+set}" = set; then
28267 echo $ECHO_N "(cached) $ECHO_C" >&6
28268else
28269 cat >conftest.$ac_ext <<_ACEOF
28270/* confdefs.h. */
28271_ACEOF
28272cat confdefs.h >>conftest.$ac_ext
28273cat >>conftest.$ac_ext <<_ACEOF
28274/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028275#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028276#include <sys/time.h>
28277#include <time.h>
28278
28279int
28280main ()
28281{
28282if ((struct tm *) 0)
28283return 0;
28284 ;
28285 return 0;
28286}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028287_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028289if { (ac_try="$ac_compile"
28290case "(($ac_try" in
28291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28292 *) ac_try_echo=$ac_try;;
28293esac
28294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28295 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028296 ac_status=$?
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028301 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28303 { (case "(($ac_try" in
28304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28305 *) ac_try_echo=$ac_try;;
28306esac
28307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28308 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028309 ac_status=$?
28310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28311 (exit $ac_status); }; } &&
28312 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028313 { (case "(($ac_try" in
28314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28315 *) ac_try_echo=$ac_try;;
28316esac
28317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28318 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028319 ac_status=$?
28320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321 (exit $ac_status); }; }; then
28322 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028323else
28324 echo "$as_me: failed program was:" >&5
28325sed 's/^/| /' conftest.$ac_ext >&5
28326
Reid Spencera773bd52006-08-04 18:18:08 +000028327 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028328fi
Reid Spencera773bd52006-08-04 18:18:08 +000028329
28330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028331fi
Reid Spencera773bd52006-08-04 18:18:08 +000028332{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28333echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028334if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028335
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028336cat >>confdefs.h <<\_ACEOF
28337#define TIME_WITH_SYS_TIME 1
28338_ACEOF
28339
28340fi
28341
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028342
Reid Spencer59473af2004-12-25 07:31:29 +000028343
28344
28345
28346
28347
28348
28349for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28350do
28351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028356 echo $ECHO_N "(cached) $ECHO_C" >&6
28357fi
Reid Spencera773bd52006-08-04 18:18:08 +000028358ac_res=`eval echo '${'$as_ac_Header'}'`
28359 { echo "$as_me:$LINENO: result: $ac_res" >&5
28360echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028361else
28362 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028363{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028365cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028366/* confdefs.h. */
28367_ACEOF
28368cat confdefs.h >>conftest.$ac_ext
28369cat >>conftest.$ac_ext <<_ACEOF
28370/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028371$ac_includes_default
28372#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028373_ACEOF
28374rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028375if { (ac_try="$ac_compile"
28376case "(($ac_try" in
28377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28378 *) ac_try_echo=$ac_try;;
28379esac
28380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28381 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028382 ac_status=$?
28383 grep -v '^ *+' conftest.er1 >conftest.err
28384 rm -f conftest.er1
28385 cat conftest.err >&5
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28389 { (case "(($ac_try" in
28390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28391 *) ac_try_echo=$ac_try;;
28392esac
28393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28394 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028395 ac_status=$?
28396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397 (exit $ac_status); }; } &&
28398 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028399 { (case "(($ac_try" in
28400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401 *) ac_try_echo=$ac_try;;
28402esac
28403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28404 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028405 ac_status=$?
28406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28407 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028408 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028409else
28410 echo "$as_me: failed program was:" >&5
28411sed 's/^/| /' conftest.$ac_ext >&5
28412
Reid Spencera773bd52006-08-04 18:18:08 +000028413 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028414fi
Reid Spencera773bd52006-08-04 18:18:08 +000028415
28416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028419
Reid Spencer59473af2004-12-25 07:31:29 +000028420# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028421{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028423cat >conftest.$ac_ext <<_ACEOF
28424/* confdefs.h. */
28425_ACEOF
28426cat confdefs.h >>conftest.$ac_ext
28427cat >>conftest.$ac_ext <<_ACEOF
28428/* end confdefs.h. */
28429#include <$ac_header>
28430_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028431if { (ac_try="$ac_cpp conftest.$ac_ext"
28432case "(($ac_try" in
28433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434 *) ac_try_echo=$ac_try;;
28435esac
28436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028438 ac_status=$?
28439 grep -v '^ *+' conftest.er1 >conftest.err
28440 rm -f conftest.er1
28441 cat conftest.err >&5
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); } >/dev/null; then
28444 if test -s conftest.err; then
28445 ac_cpp_err=$ac_c_preproc_warn_flag
28446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28447 else
28448 ac_cpp_err=
28449 fi
28450else
28451 ac_cpp_err=yes
28452fi
28453if test -z "$ac_cpp_err"; then
28454 ac_header_preproc=yes
28455else
28456 echo "$as_me: failed program was:" >&5
28457sed 's/^/| /' conftest.$ac_ext >&5
28458
28459 ac_header_preproc=no
28460fi
Reid Spencera773bd52006-08-04 18:18:08 +000028461
Reid Spencer59473af2004-12-25 07:31:29 +000028462rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028463{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28464echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028465
28466# So? What about this header?
28467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28468 yes:no: )
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28473 ac_header_preproc=yes
28474 ;;
28475 no:yes:* )
28476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028488 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028489## ----------------------------------- ##
28490## Report this to llvmbugs@cs.uiuc.edu ##
28491## ----------------------------------- ##
28492_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028493 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028494 ;;
28495esac
Reid Spencera773bd52006-08-04 18:18:08 +000028496{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028499 echo $ECHO_N "(cached) $ECHO_C" >&6
28500else
28501 eval "$as_ac_Header=\$ac_header_preproc"
28502fi
Reid Spencera773bd52006-08-04 18:18:08 +000028503ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028506
28507fi
Reid Spencer59473af2004-12-25 07:31:29 +000028508if test `eval echo '${'$as_ac_Header'}'` = yes; then
28509 cat >>confdefs.h <<_ACEOF
28510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028511_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028512
28513fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028514
Reid Spencer59473af2004-12-25 07:31:29 +000028515done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028516
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028517
28518
Reid Spencer59473af2004-12-25 07:31:29 +000028519
28520
28521
28522
Reid Spencercdb08a32006-06-05 16:11:07 +000028523for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028524do
28525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028530 echo $ECHO_N "(cached) $ECHO_C" >&6
28531fi
Reid Spencera773bd52006-08-04 18:18:08 +000028532ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028535else
28536 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028539cat >conftest.$ac_ext <<_ACEOF
28540/* confdefs.h. */
28541_ACEOF
28542cat confdefs.h >>conftest.$ac_ext
28543cat >>conftest.$ac_ext <<_ACEOF
28544/* end confdefs.h. */
28545$ac_includes_default
28546#include <$ac_header>
28547_ACEOF
28548rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028549if { (ac_try="$ac_compile"
28550case "(($ac_try" in
28551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28552 *) ac_try_echo=$ac_try;;
28553esac
28554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28555 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028556 ac_status=$?
28557 grep -v '^ *+' conftest.er1 >conftest.err
28558 rm -f conftest.er1
28559 cat conftest.err >&5
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28563 { (case "(($ac_try" in
28564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565 *) ac_try_echo=$ac_try;;
28566esac
28567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28568 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028569 ac_status=$?
28570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28571 (exit $ac_status); }; } &&
28572 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028573 { (case "(($ac_try" in
28574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28575 *) ac_try_echo=$ac_try;;
28576esac
28577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28578 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
28582 ac_header_compiler=yes
28583else
28584 echo "$as_me: failed program was:" >&5
28585sed 's/^/| /' conftest.$ac_ext >&5
28586
Reid Spencera773bd52006-08-04 18:18:08 +000028587 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028588fi
Reid Spencera773bd52006-08-04 18:18:08 +000028589
28590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28591{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28592echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028593
28594# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028595{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028597cat >conftest.$ac_ext <<_ACEOF
28598/* confdefs.h. */
28599_ACEOF
28600cat confdefs.h >>conftest.$ac_ext
28601cat >>conftest.$ac_ext <<_ACEOF
28602/* end confdefs.h. */
28603#include <$ac_header>
28604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028605if { (ac_try="$ac_cpp conftest.$ac_ext"
28606case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609esac
28610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028612 ac_status=$?
28613 grep -v '^ *+' conftest.er1 >conftest.err
28614 rm -f conftest.er1
28615 cat conftest.err >&5
28616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } >/dev/null; then
28618 if test -s conftest.err; then
28619 ac_cpp_err=$ac_c_preproc_warn_flag
28620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28621 else
28622 ac_cpp_err=
28623 fi
28624else
28625 ac_cpp_err=yes
28626fi
28627if test -z "$ac_cpp_err"; then
28628 ac_header_preproc=yes
28629else
28630 echo "$as_me: failed program was:" >&5
28631sed 's/^/| /' conftest.$ac_ext >&5
28632
28633 ac_header_preproc=no
28634fi
Reid Spencera773bd52006-08-04 18:18:08 +000028635
Reid Spencer59473af2004-12-25 07:31:29 +000028636rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028637{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28638echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028639
28640# So? What about this header?
28641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28642 yes:no: )
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28647 ac_header_preproc=yes
28648 ;;
28649 no:yes:* )
28650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028662 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028663## ----------------------------------- ##
28664## Report this to llvmbugs@cs.uiuc.edu ##
28665## ----------------------------------- ##
28666_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028667 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028668 ;;
28669esac
Reid Spencera773bd52006-08-04 18:18:08 +000028670{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674else
28675 eval "$as_ac_Header=\$ac_header_preproc"
28676fi
Reid Spencera773bd52006-08-04 18:18:08 +000028677ac_res=`eval echo '${'$as_ac_Header'}'`
28678 { echo "$as_me:$LINENO: result: $ac_res" >&5
28679echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028680
28681fi
28682if test `eval echo '${'$as_ac_Header'}'` = yes; then
28683 cat >>confdefs.h <<_ACEOF
28684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28685_ACEOF
28686
28687fi
28688
28689done
28690
28691
28692
28693
28694
28695
Reid Spencercdb08a32006-06-05 16:11:07 +000028696for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697do
28698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28702if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704fi
Reid Spencera773bd52006-08-04 18:18:08 +000028705ac_res=`eval echo '${'$as_ac_Header'}'`
28706 { echo "$as_me:$LINENO: result: $ac_res" >&5
28707echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028708else
28709 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028710{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028712cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028713/* confdefs.h. */
28714_ACEOF
28715cat confdefs.h >>conftest.$ac_ext
28716cat >>conftest.$ac_ext <<_ACEOF
28717/* end confdefs.h. */
28718$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028719#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028720_ACEOF
28721rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028722if { (ac_try="$ac_compile"
28723case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28728 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028730 grep -v '^ *+' conftest.er1 >conftest.err
28731 rm -f conftest.er1
28732 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28736 { (case "(($ac_try" in
28737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738 *) ac_try_echo=$ac_try;;
28739esac
28740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28741 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028742 ac_status=$?
28743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; } &&
28745 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028746 { (case "(($ac_try" in
28747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28748 *) ac_try_echo=$ac_try;;
28749esac
28750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28751 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028752 ac_status=$?
28753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28754 (exit $ac_status); }; }; then
28755 ac_header_compiler=yes
28756else
28757 echo "$as_me: failed program was:" >&5
28758sed 's/^/| /' conftest.$ac_ext >&5
28759
Reid Spencera773bd52006-08-04 18:18:08 +000028760 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028761fi
Reid Spencera773bd52006-08-04 18:18:08 +000028762
28763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28765echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028766
28767# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028768{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28769echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028770cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028771/* confdefs.h. */
28772_ACEOF
28773cat confdefs.h >>conftest.$ac_ext
28774cat >>conftest.$ac_ext <<_ACEOF
28775/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028776#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028777_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028778if { (ac_try="$ac_cpp conftest.$ac_ext"
28779case "(($ac_try" in
28780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28781 *) ac_try_echo=$ac_try;;
28782esac
28783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028785 ac_status=$?
28786 grep -v '^ *+' conftest.er1 >conftest.err
28787 rm -f conftest.er1
28788 cat conftest.err >&5
28789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790 (exit $ac_status); } >/dev/null; then
28791 if test -s conftest.err; then
28792 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028793 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028794 else
28795 ac_cpp_err=
28796 fi
28797else
28798 ac_cpp_err=yes
28799fi
28800if test -z "$ac_cpp_err"; then
28801 ac_header_preproc=yes
28802else
28803 echo "$as_me: failed program was:" >&5
28804sed 's/^/| /' conftest.$ac_ext >&5
28805
28806 ac_header_preproc=no
28807fi
Reid Spencera773bd52006-08-04 18:18:08 +000028808
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028809rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28811echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028812
28813# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28815 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28817echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28819echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028820 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028821 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28824echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28826echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28828echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28830echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28832echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28834echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028835 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028836## ----------------------------------- ##
28837## Report this to llvmbugs@cs.uiuc.edu ##
28838## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028839_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028840 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028841 ;;
28842esac
Reid Spencera773bd52006-08-04 18:18:08 +000028843{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28844echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28845if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028846 echo $ECHO_N "(cached) $ECHO_C" >&6
28847else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028848 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028849fi
Reid Spencera773bd52006-08-04 18:18:08 +000028850ac_res=`eval echo '${'$as_ac_Header'}'`
28851 { echo "$as_me:$LINENO: result: $ac_res" >&5
28852echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028853
28854fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028855if test `eval echo '${'$as_ac_Header'}'` = yes; then
28856 cat >>confdefs.h <<_ACEOF
28857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028858_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028859
28860fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028861
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028862done
28863
John Criswell7ed43ad2004-07-19 16:12:29 +000028864
Reid Spencercdb08a32006-06-05 16:11:07 +000028865
Reid Spencera6d990a2006-09-14 06:17:21 +000028866
28867for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028868do
28869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875fi
Reid Spencera773bd52006-08-04 18:18:08 +000028876ac_res=`eval echo '${'$as_ac_Header'}'`
28877 { echo "$as_me:$LINENO: result: $ac_res" >&5
28878echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028879else
28880 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028881{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028883cat >conftest.$ac_ext <<_ACEOF
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
28889$ac_includes_default
28890#include <$ac_header>
28891_ACEOF
28892rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028893if { (ac_try="$ac_compile"
28894case "(($ac_try" in
28895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28896 *) ac_try_echo=$ac_try;;
28897esac
28898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28899 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028900 ac_status=$?
28901 grep -v '^ *+' conftest.er1 >conftest.err
28902 rm -f conftest.er1
28903 cat conftest.err >&5
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28907 { (case "(($ac_try" in
28908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28909 *) ac_try_echo=$ac_try;;
28910esac
28911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28912 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; } &&
28916 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028917 { (case "(($ac_try" in
28918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28919 *) ac_try_echo=$ac_try;;
28920esac
28921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28922 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; }; then
28926 ac_header_compiler=yes
28927else
28928 echo "$as_me: failed program was:" >&5
28929sed 's/^/| /' conftest.$ac_ext >&5
28930
Reid Spencera773bd52006-08-04 18:18:08 +000028931 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028932fi
Reid Spencera773bd52006-08-04 18:18:08 +000028933
28934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28935{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28936echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028937
28938# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028939{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28940echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028941cat >conftest.$ac_ext <<_ACEOF
28942/* confdefs.h. */
28943_ACEOF
28944cat confdefs.h >>conftest.$ac_ext
28945cat >>conftest.$ac_ext <<_ACEOF
28946/* end confdefs.h. */
28947#include <$ac_header>
28948_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028949if { (ac_try="$ac_cpp conftest.$ac_ext"
28950case "(($ac_try" in
28951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28952 *) ac_try_echo=$ac_try;;
28953esac
28954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028956 ac_status=$?
28957 grep -v '^ *+' conftest.er1 >conftest.err
28958 rm -f conftest.er1
28959 cat conftest.err >&5
28960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961 (exit $ac_status); } >/dev/null; then
28962 if test -s conftest.err; then
28963 ac_cpp_err=$ac_c_preproc_warn_flag
28964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28965 else
28966 ac_cpp_err=
28967 fi
28968else
28969 ac_cpp_err=yes
28970fi
28971if test -z "$ac_cpp_err"; then
28972 ac_header_preproc=yes
28973else
28974 echo "$as_me: failed program was:" >&5
28975sed 's/^/| /' conftest.$ac_ext >&5
28976
28977 ac_header_preproc=no
28978fi
Reid Spencera773bd52006-08-04 18:18:08 +000028979
Chris Lattner0b142592005-11-14 06:57:34 +000028980rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028981{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28982echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028983
28984# So? What about this header?
28985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28986 yes:no: )
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28991 ac_header_preproc=yes
28992 ;;
28993 no:yes:* )
28994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029006 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029007## ----------------------------------- ##
29008## Report this to llvmbugs@cs.uiuc.edu ##
29009## ----------------------------------- ##
29010_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029011 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029012 ;;
29013esac
Reid Spencera773bd52006-08-04 18:18:08 +000029014{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29016if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029017 echo $ECHO_N "(cached) $ECHO_C" >&6
29018else
29019 eval "$as_ac_Header=\$ac_header_preproc"
29020fi
Reid Spencera773bd52006-08-04 18:18:08 +000029021ac_res=`eval echo '${'$as_ac_Header'}'`
29022 { echo "$as_me:$LINENO: result: $ac_res" >&5
29023echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029024
29025fi
29026if test `eval echo '${'$as_ac_Header'}'` = yes; then
29027 cat >>confdefs.h <<_ACEOF
29028#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29029_ACEOF
29030
29031fi
29032
29033done
29034
Reid Spencer0a262ba2005-08-24 10:07:20 +000029035if test "$ENABLE_THREADS" -eq 1 ; then
29036
29037for ac_header in pthread.h
29038do
29039as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029040if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29041 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029044 echo $ECHO_N "(cached) $ECHO_C" >&6
29045fi
Reid Spencera773bd52006-08-04 18:18:08 +000029046ac_res=`eval echo '${'$as_ac_Header'}'`
29047 { echo "$as_me:$LINENO: result: $ac_res" >&5
29048echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029049else
29050 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029051{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29052echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029053cat >conftest.$ac_ext <<_ACEOF
29054/* confdefs.h. */
29055_ACEOF
29056cat confdefs.h >>conftest.$ac_ext
29057cat >>conftest.$ac_ext <<_ACEOF
29058/* end confdefs.h. */
29059$ac_includes_default
29060#include <$ac_header>
29061_ACEOF
29062rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029063if { (ac_try="$ac_compile"
29064case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29067esac
29068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029070 ac_status=$?
29071 grep -v '^ *+' conftest.er1 >conftest.err
29072 rm -f conftest.er1
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29077 { (case "(($ac_try" in
29078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079 *) ac_try_echo=$ac_try;;
29080esac
29081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029083 ac_status=$?
29084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085 (exit $ac_status); }; } &&
29086 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029087 { (case "(($ac_try" in
29088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29089 *) ac_try_echo=$ac_try;;
29090esac
29091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29092 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); }; }; then
29096 ac_header_compiler=yes
29097else
29098 echo "$as_me: failed program was:" >&5
29099sed 's/^/| /' conftest.$ac_ext >&5
29100
Reid Spencera773bd52006-08-04 18:18:08 +000029101 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029102fi
Reid Spencera773bd52006-08-04 18:18:08 +000029103
29104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29105{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29106echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029107
29108# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029109{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29110echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029111cat >conftest.$ac_ext <<_ACEOF
29112/* confdefs.h. */
29113_ACEOF
29114cat confdefs.h >>conftest.$ac_ext
29115cat >>conftest.$ac_ext <<_ACEOF
29116/* end confdefs.h. */
29117#include <$ac_header>
29118_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029119if { (ac_try="$ac_cpp conftest.$ac_ext"
29120case "(($ac_try" in
29121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29122 *) ac_try_echo=$ac_try;;
29123esac
29124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029126 ac_status=$?
29127 grep -v '^ *+' conftest.er1 >conftest.err
29128 rm -f conftest.er1
29129 cat conftest.err >&5
29130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131 (exit $ac_status); } >/dev/null; then
29132 if test -s conftest.err; then
29133 ac_cpp_err=$ac_c_preproc_warn_flag
29134 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29135 else
29136 ac_cpp_err=
29137 fi
29138else
29139 ac_cpp_err=yes
29140fi
29141if test -z "$ac_cpp_err"; then
29142 ac_header_preproc=yes
29143else
29144 echo "$as_me: failed program was:" >&5
29145sed 's/^/| /' conftest.$ac_ext >&5
29146
29147 ac_header_preproc=no
29148fi
Reid Spencera773bd52006-08-04 18:18:08 +000029149
Reid Spencer0a262ba2005-08-24 10:07:20 +000029150rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029151{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29152echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029153
29154# So? What about this header?
29155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29156 yes:no: )
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29161 ac_header_preproc=yes
29162 ;;
29163 no:yes:* )
29164 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29167echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29170 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29171echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29174 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029176 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029177## ----------------------------------- ##
29178## Report this to llvmbugs@cs.uiuc.edu ##
29179## ----------------------------------- ##
29180_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029181 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029182 ;;
29183esac
Reid Spencera773bd52006-08-04 18:18:08 +000029184{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29186if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029187 echo $ECHO_N "(cached) $ECHO_C" >&6
29188else
29189 eval "$as_ac_Header=\$ac_header_preproc"
29190fi
Reid Spencera773bd52006-08-04 18:18:08 +000029191ac_res=`eval echo '${'$as_ac_Header'}'`
29192 { echo "$as_me:$LINENO: result: $ac_res" >&5
29193echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029194
29195fi
29196if test `eval echo '${'$as_ac_Header'}'` = yes; then
29197 cat >>confdefs.h <<_ACEOF
29198#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29199_ACEOF
29200
29201fi
29202
29203done
29204
29205fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029206
29207
Reid Spencerb2ed05262006-11-03 18:04:08 +000029208
29209 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29210echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29211if test "${ac_cv_huge_val_sanity+set}" = set; then
29212 echo $ECHO_N "(cached) $ECHO_C" >&6
29213else
29214
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029215 ac_ext=cpp
29216ac_cpp='$CXXCPP $CPPFLAGS'
29217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029220
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029221 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029222 if test "$cross_compiling" = yes; then
29223 ac_cv_huge_val_sanity=yes
29224else
29225 cat >conftest.$ac_ext <<_ACEOF
29226/* confdefs.h. */
29227_ACEOF
29228cat confdefs.h >>conftest.$ac_ext
29229cat >>conftest.$ac_ext <<_ACEOF
29230/* end confdefs.h. */
29231#include <math.h>
29232int
29233main ()
29234{
29235double x = HUGE_VAL; return x != x;
29236 ;
29237 return 0;
29238}
29239_ACEOF
29240rm -f conftest$ac_exeext
29241if { (ac_try="$ac_link"
29242case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29245esac
29246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_link") 2>&5
29248 ac_status=$?
29249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29251 { (case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254esac
29255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256 (eval "$ac_try") 2>&5
29257 ac_status=$?
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; }; then
29260 ac_cv_huge_val_sanity=yes
29261else
29262 echo "$as_me: program exited with status $ac_status" >&5
29263echo "$as_me: failed program was:" >&5
29264sed 's/^/| /' conftest.$ac_ext >&5
29265
29266( exit $ac_status )
29267ac_cv_huge_val_sanity=no
29268fi
29269rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29270fi
29271
29272
29273 ac_ext=c
29274ac_cpp='$CPP $CPPFLAGS'
29275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29277ac_compiler_gnu=$ac_cv_c_compiler_gnu
29278
29279
29280fi
29281{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29282echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29283 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29284
29285
Reid Spencera773bd52006-08-04 18:18:08 +000029286{ echo "$as_me:$LINENO: checking for pid_t" >&5
29287echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029288if test "${ac_cv_type_pid_t+set}" = set; then
29289 echo $ECHO_N "(cached) $ECHO_C" >&6
29290else
29291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029292/* confdefs.h. */
29293_ACEOF
29294cat confdefs.h >>conftest.$ac_ext
29295cat >>conftest.$ac_ext <<_ACEOF
29296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029297$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029298typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029299int
29300main ()
29301{
Reid Spencera773bd52006-08-04 18:18:08 +000029302if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029303 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029304if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029305 return 0;
29306 ;
29307 return 0;
29308}
29309_ACEOF
29310rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029311if { (ac_try="$ac_compile"
29312case "(($ac_try" in
29313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29314 *) ac_try_echo=$ac_try;;
29315esac
29316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29317 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029319 grep -v '^ *+' conftest.er1 >conftest.err
29320 rm -f conftest.er1
29321 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29325 { (case "(($ac_try" in
29326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29327 *) ac_try_echo=$ac_try;;
29328esac
29329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29330 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029331 ac_status=$?
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333 (exit $ac_status); }; } &&
29334 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029335 { (case "(($ac_try" in
29336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29337 *) ac_try_echo=$ac_try;;
29338esac
29339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29340 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029341 ac_status=$?
29342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29343 (exit $ac_status); }; }; then
29344 ac_cv_type_pid_t=yes
29345else
29346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029347sed 's/^/| /' conftest.$ac_ext >&5
29348
Reid Spencera773bd52006-08-04 18:18:08 +000029349 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029350fi
Reid Spencera773bd52006-08-04 18:18:08 +000029351
29352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029353fi
Reid Spencera773bd52006-08-04 18:18:08 +000029354{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29355echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029356if test $ac_cv_type_pid_t = yes; then
29357 :
29358else
29359
29360cat >>confdefs.h <<_ACEOF
29361#define pid_t int
29362_ACEOF
29363
29364fi
29365
Reid Spencera773bd52006-08-04 18:18:08 +000029366{ echo "$as_me:$LINENO: checking for size_t" >&5
29367echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029368if test "${ac_cv_type_size_t+set}" = set; then
29369 echo $ECHO_N "(cached) $ECHO_C" >&6
29370else
29371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029372/* confdefs.h. */
29373_ACEOF
29374cat confdefs.h >>conftest.$ac_ext
29375cat >>conftest.$ac_ext <<_ACEOF
29376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029377$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029378typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029379int
29380main ()
29381{
Reid Spencera773bd52006-08-04 18:18:08 +000029382if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029383 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029384if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029385 return 0;
29386 ;
29387 return 0;
29388}
29389_ACEOF
29390rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029391if { (ac_try="$ac_compile"
29392case "(($ac_try" in
29393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394 *) ac_try_echo=$ac_try;;
29395esac
29396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29405 { (case "(($ac_try" in
29406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29407 *) ac_try_echo=$ac_try;;
29408esac
29409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29410 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029415 { (case "(($ac_try" in
29416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29417 *) ac_try_echo=$ac_try;;
29418esac
29419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29420 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
29424 ac_cv_type_size_t=yes
29425else
29426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029427sed 's/^/| /' conftest.$ac_ext >&5
29428
Reid Spencera773bd52006-08-04 18:18:08 +000029429 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029430fi
Reid Spencera773bd52006-08-04 18:18:08 +000029431
29432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029433fi
Reid Spencera773bd52006-08-04 18:18:08 +000029434{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29435echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029436if test $ac_cv_type_size_t = yes; then
29437 :
29438else
29439
29440cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029441#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029442_ACEOF
29443
29444fi
29445
Reid Spencera773bd52006-08-04 18:18:08 +000029446{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29447echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029448if test "${ac_cv_type_signal+set}" = set; then
29449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450else
29451 cat >conftest.$ac_ext <<_ACEOF
29452/* confdefs.h. */
29453_ACEOF
29454cat confdefs.h >>conftest.$ac_ext
29455cat >>conftest.$ac_ext <<_ACEOF
29456/* end confdefs.h. */
29457#include <sys/types.h>
29458#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029459
29460int
29461main ()
29462{
Reid Spencera773bd52006-08-04 18:18:08 +000029463return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029464 ;
29465 return 0;
29466}
29467_ACEOF
29468rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029469if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029476 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); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29483 { (case "(($ac_try" in
29484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29485 *) ac_try_echo=$ac_try;;
29486esac
29487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29488 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029489 ac_status=$?
29490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } &&
29492 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029493 { (case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029502 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029503else
29504 echo "$as_me: failed program was:" >&5
29505sed 's/^/| /' conftest.$ac_ext >&5
29506
Reid Spencera773bd52006-08-04 18:18:08 +000029507 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029508fi
Reid Spencera773bd52006-08-04 18:18:08 +000029509
29510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029511fi
Reid Spencera773bd52006-08-04 18:18:08 +000029512{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29513echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029514
29515cat >>confdefs.h <<_ACEOF
29516#define RETSIGTYPE $ac_cv_type_signal
29517_ACEOF
29518
29519
Reid Spencera773bd52006-08-04 18:18:08 +000029520{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29521echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029522if test "${ac_cv_struct_tm+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524else
29525 cat >conftest.$ac_ext <<_ACEOF
29526/* confdefs.h. */
29527_ACEOF
29528cat confdefs.h >>conftest.$ac_ext
29529cat >>conftest.$ac_ext <<_ACEOF
29530/* end confdefs.h. */
29531#include <sys/types.h>
29532#include <time.h>
29533
29534int
29535main ()
29536{
29537struct tm *tp; tp->tm_sec;
29538 ;
29539 return 0;
29540}
29541_ACEOF
29542rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029543if { (ac_try="$ac_compile"
29544case "(($ac_try" in
29545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29546 *) ac_try_echo=$ac_try;;
29547esac
29548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29549 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029550 ac_status=$?
29551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } &&
29566 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029567 { (case "(($ac_try" in
29568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29569 *) ac_try_echo=$ac_try;;
29570esac
29571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29572 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029573 ac_status=$?
29574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29575 (exit $ac_status); }; }; then
29576 ac_cv_struct_tm=time.h
29577else
29578 echo "$as_me: failed program was:" >&5
29579sed 's/^/| /' conftest.$ac_ext >&5
29580
Reid Spencera773bd52006-08-04 18:18:08 +000029581 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029582fi
Reid Spencera773bd52006-08-04 18:18:08 +000029583
29584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029585fi
Reid Spencera773bd52006-08-04 18:18:08 +000029586{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29587echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029588if test $ac_cv_struct_tm = sys/time.h; then
29589
29590cat >>confdefs.h <<\_ACEOF
29591#define TM_IN_SYS_TIME 1
29592_ACEOF
29593
29594fi
29595
Reid Spencera773bd52006-08-04 18:18:08 +000029596{ echo "$as_me:$LINENO: checking for int64_t" >&5
29597echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029598if test "${ac_cv_type_int64_t+set}" = set; then
29599 echo $ECHO_N "(cached) $ECHO_C" >&6
29600else
29601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029602/* confdefs.h. */
29603_ACEOF
29604cat confdefs.h >>conftest.$ac_ext
29605cat >>conftest.$ac_ext <<_ACEOF
29606/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029607$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029608typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029609int
29610main ()
29611{
Reid Spencera773bd52006-08-04 18:18:08 +000029612if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029613 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029614if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029615 return 0;
29616 ;
29617 return 0;
29618}
29619_ACEOF
29620rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029621if { (ac_try="$ac_compile"
29622case "(($ac_try" in
29623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624 *) ac_try_echo=$ac_try;;
29625esac
29626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29627 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029629 grep -v '^ *+' conftest.er1 >conftest.err
29630 rm -f conftest.er1
29631 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638esac
29639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; } &&
29644 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029645 { (case "(($ac_try" in
29646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647 *) ac_try_echo=$ac_try;;
29648esac
29649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029651 ac_status=$?
29652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653 (exit $ac_status); }; }; then
29654 ac_cv_type_int64_t=yes
29655else
29656 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029657sed 's/^/| /' conftest.$ac_ext >&5
29658
Reid Spencera773bd52006-08-04 18:18:08 +000029659 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029660fi
Reid Spencera773bd52006-08-04 18:18:08 +000029661
29662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029663fi
Reid Spencera773bd52006-08-04 18:18:08 +000029664{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29665echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029666if test $ac_cv_type_int64_t = yes; then
29667
29668cat >>confdefs.h <<_ACEOF
29669#define HAVE_INT64_T 1
29670_ACEOF
29671
29672
29673else
29674 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29675echo "$as_me: error: Type int64_t required but not found" >&2;}
29676 { (exit 1); exit 1; }; }
29677fi
29678
Reid Spencera773bd52006-08-04 18:18:08 +000029679{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29680echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029681if test "${ac_cv_type_uint64_t+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
29683else
29684 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029685/* confdefs.h. */
29686_ACEOF
29687cat confdefs.h >>conftest.$ac_ext
29688cat >>conftest.$ac_ext <<_ACEOF
29689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029690$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029691typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029692int
29693main ()
29694{
Reid Spencera773bd52006-08-04 18:18:08 +000029695if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029696 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029697if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029698 return 0;
29699 ;
29700 return 0;
29701}
29702_ACEOF
29703rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029704if { (ac_try="$ac_compile"
29705case "(($ac_try" in
29706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29707 *) ac_try_echo=$ac_try;;
29708esac
29709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29710 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029711 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29718 { (case "(($ac_try" in
29719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29720 *) ac_try_echo=$ac_try;;
29721esac
29722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29723 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029724 ac_status=$?
29725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726 (exit $ac_status); }; } &&
29727 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029728 { (case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29733 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029734 ac_status=$?
29735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29736 (exit $ac_status); }; }; then
29737 ac_cv_type_uint64_t=yes
29738else
29739 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029740sed 's/^/| /' conftest.$ac_ext >&5
29741
Reid Spencera773bd52006-08-04 18:18:08 +000029742 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029743fi
Reid Spencera773bd52006-08-04 18:18:08 +000029744
29745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029746fi
Reid Spencera773bd52006-08-04 18:18:08 +000029747{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29748echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029749if test $ac_cv_type_uint64_t = yes; then
29750
29751cat >>confdefs.h <<_ACEOF
29752#define HAVE_UINT64_T 1
29753_ACEOF
29754
29755
29756else
Reid Spencera773bd52006-08-04 18:18:08 +000029757 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29758echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029759if test "${ac_cv_type_u_int64_t+set}" = set; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29761else
29762 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029763/* confdefs.h. */
29764_ACEOF
29765cat confdefs.h >>conftest.$ac_ext
29766cat >>conftest.$ac_ext <<_ACEOF
29767/* end confdefs.h. */
29768$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029769typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029770int
29771main ()
29772{
Reid Spencera773bd52006-08-04 18:18:08 +000029773if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029774 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029775if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029776 return 0;
29777 ;
29778 return 0;
29779}
29780_ACEOF
29781rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029782if { (ac_try="$ac_compile"
29783case "(($ac_try" in
29784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29785 *) ac_try_echo=$ac_try;;
29786esac
29787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29788 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029790 grep -v '^ *+' conftest.er1 >conftest.err
29791 rm -f conftest.er1
29792 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29794 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29796 { (case "(($ac_try" in
29797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29798 *) ac_try_echo=$ac_try;;
29799esac
29800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29801 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029802 ac_status=$?
29803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29804 (exit $ac_status); }; } &&
29805 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029806 { (case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29809esac
29810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029812 ac_status=$?
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); }; }; then
29815 ac_cv_type_u_int64_t=yes
29816else
29817 echo "$as_me: failed program was:" >&5
29818sed 's/^/| /' conftest.$ac_ext >&5
29819
Reid Spencera773bd52006-08-04 18:18:08 +000029820 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029821fi
Reid Spencera773bd52006-08-04 18:18:08 +000029822
29823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029824fi
Reid Spencera773bd52006-08-04 18:18:08 +000029825{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29826echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029827if test $ac_cv_type_u_int64_t = yes; then
29828
29829cat >>confdefs.h <<_ACEOF
29830#define HAVE_U_INT64_T 1
29831_ACEOF
29832
29833
Misha Brukmanceca9042004-09-02 23:02:30 +000029834else
29835 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29836echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29837 { (exit 1); exit 1; }; }
29838fi
29839
John Criswell679ff312004-09-02 18:44:44 +000029840fi
29841
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029842
29843
29844
29845
29846
29847
29848
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029849
29850
Reid Spencerdf3be822006-01-23 08:15:53 +000029851for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029852do
29853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029857 echo $ECHO_N "(cached) $ECHO_C" >&6
29858else
29859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029860/* confdefs.h. */
29861_ACEOF
29862cat confdefs.h >>conftest.$ac_ext
29863cat >>conftest.$ac_ext <<_ACEOF
29864/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29867#define $ac_func innocuous_$ac_func
29868
29869/* System header to define __stub macros and hopefully few prototypes,
29870 which can conflict with char $ac_func (); below.
29871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29872 <limits.h> exists even on freestanding compilers. */
29873
29874#ifdef __STDC__
29875# include <limits.h>
29876#else
29877# include <assert.h>
29878#endif
29879
29880#undef $ac_func
29881
Reid Spencera773bd52006-08-04 18:18:08 +000029882/* Override any GCC internal prototype to avoid an error.
29883 Use char because int might match the return type of a GCC
29884 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029885#ifdef __cplusplus
29886extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029887#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029888char $ac_func ();
29889/* The GNU C library defines this for functions which it implements
29890 to always fail with ENOSYS. Some functions are actually named
29891 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029892#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029893choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029894#endif
John Criswell7a73b802003-06-30 21:59:07 +000029895
John Criswell7a73b802003-06-30 21:59:07 +000029896int
29897main ()
29898{
Reid Spencera773bd52006-08-04 18:18:08 +000029899return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029900 ;
29901 return 0;
29902}
29903_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029904rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029905if { (ac_try="$ac_link"
29906case "(($ac_try" in
29907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29908 *) ac_try_echo=$ac_try;;
29909esac
29910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29911 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029912 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029913 grep -v '^ *+' conftest.er1 >conftest.err
29914 rm -f conftest.er1
29915 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29919 { (case "(($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_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029928 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029929 { (case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29932esac
29933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29934 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029938 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029939else
29940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029941sed 's/^/| /' conftest.$ac_ext >&5
29942
Reid Spencera773bd52006-08-04 18:18:08 +000029943 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029944fi
Reid Spencera773bd52006-08-04 18:18:08 +000029945
29946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029947 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029948fi
Reid Spencera773bd52006-08-04 18:18:08 +000029949ac_res=`eval echo '${'$as_ac_var'}'`
29950 { echo "$as_me:$LINENO: result: $ac_res" >&5
29951echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029952if test `eval echo '${'$as_ac_var'}'` = yes; then
29953 cat >>confdefs.h <<_ACEOF
29954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029955_ACEOF
29956
29957fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029958done
John Criswell7a73b802003-06-30 21:59:07 +000029959
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029960
29961
29962
Reid Spencer6af3d262004-12-15 04:01:48 +000029963
29964
Reid Spencer59473af2004-12-25 07:31:29 +000029965
Reid Spencerdf3be822006-01-23 08:15:53 +000029966for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29967do
29968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029969{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29971if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029972 echo $ECHO_N "(cached) $ECHO_C" >&6
29973else
29974 cat >conftest.$ac_ext <<_ACEOF
29975/* confdefs.h. */
29976_ACEOF
29977cat confdefs.h >>conftest.$ac_ext
29978cat >>conftest.$ac_ext <<_ACEOF
29979/* end confdefs.h. */
29980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29982#define $ac_func innocuous_$ac_func
29983
29984/* System header to define __stub macros and hopefully few prototypes,
29985 which can conflict with char $ac_func (); below.
29986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29987 <limits.h> exists even on freestanding compilers. */
29988
29989#ifdef __STDC__
29990# include <limits.h>
29991#else
29992# include <assert.h>
29993#endif
29994
29995#undef $ac_func
29996
Reid Spencera773bd52006-08-04 18:18:08 +000029997/* Override any GCC internal prototype to avoid an error.
29998 Use char because int might match the return type of a GCC
29999 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030000#ifdef __cplusplus
30001extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030002#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030003char $ac_func ();
30004/* The GNU C library defines this for functions which it implements
30005 to always fail with ENOSYS. Some functions are actually named
30006 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030007#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030008choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030009#endif
30010
30011int
30012main ()
30013{
Reid Spencera773bd52006-08-04 18:18:08 +000030014return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030015 ;
30016 return 0;
30017}
30018_ACEOF
30019rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030020if { (ac_try="$ac_link"
30021case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30024esac
30025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030027 ac_status=$?
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30034 { (case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30037esac
30038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030040 ac_status=$?
30041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042 (exit $ac_status); }; } &&
30043 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030044 { (case "(($ac_try" in
30045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30046 *) ac_try_echo=$ac_try;;
30047esac
30048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30049 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030050 ac_status=$?
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); }; }; then
30053 eval "$as_ac_var=yes"
30054else
30055 echo "$as_me: failed program was:" >&5
30056sed 's/^/| /' conftest.$ac_ext >&5
30057
Reid Spencera773bd52006-08-04 18:18:08 +000030058 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030059fi
Reid Spencera773bd52006-08-04 18:18:08 +000030060
30061rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030062 conftest$ac_exeext conftest.$ac_ext
30063fi
Reid Spencera773bd52006-08-04 18:18:08 +000030064ac_res=`eval echo '${'$as_ac_var'}'`
30065 { echo "$as_me:$LINENO: result: $ac_res" >&5
30066echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030067if test `eval echo '${'$as_ac_var'}'` = yes; then
30068 cat >>confdefs.h <<_ACEOF
30069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30070_ACEOF
30071
30072fi
30073done
30074
30075
30076
30077
30078
30079
30080
30081
30082for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030083do
30084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030085{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30087if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030088 echo $ECHO_N "(cached) $ECHO_C" >&6
30089else
30090 cat >conftest.$ac_ext <<_ACEOF
30091/* confdefs.h. */
30092_ACEOF
30093cat confdefs.h >>conftest.$ac_ext
30094cat >>conftest.$ac_ext <<_ACEOF
30095/* end confdefs.h. */
30096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30098#define $ac_func innocuous_$ac_func
30099
30100/* System header to define __stub macros and hopefully few prototypes,
30101 which can conflict with char $ac_func (); below.
30102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30103 <limits.h> exists even on freestanding compilers. */
30104
30105#ifdef __STDC__
30106# include <limits.h>
30107#else
30108# include <assert.h>
30109#endif
30110
30111#undef $ac_func
30112
Reid Spencera773bd52006-08-04 18:18:08 +000030113/* Override any GCC internal prototype to avoid an error.
30114 Use char because int might match the return type of a GCC
30115 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030116#ifdef __cplusplus
30117extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030118#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030119char $ac_func ();
30120/* The GNU C library defines this for functions which it implements
30121 to always fail with ENOSYS. Some functions are actually named
30122 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030123#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030124choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030125#endif
30126
30127int
30128main ()
30129{
Reid Spencera773bd52006-08-04 18:18:08 +000030130return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030131 ;
30132 return 0;
30133}
30134_ACEOF
30135rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030136if { (ac_try="$ac_link"
30137case "(($ac_try" in
30138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30139 *) ac_try_echo=$ac_try;;
30140esac
30141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30142 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030143 ac_status=$?
30144 grep -v '^ *+' conftest.er1 >conftest.err
30145 rm -f conftest.er1
30146 cat conftest.err >&5
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30150 { (case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30153esac
30154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; } &&
30159 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030160 { (case "(($ac_try" in
30161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30162 *) ac_try_echo=$ac_try;;
30163esac
30164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30165 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030166 ac_status=$?
30167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30168 (exit $ac_status); }; }; then
30169 eval "$as_ac_var=yes"
30170else
30171 echo "$as_me: failed program was:" >&5
30172sed 's/^/| /' conftest.$ac_ext >&5
30173
Reid Spencera773bd52006-08-04 18:18:08 +000030174 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030175fi
Reid Spencera773bd52006-08-04 18:18:08 +000030176
30177rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030178 conftest$ac_exeext conftest.$ac_ext
30179fi
Reid Spencera773bd52006-08-04 18:18:08 +000030180ac_res=`eval echo '${'$as_ac_var'}'`
30181 { echo "$as_me:$LINENO: result: $ac_res" >&5
30182echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030183if test `eval echo '${'$as_ac_var'}'` = yes; then
30184 cat >>confdefs.h <<_ACEOF
30185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30186_ACEOF
30187
30188fi
30189done
30190
30191
Reid Spencerba46ca32004-12-31 05:49:15 +000030192
30193
Chris Lattner0b142592005-11-14 06:57:34 +000030194
Chris Lattner511f11d2005-11-14 07:25:50 +000030195for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030196do
30197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030198{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30200if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030201 echo $ECHO_N "(cached) $ECHO_C" >&6
30202else
30203 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030204/* confdefs.h. */
30205_ACEOF
30206cat confdefs.h >>conftest.$ac_ext
30207cat >>conftest.$ac_ext <<_ACEOF
30208/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30211#define $ac_func innocuous_$ac_func
30212
30213/* System header to define __stub macros and hopefully few prototypes,
30214 which can conflict with char $ac_func (); below.
30215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216 <limits.h> exists even on freestanding compilers. */
30217
30218#ifdef __STDC__
30219# include <limits.h>
30220#else
30221# include <assert.h>
30222#endif
30223
30224#undef $ac_func
30225
Reid Spencera773bd52006-08-04 18:18:08 +000030226/* Override any GCC internal prototype to avoid an error.
30227 Use char because int might match the return type of a GCC
30228 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030229#ifdef __cplusplus
30230extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030231#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030232char $ac_func ();
30233/* The GNU C library defines this for functions which it implements
30234 to always fail with ENOSYS. Some functions are actually named
30235 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030236#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030237choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030238#endif
John Criswell7a73b802003-06-30 21:59:07 +000030239
John Criswell7a73b802003-06-30 21:59:07 +000030240int
30241main ()
30242{
Reid Spencera773bd52006-08-04 18:18:08 +000030243return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030244 ;
30245 return 0;
30246}
30247_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030248rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030249if { (ac_try="$ac_link"
30250case "(($ac_try" in
30251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252 *) ac_try_echo=$ac_try;;
30253esac
30254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30255 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030257 grep -v '^ *+' conftest.er1 >conftest.err
30258 rm -f conftest.er1
30259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30261 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30263 { (case "(($ac_try" in
30264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30265 *) ac_try_echo=$ac_try;;
30266esac
30267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30268 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030272 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030273 { (case "(($ac_try" in
30274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275 *) ac_try_echo=$ac_try;;
30276esac
30277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030282 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030283else
30284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030285sed 's/^/| /' conftest.$ac_ext >&5
30286
Reid Spencera773bd52006-08-04 18:18:08 +000030287 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030288fi
Reid Spencera773bd52006-08-04 18:18:08 +000030289
30290rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030291 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030292fi
Reid Spencera773bd52006-08-04 18:18:08 +000030293ac_res=`eval echo '${'$as_ac_var'}'`
30294 { echo "$as_me:$LINENO: result: $ac_res" >&5
30295echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030296if test `eval echo '${'$as_ac_var'}'` = yes; then
30297 cat >>confdefs.h <<_ACEOF
30298#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030299_ACEOF
30300
30301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030302done
John Criswell7a73b802003-06-30 21:59:07 +000030303
Reid Spencercdb08a32006-06-05 16:11:07 +000030304
30305
30306
30307
30308
30309
30310for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30311do
30312as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030313{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30314echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30315if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030316 echo $ECHO_N "(cached) $ECHO_C" >&6
30317else
30318 cat >conftest.$ac_ext <<_ACEOF
30319/* confdefs.h. */
30320_ACEOF
30321cat confdefs.h >>conftest.$ac_ext
30322cat >>conftest.$ac_ext <<_ACEOF
30323/* end confdefs.h. */
30324/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30326#define $ac_func innocuous_$ac_func
30327
30328/* System header to define __stub macros and hopefully few prototypes,
30329 which can conflict with char $ac_func (); below.
30330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30331 <limits.h> exists even on freestanding compilers. */
30332
30333#ifdef __STDC__
30334# include <limits.h>
30335#else
30336# include <assert.h>
30337#endif
30338
30339#undef $ac_func
30340
Reid Spencera773bd52006-08-04 18:18:08 +000030341/* Override any GCC internal prototype to avoid an error.
30342 Use char because int might match the return type of a GCC
30343 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030344#ifdef __cplusplus
30345extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030346#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030347char $ac_func ();
30348/* The GNU C library defines this for functions which it implements
30349 to always fail with ENOSYS. Some functions are actually named
30350 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030351#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030352choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030353#endif
30354
30355int
30356main ()
30357{
Reid Spencera773bd52006-08-04 18:18:08 +000030358return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030359 ;
30360 return 0;
30361}
30362_ACEOF
30363rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030364if { (ac_try="$ac_link"
30365case "(($ac_try" in
30366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30367 *) ac_try_echo=$ac_try;;
30368esac
30369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30370 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030371 ac_status=$?
30372 grep -v '^ *+' conftest.er1 >conftest.err
30373 rm -f conftest.er1
30374 cat conftest.err >&5
30375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30376 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30378 { (case "(($ac_try" in
30379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30380 *) ac_try_echo=$ac_try;;
30381esac
30382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30383 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030384 ac_status=$?
30385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 (exit $ac_status); }; } &&
30387 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030388 { (case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30391esac
30392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; }; then
30397 eval "$as_ac_var=yes"
30398else
30399 echo "$as_me: failed program was:" >&5
30400sed 's/^/| /' conftest.$ac_ext >&5
30401
Reid Spencera773bd52006-08-04 18:18:08 +000030402 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030403fi
Reid Spencera773bd52006-08-04 18:18:08 +000030404
30405rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030406 conftest$ac_exeext conftest.$ac_ext
30407fi
Reid Spencera773bd52006-08-04 18:18:08 +000030408ac_res=`eval echo '${'$as_ac_var'}'`
30409 { echo "$as_me:$LINENO: result: $ac_res" >&5
30410echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030411if test `eval echo '${'$as_ac_var'}'` = yes; then
30412 cat >>confdefs.h <<_ACEOF
30413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30414_ACEOF
30415
30416fi
30417done
30418
Reid Spencera773bd52006-08-04 18:18:08 +000030419{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30420echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030421if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030422 echo $ECHO_N "(cached) $ECHO_C" >&6
30423else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030424 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030425ac_cpp='$CPP $CPPFLAGS'
30426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30428ac_compiler_gnu=$ac_cv_c_compiler_gnu
30429
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030430 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030431 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030432else
30433 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030434
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030435 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030436_ACEOF
30437cat confdefs.h >>conftest.$ac_ext
30438cat >>conftest.$ac_ext <<_ACEOF
30439/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030440
John Criswella0137d32003-10-13 16:22:01 +000030441#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030442#include <stdlib.h>
30443
John Criswella0137d32003-10-13 16:22:01 +000030444int
30445main ()
30446{
30447
Reid Spencer2706f8c2004-09-19 23:53:36 +000030448volatile double A, B;
30449char Buffer[100];
30450A = 1;
30451A /= 10.0;
30452sprintf(Buffer, "%a", A);
30453B = atof(Buffer);
30454if (A != B)
30455 return (1);
30456if (A != 0x1.999999999999ap-4)
30457 return (1);
30458return (0);
John Criswella0137d32003-10-13 16:22:01 +000030459 ;
30460 return 0;
30461}
30462_ACEOF
30463rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030464if { (ac_try="$ac_link"
30465case "(($ac_try" in
30466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30467 *) ac_try_echo=$ac_try;;
30468esac
30469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30470 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030471 ac_status=$?
30472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30473 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030474 { (case "(($ac_try" in
30475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30476 *) ac_try_echo=$ac_try;;
30477esac
30478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30479 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030480 ac_status=$?
30481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30482 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030483 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030484else
30485 echo "$as_me: program exited with status $ac_status" >&5
30486echo "$as_me: failed program was:" >&5
30487sed 's/^/| /' conftest.$ac_ext >&5
30488
30489( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030490llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030491fi
Reid Spencera773bd52006-08-04 18:18:08 +000030492rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000030493fi
Reid Spencera773bd52006-08-04 18:18:08 +000030494
30495
Reid Spencer2706f8c2004-09-19 23:53:36 +000030496 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030497ac_cpp='$CPP $CPPFLAGS'
30498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30500ac_compiler_gnu=$ac_cv_c_compiler_gnu
30501
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030502fi
Reid Spencera773bd52006-08-04 18:18:08 +000030503{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30504echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030505 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030506
30507cat >>confdefs.h <<\_ACEOF
30508#define HAVE_PRINTF_A 1
30509_ACEOF
30510
Reid Spencer2706f8c2004-09-19 23:53:36 +000030511 fi
John Criswella0137d32003-10-13 16:22:01 +000030512
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030513# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30514# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030515{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30516echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030517if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030518 echo $ECHO_N "(cached) $ECHO_C" >&6
30519else
John Criswell0021c312004-02-13 21:57:29 +000030520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030521/* confdefs.h. */
30522_ACEOF
30523cat confdefs.h >>conftest.$ac_ext
30524cat >>conftest.$ac_ext <<_ACEOF
30525/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030526#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030527int
30528main ()
30529{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030530char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030531 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030532 ;
30533 return 0;
30534}
30535_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030537if { (ac_try="$ac_link"
30538case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541esac
30542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30543 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030545 grep -v '^ *+' conftest.er1 >conftest.err
30546 rm -f conftest.er1
30547 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30551 { (case "(($ac_try" in
30552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30553 *) ac_try_echo=$ac_try;;
30554esac
30555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30556 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030560 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030561 { (case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30564esac
30565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030567 ac_status=$?
30568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030570 ac_cv_working_alloca_h=yes
30571else
30572 echo "$as_me: failed program was:" >&5
30573sed 's/^/| /' conftest.$ac_ext >&5
30574
Reid Spencera773bd52006-08-04 18:18:08 +000030575 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030576fi
Reid Spencera773bd52006-08-04 18:18:08 +000030577
30578rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030579 conftest$ac_exeext conftest.$ac_ext
30580fi
Reid Spencera773bd52006-08-04 18:18:08 +000030581{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30582echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030583if test $ac_cv_working_alloca_h = yes; then
30584
30585cat >>confdefs.h <<\_ACEOF
30586#define HAVE_ALLOCA_H 1
30587_ACEOF
30588
30589fi
30590
Reid Spencera773bd52006-08-04 18:18:08 +000030591{ echo "$as_me:$LINENO: checking for alloca" >&5
30592echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030593if test "${ac_cv_func_alloca_works+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30595else
30596 cat >conftest.$ac_ext <<_ACEOF
30597/* confdefs.h. */
30598_ACEOF
30599cat confdefs.h >>conftest.$ac_ext
30600cat >>conftest.$ac_ext <<_ACEOF
30601/* end confdefs.h. */
30602#ifdef __GNUC__
30603# define alloca __builtin_alloca
30604#else
30605# ifdef _MSC_VER
30606# include <malloc.h>
30607# define alloca _alloca
30608# else
30609# if HAVE_ALLOCA_H
30610# include <alloca.h>
30611# else
30612# ifdef _AIX
30613 #pragma alloca
30614# else
30615# ifndef alloca /* predefined by HP cc +Olibcalls */
30616char *alloca ();
30617# endif
30618# endif
30619# endif
30620# endif
30621#endif
30622
30623int
30624main ()
30625{
30626char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030627 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030628 ;
30629 return 0;
30630}
30631_ACEOF
30632rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030633if { (ac_try="$ac_link"
30634case "(($ac_try" in
30635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30636 *) ac_try_echo=$ac_try;;
30637esac
30638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30639 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030640 ac_status=$?
30641 grep -v '^ *+' conftest.er1 >conftest.err
30642 rm -f conftest.er1
30643 cat conftest.err >&5
30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30645 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30647 { (case "(($ac_try" in
30648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30649 *) ac_try_echo=$ac_try;;
30650esac
30651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30652 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030657 { (case "(($ac_try" in
30658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30659 *) ac_try_echo=$ac_try;;
30660esac
30661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30662 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030663 ac_status=$?
30664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30665 (exit $ac_status); }; }; then
30666 ac_cv_func_alloca_works=yes
30667else
30668 echo "$as_me: failed program was:" >&5
30669sed 's/^/| /' conftest.$ac_ext >&5
30670
Reid Spencera773bd52006-08-04 18:18:08 +000030671 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030672fi
Reid Spencera773bd52006-08-04 18:18:08 +000030673
30674rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030675 conftest$ac_exeext conftest.$ac_ext
30676fi
Reid Spencera773bd52006-08-04 18:18:08 +000030677{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30678echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030679
30680if test $ac_cv_func_alloca_works = yes; then
30681
30682cat >>confdefs.h <<\_ACEOF
30683#define HAVE_ALLOCA 1
30684_ACEOF
30685
30686else
30687 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30688# that cause trouble. Some versions do not even contain alloca or
30689# contain a buggy version. If you still want to use their alloca,
30690# use ar to extract alloca.o from them instead of compiling alloca.c.
30691
Reid Spencera773bd52006-08-04 18:18:08 +000030692ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030693
30694cat >>confdefs.h <<\_ACEOF
30695#define C_ALLOCA 1
30696_ACEOF
30697
30698
Reid Spencera773bd52006-08-04 18:18:08 +000030699{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30700echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030701if test "${ac_cv_os_cray+set}" = set; then
30702 echo $ECHO_N "(cached) $ECHO_C" >&6
30703else
30704 cat >conftest.$ac_ext <<_ACEOF
30705/* confdefs.h. */
30706_ACEOF
30707cat confdefs.h >>conftest.$ac_ext
30708cat >>conftest.$ac_ext <<_ACEOF
30709/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030710#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711webecray
30712#else
30713wenotbecray
30714#endif
30715
30716_ACEOF
30717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30718 $EGREP "webecray" >/dev/null 2>&1; then
30719 ac_cv_os_cray=yes
30720else
30721 ac_cv_os_cray=no
30722fi
30723rm -f conftest*
30724
30725fi
Reid Spencera773bd52006-08-04 18:18:08 +000030726{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30727echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030728if test $ac_cv_os_cray = yes; then
30729 for ac_func in _getb67 GETB67 getb67; do
30730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030731{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30733if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30744#define $ac_func innocuous_$ac_func
30745
30746/* System header to define __stub macros and hopefully few prototypes,
30747 which can conflict with char $ac_func (); below.
30748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30749 <limits.h> exists even on freestanding compilers. */
30750
30751#ifdef __STDC__
30752# include <limits.h>
30753#else
30754# include <assert.h>
30755#endif
30756
30757#undef $ac_func
30758
Reid Spencera773bd52006-08-04 18:18:08 +000030759/* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030762#ifdef __cplusplus
30763extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030764#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030765char $ac_func ();
30766/* The GNU C library defines this for functions which it implements
30767 to always fail with ENOSYS. Some functions are actually named
30768 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030769#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030770choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030771#endif
30772
30773int
30774main ()
30775{
Reid Spencera773bd52006-08-04 18:18:08 +000030776return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030777 ;
30778 return 0;
30779}
30780_ACEOF
30781rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030782if { (ac_try="$ac_link"
30783case "(($ac_try" in
30784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30785 *) ac_try_echo=$ac_try;;
30786esac
30787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30788 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030789 ac_status=$?
30790 grep -v '^ *+' conftest.er1 >conftest.err
30791 rm -f conftest.er1
30792 cat conftest.err >&5
30793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30794 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30796 { (case "(($ac_try" in
30797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30798 *) ac_try_echo=$ac_try;;
30799esac
30800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30801 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030802 ac_status=$?
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); }; } &&
30805 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030806 { (case "(($ac_try" in
30807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30808 *) ac_try_echo=$ac_try;;
30809esac
30810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30811 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030812 ac_status=$?
30813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30814 (exit $ac_status); }; }; then
30815 eval "$as_ac_var=yes"
30816else
30817 echo "$as_me: failed program was:" >&5
30818sed 's/^/| /' conftest.$ac_ext >&5
30819
Reid Spencera773bd52006-08-04 18:18:08 +000030820 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030821fi
Reid Spencera773bd52006-08-04 18:18:08 +000030822
30823rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030824 conftest$ac_exeext conftest.$ac_ext
30825fi
Reid Spencera773bd52006-08-04 18:18:08 +000030826ac_res=`eval echo '${'$as_ac_var'}'`
30827 { echo "$as_me:$LINENO: result: $ac_res" >&5
30828echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030829if test `eval echo '${'$as_ac_var'}'` = yes; then
30830
30831cat >>confdefs.h <<_ACEOF
30832#define CRAY_STACKSEG_END $ac_func
30833_ACEOF
30834
30835 break
30836fi
30837
30838 done
30839fi
30840
Reid Spencera773bd52006-08-04 18:18:08 +000030841{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30842echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030843if test "${ac_cv_c_stack_direction+set}" = set; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845else
30846 if test "$cross_compiling" = yes; then
30847 ac_cv_c_stack_direction=0
30848else
30849 cat >conftest.$ac_ext <<_ACEOF
30850/* confdefs.h. */
30851_ACEOF
30852cat confdefs.h >>conftest.$ac_ext
30853cat >>conftest.$ac_ext <<_ACEOF
30854/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030855$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030856int
30857find_stack_direction ()
30858{
30859 static char *addr = 0;
30860 auto char dummy;
30861 if (addr == 0)
30862 {
30863 addr = &dummy;
30864 return find_stack_direction ();
30865 }
John Criswell0021c312004-02-13 21:57:29 +000030866 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030867 return (&dummy > addr) ? 1 : -1;
30868}
John Criswell0021c312004-02-13 21:57:29 +000030869
John Criswell0021c312004-02-13 21:57:29 +000030870int
30871main ()
30872{
Reid Spencera773bd52006-08-04 18:18:08 +000030873 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030874}
30875_ACEOF
30876rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030877if { (ac_try="$ac_link"
30878case "(($ac_try" in
30879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30880 *) ac_try_echo=$ac_try;;
30881esac
30882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30883 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030884 ac_status=$?
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030887 { (case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30890esac
30891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030893 ac_status=$?
30894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30895 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030896 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030897else
30898 echo "$as_me: program exited with status $ac_status" >&5
30899echo "$as_me: failed program was:" >&5
30900sed 's/^/| /' conftest.$ac_ext >&5
30901
30902( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030903ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030904fi
Reid Spencera773bd52006-08-04 18:18:08 +000030905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000030906fi
Reid Spencera773bd52006-08-04 18:18:08 +000030907
30908
John Criswell0021c312004-02-13 21:57:29 +000030909fi
Reid Spencera773bd52006-08-04 18:18:08 +000030910{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30911echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030912
30913cat >>confdefs.h <<_ACEOF
30914#define STACK_DIRECTION $ac_cv_c_stack_direction
30915_ACEOF
30916
30917
John Criswell0021c312004-02-13 21:57:29 +000030918fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030919
30920
Reid Spencera773bd52006-08-04 18:18:08 +000030921{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30922echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030923if test "${ac_cv_func_rand48+set}" = set; then
30924 echo $ECHO_N "(cached) $ECHO_C" >&6
30925else
Reid Spencera773bd52006-08-04 18:18:08 +000030926 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030927ac_cpp='$CXXCPP $CPPFLAGS'
30928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30931
30932 cat >conftest.$ac_ext <<_ACEOF
30933/* confdefs.h. */
30934_ACEOF
30935cat confdefs.h >>conftest.$ac_ext
30936cat >>conftest.$ac_ext <<_ACEOF
30937/* end confdefs.h. */
30938#include <stdlib.h>
30939int
30940main ()
30941{
30942srand48(0);lrand48();drand48();
30943 ;
30944 return 0;
30945}
30946_ACEOF
30947rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030948if { (ac_try="$ac_compile"
30949case "(($ac_try" in
30950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30951 *) ac_try_echo=$ac_try;;
30952esac
30953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30954 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030955 ac_status=$?
30956 grep -v '^ *+' conftest.er1 >conftest.err
30957 rm -f conftest.er1
30958 cat conftest.err >&5
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30962 { (case "(($ac_try" in
30963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30964 *) ac_try_echo=$ac_try;;
30965esac
30966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30967 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030968 ac_status=$?
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; } &&
30971 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030972 { (case "(($ac_try" in
30973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30974 *) ac_try_echo=$ac_try;;
30975esac
30976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30977 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30981 ac_cv_func_rand48=yes
30982else
30983 echo "$as_me: failed program was:" >&5
30984sed 's/^/| /' conftest.$ac_ext >&5
30985
Reid Spencera773bd52006-08-04 18:18:08 +000030986 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030987fi
Reid Spencera773bd52006-08-04 18:18:08 +000030988
30989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030990 ac_ext=c
30991ac_cpp='$CPP $CPPFLAGS'
30992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30994ac_compiler_gnu=$ac_cv_c_compiler_gnu
30995
30996fi
Reid Spencera773bd52006-08-04 18:18:08 +000030997{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30998echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030999
31000if test "$ac_cv_func_rand48" = "yes" ; then
31001
31002cat >>confdefs.h <<\_ACEOF
31003#define HAVE_RAND48 1
31004_ACEOF
31005
31006fi
John Criswell0021c312004-02-13 21:57:29 +000031007
31008
Reid Spencera773bd52006-08-04 18:18:08 +000031009{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31010echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031011if test "${ac_cv_cxx_namespaces+set}" = set; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31013else
Reid Spencera773bd52006-08-04 18:18:08 +000031014 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031015ac_cpp='$CXXCPP $CPPFLAGS'
31016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31019
31020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031021/* confdefs.h. */
31022_ACEOF
31023cat confdefs.h >>conftest.$ac_ext
31024cat >>conftest.$ac_ext <<_ACEOF
31025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031026namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031027int
31028main ()
31029{
31030using namespace Outer::Inner; return i;
31031 ;
31032 return 0;
31033}
31034_ACEOF
31035rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031036if { (ac_try="$ac_compile"
31037case "(($ac_try" in
31038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31039 *) ac_try_echo=$ac_try;;
31040esac
31041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31042 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031043 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031044 grep -v '^ *+' conftest.er1 >conftest.err
31045 rm -f conftest.er1
31046 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31048 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031049 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31050 { (case "(($ac_try" in
31051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31052 *) ac_try_echo=$ac_try;;
31053esac
31054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31055 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; } &&
31059 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031060 { (case "(($ac_try" in
31061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31062 *) ac_try_echo=$ac_try;;
31063esac
31064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31065 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031066 ac_status=$?
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); }; }; then
31069 ac_cv_cxx_namespaces=yes
31070else
31071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031072sed 's/^/| /' conftest.$ac_ext >&5
31073
Reid Spencera773bd52006-08-04 18:18:08 +000031074 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031075fi
Reid Spencera773bd52006-08-04 18:18:08 +000031076
31077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031078 ac_ext=c
31079ac_cpp='$CPP $CPPFLAGS'
31080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31082ac_compiler_gnu=$ac_cv_c_compiler_gnu
31083
31084
31085fi
Reid Spencera773bd52006-08-04 18:18:08 +000031086{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31087echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031088if test "$ac_cv_cxx_namespaces" = yes; then
31089
31090cat >>confdefs.h <<\_ACEOF
31091#define HAVE_NAMESPACES
31092_ACEOF
31093
31094fi
31095
Reid Spencera773bd52006-08-04 18:18:08 +000031096{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31097echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031098if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031099 echo $ECHO_N "(cached) $ECHO_C" >&6
31100else
31101
Reid Spencera773bd52006-08-04 18:18:08 +000031102 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031103ac_cpp='$CXXCPP $CPPFLAGS'
31104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31107
31108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031109/* confdefs.h. */
31110_ACEOF
31111cat confdefs.h >>conftest.$ac_ext
31112cat >>conftest.$ac_ext <<_ACEOF
31113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031114#include <ext/hash_map>
31115#ifdef HAVE_NAMESPACES
31116using namespace std;
31117#endif
John Criswell7a73b802003-06-30 21:59:07 +000031118int
31119main ()
31120{
Brian Gaeke90583492003-11-10 03:06:28 +000031121hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031122 ;
31123 return 0;
31124}
31125_ACEOF
31126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031127if { (ac_try="$ac_compile"
31128case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31131esac
31132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031134 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031135 grep -v '^ *+' conftest.er1 >conftest.err
31136 rm -f conftest.er1
31137 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31141 { (case "(($ac_try" in
31142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31143 *) ac_try_echo=$ac_try;;
31144esac
31145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31146 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031147 ac_status=$?
31148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149 (exit $ac_status); }; } &&
31150 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031151 { (case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31154esac
31155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031160 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031161else
31162 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031163sed 's/^/| /' conftest.$ac_ext >&5
31164
Reid Spencera773bd52006-08-04 18:18:08 +000031165 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031166fi
Reid Spencera773bd52006-08-04 18:18:08 +000031167
31168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031169 ac_ext=c
31170ac_cpp='$CPP $CPPFLAGS'
31171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31173ac_compiler_gnu=$ac_cv_c_compiler_gnu
31174
John Criswell7a73b802003-06-30 21:59:07 +000031175fi
Reid Spencera773bd52006-08-04 18:18:08 +000031176{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31177echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031178 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31179 then
John Criswell9f011862004-09-24 18:28:00 +000031180
31181cat >>confdefs.h <<\_ACEOF
31182#define HAVE_STD_EXT_HASH_MAP 1
31183_ACEOF
31184
31185 else
31186
31187cat >>confdefs.h <<\_ACEOF
31188#define HAVE_STD_EXT_HASH_MAP 0
31189_ACEOF
31190
Brian Gaeke90583492003-11-10 03:06:28 +000031191 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031192
Reid Spencera773bd52006-08-04 18:18:08 +000031193 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31194echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031195if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31196 echo $ECHO_N "(cached) $ECHO_C" >&6
31197else
31198
Reid Spencera773bd52006-08-04 18:18:08 +000031199 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031200ac_cpp='$CXXCPP $CPPFLAGS'
31201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31204
31205 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031206/* confdefs.h. */
31207_ACEOF
31208cat confdefs.h >>conftest.$ac_ext
31209cat >>conftest.$ac_ext <<_ACEOF
31210/* end confdefs.h. */
31211#include <ext/hash_map>
31212#ifdef HAVE_NAMESPACES
31213using namespace __gnu_cxx;
31214#endif
31215int
31216main ()
31217{
31218hash_map<int,int> t;
31219 ;
31220 return 0;
31221}
31222_ACEOF
31223rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031224if { (ac_try="$ac_compile"
31225case "(($ac_try" in
31226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31227 *) ac_try_echo=$ac_try;;
31228esac
31229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31230 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031232 grep -v '^ *+' conftest.er1 >conftest.err
31233 rm -f conftest.er1
31234 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31238 { (case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31241esac
31242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031244 ac_status=$?
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; } &&
31247 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031248 { (case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31251esac
31252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031254 ac_status=$?
31255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31256 (exit $ac_status); }; }; then
31257 ac_cv_cxx_have_gnu_ext_hash_map=yes
31258else
31259 echo "$as_me: failed program was:" >&5
31260sed 's/^/| /' conftest.$ac_ext >&5
31261
Reid Spencera773bd52006-08-04 18:18:08 +000031262 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031263fi
Reid Spencera773bd52006-08-04 18:18:08 +000031264
31265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031266 ac_ext=c
31267ac_cpp='$CPP $CPPFLAGS'
31268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31270ac_compiler_gnu=$ac_cv_c_compiler_gnu
31271
31272fi
Reid Spencera773bd52006-08-04 18:18:08 +000031273{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31274echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031275 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31276 then
John Criswell9f011862004-09-24 18:28:00 +000031277
31278cat >>confdefs.h <<\_ACEOF
31279#define HAVE_GNU_EXT_HASH_MAP 1
31280_ACEOF
31281
31282 else
31283
31284cat >>confdefs.h <<\_ACEOF
31285#define HAVE_GNU_EXT_HASH_MAP 0
31286_ACEOF
31287
Brian Gaeke90583492003-11-10 03:06:28 +000031288 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031289
Reid Spencera773bd52006-08-04 18:18:08 +000031290 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31291echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031292if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31293 echo $ECHO_N "(cached) $ECHO_C" >&6
31294else
John Criswell7a73b802003-06-30 21:59:07 +000031295
Reid Spencera773bd52006-08-04 18:18:08 +000031296 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031297ac_cpp='$CXXCPP $CPPFLAGS'
31298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31301
31302 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031303/* confdefs.h. */
31304_ACEOF
31305cat confdefs.h >>conftest.$ac_ext
31306cat >>conftest.$ac_ext <<_ACEOF
31307/* end confdefs.h. */
31308#include <hash_map>
31309int
31310main ()
31311{
31312hash_map<int,int> t;
31313 ;
31314 return 0;
31315}
31316_ACEOF
31317rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031318if { (ac_try="$ac_compile"
31319case "(($ac_try" in
31320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31321 *) ac_try_echo=$ac_try;;
31322esac
31323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31324 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031326 grep -v '^ *+' conftest.er1 >conftest.err
31327 rm -f conftest.er1
31328 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31332 { (case "(($ac_try" in
31333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334 *) ac_try_echo=$ac_try;;
31335esac
31336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031338 ac_status=$?
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); }; } &&
31341 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031342 { (case "(($ac_try" in
31343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31344 *) ac_try_echo=$ac_try;;
31345esac
31346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31347 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031348 ac_status=$?
31349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31350 (exit $ac_status); }; }; then
31351 ac_cv_cxx_have_global_hash_map=yes
31352else
31353 echo "$as_me: failed program was:" >&5
31354sed 's/^/| /' conftest.$ac_ext >&5
31355
Reid Spencera773bd52006-08-04 18:18:08 +000031356 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031357fi
Reid Spencera773bd52006-08-04 18:18:08 +000031358
31359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031360 ac_ext=c
31361ac_cpp='$CPP $CPPFLAGS'
31362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31364ac_compiler_gnu=$ac_cv_c_compiler_gnu
31365
31366fi
Reid Spencera773bd52006-08-04 18:18:08 +000031367{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31368echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031369 if test "$ac_cv_cxx_have_global_hash_map" = yes
31370 then
John Criswell9f011862004-09-24 18:28:00 +000031371
31372cat >>confdefs.h <<\_ACEOF
31373#define HAVE_GLOBAL_HASH_MAP 1
31374_ACEOF
31375
31376 else
31377
31378cat >>confdefs.h <<\_ACEOF
31379#define HAVE_GLOBAL_HASH_MAP 0
31380_ACEOF
31381
Brian Gaeke90583492003-11-10 03:06:28 +000031382 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031383
Reid Spencera773bd52006-08-04 18:18:08 +000031384{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31385echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031386if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031387 echo $ECHO_N "(cached) $ECHO_C" >&6
31388else
31389
Reid Spencera773bd52006-08-04 18:18:08 +000031390 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031391ac_cpp='$CXXCPP $CPPFLAGS'
31392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31395
31396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031397/* confdefs.h. */
31398_ACEOF
31399cat confdefs.h >>conftest.$ac_ext
31400cat >>conftest.$ac_ext <<_ACEOF
31401/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031402#include <ext/hash_set>
31403#ifdef HAVE_NAMESPACES
31404using namespace std;
31405#endif
John Criswell7a73b802003-06-30 21:59:07 +000031406int
31407main ()
31408{
Brian Gaeke90583492003-11-10 03:06:28 +000031409hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031410 ;
31411 return 0;
31412}
31413_ACEOF
31414rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031415if { (ac_try="$ac_compile"
31416case "(($ac_try" in
31417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31418 *) ac_try_echo=$ac_try;;
31419esac
31420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31421 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31429 { (case "(($ac_try" in
31430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31431 *) ac_try_echo=$ac_try;;
31432esac
31433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31434 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } &&
31438 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031439 { (case "(($ac_try" in
31440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441 *) ac_try_echo=$ac_try;;
31442esac
31443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31444 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031445 ac_status=$?
31446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31447 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031448 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031449else
31450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031451sed 's/^/| /' conftest.$ac_ext >&5
31452
Reid Spencera773bd52006-08-04 18:18:08 +000031453 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031454fi
Reid Spencera773bd52006-08-04 18:18:08 +000031455
31456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031457 ac_ext=c
31458ac_cpp='$CPP $CPPFLAGS'
31459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31461ac_compiler_gnu=$ac_cv_c_compiler_gnu
31462
31463fi
Reid Spencera773bd52006-08-04 18:18:08 +000031464{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31465echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031466 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31467 then
John Criswell9f011862004-09-24 18:28:00 +000031468
31469cat >>confdefs.h <<\_ACEOF
31470#define HAVE_STD_EXT_HASH_SET 1
31471_ACEOF
31472
31473 else
31474
31475cat >>confdefs.h <<\_ACEOF
31476#define HAVE_STD_EXT_HASH_SET 0
31477_ACEOF
31478
Brian Gaeke90583492003-11-10 03:06:28 +000031479 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031480
Reid Spencera773bd52006-08-04 18:18:08 +000031481 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31482echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031483if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31484 echo $ECHO_N "(cached) $ECHO_C" >&6
31485else
31486
Reid Spencera773bd52006-08-04 18:18:08 +000031487 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031488ac_cpp='$CXXCPP $CPPFLAGS'
31489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31492
John Criswell7a73b802003-06-30 21:59:07 +000031493 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031494/* confdefs.h. */
31495_ACEOF
31496cat confdefs.h >>conftest.$ac_ext
31497cat >>conftest.$ac_ext <<_ACEOF
31498/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031499#include <ext/hash_set>
31500#ifdef HAVE_NAMESPACES
31501using namespace __gnu_cxx;
31502#endif
John Criswell7a73b802003-06-30 21:59:07 +000031503int
31504main ()
31505{
Brian Gaeke90583492003-11-10 03:06:28 +000031506hash_set<int> t;
31507 ;
31508 return 0;
31509}
31510_ACEOF
31511rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031512if { (ac_try="$ac_compile"
31513case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31524 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
31545 ac_cv_cxx_have_gnu_ext_hash_set=yes
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
Reid Spencera773bd52006-08-04 18:18:08 +000031550 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
31553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031554 ac_ext=c
31555ac_cpp='$CPP $CPPFLAGS'
31556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31558ac_compiler_gnu=$ac_cv_c_compiler_gnu
31559
31560fi
Reid Spencera773bd52006-08-04 18:18:08 +000031561{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31562echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031563 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31564 then
John Criswell9f011862004-09-24 18:28:00 +000031565
31566cat >>confdefs.h <<\_ACEOF
31567#define HAVE_GNU_EXT_HASH_SET 1
31568_ACEOF
31569
31570 else
31571
31572cat >>confdefs.h <<\_ACEOF
31573#define HAVE_GNU_EXT_HASH_SET 0
31574_ACEOF
31575
Brian Gaeke90583492003-11-10 03:06:28 +000031576 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031577
Reid Spencera773bd52006-08-04 18:18:08 +000031578 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31579echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031580if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31581 echo $ECHO_N "(cached) $ECHO_C" >&6
31582else
31583
Reid Spencera773bd52006-08-04 18:18:08 +000031584 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031585ac_cpp='$CXXCPP $CPPFLAGS'
31586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31589
31590 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031591/* confdefs.h. */
31592_ACEOF
31593cat confdefs.h >>conftest.$ac_ext
31594cat >>conftest.$ac_ext <<_ACEOF
31595/* end confdefs.h. */
31596#include <hash_set>
31597int
31598main ()
31599{
John Criswell7a73b802003-06-30 21:59:07 +000031600hash_set<int> t; return 0;
31601 ;
31602 return 0;
31603}
31604_ACEOF
31605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031606if { (ac_try="$ac_compile"
31607case "(($ac_try" in
31608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31609 *) ac_try_echo=$ac_try;;
31610esac
31611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31612 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031614 grep -v '^ *+' conftest.er1 >conftest.err
31615 rm -f conftest.er1
31616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31618 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31620 { (case "(($ac_try" in
31621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31622 *) ac_try_echo=$ac_try;;
31623esac
31624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31625 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031626 ac_status=$?
31627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31628 (exit $ac_status); }; } &&
31629 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031630 { (case "(($ac_try" in
31631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31632 *) ac_try_echo=$ac_try;;
31633esac
31634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31635 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031639 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031640else
31641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031642sed 's/^/| /' conftest.$ac_ext >&5
31643
Reid Spencera773bd52006-08-04 18:18:08 +000031644 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031645fi
Reid Spencera773bd52006-08-04 18:18:08 +000031646
31647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031648 ac_ext=c
31649ac_cpp='$CPP $CPPFLAGS'
31650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31652ac_compiler_gnu=$ac_cv_c_compiler_gnu
31653
John Criswell7a73b802003-06-30 21:59:07 +000031654fi
Reid Spencera773bd52006-08-04 18:18:08 +000031655{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31656echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031657 if test "$ac_cv_cxx_have_global_hash_set" = yes
31658 then
John Criswell9f011862004-09-24 18:28:00 +000031659
31660cat >>confdefs.h <<\_ACEOF
31661#define HAVE_GLOBAL_HASH_SET 1
31662_ACEOF
31663
31664 else
31665
31666cat >>confdefs.h <<\_ACEOF
31667#define HAVE_GLOBAL_HASH_SET 0
31668_ACEOF
31669
Brian Gaeke90583492003-11-10 03:06:28 +000031670 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031671
Reid Spencera773bd52006-08-04 18:18:08 +000031672{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31673echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031674if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31675 echo $ECHO_N "(cached) $ECHO_C" >&6
31676else
31677
Reid Spencera773bd52006-08-04 18:18:08 +000031678 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031679ac_cpp='$CXXCPP $CPPFLAGS'
31680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31683
31684 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031685/* confdefs.h. */
31686_ACEOF
31687cat confdefs.h >>conftest.$ac_ext
31688cat >>conftest.$ac_ext <<_ACEOF
31689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031690#include <iterator>
31691#ifdef HAVE_NAMESPACES
31692using namespace std;
31693#endif
John Criswell7a73b802003-06-30 21:59:07 +000031694int
31695main ()
31696{
31697iterator<int,int,int> t; return 0;
31698 ;
31699 return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031703if { (ac_try="$ac_compile"
31704case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31709 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031711 grep -v '^ *+' conftest.er1 >conftest.err
31712 rm -f conftest.er1
31713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031716 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31717 { (case "(($ac_try" in
31718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31719 *) ac_try_echo=$ac_try;;
31720esac
31721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31722 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031723 ac_status=$?
31724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31725 (exit $ac_status); }; } &&
31726 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031727 { (case "(($ac_try" in
31728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31729 *) ac_try_echo=$ac_try;;
31730esac
31731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31732 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; }; then
31736 ac_cv_cxx_have_std_iterator=yes
31737else
31738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031739sed 's/^/| /' conftest.$ac_ext >&5
31740
Reid Spencera773bd52006-08-04 18:18:08 +000031741 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031742fi
Reid Spencera773bd52006-08-04 18:18:08 +000031743
31744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031745 ac_ext=c
31746ac_cpp='$CPP $CPPFLAGS'
31747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31749ac_compiler_gnu=$ac_cv_c_compiler_gnu
31750
31751
31752fi
Reid Spencera773bd52006-08-04 18:18:08 +000031753{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31754echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031755if test "$ac_cv_cxx_have_std_iterator" = yes
31756then
John Criswell40468462004-09-24 21:19:06 +000031757
31758cat >>confdefs.h <<\_ACEOF
31759#define HAVE_STD_ITERATOR 1
31760_ACEOF
31761
31762else
31763
31764cat >>confdefs.h <<\_ACEOF
31765#define HAVE_STD_ITERATOR 0
31766_ACEOF
31767
John Criswell7a73b802003-06-30 21:59:07 +000031768fi
31769
Reid Spencera773bd52006-08-04 18:18:08 +000031770{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31771echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031772if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31773 echo $ECHO_N "(cached) $ECHO_C" >&6
31774else
31775
Reid Spencera773bd52006-08-04 18:18:08 +000031776 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031777ac_cpp='$CXXCPP $CPPFLAGS'
31778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31781
31782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031783/* confdefs.h. */
31784_ACEOF
31785cat confdefs.h >>conftest.$ac_ext
31786cat >>conftest.$ac_ext <<_ACEOF
31787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031788#include <iterator>
31789#ifdef HAVE_NAMESPACES
31790using namespace std;
31791#endif
John Criswell7a73b802003-06-30 21:59:07 +000031792int
31793main ()
31794{
John Criswellc78022e2003-07-29 19:11:58 +000031795bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031801if { (ac_try="$ac_compile"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_cv_cxx_have_bi_iterator=yes
31835else
31836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031837sed 's/^/| /' conftest.$ac_ext >&5
31838
Reid Spencera773bd52006-08-04 18:18:08 +000031839 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031840fi
Reid Spencera773bd52006-08-04 18:18:08 +000031841
31842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031843 ac_ext=c
31844ac_cpp='$CPP $CPPFLAGS'
31845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847ac_compiler_gnu=$ac_cv_c_compiler_gnu
31848
31849
31850fi
Reid Spencera773bd52006-08-04 18:18:08 +000031851{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31852echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031853if test "$ac_cv_cxx_have_bi_iterator" = yes
31854then
John Criswell40468462004-09-24 21:19:06 +000031855
31856cat >>confdefs.h <<\_ACEOF
31857#define HAVE_BI_ITERATOR 1
31858_ACEOF
31859
31860else
31861
31862cat >>confdefs.h <<\_ACEOF
31863#define HAVE_BI_ITERATOR 0
31864_ACEOF
31865
John Criswell7a73b802003-06-30 21:59:07 +000031866fi
31867
Reid Spencera773bd52006-08-04 18:18:08 +000031868{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31869echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031870if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31871 echo $ECHO_N "(cached) $ECHO_C" >&6
31872else
31873
Reid Spencera773bd52006-08-04 18:18:08 +000031874 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031875ac_cpp='$CXXCPP $CPPFLAGS'
31876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31879
31880 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031881/* confdefs.h. */
31882_ACEOF
31883cat confdefs.h >>conftest.$ac_ext
31884cat >>conftest.$ac_ext <<_ACEOF
31885/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031886#include <iterator>
31887#ifdef HAVE_NAMESPACES
31888using namespace std;
31889#endif
John Criswell7a73b802003-06-30 21:59:07 +000031890int
31891main ()
31892{
John Criswellc78022e2003-07-29 19:11:58 +000031893forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031894 ;
31895 return 0;
31896}
31897_ACEOF
31898rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031899if { (ac_try="$ac_compile"
31900case "(($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_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031906 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031907 grep -v '^ *+' conftest.er1 >conftest.err
31908 rm -f conftest.er1
31909 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31913 { (case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031919 ac_status=$?
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; } &&
31922 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031923 { (case "(($ac_try" in
31924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31925 *) ac_try_echo=$ac_try;;
31926esac
31927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31928 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; }; then
31932 ac_cv_cxx_have_fwd_iterator=yes
31933else
31934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031935sed 's/^/| /' conftest.$ac_ext >&5
31936
Reid Spencera773bd52006-08-04 18:18:08 +000031937 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031938fi
Reid Spencera773bd52006-08-04 18:18:08 +000031939
31940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031941 ac_ext=c
31942ac_cpp='$CPP $CPPFLAGS'
31943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31945ac_compiler_gnu=$ac_cv_c_compiler_gnu
31946
31947
31948fi
Reid Spencera773bd52006-08-04 18:18:08 +000031949{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31950echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031951if test "$ac_cv_cxx_have_fwd_iterator" = yes
31952then
John Criswell40468462004-09-24 21:19:06 +000031953
31954cat >>confdefs.h <<\_ACEOF
31955#define HAVE_FWD_ITERATOR 1
31956_ACEOF
31957
31958else
31959
31960cat >>confdefs.h <<\_ACEOF
31961#define HAVE_FWD_ITERATOR 0
31962_ACEOF
31963
John Criswell7a73b802003-06-30 21:59:07 +000031964fi
31965
31966
Reid Spencera773bd52006-08-04 18:18:08 +000031967{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31968echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031969if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31971else
Reid Spencera773bd52006-08-04 18:18:08 +000031972 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031973ac_cpp='$CXXCPP $CPPFLAGS'
31974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31977
Reid Spencerabec8f92004-10-27 23:03:44 +000031978 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031979/* confdefs.h. */
31980_ACEOF
31981cat confdefs.h >>conftest.$ac_ext
31982cat >>conftest.$ac_ext <<_ACEOF
31983/* end confdefs.h. */
31984#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031985int
31986main ()
31987{
31988float f; isnan(f);
31989 ;
31990 return 0;
31991}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031992_ACEOF
31993rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031994if { (ac_try="$ac_compile"
31995case "(($ac_try" in
31996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997 *) ac_try_echo=$ac_try;;
31998esac
31999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032002 grep -v '^ *+' conftest.er1 >conftest.err
32003 rm -f conftest.er1
32004 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32008 { (case "(($ac_try" in
32009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32010 *) ac_try_echo=$ac_try;;
32011esac
32012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32013 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032014 ac_status=$?
32015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32016 (exit $ac_status); }; } &&
32017 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032018 { (case "(($ac_try" in
32019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32020 *) ac_try_echo=$ac_try;;
32021esac
32022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32023 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032024 ac_status=$?
32025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026 (exit $ac_status); }; }; then
32027 ac_cv_func_isnan_in_math_h=yes
32028else
32029 echo "$as_me: failed program was:" >&5
32030sed 's/^/| /' conftest.$ac_ext >&5
32031
Reid Spencera773bd52006-08-04 18:18:08 +000032032 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032033fi
Reid Spencera773bd52006-08-04 18:18:08 +000032034
32035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032036 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032037ac_cpp='$CPP $CPPFLAGS'
32038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32040ac_compiler_gnu=$ac_cv_c_compiler_gnu
32041
32042fi
Reid Spencera773bd52006-08-04 18:18:08 +000032043{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32044echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032045
32046
32047if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032048
32049cat >>confdefs.h <<\_ACEOF
32050#define HAVE_ISNAN_IN_MATH_H 1
32051_ACEOF
32052
Reid Spencerabec8f92004-10-27 23:03:44 +000032053fi
32054
Reid Spencera773bd52006-08-04 18:18:08 +000032055{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32056echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032057if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32058 echo $ECHO_N "(cached) $ECHO_C" >&6
32059else
Reid Spencera773bd52006-08-04 18:18:08 +000032060 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032061ac_cpp='$CXXCPP $CPPFLAGS'
32062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32065
Reid Spencerabec8f92004-10-27 23:03:44 +000032066 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032067/* confdefs.h. */
32068_ACEOF
32069cat confdefs.h >>conftest.$ac_ext
32070cat >>conftest.$ac_ext <<_ACEOF
32071/* end confdefs.h. */
32072#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032073int
32074main ()
32075{
32076float f; isnan(f);
32077 ;
32078 return 0;
32079}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032080_ACEOF
32081rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032082if { (ac_try="$ac_compile"
32083case "(($ac_try" in
32084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085 *) ac_try_echo=$ac_try;;
32086esac
32087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032090 grep -v '^ *+' conftest.er1 >conftest.err
32091 rm -f conftest.er1
32092 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32094 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32096 { (case "(($ac_try" in
32097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32098 *) ac_try_echo=$ac_try;;
32099esac
32100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32101 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032102 ac_status=$?
32103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32104 (exit $ac_status); }; } &&
32105 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032106 { (case "(($ac_try" in
32107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32108 *) ac_try_echo=$ac_try;;
32109esac
32110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32111 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_cv_func_isnan_in_cmath=yes
32116else
32117 echo "$as_me: failed program was:" >&5
32118sed 's/^/| /' conftest.$ac_ext >&5
32119
Reid Spencera773bd52006-08-04 18:18:08 +000032120 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032121fi
Reid Spencera773bd52006-08-04 18:18:08 +000032122
32123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032124 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032125ac_cpp='$CPP $CPPFLAGS'
32126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32128ac_compiler_gnu=$ac_cv_c_compiler_gnu
32129
32130fi
Reid Spencera773bd52006-08-04 18:18:08 +000032131{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32132echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032133
32134if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032135
32136cat >>confdefs.h <<\_ACEOF
32137#define HAVE_ISNAN_IN_CMATH 1
32138_ACEOF
32139
Reid Spencerabec8f92004-10-27 23:03:44 +000032140fi
32141
Reid Spencera773bd52006-08-04 18:18:08 +000032142{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32143echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032144if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
32146else
Reid Spencera773bd52006-08-04 18:18:08 +000032147 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032148ac_cpp='$CXXCPP $CPPFLAGS'
32149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32152
Reid Spencerabec8f92004-10-27 23:03:44 +000032153 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032154/* confdefs.h. */
32155_ACEOF
32156cat confdefs.h >>conftest.$ac_ext
32157cat >>conftest.$ac_ext <<_ACEOF
32158/* end confdefs.h. */
32159#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032160int
32161main ()
32162{
32163float f; std::isnan(f);
32164 ;
32165 return 0;
32166}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032167_ACEOF
32168rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032169if { (ac_try="$ac_compile"
32170case "(($ac_try" in
32171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32172 *) ac_try_echo=$ac_try;;
32173esac
32174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32175 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032177 grep -v '^ *+' conftest.er1 >conftest.err
32178 rm -f conftest.er1
32179 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32181 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32183 { (case "(($ac_try" in
32184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185 *) ac_try_echo=$ac_try;;
32186esac
32187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032193 { (case "(($ac_try" in
32194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32195 *) ac_try_echo=$ac_try;;
32196esac
32197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32198 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032199 ac_status=$?
32200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32201 (exit $ac_status); }; }; then
32202 ac_cv_func_std_isnan_in_cmath=yes
32203else
32204 echo "$as_me: failed program was:" >&5
32205sed 's/^/| /' conftest.$ac_ext >&5
32206
Reid Spencera773bd52006-08-04 18:18:08 +000032207 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032208fi
Reid Spencera773bd52006-08-04 18:18:08 +000032209
32210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032211 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032212ac_cpp='$CPP $CPPFLAGS'
32213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32215ac_compiler_gnu=$ac_cv_c_compiler_gnu
32216
32217fi
Reid Spencera773bd52006-08-04 18:18:08 +000032218{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32219echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032220
32221if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032222
32223cat >>confdefs.h <<\_ACEOF
32224#define HAVE_STD_ISNAN_IN_CMATH 1
32225_ACEOF
32226
Reid Spencerabec8f92004-10-27 23:03:44 +000032227fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032228
32229
Reid Spencera773bd52006-08-04 18:18:08 +000032230{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32231echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032232if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32233 echo $ECHO_N "(cached) $ECHO_C" >&6
32234else
Reid Spencera773bd52006-08-04 18:18:08 +000032235 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032236ac_cpp='$CXXCPP $CPPFLAGS'
32237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32240
Reid Spencerabec8f92004-10-27 23:03:44 +000032241 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032242/* confdefs.h. */
32243_ACEOF
32244cat confdefs.h >>conftest.$ac_ext
32245cat >>conftest.$ac_ext <<_ACEOF
32246/* end confdefs.h. */
32247#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032248int
32249main ()
32250{
32251float f; isinf(f);
32252 ;
32253 return 0;
32254}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032255_ACEOF
32256rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032257if { (ac_try="$ac_compile"
32258case "(($ac_try" in
32259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260 *) ac_try_echo=$ac_try;;
32261esac
32262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032264 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032265 grep -v '^ *+' conftest.er1 >conftest.err
32266 rm -f conftest.er1
32267 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32271 { (case "(($ac_try" in
32272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32273 *) ac_try_echo=$ac_try;;
32274esac
32275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32276 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032277 ac_status=$?
32278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32279 (exit $ac_status); }; } &&
32280 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032281 { (case "(($ac_try" in
32282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32283 *) ac_try_echo=$ac_try;;
32284esac
32285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32286 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; }; then
32290 ac_cv_func_isinf_in_math_h=yes
32291else
32292 echo "$as_me: failed program was:" >&5
32293sed 's/^/| /' conftest.$ac_ext >&5
32294
Reid Spencera773bd52006-08-04 18:18:08 +000032295 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032296fi
Reid Spencera773bd52006-08-04 18:18:08 +000032297
32298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032299 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032300ac_cpp='$CPP $CPPFLAGS'
32301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32303ac_compiler_gnu=$ac_cv_c_compiler_gnu
32304
32305fi
Reid Spencera773bd52006-08-04 18:18:08 +000032306{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32307echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032308
32309if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032310
32311cat >>confdefs.h <<\_ACEOF
32312#define HAVE_ISINF_IN_MATH_H 1
32313_ACEOF
32314
Reid Spencerabec8f92004-10-27 23:03:44 +000032315fi
32316
Reid Spencera773bd52006-08-04 18:18:08 +000032317{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32318echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032319if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
Reid Spencera773bd52006-08-04 18:18:08 +000032322 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032323ac_cpp='$CXXCPP $CPPFLAGS'
32324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32327
Reid Spencerabec8f92004-10-27 23:03:44 +000032328 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032329/* confdefs.h. */
32330_ACEOF
32331cat confdefs.h >>conftest.$ac_ext
32332cat >>conftest.$ac_ext <<_ACEOF
32333/* end confdefs.h. */
32334#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032335int
32336main ()
32337{
32338float f; isinf(f);
32339 ;
32340 return 0;
32341}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032342_ACEOF
32343rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032344if { (ac_try="$ac_compile"
32345case "(($ac_try" in
32346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32347 *) ac_try_echo=$ac_try;;
32348esac
32349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32350 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032352 grep -v '^ *+' conftest.er1 >conftest.err
32353 rm -f conftest.er1
32354 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32356 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32358 { (case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32361esac
32362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032368 { (case "(($ac_try" in
32369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32370 *) ac_try_echo=$ac_try;;
32371esac
32372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32373 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032374 ac_status=$?
32375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32376 (exit $ac_status); }; }; then
32377 ac_cv_func_isinf_in_cmath=yes
32378else
32379 echo "$as_me: failed program was:" >&5
32380sed 's/^/| /' conftest.$ac_ext >&5
32381
Reid Spencera773bd52006-08-04 18:18:08 +000032382 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032383fi
Reid Spencera773bd52006-08-04 18:18:08 +000032384
32385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032386 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032387ac_cpp='$CPP $CPPFLAGS'
32388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391
32392fi
Reid Spencera773bd52006-08-04 18:18:08 +000032393{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32394echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032395
32396if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032397
32398cat >>confdefs.h <<\_ACEOF
32399#define HAVE_ISINF_IN_CMATH 1
32400_ACEOF
32401
Reid Spencerabec8f92004-10-27 23:03:44 +000032402fi
32403
Reid Spencera773bd52006-08-04 18:18:08 +000032404{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32405echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032406if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32407 echo $ECHO_N "(cached) $ECHO_C" >&6
32408else
Reid Spencera773bd52006-08-04 18:18:08 +000032409 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032410ac_cpp='$CXXCPP $CPPFLAGS'
32411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
Reid Spencerabec8f92004-10-27 23:03:44 +000032415 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032416/* confdefs.h. */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h. */
32421#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032422int
32423main ()
32424{
32425float f; std::isinf(f)}
32426 ;
32427 return 0;
32428}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032429_ACEOF
32430rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032431if { (ac_try="$ac_compile"
32432case "(($ac_try" in
32433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434 *) ac_try_echo=$ac_try;;
32435esac
32436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032438 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032439 grep -v '^ *+' conftest.er1 >conftest.err
32440 rm -f conftest.er1
32441 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32445 { (case "(($ac_try" in
32446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447 *) ac_try_echo=$ac_try;;
32448esac
32449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032451 ac_status=$?
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); }; } &&
32454 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032455 { (case "(($ac_try" in
32456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32457 *) ac_try_echo=$ac_try;;
32458esac
32459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32460 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; }; then
32464 ac_cv_func_std_isinf_in_cmath=yes
32465else
32466 echo "$as_me: failed program was:" >&5
32467sed 's/^/| /' conftest.$ac_ext >&5
32468
Reid Spencera773bd52006-08-04 18:18:08 +000032469 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032470fi
Reid Spencera773bd52006-08-04 18:18:08 +000032471
32472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032473 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032474ac_cpp='$CPP $CPPFLAGS'
32475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32477ac_compiler_gnu=$ac_cv_c_compiler_gnu
32478
32479fi
Reid Spencera773bd52006-08-04 18:18:08 +000032480{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32481echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032482
32483if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032484
32485cat >>confdefs.h <<\_ACEOF
32486#define HAVE_STD_ISINF_IN_CMATH 1
32487_ACEOF
32488
Reid Spencerabec8f92004-10-27 23:03:44 +000032489fi
32490
Reid Spencera773bd52006-08-04 18:18:08 +000032491{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32492echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032493if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32494 echo $ECHO_N "(cached) $ECHO_C" >&6
32495else
Reid Spencera773bd52006-08-04 18:18:08 +000032496 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032497ac_cpp='$CXXCPP $CPPFLAGS'
32498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32501
Reid Spencerabec8f92004-10-27 23:03:44 +000032502 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032503/* confdefs.h. */
32504_ACEOF
32505cat confdefs.h >>conftest.$ac_ext
32506cat >>conftest.$ac_ext <<_ACEOF
32507/* end confdefs.h. */
32508#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032509int
32510main ()
32511{
32512float f; finite(f);
32513 ;
32514 return 0;
32515}
Brian Gaeked59a6472004-07-21 03:33:58 +000032516_ACEOF
32517rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032518if { (ac_try="$ac_compile"
32519case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32522esac
32523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032526 grep -v '^ *+' conftest.er1 >conftest.err
32527 rm -f conftest.er1
32528 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32532 { (case "(($ac_try" in
32533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32534 *) ac_try_echo=$ac_try;;
32535esac
32536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32537 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032538 ac_status=$?
32539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; } &&
32541 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032542 { (case "(($ac_try" in
32543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32544 *) ac_try_echo=$ac_try;;
32545esac
32546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32547 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; }; then
32551 ac_cv_func_finite_in_ieeefp_h=yes
32552else
32553 echo "$as_me: failed program was:" >&5
32554sed 's/^/| /' conftest.$ac_ext >&5
32555
Reid Spencera773bd52006-08-04 18:18:08 +000032556 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032557fi
Reid Spencera773bd52006-08-04 18:18:08 +000032558
32559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032560 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032561ac_cpp='$CPP $CPPFLAGS'
32562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32564ac_compiler_gnu=$ac_cv_c_compiler_gnu
32565
32566fi
Reid Spencera773bd52006-08-04 18:18:08 +000032567{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32568echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032569
Brian Gaeke6802b552004-10-28 05:06:45 +000032570if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032571
32572cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032573#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032574_ACEOF
32575
Reid Spencerabec8f92004-10-27 23:03:44 +000032576fi
32577
32578
32579
John Criswell7a73b802003-06-30 21:59:07 +000032580
32581
32582for ac_header in stdlib.h unistd.h
32583do
32584as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32588if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032589 echo $ECHO_N "(cached) $ECHO_C" >&6
32590fi
Reid Spencera773bd52006-08-04 18:18:08 +000032591ac_res=`eval echo '${'$as_ac_Header'}'`
32592 { echo "$as_me:$LINENO: result: $ac_res" >&5
32593echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032594else
32595 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032596{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32597echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032598cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032599/* confdefs.h. */
32600_ACEOF
32601cat confdefs.h >>conftest.$ac_ext
32602cat >>conftest.$ac_ext <<_ACEOF
32603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032604$ac_includes_default
32605#include <$ac_header>
32606_ACEOF
32607rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032608if { (ac_try="$ac_compile"
32609case "(($ac_try" in
32610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32611 *) ac_try_echo=$ac_try;;
32612esac
32613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32614 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032615 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032616 grep -v '^ *+' conftest.er1 >conftest.err
32617 rm -f conftest.er1
32618 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32622 { (case "(($ac_try" in
32623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32624 *) ac_try_echo=$ac_try;;
32625esac
32626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32627 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032628 ac_status=$?
32629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32630 (exit $ac_status); }; } &&
32631 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032632 { (case "(($ac_try" in
32633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32634 *) ac_try_echo=$ac_try;;
32635esac
32636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32637 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; }; then
32641 ac_header_compiler=yes
32642else
32643 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032644sed 's/^/| /' conftest.$ac_ext >&5
32645
Reid Spencera773bd52006-08-04 18:18:08 +000032646 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032647fi
Reid Spencera773bd52006-08-04 18:18:08 +000032648
32649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32650{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32651echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032652
32653# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032654{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032656cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032657/* confdefs.h. */
32658_ACEOF
32659cat confdefs.h >>conftest.$ac_ext
32660cat >>conftest.$ac_ext <<_ACEOF
32661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032662#include <$ac_header>
32663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032664if { (ac_try="$ac_cpp conftest.$ac_ext"
32665case "(($ac_try" in
32666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32667 *) ac_try_echo=$ac_try;;
32668esac
32669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032671 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032672 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032673 rm -f conftest.er1
32674 cat conftest.err >&5
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); } >/dev/null; then
32677 if test -s conftest.err; then
32678 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032680 else
32681 ac_cpp_err=
32682 fi
32683else
32684 ac_cpp_err=yes
32685fi
32686if test -z "$ac_cpp_err"; then
32687 ac_header_preproc=yes
32688else
32689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032690sed 's/^/| /' conftest.$ac_ext >&5
32691
John Criswell7a73b802003-06-30 21:59:07 +000032692 ac_header_preproc=no
32693fi
Reid Spencera773bd52006-08-04 18:18:08 +000032694
John Criswell7a73b802003-06-30 21:59:07 +000032695rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032696{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32697echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032698
32699# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32701 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32706 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032707 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032708 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032721 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032722## ----------------------------------- ##
32723## Report this to llvmbugs@cs.uiuc.edu ##
32724## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032725_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032726 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032728esac
Reid Spencera773bd52006-08-04 18:18:08 +000032729{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032732 echo $ECHO_N "(cached) $ECHO_C" >&6
32733else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032734 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032735fi
Reid Spencera773bd52006-08-04 18:18:08 +000032736ac_res=`eval echo '${'$as_ac_Header'}'`
32737 { echo "$as_me:$LINENO: result: $ac_res" >&5
32738echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032739
32740fi
32741if test `eval echo '${'$as_ac_Header'}'` = yes; then
32742 cat >>confdefs.h <<_ACEOF
32743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32744_ACEOF
32745
32746fi
32747
32748done
32749
32750
32751for ac_func in getpagesize
32752do
32753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032757 echo $ECHO_N "(cached) $ECHO_C" >&6
32758else
32759 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032760/* confdefs.h. */
32761_ACEOF
32762cat confdefs.h >>conftest.$ac_ext
32763cat >>conftest.$ac_ext <<_ACEOF
32764/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32767#define $ac_func innocuous_$ac_func
32768
John Criswell7a73b802003-06-30 21:59:07 +000032769/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032770 which can conflict with char $ac_func (); below.
32771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32772 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032773
John Criswell0c38eaf2003-09-10 15:17:25 +000032774#ifdef __STDC__
32775# include <limits.h>
32776#else
32777# include <assert.h>
32778#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032779
32780#undef $ac_func
32781
Reid Spencera773bd52006-08-04 18:18:08 +000032782/* Override any GCC internal prototype to avoid an error.
32783 Use char because int might match the return type of a GCC
32784 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032785#ifdef __cplusplus
32786extern "C"
32787#endif
John Criswell7a73b802003-06-30 21:59:07 +000032788char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032789/* The GNU C library defines this for functions which it implements
32790 to always fail with ENOSYS. Some functions are actually named
32791 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032792#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032793choke me
John Criswell7a73b802003-06-30 21:59:07 +000032794#endif
32795
John Criswell0c38eaf2003-09-10 15:17:25 +000032796int
32797main ()
32798{
Reid Spencera773bd52006-08-04 18:18:08 +000032799return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032800 ;
32801 return 0;
32802}
32803_ACEOF
32804rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032805if { (ac_try="$ac_link"
32806case "(($ac_try" in
32807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808 *) ac_try_echo=$ac_try;;
32809esac
32810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032813 grep -v '^ *+' conftest.er1 >conftest.err
32814 rm -f conftest.er1
32815 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32817 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32819 { (case "(($ac_try" in
32820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32821 *) ac_try_echo=$ac_try;;
32822esac
32823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32824 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032825 ac_status=$?
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); }; } &&
32828 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032829 { (case "(($ac_try" in
32830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831 *) ac_try_echo=$ac_try;;
32832esac
32833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032835 ac_status=$?
32836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32837 (exit $ac_status); }; }; then
32838 eval "$as_ac_var=yes"
32839else
32840 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032841sed 's/^/| /' conftest.$ac_ext >&5
32842
Reid Spencera773bd52006-08-04 18:18:08 +000032843 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032844fi
Reid Spencera773bd52006-08-04 18:18:08 +000032845
32846rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032847 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032848fi
Reid Spencera773bd52006-08-04 18:18:08 +000032849ac_res=`eval echo '${'$as_ac_var'}'`
32850 { echo "$as_me:$LINENO: result: $ac_res" >&5
32851echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032852if test `eval echo '${'$as_ac_var'}'` = yes; then
32853 cat >>confdefs.h <<_ACEOF
32854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32855_ACEOF
32856
32857fi
32858done
32859
Reid Spencera773bd52006-08-04 18:18:08 +000032860{ echo "$as_me:$LINENO: checking for working mmap" >&5
32861echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032862if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32863 echo $ECHO_N "(cached) $ECHO_C" >&6
32864else
32865 if test "$cross_compiling" = yes; then
32866 ac_cv_func_mmap_fixed_mapped=no
32867else
32868 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032869/* confdefs.h. */
32870_ACEOF
32871cat confdefs.h >>conftest.$ac_ext
32872cat >>conftest.$ac_ext <<_ACEOF
32873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032874$ac_includes_default
32875/* malloc might have been renamed as rpl_malloc. */
32876#undef malloc
32877
32878/* Thanks to Mike Haertel and Jim Avera for this test.
32879 Here is a matrix of mmap possibilities:
32880 mmap private not fixed
32881 mmap private fixed at somewhere currently unmapped
32882 mmap private fixed at somewhere already mapped
32883 mmap shared not fixed
32884 mmap shared fixed at somewhere currently unmapped
32885 mmap shared fixed at somewhere already mapped
32886 For private mappings, we should verify that changes cannot be read()
32887 back from the file, nor mmap's back from the file at a different
32888 address. (There have been systems where private was not correctly
32889 implemented like the infamous i386 svr4.0, and systems where the
32890 VM page cache was not coherent with the file system buffer cache
32891 like early versions of FreeBSD and possibly contemporary NetBSD.)
32892 For shared mappings, we should conversely verify that changes get
32893 propagated back to all the places they're supposed to be.
32894
32895 Grep wants private fixed already mapped.
32896 The main things grep needs to know about mmap are:
32897 * does it exist and is it safe to write into the mmap'd area
32898 * how to use it (BSD variants) */
32899
32900#include <fcntl.h>
32901#include <sys/mman.h>
32902
32903#if !STDC_HEADERS && !HAVE_STDLIB_H
32904char *malloc ();
32905#endif
32906
32907/* This mess was copied from the GNU getpagesize.h. */
32908#if !HAVE_GETPAGESIZE
32909/* Assume that all systems that can run configure have sys/param.h. */
32910# if !HAVE_SYS_PARAM_H
32911# define HAVE_SYS_PARAM_H 1
32912# endif
32913
32914# ifdef _SC_PAGESIZE
32915# define getpagesize() sysconf(_SC_PAGESIZE)
32916# else /* no _SC_PAGESIZE */
32917# if HAVE_SYS_PARAM_H
32918# include <sys/param.h>
32919# ifdef EXEC_PAGESIZE
32920# define getpagesize() EXEC_PAGESIZE
32921# else /* no EXEC_PAGESIZE */
32922# ifdef NBPG
32923# define getpagesize() NBPG * CLSIZE
32924# ifndef CLSIZE
32925# define CLSIZE 1
32926# endif /* no CLSIZE */
32927# else /* no NBPG */
32928# ifdef NBPC
32929# define getpagesize() NBPC
32930# else /* no NBPC */
32931# ifdef PAGESIZE
32932# define getpagesize() PAGESIZE
32933# endif /* PAGESIZE */
32934# endif /* no NBPC */
32935# endif /* no NBPG */
32936# endif /* no EXEC_PAGESIZE */
32937# else /* no HAVE_SYS_PARAM_H */
32938# define getpagesize() 8192 /* punt totally */
32939# endif /* no HAVE_SYS_PARAM_H */
32940# endif /* no _SC_PAGESIZE */
32941
32942#endif /* no HAVE_GETPAGESIZE */
32943
32944int
32945main ()
32946{
32947 char *data, *data2, *data3;
32948 int i, pagesize;
32949 int fd;
32950
32951 pagesize = getpagesize ();
32952
32953 /* First, make a file with some known garbage in it. */
32954 data = (char *) malloc (pagesize);
32955 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032956 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032957 for (i = 0; i < pagesize; ++i)
32958 *(data + i) = rand ();
32959 umask (0);
32960 fd = creat ("conftest.mmap", 0600);
32961 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032962 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032963 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032964 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032965 close (fd);
32966
32967 /* Next, try to mmap the file at a fixed address which already has
32968 something else allocated at it. If we can, also make sure that
32969 we see the same garbage. */
32970 fd = open ("conftest.mmap", O_RDWR);
32971 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032972 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032973 data2 = (char *) malloc (2 * pagesize);
32974 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032975 return 1;
32976 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032977 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032978 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032979 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032980 for (i = 0; i < pagesize; ++i)
32981 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032982 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032983
32984 /* Finally, make sure that changes to the mapped area do not
32985 percolate back to the file as seen by read(). (This is a bug on
32986 some variants of i386 svr4.0.) */
32987 for (i = 0; i < pagesize; ++i)
32988 *(data2 + i) = *(data2 + i) + 1;
32989 data3 = (char *) malloc (pagesize);
32990 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032991 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032992 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032993 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032994 for (i = 0; i < pagesize; ++i)
32995 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032996 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032997 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032998 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032999}
33000_ACEOF
33001rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033002if { (ac_try="$ac_link"
33003case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006esac
33007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033012 { (case "(($ac_try" in
33013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014 *) ac_try_echo=$ac_try;;
33015esac
33016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033018 ac_status=$?
33019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020 (exit $ac_status); }; }; then
33021 ac_cv_func_mmap_fixed_mapped=yes
33022else
33023 echo "$as_me: program exited with status $ac_status" >&5
33024echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033025sed 's/^/| /' conftest.$ac_ext >&5
33026
John Criswell7a73b802003-06-30 21:59:07 +000033027( exit $ac_status )
33028ac_cv_func_mmap_fixed_mapped=no
33029fi
Reid Spencera773bd52006-08-04 18:18:08 +000033030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033031fi
Reid Spencera773bd52006-08-04 18:18:08 +000033032
33033
John Criswell7a73b802003-06-30 21:59:07 +000033034fi
Reid Spencera773bd52006-08-04 18:18:08 +000033035{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33036echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033037if test $ac_cv_func_mmap_fixed_mapped = yes; then
33038
33039cat >>confdefs.h <<\_ACEOF
33040#define HAVE_MMAP 1
33041_ACEOF
33042
33043fi
33044rm -f conftest.mmap
33045
Reid Spencera773bd52006-08-04 18:18:08 +000033046{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33047echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033048if test "${ac_cv_func_mmap_file+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33050else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033051 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033052ac_cpp='$CPP $CPPFLAGS'
33053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33055ac_compiler_gnu=$ac_cv_c_compiler_gnu
33056
33057 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033058 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033059else
33060 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033061
Reid Spencer777ce172004-09-20 04:09:56 +000033062 /* confdefs.h. */
33063_ACEOF
33064cat confdefs.h >>conftest.$ac_ext
33065cat >>conftest.$ac_ext <<_ACEOF
33066/* end confdefs.h. */
33067
John Criswell7a73b802003-06-30 21:59:07 +000033068#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033069#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033070#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033071
33072int
33073main ()
33074{
John Criswell7a73b802003-06-30 21:59:07 +000033075
33076 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033077 fd = creat ("foo",0777);
33078 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33079 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033080 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033081 ;
33082 return 0;
33083}
John Criswell7a73b802003-06-30 21:59:07 +000033084_ACEOF
33085rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033086if { (ac_try="$ac_link"
33087case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33090esac
33091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033093 ac_status=$?
33094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033096 { (case "(($ac_try" in
33097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33098 *) ac_try_echo=$ac_try;;
33099esac
33100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33101 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033102 ac_status=$?
33103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104 (exit $ac_status); }; }; then
33105 ac_cv_func_mmap_file=yes
33106else
33107 echo "$as_me: program exited with status $ac_status" >&5
33108echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033109sed 's/^/| /' conftest.$ac_ext >&5
33110
John Criswell7a73b802003-06-30 21:59:07 +000033111( exit $ac_status )
33112ac_cv_func_mmap_file=no
33113fi
Reid Spencera773bd52006-08-04 18:18:08 +000033114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033115fi
Reid Spencera773bd52006-08-04 18:18:08 +000033116
33117
John Criswell7a73b802003-06-30 21:59:07 +000033118 ac_ext=c
33119ac_cpp='$CPP $CPPFLAGS'
33120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33122ac_compiler_gnu=$ac_cv_c_compiler_gnu
33123
33124
33125fi
Reid Spencera773bd52006-08-04 18:18:08 +000033126{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33127echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033128if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033129
33130cat >>confdefs.h <<\_ACEOF
33131#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033132_ACEOF
33133
33134 MMAP_FILE=yes
33135
33136fi
33137
Reid Spencera773bd52006-08-04 18:18:08 +000033138{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33139echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033140if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33142else
Reid Spencer582a23c2004-12-29 07:07:57 +000033143 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033144 ac_cv_need_dev_zero_for_mmap=yes
33145 else
33146 ac_cv_need_dev_zero_for_mmap=no
33147 fi
33148
33149fi
Reid Spencera773bd52006-08-04 18:18:08 +000033150{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33151echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033152if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33153
33154cat >>confdefs.h <<\_ACEOF
33155#define NEED_DEV_ZERO_FOR_MMAP 1
33156_ACEOF
33157
33158fi
Reid Spencera773bd52006-08-04 18:18:08 +000033159{ echo "$as_me:$LINENO: checking for mprotect" >&5
33160echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033161if test "${ac_cv_func_mprotect+set}" = set; then
33162 echo $ECHO_N "(cached) $ECHO_C" >&6
33163else
33164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033165/* confdefs.h. */
33166_ACEOF
33167cat confdefs.h >>conftest.$ac_ext
33168cat >>conftest.$ac_ext <<_ACEOF
33169/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033170/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33172#define mprotect innocuous_mprotect
33173
John Criswell7a73b802003-06-30 21:59:07 +000033174/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033175 which can conflict with char mprotect (); below.
33176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33177 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033178
John Criswell0c38eaf2003-09-10 15:17:25 +000033179#ifdef __STDC__
33180# include <limits.h>
33181#else
33182# include <assert.h>
33183#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033184
33185#undef mprotect
33186
Reid Spencera773bd52006-08-04 18:18:08 +000033187/* Override any GCC internal prototype to avoid an error.
33188 Use char because int might match the return type of a GCC
33189 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033190#ifdef __cplusplus
33191extern "C"
33192#endif
John Criswell7a73b802003-06-30 21:59:07 +000033193char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033194/* The GNU C library defines this for functions which it implements
33195 to always fail with ENOSYS. Some functions are actually named
33196 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033197#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033198choke me
John Criswell7a73b802003-06-30 21:59:07 +000033199#endif
33200
John Criswell0c38eaf2003-09-10 15:17:25 +000033201int
33202main ()
33203{
Reid Spencera773bd52006-08-04 18:18:08 +000033204return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033205 ;
33206 return 0;
33207}
33208_ACEOF
33209rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033210if { (ac_try="$ac_link"
33211case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033217 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33224 { (case "(($ac_try" in
33225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33226 *) ac_try_echo=$ac_try;;
33227esac
33228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33229 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033230 ac_status=$?
33231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33232 (exit $ac_status); }; } &&
33233 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033234 { (case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33237esac
33238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033240 ac_status=$?
33241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33242 (exit $ac_status); }; }; then
33243 ac_cv_func_mprotect=yes
33244else
33245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033246sed 's/^/| /' conftest.$ac_ext >&5
33247
Reid Spencera773bd52006-08-04 18:18:08 +000033248 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033249fi
Reid Spencera773bd52006-08-04 18:18:08 +000033250
33251rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033252 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033253fi
Reid Spencera773bd52006-08-04 18:18:08 +000033254{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33255echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033256if test $ac_cv_func_mprotect = yes; then
33257 :
33258else
33259 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33260echo "$as_me: error: Function mprotect() required but not found" >&2;}
33261 { (exit 1); exit 1; }; }
33262fi
33263
33264
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033265if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033266then
Reid Spencer582a23c2004-12-29 07:07:57 +000033267 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33268echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033269fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033270if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033271then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033272 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33273echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033274fi
John Criswell7a73b802003-06-30 21:59:07 +000033275
33276
Reid Spencera773bd52006-08-04 18:18:08 +000033277{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33278echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033279if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33280 echo $ECHO_N "(cached) $ECHO_C" >&6
33281else
33282 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033283if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033284 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033285 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033286 if test $? -eq 0 ; then
33287 llvm_cv_llvmgcc_sanity="yes"
33288 fi
33289 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033290fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033291fi
Reid Spencera773bd52006-08-04 18:18:08 +000033292{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33293echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033294
33295if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033296 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033297 LLVMCC1=$llvmcc1path
33298
Reid Spencer502935f2004-12-22 05:56:56 +000033299 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033300 LLVMCC1PLUS=$llvmcc1pluspath
33301
Reid Spencer502935f2004-12-22 05:56:56 +000033302 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33303 LLVMGCCDIR=$llvmgccdir
33304
Reid Spencerb5d75b82006-05-09 00:31:01 +000033305 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033306 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33307 LLVMGCC_VERSION=$llvmgccversion
33308
33309 LLVMGCC_MAJVERS=$llvmgccmajvers
33310
Brian Gaekef3b24102003-11-16 18:38:14 +000033311fi
33312
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033313SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033314
33315
Reid Spencere9de0912004-08-20 09:03:57 +000033316# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033317# information into substitutions that will end up in Makefile.config.in
33318# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033319if test "${prefix}" == "NONE" ; then
33320 prefix="/usr/local"
33321fi
Reid Spencere9de0912004-08-20 09:03:57 +000033322eval LLVM_PREFIX="${prefix}";
33323eval LLVM_BINDIR="${prefix}/bin";
33324eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033325eval LLVM_DATADIR="${prefix}/share/llvm";
33326eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33327eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033328eval LLVM_INCLUDEDIR="${prefix}/include";
33329eval LLVM_INFODIR="${prefix}/info";
33330eval LLVM_MANDIR="${prefix}/man";
33331LLVM_CONFIGTIME=`date`
33332
33333
33334
33335
33336
33337
33338
33339
33340
33341
33342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033343# Place the various directores into the config.h file as #defines so that we
33344# can know about the installation paths within LLVM.
33345
Reid Spencere9de0912004-08-20 09:03:57 +000033346cat >>confdefs.h <<_ACEOF
33347#define LLVM_PREFIX "$LLVM_PREFIX"
33348_ACEOF
33349
33350
33351cat >>confdefs.h <<_ACEOF
33352#define LLVM_BINDIR "$LLVM_BINDIR"
33353_ACEOF
33354
33355
33356cat >>confdefs.h <<_ACEOF
33357#define LLVM_LIBDIR "$LLVM_LIBDIR"
33358_ACEOF
33359
33360
33361cat >>confdefs.h <<_ACEOF
33362#define LLVM_DATADIR "$LLVM_DATADIR"
33363_ACEOF
33364
33365
33366cat >>confdefs.h <<_ACEOF
33367#define LLVM_DATADIR "$LLVM_DOCSDIR"
33368_ACEOF
33369
33370
33371cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033372#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033373_ACEOF
33374
33375
33376cat >>confdefs.h <<_ACEOF
33377#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33378_ACEOF
33379
33380
33381cat >>confdefs.h <<_ACEOF
33382#define LLVM_INFODIR "$LLVM_INFODIR"
33383_ACEOF
33384
33385
33386cat >>confdefs.h <<_ACEOF
33387#define LLVM_MANDIR "$LLVM_MANDIR"
33388_ACEOF
33389
33390
33391cat >>confdefs.h <<_ACEOF
33392#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33393_ACEOF
33394
33395
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033396
Reid Spencera773bd52006-08-04 18:18:08 +000033397ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033398
Reid Spencera773bd52006-08-04 18:18:08 +000033399ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033400
Reid Spencera773bd52006-08-04 18:18:08 +000033401ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033402
Reid Spencera773bd52006-08-04 18:18:08 +000033403ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033404
Reid Spencera773bd52006-08-04 18:18:08 +000033405ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033406
33407
Reid Spencera773bd52006-08-04 18:18:08 +000033408ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033409
33410
Reid Spencerea949cf2006-08-16 00:45:38 +000033411ac_config_files="$ac_config_files llvm.spec"
33412
33413
Reid Spencera773bd52006-08-04 18:18:08 +000033414ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033415
33416
Reid Spencera773bd52006-08-04 18:18:08 +000033417ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033418
33419
Reid Spencera773bd52006-08-04 18:18:08 +000033420ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033421
Reid Spencera773bd52006-08-04 18:18:08 +000033422ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033423
33424
Reid Spencera773bd52006-08-04 18:18:08 +000033425ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033426
33427
Reid Spencera773bd52006-08-04 18:18:08 +000033428ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033429
33430
Reid Spencera773bd52006-08-04 18:18:08 +000033431ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033432
33433
Reid Spencer8b2e1412006-11-17 03:32:33 +000033434ac_config_commands="$ac_config_commands runtime/Makefile"
33435
33436
Reid Spencera773bd52006-08-04 18:18:08 +000033437ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033438
33439
Reid Spencera773bd52006-08-04 18:18:08 +000033440ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033441
33442
Reid Spencera773bd52006-08-04 18:18:08 +000033443ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033444
33445
Reid Spencera773bd52006-08-04 18:18:08 +000033446ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033447
33448
Reid Spencera773bd52006-08-04 18:18:08 +000033449ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033450
33451
33452
John Criswell7a73b802003-06-30 21:59:07 +000033453cat >confcache <<\_ACEOF
33454# This file is a shell script that caches the results of configure
33455# tests run on this system so they can be shared between configure
33456# scripts and configure runs, see configure's option --config-cache.
33457# It is not useful on other systems. If it contains results you don't
33458# want to keep, you may remove or edit it.
33459#
33460# config.status only pays attention to the cache file if you give it
33461# the --recheck option to rerun configure.
33462#
John Criswell0c38eaf2003-09-10 15:17:25 +000033463# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033464# loading this file, other *unset* `ac_cv_foo' will be assigned the
33465# following values.
33466
33467_ACEOF
33468
33469# The following way of writing the cache mishandles newlines in values,
33470# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033471# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033472# Ultrix sh set writes to stderr and can't be redirected directly,
33473# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033474(
33475 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33476 eval ac_val=\$$ac_var
33477 case $ac_val in #(
33478 *${as_nl}*)
33479 case $ac_var in #(
33480 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33481echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33482 esac
33483 case $ac_var in #(
33484 _ | IFS | as_nl) ;; #(
33485 *) $as_unset $ac_var ;;
33486 esac ;;
33487 esac
33488 done
33489
John Criswell7a73b802003-06-30 21:59:07 +000033490 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33492 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033493 # `set' does not quote correctly, so add quotes (double-quote
33494 # substitution turns \\\\ into \\, and sed turns \\ into \).
33495 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033496 "s/'/'\\\\''/g;
33497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033498 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033499 *)
33500 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033502 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033503 esac |
33504 sort
33505) |
John Criswell7a73b802003-06-30 21:59:07 +000033506 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033507 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033508 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033509 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033510 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33511 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33513 :end' >>confcache
33514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33515 if test -w "$cache_file"; then
33516 test "x$cache_file" != "x/dev/null" &&
33517 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33518echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033519 cat confcache >$cache_file
33520 else
Reid Spencera773bd52006-08-04 18:18:08 +000033521 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33522echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033523 fi
33524fi
33525rm -f confcache
33526
33527test "x$prefix" = xNONE && prefix=$ac_default_prefix
33528# Let make expand exec_prefix.
33529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33530
John Criswell7a73b802003-06-30 21:59:07 +000033531DEFS=-DHAVE_CONFIG_H
33532
John Criswell0c38eaf2003-09-10 15:17:25 +000033533ac_libobjs=
33534ac_ltlibobjs=
33535for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33536 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033537 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33538 ac_i=`echo "$ac_i" | sed "$ac_script"`
33539 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33540 # will be set to the directory where LIBOBJS objects are built.
33541 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33542 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033543done
33544LIBOBJS=$ac_libobjs
33545
33546LTLIBOBJS=$ac_ltlibobjs
33547
33548
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033549if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33550 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33551Usually this means the macro was only invoked conditionally." >&5
33552echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33553Usually this means the macro was only invoked conditionally." >&2;}
33554 { (exit 1); exit 1; }; }
33555fi
33556if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33557 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33558Usually this means the macro was only invoked conditionally." >&5
33559echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33560Usually this means the macro was only invoked conditionally." >&2;}
33561 { (exit 1); exit 1; }; }
33562fi
John Criswell7a73b802003-06-30 21:59:07 +000033563
33564: ${CONFIG_STATUS=./config.status}
33565ac_clean_files_save=$ac_clean_files
33566ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33567{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33568echo "$as_me: creating $CONFIG_STATUS" >&6;}
33569cat >$CONFIG_STATUS <<_ACEOF
33570#! $SHELL
33571# Generated by $as_me.
33572# Run this file to recreate the current configuration.
33573# Compiler output produced by configure, useful for debugging
33574# configure, is in config.log if it exists.
33575
33576debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033577ac_cs_recheck=false
33578ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033579SHELL=\${CONFIG_SHELL-$SHELL}
33580_ACEOF
33581
33582cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033583## --------------------- ##
33584## M4sh Initialization. ##
33585## --------------------- ##
33586
33587# Be Bourne compatible
33588if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33589 emulate sh
33590 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033591 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33592 # is contrary to our usage. Disable this feature.
33593 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033594 setopt NO_GLOB_SUBST
33595else
33596 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033597fi
Reid Spencera773bd52006-08-04 18:18:08 +000033598BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033599DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033600
John Criswell7a73b802003-06-30 21:59:07 +000033601
Reid Spencera773bd52006-08-04 18:18:08 +000033602# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033603# Avoid depending upon Character Ranges.
33604as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33605as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33606as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33607as_cr_digits='0123456789'
33608as_cr_alnum=$as_cr_Letters$as_cr_digits
33609
33610# The user is always right.
33611if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033612 echo "#! /bin/sh" >conf$$.sh
33613 echo "exit 0" >>conf$$.sh
33614 chmod +x conf$$.sh
33615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033616 PATH_SEPARATOR=';'
33617 else
33618 PATH_SEPARATOR=:
33619 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033620 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033621fi
33622
Reid Spencera773bd52006-08-04 18:18:08 +000033623# Support unset when possible.
33624if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33625 as_unset=unset
33626else
33627 as_unset=false
33628fi
John Criswell7a73b802003-06-30 21:59:07 +000033629
Reid Spencera773bd52006-08-04 18:18:08 +000033630
33631# IFS
33632# We need space, tab and new line, in precisely that order. Quoting is
33633# there to prevent editors from complaining about space-tab.
33634# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33635# splitting by setting IFS to empty value.)
33636as_nl='
33637'
33638IFS=" "" $as_nl"
33639
33640# Find who we are. Look in the path if we contain no directory separator.
33641case $0 in
33642 *[\\/]* ) as_myself=$0 ;;
33643 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033644for as_dir in $PATH
33645do
33646 IFS=$as_save_IFS
33647 test -z "$as_dir" && as_dir=.
33648 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33649done
Reid Spencera773bd52006-08-04 18:18:08 +000033650IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033651
Reid Spencera773bd52006-08-04 18:18:08 +000033652 ;;
33653esac
33654# We did not find ourselves, most probably we were run as `sh COMMAND'
33655# in which case we are not to be found in the path.
33656if test "x$as_myself" = x; then
33657 as_myself=$0
33658fi
33659if test ! -f "$as_myself"; then
33660 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33661 { (exit 1); exit 1; }
33662fi
33663
33664# Work around bugs in pre-3.0 UWIN ksh.
33665for as_var in ENV MAIL MAILPATH
33666do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33667done
33668PS1='$ '
33669PS2='> '
33670PS4='+ '
33671
33672# NLS nuisances.
33673for as_var in \
33674 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33675 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33676 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033677do
Reid Spencera773bd52006-08-04 18:18:08 +000033678 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33679 eval $as_var=C; export $as_var
33680 else
33681 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33682 fi
33683done
33684
33685# Required to use basename.
33686if expr a : '\(a\)' >/dev/null 2>&1 &&
33687 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33688 as_expr=expr
33689else
33690 as_expr=false
33691fi
33692
33693if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33694 as_basename=basename
33695else
33696 as_basename=false
33697fi
33698
33699
33700# Name of the executable.
33701as_me=`$as_basename -- "$0" ||
33702$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33703 X"$0" : 'X\(//\)$' \| \
33704 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33705echo X/"$0" |
33706 sed '/^.*\/\([^/][^/]*\)\/*$/{
33707 s//\1/
33708 q
33709 }
33710 /^X\/\(\/\/\)$/{
33711 s//\1/
33712 q
33713 }
33714 /^X\/\(\/\).*/{
33715 s//\1/
33716 q
33717 }
33718 s/.*/./; q'`
33719
33720# CDPATH.
33721$as_unset CDPATH
33722
33723
33724
John Criswell7a73b802003-06-30 21:59:07 +000033725 as_lineno_1=$LINENO
33726 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033727 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033728 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033729
33730 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33731 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033732 # line-number line after each line using $LINENO; the second 'sed'
33733 # does the real work. The second script uses 'N' to pair each
33734 # line-number line with the line containing $LINENO, and appends
33735 # trailing '-' during substitution so that $LINENO is not a special
33736 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033738 # scripts with optimization help from Paolo Bonzini. Blame Lee
33739 # E. McMahon (1931-1989) for sed's syntax. :-)
33740 sed -n '
33741 p
33742 /[$]LINENO/=
33743 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033744 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033745 s/[$]LINENO.*/&-/
33746 t lineno
33747 b
33748 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033749 N
Reid Spencera773bd52006-08-04 18:18:08 +000033750 :loop
33751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033752 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033753 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033754 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033755 chmod +x "$as_me.lineno" ||
33756 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033757 { (exit 1); exit 1; }; }
33758
33759 # Don't try to exec as it changes $[0], causing all sort of problems
33760 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033761 # original and so on. Autoconf is especially sensitive to this).
33762 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033763 # Exit status is that of the last command.
33764 exit
33765}
33766
33767
Reid Spencera773bd52006-08-04 18:18:08 +000033768if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33769 as_dirname=dirname
33770else
33771 as_dirname=false
33772fi
33773
33774ECHO_C= ECHO_N= ECHO_T=
33775case `echo -n x` in
33776-n*)
33777 case `echo 'x\c'` in
33778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33779 *) ECHO_C='\c';;
33780 esac;;
33781*)
33782 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033783esac
33784
Reid Spencera773bd52006-08-04 18:18:08 +000033785if expr a : '\(a\)' >/dev/null 2>&1 &&
33786 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033787 as_expr=expr
33788else
33789 as_expr=false
33790fi
33791
33792rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033793if test -d conf$$.dir; then
33794 rm -f conf$$.dir/conf$$.file
33795else
33796 rm -f conf$$.dir
33797 mkdir conf$$.dir
33798fi
John Criswell7a73b802003-06-30 21:59:07 +000033799echo >conf$$.file
33800if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033801 as_ln_s='ln -s'
33802 # ... but there are two gotchas:
33803 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33804 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33805 # In both cases, we have to default to `cp -p'.
33806 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033807 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033808elif ln conf$$.file conf$$ 2>/dev/null; then
33809 as_ln_s=ln
33810else
33811 as_ln_s='cp -p'
33812fi
Reid Spencera773bd52006-08-04 18:18:08 +000033813rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33814rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033815
John Criswell0c38eaf2003-09-10 15:17:25 +000033816if mkdir -p . 2>/dev/null; then
33817 as_mkdir_p=:
33818else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033819 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033820 as_mkdir_p=false
33821fi
33822
Reid Spencera773bd52006-08-04 18:18:08 +000033823# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33824# systems may use methods other than mode bits to determine executability.
33825cat >conf$$.file <<_ASEOF
33826#! /bin/sh
33827exit 0
33828_ASEOF
33829chmod +x conf$$.file
33830if test -x conf$$.file >/dev/null 2>&1; then
33831 as_executable_p="test -x"
33832else
33833 as_executable_p=:
33834fi
33835rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033836
33837# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033838as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033839
33840# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033841as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033842
33843
John Criswell7a73b802003-06-30 21:59:07 +000033844exec 6>&1
33845
Reid Spencera773bd52006-08-04 18:18:08 +000033846# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033847# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033848# values after options handling.
33849ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033850This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033851generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033852
33853 CONFIG_FILES = $CONFIG_FILES
33854 CONFIG_HEADERS = $CONFIG_HEADERS
33855 CONFIG_LINKS = $CONFIG_LINKS
33856 CONFIG_COMMANDS = $CONFIG_COMMANDS
33857 $ $0 $@
33858
Reid Spencera773bd52006-08-04 18:18:08 +000033859on `(hostname || uname -n) 2>/dev/null | sed 1q`
33860"
33861
John Criswell7a73b802003-06-30 21:59:07 +000033862_ACEOF
33863
Reid Spencera773bd52006-08-04 18:18:08 +000033864cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033865# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033866config_files="$ac_config_files"
33867config_headers="$ac_config_headers"
33868config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033869
Reid Spencera773bd52006-08-04 18:18:08 +000033870_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033871
33872cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033873ac_cs_usage="\
33874\`$as_me' instantiates files from templates according to the
33875current configuration.
33876
33877Usage: $0 [OPTIONS] [FILE]...
33878
33879 -h, --help print this help, then exit
33880 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033881 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033882 -d, --debug don't remove temporary files
33883 --recheck update $as_me by reconfiguring in the same conditions
33884 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033885 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033886 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033887 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033888
33889Configuration files:
33890$config_files
33891
33892Configuration headers:
33893$config_headers
33894
John Criswellc764fbc2003-09-06 15:17:13 +000033895Configuration commands:
33896$config_commands
33897
John Criswell7a73b802003-06-30 21:59:07 +000033898Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033899
Reid Spencera773bd52006-08-04 18:18:08 +000033900_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033901cat >>$CONFIG_STATUS <<_ACEOF
33902ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033903llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033904configured by $0, generated by GNU Autoconf 2.60,
33905 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033906
Reid Spencera773bd52006-08-04 18:18:08 +000033907Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033908This config.status script is free software; the Free Software Foundation
33909gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033910
33911ac_pwd='$ac_pwd'
33912srcdir='$srcdir'
33913INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033914_ACEOF
33915
33916cat >>$CONFIG_STATUS <<\_ACEOF
33917# If no file are specified by the user, then we need to provide default
33918# value. By we need to know if files were specified by the user.
33919ac_need_defaults=:
33920while test $# != 0
33921do
33922 case $1 in
33923 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033924 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33925 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033926 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033927 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033928 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033929 ac_option=$1
33930 ac_optarg=$2
33931 ac_shift=shift
33932 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033933 esac
33934
John Criswell0c38eaf2003-09-10 15:17:25 +000033935 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033936 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033937 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33938 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033939 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33940 echo "$ac_cs_version"; exit ;;
33941 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033942 debug=: ;;
33943 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033944 $ac_shift
33945 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033946 ac_need_defaults=false;;
33947 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033948 $ac_shift
33949 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033950 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033951 --he | --h)
33952 # Conflict between --help and --header
33953 { echo "$as_me: error: ambiguous option: $1
33954Try \`$0 --help' for more information." >&2
33955 { (exit 1); exit 1; }; };;
33956 --help | --hel | -h )
33957 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33959 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33960 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033961
33962 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033963 -*) { echo "$as_me: error: unrecognized option: $1
33964Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033965 { (exit 1); exit 1; }; } ;;
33966
Reid Spencera773bd52006-08-04 18:18:08 +000033967 *) ac_config_targets="$ac_config_targets $1"
33968 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033969
33970 esac
33971 shift
33972done
33973
John Criswell0c38eaf2003-09-10 15:17:25 +000033974ac_configure_extra_args=
33975
33976if $ac_cs_silent; then
33977 exec 6>/dev/null
33978 ac_configure_extra_args="$ac_configure_extra_args --silent"
33979fi
33980
33981_ACEOF
33982cat >>$CONFIG_STATUS <<_ACEOF
33983if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033984 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33985 CONFIG_SHELL=$SHELL
33986 export CONFIG_SHELL
33987 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033988fi
33989
John Criswell7a73b802003-06-30 21:59:07 +000033990_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033991cat >>$CONFIG_STATUS <<\_ACEOF
33992exec 5>>config.log
33993{
33994 echo
33995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33996## Running $as_me. ##
33997_ASBOX
33998 echo "$ac_log"
33999} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034000
Reid Spencera773bd52006-08-04 18:18:08 +000034001_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034002cat >>$CONFIG_STATUS <<_ACEOF
34003#
Reid Spencera773bd52006-08-04 18:18:08 +000034004# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034005#
Reid Spencerc0682832005-02-24 19:05:19 +000034006llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034007
34008_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034009
John Criswell7a73b802003-06-30 21:59:07 +000034010cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034011
34012# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034013for ac_config_target in $ac_config_targets
34014do
Reid Spencera773bd52006-08-04 18:18:08 +000034015 case $ac_config_target in
34016 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34017 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34018 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34019 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34020 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34021 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034022 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034023 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34024 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34025 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34026 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34027 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34028 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34029 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034030 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034031 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34032 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34033 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34034 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34035 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34036
John Criswell7a73b802003-06-30 21:59:07 +000034037 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34038echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34039 { (exit 1); exit 1; }; };;
34040 esac
34041done
34042
Reid Spencera773bd52006-08-04 18:18:08 +000034043
John Criswell7a73b802003-06-30 21:59:07 +000034044# If the user did not use the arguments to specify the items to instantiate,
34045# then the envvar interface is used. Set only those that are not.
34046# We use the long form for the default assignment because of an extremely
34047# bizarre bug on SunOS 4.1.3.
34048if $ac_need_defaults; then
34049 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34050 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034051 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034052fi
34053
John Criswell0c38eaf2003-09-10 15:17:25 +000034054# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034055# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034056# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034057# Hook for its removal unless debugging.
34058# Note that there is a small window in which the directory will not be cleaned:
34059# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034060$debug ||
34061{
Reid Spencera773bd52006-08-04 18:18:08 +000034062 tmp=
34063 trap 'exit_status=$?
34064 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34065' 0
John Criswell7a73b802003-06-30 21:59:07 +000034066 trap '{ (exit 1); exit 1; }' 1 2 13 15
34067}
John Criswell7a73b802003-06-30 21:59:07 +000034068# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034069
John Criswell7a73b802003-06-30 21:59:07 +000034070{
Reid Spencera773bd52006-08-04 18:18:08 +000034071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034072 test -n "$tmp" && test -d "$tmp"
34073} ||
34074{
Reid Spencera773bd52006-08-04 18:18:08 +000034075 tmp=./conf$$-$RANDOM
34076 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034077} ||
34078{
John Criswell0c38eaf2003-09-10 15:17:25 +000034079 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034080 { (exit 1); exit 1; }
34081}
34082
John Criswell7a73b802003-06-30 21:59:07 +000034083#
Reid Spencera773bd52006-08-04 18:18:08 +000034084# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034085#
34086
34087# No need to generate the scripts if there are no CONFIG_FILES.
34088# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034089if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034090
34091_ACEOF
34092
Reid Spencera773bd52006-08-04 18:18:08 +000034093
34094
34095ac_delim='%!_!# '
34096for ac_last_try in false false false false false :; do
34097 cat >conf$$subs.sed <<_ACEOF
34098SHELL!$SHELL$ac_delim
34099PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34100PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34101PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34102PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34103PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34104PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34105exec_prefix!$exec_prefix$ac_delim
34106prefix!$prefix$ac_delim
34107program_transform_name!$program_transform_name$ac_delim
34108bindir!$bindir$ac_delim
34109sbindir!$sbindir$ac_delim
34110libexecdir!$libexecdir$ac_delim
34111datarootdir!$datarootdir$ac_delim
34112datadir!$datadir$ac_delim
34113sysconfdir!$sysconfdir$ac_delim
34114sharedstatedir!$sharedstatedir$ac_delim
34115localstatedir!$localstatedir$ac_delim
34116includedir!$includedir$ac_delim
34117oldincludedir!$oldincludedir$ac_delim
34118docdir!$docdir$ac_delim
34119infodir!$infodir$ac_delim
34120htmldir!$htmldir$ac_delim
34121dvidir!$dvidir$ac_delim
34122pdfdir!$pdfdir$ac_delim
34123psdir!$psdir$ac_delim
34124libdir!$libdir$ac_delim
34125localedir!$localedir$ac_delim
34126mandir!$mandir$ac_delim
34127DEFS!$DEFS$ac_delim
34128ECHO_C!$ECHO_C$ac_delim
34129ECHO_N!$ECHO_N$ac_delim
34130ECHO_T!$ECHO_T$ac_delim
34131LIBS!$LIBS$ac_delim
34132build_alias!$build_alias$ac_delim
34133host_alias!$host_alias$ac_delim
34134target_alias!$target_alias$ac_delim
34135LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34136subdirs!$subdirs$ac_delim
34137build!$build$ac_delim
34138build_cpu!$build_cpu$ac_delim
34139build_vendor!$build_vendor$ac_delim
34140build_os!$build_os$ac_delim
34141host!$host$ac_delim
34142host_cpu!$host_cpu$ac_delim
34143host_vendor!$host_vendor$ac_delim
34144host_os!$host_os$ac_delim
34145target!$target$ac_delim
34146target_cpu!$target_cpu$ac_delim
34147target_vendor!$target_vendor$ac_delim
34148target_os!$target_os$ac_delim
34149OS!$OS$ac_delim
34150LINKALL!$LINKALL$ac_delim
34151NOLINKALL!$NOLINKALL$ac_delim
34152LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34153LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34154ARCH!$ARCH$ac_delim
34155ENDIAN!$ENDIAN$ac_delim
34156CC!$CC$ac_delim
34157CFLAGS!$CFLAGS$ac_delim
34158LDFLAGS!$LDFLAGS$ac_delim
34159CPPFLAGS!$CPPFLAGS$ac_delim
34160ac_ct_CC!$ac_ct_CC$ac_delim
34161EXEEXT!$EXEEXT$ac_delim
34162OBJEXT!$OBJEXT$ac_delim
34163CPP!$CPP$ac_delim
34164GREP!$GREP$ac_delim
34165EGREP!$EGREP$ac_delim
34166LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34167BUILD_CC!$BUILD_CC$ac_delim
34168BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34169CVSBUILD!$CVSBUILD$ac_delim
34170ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34171DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034172DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034173JIT!$JIT$ac_delim
34174TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34175ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34176ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34177TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034178ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034179EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34180CXX!$CXX$ac_delim
34181CXXFLAGS!$CXXFLAGS$ac_delim
34182ac_ct_CXX!$ac_ct_CXX$ac_delim
34183LEX!$LEX$ac_delim
34184LEXLIB!$LEXLIB$ac_delim
34185LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34186FLEX!$FLEX$ac_delim
34187YACC!$YACC$ac_delim
34188YFLAGS!$YFLAGS$ac_delim
34189BISON!$BISON$ac_delim
34190NM!$NM$ac_delim
34191ifGNUmake!$ifGNUmake$ac_delim
34192LN_S!$LN_S$ac_delim
34193CMP!$CMP$ac_delim
34194CP!$CP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034195_ACEOF
34196
34197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34198 break
34199 elif $ac_last_try; then
34200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34202 { (exit 1); exit 1; }; }
34203 else
34204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034205 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034206done
34207
34208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34209if test -n "$ac_eof"; then
34210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34211 ac_eof=`expr $ac_eof + 1`
34212fi
34213
34214cat >>$CONFIG_STATUS <<_ACEOF
34215cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34217_ACEOF
34218sed '
34219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34220s/^/s,@/; s/!/@,|#_!!_#|/
34221:n
34222t n
34223s/'"$ac_delim"'$/,g/; t
34224s/$/\\/; p
34225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34226' >>$CONFIG_STATUS <conf$$subs.sed
34227rm -f conf$$subs.sed
34228cat >>$CONFIG_STATUS <<_ACEOF
34229CEOF$ac_eof
34230_ACEOF
34231
34232
34233ac_delim='%!_!# '
34234for ac_last_try in false false false false false :; do
34235 cat >conf$$subs.sed <<_ACEOF
Reid Spencer8b2e1412006-11-17 03:32:33 +000034236DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034237FIND!$FIND$ac_delim
34238MKDIR!$MKDIR$ac_delim
34239MV!$MV$ac_delim
34240RANLIB!$RANLIB$ac_delim
34241RM!$RM$ac_delim
34242SED!$SED$ac_delim
34243TAR!$TAR$ac_delim
34244BINPWD!$BINPWD$ac_delim
34245GRAPHVIZ!$GRAPHVIZ$ac_delim
34246DOT!$DOT$ac_delim
34247GV!$GV$ac_delim
34248DOTTY!$DOTTY$ac_delim
34249PERL!$PERL$ac_delim
34250HAVE_PERL!$HAVE_PERL$ac_delim
34251INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34252INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34253INSTALL_DATA!$INSTALL_DATA$ac_delim
34254BZIP2!$BZIP2$ac_delim
34255DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034256GROFF!$GROFF$ac_delim
34257GZIP!$GZIP$ac_delim
34258POD2HTML!$POD2HTML$ac_delim
34259POD2MAN!$POD2MAN$ac_delim
34260RUNTEST!$RUNTEST$ac_delim
34261TCLSH!$TCLSH$ac_delim
34262ZIP!$ZIP$ac_delim
34263INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34264INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34265CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34266CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34267LIBADD_DL!$LIBADD_DL$ac_delim
34268ECHO!$ECHO$ac_delim
34269AR!$AR$ac_delim
34270STRIP!$STRIP$ac_delim
34271CXXCPP!$CXXCPP$ac_delim
34272F77!$F77$ac_delim
34273FFLAGS!$FFLAGS$ac_delim
34274ac_ct_F77!$ac_ct_F77$ac_delim
34275LIBTOOL!$LIBTOOL$ac_delim
34276ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34277LLVMGCC!$LLVMGCC$ac_delim
34278LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034279HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034280ALLOCA!$ALLOCA$ac_delim
34281MMAP_FILE!$MMAP_FILE$ac_delim
34282LLVMCC1!$LLVMCC1$ac_delim
34283LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34284LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34285LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34286LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34287SHLIBEXT!$SHLIBEXT$ac_delim
34288LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34289LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34290LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34291LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34292LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34293LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34294LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34295LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34296LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34297LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34298LIBOBJS!$LIBOBJS$ac_delim
34299LTLIBOBJS!$LTLIBOBJS$ac_delim
34300_ACEOF
34301
Reid Spencer8b2e1412006-11-17 03:32:33 +000034302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
Reid Spencera773bd52006-08-04 18:18:08 +000034303 break
34304 elif $ac_last_try; then
34305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34306echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34307 { (exit 1); exit 1; }; }
34308 else
34309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34310 fi
34311done
34312
34313ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34314if test -n "$ac_eof"; then
34315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34316 ac_eof=`expr $ac_eof + 1`
34317fi
34318
34319cat >>$CONFIG_STATUS <<_ACEOF
34320cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34322_ACEOF
34323sed '
34324s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34325s/^/s,@/; s/!/@,|#_!!_#|/
34326:n
34327t n
34328s/'"$ac_delim"'$/,g/; t
34329s/$/\\/; p
34330N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34331' >>$CONFIG_STATUS <conf$$subs.sed
34332rm -f conf$$subs.sed
34333cat >>$CONFIG_STATUS <<_ACEOF
34334:end
34335s/|#_!!_#|//g
34336CEOF$ac_eof
34337_ACEOF
34338
34339
34340# VPATH may cause trouble with some makes, so we remove $(srcdir),
34341# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34342# trailing colons and then remove the whole line if VPATH becomes empty
34343# (actually we leave an empty line to preserve line numbers).
34344if test "x$srcdir" = x.; then
34345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34346s/:*\$(srcdir):*/:/
34347s/:*\${srcdir}:*/:/
34348s/:*@srcdir@:*/:/
34349s/^\([^=]*=[ ]*\):*/\1/
34350s/:*$//
34351s/^[^=]*=[ ]*$//
34352}'
34353fi
34354
34355cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034356fi # test -n "$CONFIG_FILES"
34357
Reid Spencera773bd52006-08-04 18:18:08 +000034358
34359for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34360do
34361 case $ac_tag in
34362 :[FHLC]) ac_mode=$ac_tag; continue;;
34363 esac
34364 case $ac_mode$ac_tag in
34365 :[FHL]*:*);;
34366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34367echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34368 { (exit 1); exit 1; }; };;
34369 :[FH]-) ac_tag=-:-;;
34370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34371 esac
34372 ac_save_IFS=$IFS
34373 IFS=:
34374 set x $ac_tag
34375 IFS=$ac_save_IFS
34376 shift
34377 ac_file=$1
34378 shift
34379
34380 case $ac_mode in
34381 :L) ac_source=$1;;
34382 :[FH])
34383 ac_file_inputs=
34384 for ac_f
34385 do
34386 case $ac_f in
34387 -) ac_f="$tmp/stdin";;
34388 *) # Look for the file first in the build tree, then in the source tree
34389 # (if the path is not absolute). The absolute path cannot be DOS-style,
34390 # because $ac_f cannot contain `:'.
34391 test -f "$ac_f" ||
34392 case $ac_f in
34393 [\\/$]*) false;;
34394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34395 esac ||
34396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34397echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34398 { (exit 1); exit 1; }; };;
34399 esac
34400 ac_file_inputs="$ac_file_inputs $ac_f"
34401 done
34402
34403 # Let's still pretend it is `configure' which instantiates (i.e., don't
34404 # use $as_me), people would be surprised to read:
34405 # /* config.h. Generated by config.status. */
34406 configure_input="Generated from "`IFS=:
34407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34408 if test x"$ac_file" != x-; then
34409 configure_input="$ac_file. $configure_input"
34410 { echo "$as_me:$LINENO: creating $ac_file" >&5
34411echo "$as_me: creating $ac_file" >&6;}
34412 fi
34413
34414 case $ac_tag in
34415 *:-:* | *:-) cat >"$tmp/stdin";;
34416 esac
34417 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034418 esac
34419
Reid Spencera773bd52006-08-04 18:18:08 +000034420 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034421$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034422 X"$ac_file" : 'X\(//\)[^/]' \| \
34423 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034425echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34427 s//\1/
34428 q
34429 }
34430 /^X\(\/\/\)[^/].*/{
34431 s//\1/
34432 q
34433 }
34434 /^X\(\/\/\)$/{
34435 s//\1/
34436 q
34437 }
34438 /^X\(\/\).*/{
34439 s//\1/
34440 q
34441 }
34442 s/.*/./; q'`
34443 { as_dir="$ac_dir"
34444 case $as_dir in #(
34445 -*) as_dir=./$as_dir;;
34446 esac
34447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034448 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034449 while :; do
34450 case $as_dir in #(
34451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34452 *) as_qdir=$as_dir;;
34453 esac
34454 as_dirs="'$as_qdir' $as_dirs"
34455 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034456$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034457 X"$as_dir" : 'X\(//\)[^/]' \| \
34458 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034460echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34462 s//\1/
34463 q
34464 }
34465 /^X\(\/\/\)[^/].*/{
34466 s//\1/
34467 q
34468 }
34469 /^X\(\/\/\)$/{
34470 s//\1/
34471 q
34472 }
34473 /^X\(\/\).*/{
34474 s//\1/
34475 q
34476 }
34477 s/.*/./; q'`
34478 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034479 done
Reid Spencera773bd52006-08-04 18:18:08 +000034480 test -z "$as_dirs" || eval "mkdir $as_dirs"
34481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34482echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034483 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034484 ac_builddir=.
34485
Reid Spencera773bd52006-08-04 18:18:08 +000034486case "$ac_dir" in
34487.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34488*)
John Criswell7a73b802003-06-30 21:59:07 +000034489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034490 # A ".." for each directory in $ac_dir_suffix.
34491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34492 case $ac_top_builddir_sub in
34493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34495 esac ;;
34496esac
34497ac_abs_top_builddir=$ac_pwd
34498ac_abs_builddir=$ac_pwd$ac_dir_suffix
34499# for backward compatibility:
34500ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034501
34502case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034503 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034504 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034505 ac_top_srcdir=$ac_top_builddir_sub
34506 ac_abs_top_srcdir=$ac_pwd ;;
34507 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034508 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034509 ac_top_srcdir=$srcdir
34510 ac_abs_top_srcdir=$srcdir ;;
34511 *) # Relative name.
34512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34513 ac_top_srcdir=$ac_top_build_prefix$srcdir
34514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034515esac
Reid Spencera773bd52006-08-04 18:18:08 +000034516ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034517
John Criswell7a73b802003-06-30 21:59:07 +000034518
Reid Spencera773bd52006-08-04 18:18:08 +000034519 case $ac_mode in
34520 :F)
34521 #
34522 # CONFIG_FILE
34523 #
John Criswell7a73b802003-06-30 21:59:07 +000034524
34525 case $INSTALL in
34526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034528 esac
John Criswell7a73b802003-06-30 21:59:07 +000034529_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034530
34531cat >>$CONFIG_STATUS <<\_ACEOF
34532# If the template does not know about datarootdir, expand it.
34533# FIXME: This hack should be removed a few years after 2.60.
34534ac_datarootdir_hack=; ac_datarootdir_seen=
34535
34536case `sed -n '/datarootdir/ {
34537 p
34538 q
34539}
34540/@datadir@/p
34541/@docdir@/p
34542/@infodir@/p
34543/@localedir@/p
34544/@mandir@/p
34545' $ac_file_inputs` in
34546*datarootdir*) ac_datarootdir_seen=yes;;
34547*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34549echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34550_ACEOF
34551cat >>$CONFIG_STATUS <<_ACEOF
34552 ac_datarootdir_hack='
34553 s&@datadir@&$datadir&g
34554 s&@docdir@&$docdir&g
34555 s&@infodir@&$infodir&g
34556 s&@localedir@&$localedir&g
34557 s&@mandir@&$mandir&g
34558 s&\\\${datarootdir}&$datarootdir&g' ;;
34559esac
34560_ACEOF
34561
34562# Neutralize VPATH when `$srcdir' = `.'.
34563# Shell code in configure.ac might set extrasub.
34564# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034565cat >>$CONFIG_STATUS <<_ACEOF
34566 sed "$ac_vpsub
34567$extrasub
34568_ACEOF
34569cat >>$CONFIG_STATUS <<\_ACEOF
34570:t
34571/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034572s&@configure_input@&$configure_input&;t t
34573s&@top_builddir@&$ac_top_builddir_sub&;t t
34574s&@srcdir@&$ac_srcdir&;t t
34575s&@abs_srcdir@&$ac_abs_srcdir&;t t
34576s&@top_srcdir@&$ac_top_srcdir&;t t
34577s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34578s&@builddir@&$ac_builddir&;t t
34579s&@abs_builddir@&$ac_abs_builddir&;t t
34580s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34581s&@INSTALL@&$ac_INSTALL&;t t
34582$ac_datarootdir_hack
34583" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034584
Reid Spencera773bd52006-08-04 18:18:08 +000034585test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34588 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34589which seems to be undefined. Please make sure it is defined." >&5
34590echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34591which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034592
Reid Spencera773bd52006-08-04 18:18:08 +000034593 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034594 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034595 -) cat "$tmp/out"; rm -f "$tmp/out";;
34596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034597 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034598 ;;
34599 :H)
34600 #
34601 # CONFIG_HEADER
34602 #
John Criswell7a73b802003-06-30 21:59:07 +000034603_ACEOF
34604
Reid Spencera773bd52006-08-04 18:18:08 +000034605# Transform confdefs.h into a sed script `conftest.defines', that
34606# substitutes the proper values into config.h.in to produce config.h.
34607rm -f conftest.defines conftest.tail
34608# First, append a space to every undef/define line, to ease matching.
34609echo 's/$/ /' >conftest.defines
34610# Then, protect against being on the right side of a sed subst, or in
34611# an unquoted here document, in config.status. If some macros were
34612# called several times there might be several #defines for the same
34613# symbol, which is useless. But do not sort them, since the last
34614# AC_DEFINE must be honored.
34615ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34616# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34617# NAME is the cpp macro being defined, VALUE is the value it is being given.
34618# PARAMS is the parameter list in the macro definition--in most cases, it's
34619# just an empty string.
34620ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34621ac_dB='\\)[ (].*,\\1define\\2'
34622ac_dC=' '
34623ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034624
Reid Spencera773bd52006-08-04 18:18:08 +000034625uniq confdefs.h |
34626 sed -n '
34627 t rset
34628 :rset
34629 s/^[ ]*#[ ]*define[ ][ ]*//
34630 t ok
34631 d
34632 :ok
34633 s/[\\&,]/\\&/g
34634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34636 ' >>conftest.defines
34637
34638# Remove the space that was appended to ease matching.
34639# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034640# example, in the case of _POSIX_SOURCE, which is predefined and required
34641# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034642# (The regexp can be short, since the line contains either #define or #undef.)
34643echo 's/ $//
34644s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034645
Reid Spencera773bd52006-08-04 18:18:08 +000034646# Break up conftest.defines:
34647ac_max_sed_lines=50
34648
34649# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34650# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34651# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34652# et cetera.
34653ac_in='$ac_file_inputs'
34654ac_out='"$tmp/out1"'
34655ac_nxt='"$tmp/out2"'
34656
34657while :
John Criswell7a73b802003-06-30 21:59:07 +000034658do
Reid Spencera773bd52006-08-04 18:18:08 +000034659 # Write a here document:
34660 cat >>$CONFIG_STATUS <<_ACEOF
34661 # First, check the format of the line:
34662 cat >"\$tmp/defines.sed" <<\\CEOF
34663/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34664/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34665b
34666:def
34667_ACEOF
34668 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034669 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34671 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34672 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34673 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034674 rm -f conftest.defines
34675 mv conftest.tail conftest.defines
34676done
Reid Spencera773bd52006-08-04 18:18:08 +000034677rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034678
Reid Spencera773bd52006-08-04 18:18:08 +000034679echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034680cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034681 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034682 echo "/* $configure_input */" >"$tmp/config.h"
34683 cat "$ac_result" >>"$tmp/config.h"
34684 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34686echo "$as_me: $ac_file is unchanged" >&6;}
34687 else
John Criswell7a73b802003-06-30 21:59:07 +000034688 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034689 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034690 fi
34691 else
Reid Spencera773bd52006-08-04 18:18:08 +000034692 echo "/* $configure_input */"
34693 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034694 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034695 rm -f "$tmp/out12"
34696 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034697
Reid Spencera773bd52006-08-04 18:18:08 +000034698 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34699echo "$as_me: executing $ac_file commands" >&6;}
34700 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034701 esac
John Criswell7a73b802003-06-30 21:59:07 +000034702
Reid Spencera773bd52006-08-04 18:18:08 +000034703
34704 case $ac_file$ac_mode in
34705 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34706 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34707 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34708 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34709 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34710 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34711 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34712 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034713 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34714 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034715 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34716 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34717 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34718 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34719 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34720 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34721 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34722 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34723 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34724 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34725
34726 esac
34727done # for ac_tag
34728
John Criswell7a73b802003-06-30 21:59:07 +000034729
34730{ (exit 0); exit 0; }
34731_ACEOF
34732chmod +x $CONFIG_STATUS
34733ac_clean_files=$ac_clean_files_save
34734
34735
34736# configure is writing to config.log, and then calls config.status.
34737# config.status does its own redirection, appending to config.log.
34738# Unfortunately, on DOS this fails, as config.log is still kept open
34739# by configure, so config.status won't be able to write to it; its
34740# output is simply discarded. So we exec the FD to /dev/null,
34741# effectively closing config.log, so it can be properly (re)opened and
34742# appended to by config.status. When coming back to configure, we
34743# need to make the FD available again.
34744if test "$no_create" != yes; then
34745 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034746 ac_config_status_args=
34747 test "$silent" = yes &&
34748 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034749 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034751 exec 5>>config.log
34752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34753 # would make configure fail if this is the last instruction.
34754 $ac_cs_success || { (exit 1); exit 1; }
34755fi
34756
John Criswell12399a12003-09-30 15:55:44 +000034757#
34758# CONFIG_SUBDIRS section.
34759#
34760if test "$no_recursion" != yes; then
34761
34762 # Remove --cache-file and --srcdir arguments so they do not pile up.
34763 ac_sub_configure_args=
34764 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034765 eval "set x $ac_configure_args"
34766 shift
34767 for ac_arg
34768 do
John Criswell12399a12003-09-30 15:55:44 +000034769 if test -n "$ac_prev"; then
34770 ac_prev=
34771 continue
34772 fi
34773 case $ac_arg in
34774 -cache-file | --cache-file | --cache-fil | --cache-fi \
34775 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34776 ac_prev=cache_file ;;
34777 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34778 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34779 | --c=*)
34780 ;;
34781 --config-cache | -C)
34782 ;;
34783 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34784 ac_prev=srcdir ;;
34785 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34786 ;;
34787 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34788 ac_prev=prefix ;;
34789 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034791 *)
34792 case $ac_arg in
34793 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34794 esac
34795 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034796 esac
34797 done
34798
34799 # Always prepend --prefix to ensure using the same prefix
34800 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034801 ac_arg="--prefix=$prefix"
34802 case $ac_arg in
34803 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34804 esac
34805 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034806
34807 ac_popdir=`pwd`
34808 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34809
34810 # Do not complain, so a configure script can configure whichever
34811 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034812 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034813
Reid Spencera773bd52006-08-04 18:18:08 +000034814 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34815 echo "$as_me:$LINENO: $ac_msg" >&5
34816 echo "$ac_msg" >&6
34817 { as_dir="$ac_dir"
34818 case $as_dir in #(
34819 -*) as_dir=./$as_dir;;
34820 esac
34821 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034822 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034823 while :; do
34824 case $as_dir in #(
34825 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34826 *) as_qdir=$as_dir;;
34827 esac
34828 as_dirs="'$as_qdir' $as_dirs"
34829 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034830$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034831 X"$as_dir" : 'X\(//\)[^/]' \| \
34832 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034833 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034834echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34836 s//\1/
34837 q
34838 }
34839 /^X\(\/\/\)[^/].*/{
34840 s//\1/
34841 q
34842 }
34843 /^X\(\/\/\)$/{
34844 s//\1/
34845 q
34846 }
34847 /^X\(\/\).*/{
34848 s//\1/
34849 q
34850 }
34851 s/.*/./; q'`
34852 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034853 done
Reid Spencera773bd52006-08-04 18:18:08 +000034854 test -z "$as_dirs" || eval "mkdir $as_dirs"
34855 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34856echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034857 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034858 ac_builddir=.
34859
Reid Spencera773bd52006-08-04 18:18:08 +000034860case "$ac_dir" in
34861.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34862*)
John Criswell12399a12003-09-30 15:55:44 +000034863 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034864 # A ".." for each directory in $ac_dir_suffix.
34865 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34866 case $ac_top_builddir_sub in
34867 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34868 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34869 esac ;;
34870esac
34871ac_abs_top_builddir=$ac_pwd
34872ac_abs_builddir=$ac_pwd$ac_dir_suffix
34873# for backward compatibility:
34874ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034875
34876case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034877 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034878 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034879 ac_top_srcdir=$ac_top_builddir_sub
34880 ac_abs_top_srcdir=$ac_pwd ;;
34881 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034882 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034883 ac_top_srcdir=$srcdir
34884 ac_abs_top_srcdir=$srcdir ;;
34885 *) # Relative name.
34886 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34887 ac_top_srcdir=$ac_top_build_prefix$srcdir
34888 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034889esac
Reid Spencera773bd52006-08-04 18:18:08 +000034890ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034891
34892
Reid Spencera773bd52006-08-04 18:18:08 +000034893 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034894
34895 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034896 if test -f "$ac_srcdir/configure.gnu"; then
34897 ac_sub_configure=$ac_srcdir/configure.gnu
34898 elif test -f "$ac_srcdir/configure"; then
34899 ac_sub_configure=$ac_srcdir/configure
34900 elif test -f "$ac_srcdir/configure.in"; then
34901 # This should be Cygnus configure.
34902 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034903 else
34904 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34905echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34906 ac_sub_configure=
34907 fi
34908
34909 # The recursion is here.
34910 if test -n "$ac_sub_configure"; then
34911 # Make the cache file name correct relative to the subdirectory.
34912 case $cache_file in
34913 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034914 *) # Relative name.
34915 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034916 esac
34917
Reid Spencera773bd52006-08-04 18:18:08 +000034918 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34919echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000034920 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034921 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34922 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034923 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034924echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34925 { (exit 1); exit 1; }; }
34926 fi
34927
Reid Spencera773bd52006-08-04 18:18:08 +000034928 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034929 done
34930fi
34931
Brian Gaekef3b24102003-11-16 18:38:14 +000034932
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034933if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000034934 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34935echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer8b2e1412006-11-17 03:32:33 +000034936 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&5
34937echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ in" >&2;}
34938 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
34939echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
34940 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
34941echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
34942 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
34943echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000034944fi