blob: 3001500b595004bef3fcde2a3caa1c36aafe7b78 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnercf067672008-01-17 05:57:22 +00003# Generated by GNU Autoconf 2.60 for llvm 2.3svn.
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#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Tanya Lattnercf067672008-01-17 05:57:22 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Tanya Lattnercf067672008-01-17 05:57:22 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=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
Tanya Lattnercf067672008-01-17 05:57:22 +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
Tanya Lattnercf067672008-01-17 05:57:22 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Tanya Lattnercf067672008-01-17 05:57:22 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Tanya Lattnercf067672008-01-17 05:57:22 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Tanya Lattnercf067672008-01-17 05:57:22 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
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
Tanya Lattnercf067672008-01-17 05:57:22 +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"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Tanya Lattnercf067672008-01-17 05:57:22 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnercf067672008-01-17 05:57:22 +0000531rm -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 Lattnercf067672008-01-17 05:57:22 +0000718PACKAGE_VERSION='2.3svn'
719PACKAGE_STRING='llvm 2.3svn'
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>
Tanya Lattnercf067672008-01-17 05:57:22 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnercf067672008-01-17 05:57:22 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Tanya Lattnercf067672008-01-17 05:57:22 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# 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
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000833ENABLE_EXPENSIVE_CHECKS
834EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000835DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000836JIT
837TARGET_HAS_JIT
838ENABLE_DOXYGEN
839ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000840ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000841TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000842ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000843EXTRA_OPTIONS
844CXX
845CXXFLAGS
846ac_ct_CXX
847LEX
Scott Michel96dcd2b2007-12-05 21:24:02 +0000848LEXLIB
Tanya Lattnercf067672008-01-17 05:57:22 +0000849LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000850FLEX
851YACC
852YFLAGS
853BISON
854NM
855ifGNUmake
856LN_S
857CMP
858CP
859DATE
860FIND
861MKDIR
862MV
863RANLIB
864RM
865SED
866TAR
867BINPWD
868GRAPHVIZ
869DOT
870GV
871DOTTY
872PERL
873HAVE_PERL
874INSTALL_PROGRAM
875INSTALL_SCRIPT
876INSTALL_DATA
877BZIP2
878DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000879GROFF
880GZIP
881POD2HTML
882POD2MAN
883RUNTEST
884TCLSH
885ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000886OCAMLC
887OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000888OCAMLDEP
Reid Spencera773bd52006-08-04 18:18:08 +0000889INSTALL_LTDL_TRUE
890INSTALL_LTDL_FALSE
891CONVENIENCE_LTDL_TRUE
892CONVENIENCE_LTDL_FALSE
893LIBADD_DL
894ECHO
895AR
896STRIP
897CXXCPP
898F77
899FFLAGS
900ac_ct_F77
901LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000902LLVMGCC
903LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000904USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000905HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000906HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000907ALLOCA
908MMAP_FILE
909LLVMCC1
910LLVMCC1PLUS
911LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000912LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000913LLVMGCC_VERSION
914LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000915LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000916SHLIBEXT
917LLVM_PREFIX
918LLVM_BINDIR
919LLVM_LIBDIR
920LLVM_DATADIR
921LLVM_DOCSDIR
922LLVM_ETCDIR
923LLVM_INCLUDEDIR
924LLVM_INFODIR
925LLVM_MANDIR
926LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000927BINDINGS_TO_BUILD
928ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000929OCAML_LIBDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000930LIBOBJS
931LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000932ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
944YACC
945YFLAGS
946CXXCPP
947F77
948FFLAGS'
949ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000950projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000951projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000952projects/llvm-test
Reid Spencera773bd52006-08-04 18:18:08 +0000953projects/llvm-reopt
954projects/llvm-gcc
955projects/llvm-java
956projects/llvm-tv
957projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000958projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000959projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000960
961# Initialize some variables set by options.
962ac_init_help=
963ac_init_version=false
964# The variables have the same names as the options, with
965# dashes changed to underlines.
966cache_file=/dev/null
967exec_prefix=NONE
968no_create=
969no_recursion=
970prefix=NONE
971program_prefix=NONE
972program_suffix=NONE
973program_transform_name=s,x,x,
974silent=
975site=
976srcdir=
977verbose=
978x_includes=NONE
979x_libraries=NONE
980
981# Installation directory options.
982# These are left unexpanded so users can "make install exec_prefix=/foo"
983# and all the variables that are supposed to be based on exec_prefix
984# by default will actually change.
985# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000986# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000987bindir='${exec_prefix}/bin'
988sbindir='${exec_prefix}/sbin'
989libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000990datarootdir='${prefix}/share'
991datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000992sysconfdir='${prefix}/etc'
993sharedstatedir='${prefix}/com'
994localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000995includedir='${prefix}/include'
996oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000997docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
998infodir='${datarootdir}/info'
999htmldir='${docdir}'
1000dvidir='${docdir}'
1001pdfdir='${docdir}'
1002psdir='${docdir}'
1003libdir='${exec_prefix}/lib'
1004localedir='${datarootdir}/locale'
1005mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001006
1007ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001008ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001009for ac_option
1010do
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001013 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001014 ac_prev=
1015 continue
1016 fi
1017
Reid Spencera773bd52006-08-04 18:18:08 +00001018 case $ac_option in
1019 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020 *) ac_optarg=yes ;;
1021 esac
John Criswell7a73b802003-06-30 21:59:07 +00001022
1023 # Accept the important Cygnus configure options, so we can diagnose typos.
1024
Reid Spencera773bd52006-08-04 18:18:08 +00001025 case $ac_dashdash$ac_option in
1026 --)
1027 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001028
1029 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1030 ac_prev=bindir ;;
1031 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1032 bindir=$ac_optarg ;;
1033
1034 -build | --build | --buil | --bui | --bu)
1035 ac_prev=build_alias ;;
1036 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1037 build_alias=$ac_optarg ;;
1038
1039 -cache-file | --cache-file | --cache-fil | --cache-fi \
1040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1041 ac_prev=cache_file ;;
1042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1044 cache_file=$ac_optarg ;;
1045
1046 --config-cache | -C)
1047 cache_file=config.cache ;;
1048
Reid Spencera773bd52006-08-04 18:18:08 +00001049 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001050 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001051 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001052 datadir=$ac_optarg ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1055 | --dataroo | --dataro | --datar)
1056 ac_prev=datarootdir ;;
1057 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1058 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1059 datarootdir=$ac_optarg ;;
1060
John Criswell7a73b802003-06-30 21:59:07 +00001061 -disable-* | --disable-*)
1062 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001064 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001065 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1066 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001067 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001068 eval enable_$ac_feature=no ;;
1069
1070 -docdir | --docdir | --docdi | --doc | --do)
1071 ac_prev=docdir ;;
1072 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1073 docdir=$ac_optarg ;;
1074
1075 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1076 ac_prev=dvidir ;;
1077 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1078 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -enable-* | --enable-*)
1081 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1082 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001083 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001084 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1085 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001086 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001087 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001088
1089 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1090 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1091 | --exec | --exe | --ex)
1092 ac_prev=exec_prefix ;;
1093 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1094 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1095 | --exec=* | --exe=* | --ex=*)
1096 exec_prefix=$ac_optarg ;;
1097
1098 -gas | --gas | --ga | --g)
1099 # Obsolete; use --with-gas.
1100 with_gas=yes ;;
1101
1102 -help | --help | --hel | --he | -h)
1103 ac_init_help=long ;;
1104 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1105 ac_init_help=recursive ;;
1106 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1107 ac_init_help=short ;;
1108
1109 -host | --host | --hos | --ho)
1110 ac_prev=host_alias ;;
1111 -host=* | --host=* | --hos=* | --ho=*)
1112 host_alias=$ac_optarg ;;
1113
Reid Spencera773bd52006-08-04 18:18:08 +00001114 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1115 ac_prev=htmldir ;;
1116 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1117 | --ht=*)
1118 htmldir=$ac_optarg ;;
1119
John Criswell7a73b802003-06-30 21:59:07 +00001120 -includedir | --includedir | --includedi | --included | --include \
1121 | --includ | --inclu | --incl | --inc)
1122 ac_prev=includedir ;;
1123 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1124 | --includ=* | --inclu=* | --incl=* | --inc=*)
1125 includedir=$ac_optarg ;;
1126
1127 -infodir | --infodir | --infodi | --infod | --info | --inf)
1128 ac_prev=infodir ;;
1129 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1130 infodir=$ac_optarg ;;
1131
1132 -libdir | --libdir | --libdi | --libd)
1133 ac_prev=libdir ;;
1134 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1135 libdir=$ac_optarg ;;
1136
1137 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1138 | --libexe | --libex | --libe)
1139 ac_prev=libexecdir ;;
1140 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1141 | --libexe=* | --libex=* | --libe=*)
1142 libexecdir=$ac_optarg ;;
1143
Reid Spencera773bd52006-08-04 18:18:08 +00001144 -localedir | --localedir | --localedi | --localed | --locale)
1145 ac_prev=localedir ;;
1146 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1147 localedir=$ac_optarg ;;
1148
John Criswell7a73b802003-06-30 21:59:07 +00001149 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001150 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001151 ac_prev=localstatedir ;;
1152 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001153 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001154 localstatedir=$ac_optarg ;;
1155
1156 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1157 ac_prev=mandir ;;
1158 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1159 mandir=$ac_optarg ;;
1160
1161 -nfp | --nfp | --nf)
1162 # Obsolete; use --without-fp.
1163 with_fp=no ;;
1164
1165 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1166 | --no-cr | --no-c | -n)
1167 no_create=yes ;;
1168
1169 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1170 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1171 no_recursion=yes ;;
1172
1173 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1174 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1175 | --oldin | --oldi | --old | --ol | --o)
1176 ac_prev=oldincludedir ;;
1177 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1178 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1179 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1180 oldincludedir=$ac_optarg ;;
1181
1182 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1183 ac_prev=prefix ;;
1184 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1185 prefix=$ac_optarg ;;
1186
1187 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1188 | --program-pre | --program-pr | --program-p)
1189 ac_prev=program_prefix ;;
1190 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1191 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1192 program_prefix=$ac_optarg ;;
1193
1194 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1195 | --program-suf | --program-su | --program-s)
1196 ac_prev=program_suffix ;;
1197 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1198 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1199 program_suffix=$ac_optarg ;;
1200
1201 -program-transform-name | --program-transform-name \
1202 | --program-transform-nam | --program-transform-na \
1203 | --program-transform-n | --program-transform- \
1204 | --program-transform | --program-transfor \
1205 | --program-transfo | --program-transf \
1206 | --program-trans | --program-tran \
1207 | --progr-tra | --program-tr | --program-t)
1208 ac_prev=program_transform_name ;;
1209 -program-transform-name=* | --program-transform-name=* \
1210 | --program-transform-nam=* | --program-transform-na=* \
1211 | --program-transform-n=* | --program-transform-=* \
1212 | --program-transform=* | --program-transfor=* \
1213 | --program-transfo=* | --program-transf=* \
1214 | --program-trans=* | --program-tran=* \
1215 | --progr-tra=* | --program-tr=* | --program-t=*)
1216 program_transform_name=$ac_optarg ;;
1217
Reid Spencera773bd52006-08-04 18:18:08 +00001218 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1219 ac_prev=pdfdir ;;
1220 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1221 pdfdir=$ac_optarg ;;
1222
1223 -psdir | --psdir | --psdi | --psd | --ps)
1224 ac_prev=psdir ;;
1225 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1226 psdir=$ac_optarg ;;
1227
John Criswell7a73b802003-06-30 21:59:07 +00001228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1229 | -silent | --silent | --silen | --sile | --sil)
1230 silent=yes ;;
1231
1232 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1233 ac_prev=sbindir ;;
1234 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1235 | --sbi=* | --sb=*)
1236 sbindir=$ac_optarg ;;
1237
1238 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1239 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1240 | --sharedst | --shareds | --shared | --share | --shar \
1241 | --sha | --sh)
1242 ac_prev=sharedstatedir ;;
1243 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1244 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1245 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1246 | --sha=* | --sh=*)
1247 sharedstatedir=$ac_optarg ;;
1248
1249 -site | --site | --sit)
1250 ac_prev=site ;;
1251 -site=* | --site=* | --sit=*)
1252 site=$ac_optarg ;;
1253
1254 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1255 ac_prev=srcdir ;;
1256 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1257 srcdir=$ac_optarg ;;
1258
1259 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1260 | --syscon | --sysco | --sysc | --sys | --sy)
1261 ac_prev=sysconfdir ;;
1262 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1263 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1264 sysconfdir=$ac_optarg ;;
1265
1266 -target | --target | --targe | --targ | --tar | --ta | --t)
1267 ac_prev=target_alias ;;
1268 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1269 target_alias=$ac_optarg ;;
1270
1271 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1272 verbose=yes ;;
1273
1274 -version | --version | --versio | --versi | --vers | -V)
1275 ac_init_version=: ;;
1276
1277 -with-* | --with-*)
1278 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1279 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001283 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 -without-* | --without-*)
1287 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
Tanya Lattnercf067672008-01-17 05:57:22 +00001289 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001290 { echo "$as_me: error: invalid package name: $ac_package" >&2
1291 { (exit 1); exit 1; }; }
Tanya Lattnercf067672008-01-17 05:57:22 +00001292 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001293 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1304 x_includes=$ac_optarg ;;
1305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1311 x_libraries=$ac_optarg ;;
1312
1313 -*) { echo "$as_me: error: unrecognized option: $ac_option
1314Try \`$0 --help' for more information." >&2
1315 { (exit 1); exit 1; }; }
1316 ;;
1317
1318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
1321 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1322 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1323 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001324 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001325 export $ac_envvar ;;
1326
1327 *)
1328 # FIXME: should be removed in autoconf 3.0.
1329 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1331 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1332 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
1339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1340 { echo "$as_me: error: missing argument to $ac_option" >&2
1341 { (exit 1); exit 1; }; }
1342fi
1343
Reid Spencera773bd52006-08-04 18:18:08 +00001344# Be sure to have absolute directory names.
1345for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1346 datadir sysconfdir sharedstatedir localstatedir includedir \
1347 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1348 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001349do
Reid Spencera773bd52006-08-04 18:18:08 +00001350 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001351 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001354 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001355 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1356 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used." >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
Reid Spencera773bd52006-08-04 18:18:08 +00001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386 { echo "$as_me: error: Working directory cannot be determined" >&2
1387 { (exit 1); exit 1; }; }
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 { echo "$as_me: error: pwd does not report name of working directory" >&2
1390 { (exit 1); exit 1; }; }
1391
1392
John Criswell7a73b802003-06-30 21:59:07 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001398$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001399 X"$0" : 'X\(//\)[^/]' \| \
1400 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001401 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001402echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001420 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001421 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Reid Spencera773bd52006-08-04 18:18:08 +00001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001430 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1433ac_abs_confdir=`(
1434 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001435 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001436 pwd)`
1437# When building in place, set srcdir=.
1438if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 srcdir=.
1440fi
1441# Remove unnecessary trailing slashes from srcdir.
1442# Double slashes in file names in object file debugging info
1443# mess up M-x gdb in Emacs.
1444case $srcdir in
1445*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1446esac
1447for ac_var in $ac_precious_vars; do
1448 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_env_${ac_var}_value=\$${ac_var}
1450 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1451 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1452done
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454#
1455# Report the --help message.
1456#
1457if test "$ac_init_help" = "long"; then
1458 # Omit some internal or obsolete options to make the list less imposing.
1459 # This message is too long to be a string in the A/UX 3.1 sh.
1460 cat <<_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001461\`configure' configures llvm 2.3svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001462
1463Usage: $0 [OPTION]... [VAR=VALUE]...
1464
1465To assign environment variables (e.g., CC, CFLAGS...), specify them as
1466VAR=VALUE. See below for descriptions of some of the useful variables.
1467
1468Defaults for the options are specified in brackets.
1469
1470Configuration:
1471 -h, --help display this help and exit
1472 --help=short display options specific to this package
1473 --help=recursive display the short help of all the included packages
1474 -V, --version display version information and exit
1475 -q, --quiet, --silent do not print \`checking...' messages
1476 --cache-file=FILE cache test results in FILE [disabled]
1477 -C, --config-cache alias for \`--cache-file=config.cache'
1478 -n, --no-create do not create output files
1479 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1480
John Criswell7a73b802003-06-30 21:59:07 +00001481Installation directories:
1482 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001483 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001485 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001486
1487By default, \`make install' will install all the files in
1488\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1489an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1490for instance \`--prefix=\$HOME'.
1491
1492For better control, use the options below.
1493
1494Fine tuning of the installation directories:
1495 --bindir=DIR user executables [EPREFIX/bin]
1496 --sbindir=DIR system admin executables [EPREFIX/sbin]
1497 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001498 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1499 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1500 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1501 --libdir=DIR object code libraries [EPREFIX/lib]
1502 --includedir=DIR C header files [PREFIX/include]
1503 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001504 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1505 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1506 --infodir=DIR info documentation [DATAROOTDIR/info]
1507 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1508 --mandir=DIR man documentation [DATAROOTDIR/man]
1509 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1510 --htmldir=DIR html documentation [DOCDIR]
1511 --dvidir=DIR dvi documentation [DOCDIR]
1512 --pdfdir=DIR pdf documentation [DOCDIR]
1513 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001514_ACEOF
1515
1516 cat <<\_ACEOF
1517
1518System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 --target=TARGET configure for building compilers for TARGET [HOST]
1522_ACEOF
1523fi
1524
1525if test -n "$ac_init_help"; then
1526 case $ac_init_help in
Tanya Lattnercf067672008-01-17 05:57:22 +00001527 short | recursive ) echo "Configuration of llvm 2.3svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001528 esac
1529 cat <<\_ACEOF
1530
1531Optional Features:
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001534 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001535 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001536 --enable-expensive-checks
1537
Reid Spencer8b2e1412006-11-17 03:32:33 +00001538 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001540 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001541 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001542 --enable-pic Build LLVM with Position Independent Code (default
1543 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001544 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001545 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001546 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1547 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001548 --enable-bindings Build specific language bindings:
1549 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001550 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001551 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001552 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001553 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001554 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001555 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001558 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001563 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1564 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001565 --with-llvmgcc Specify location of llvm-gcc driver (default
1566 searches PATH)
1567 --with-llvmgxx Specify location of llvm-g++ driver (default
1568 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001569 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001570 --with-ocaml-libdir Specify install location for ocaml bindings (default
1571 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001572 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-pic try to use only PIC/non-PIC objects [default=use
1575 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001576 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001577 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001580 CC C compiler command
1581 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001586 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001587 CXX C++ compiler command
1588 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001589 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1590 the first program found out of: `bison -y', `byacc', `yacc'.
1591 YFLAGS The list of arguments that will be passed by default to $YACC.
1592 This script will default YFLAGS to the empty string to avoid a
1593 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001594 CXXCPP C++ preprocessor
1595 F77 Fortran 77 compiler command
1596 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
1601Report bugs to <llvmbugs@cs.uiuc.edu>.
1602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001603ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001609 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001610 ac_builddir=.
1611
Reid Spencera773bd52006-08-04 18:18:08 +00001612case "$ac_dir" in
1613.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614*)
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001616 # A ".." for each directory in $ac_dir_suffix.
1617 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1618 case $ac_top_builddir_sub in
1619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 esac ;;
1622esac
1623ac_abs_top_builddir=$ac_pwd
1624ac_abs_builddir=$ac_pwd$ac_dir_suffix
1625# for backward compatibility:
1626ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001627
1628case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001629 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$ac_top_builddir_sub
1632 ac_abs_top_srcdir=$ac_pwd ;;
1633 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001634 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001635 ac_top_srcdir=$srcdir
1636 ac_abs_top_srcdir=$srcdir ;;
1637 *) # Relative name.
1638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1639 ac_top_srcdir=$ac_top_build_prefix$srcdir
1640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001641esac
Reid Spencera773bd52006-08-04 18:18:08 +00001642ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644 cd "$ac_dir" || { ac_status=$?; continue; }
1645 # Check for guested configure.
1646 if test -f "$ac_srcdir/configure.gnu"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1649 elif test -f "$ac_srcdir/configure"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001652 else
1653 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001654 fi || ac_status=$?
1655 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001656 done
1657fi
1658
Reid Spencera773bd52006-08-04 18:18:08 +00001659test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001660if $ac_init_version; then
1661 cat <<\_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00001662llvm configure 2.3svn
1663generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001664
Reid Spencera773bd52006-08-04 18:18:08 +00001665Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16662002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001667This configure script is free software; the Free Software Foundation
1668gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001669
Tanya Lattnercf067672008-01-17 05:57:22 +00001670Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001671_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001672 exit
John Criswell7a73b802003-06-30 21:59:07 +00001673fi
Reid Spencera773bd52006-08-04 18:18:08 +00001674cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001675This file contains any messages produced by compilers while
1676running configure, to aid debugging if configure makes a mistake.
1677
Tanya Lattnercf067672008-01-17 05:57:22 +00001678It was created by llvm $as_me 2.3svn, which was
1679generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001680
1681 $ $0 $@
1682
1683_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001684exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001685{
1686cat <<_ASUNAME
1687## --------- ##
1688## Platform. ##
1689## --------- ##
1690
1691hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001703/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001704/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708_ASUNAME
1709
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 echo "PATH: $as_dir"
1716done
Reid Spencera773bd52006-08-04 18:18:08 +00001717IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001718
1719} >&5
1720
1721cat >&5 <<_ACEOF
1722
1723
1724## ----------- ##
1725## Core tests. ##
1726## ----------- ##
1727
1728_ACEOF
1729
1730
1731# Keep a trace of the command line.
1732# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001734# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001735# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001736ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001737ac_configure_args0=
1738ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001739ac_must_keep_next=false
1740for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001741do
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001749 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001750 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001757 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001758 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001770 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001771 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001772 ;;
1773 esac
1774 done
John Criswell7a73b802003-06-30 21:59:07 +00001775done
John Criswell0c38eaf2003-09-10 15:17:25 +00001776$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777$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 +00001778
1779# When interrupted or exit'd, cleanup temporary files, and complete
1780# config.log. We remove comments because anyway the quotes in there
1781# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001782# WARNING: Use '\'' to represent an apostrophe within the trap.
1783# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001784trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001788
John Criswell7a73b802003-06-30 21:59:07 +00001789 cat <<\_ASBOX
1790## ---------------- ##
1791## Cache variables. ##
1792## ---------------- ##
1793_ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001796(
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1803echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 *) $as_unset $ac_var ;;
1808 esac ;;
1809 esac
1810 done
John Criswell7a73b802003-06-30 21:59:07 +00001811 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001814 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001818 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001821 esac |
1822 sort
1823)
John Criswell7a73b802003-06-30 21:59:07 +00001824 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001825
1826 cat <<\_ASBOX
1827## ----------------- ##
1828## Output variables. ##
1829## ----------------- ##
1830_ASBOX
1831 echo
1832 for ac_var in $ac_subst_vars
1833 do
Reid Spencera773bd52006-08-04 18:18:08 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
1843 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001844## ------------------- ##
1845## File substitutions. ##
1846## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001847_ASBOX
1848 echo
1849 for ac_var in $ac_subst_files
1850 do
Reid Spencera773bd52006-08-04 18:18:08 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001856 done | sort
1857 echo
1858 fi
1859
John Criswell7a73b802003-06-30 21:59:07 +00001860 if test -s confdefs.h; then
1861 cat <<\_ASBOX
1862## ----------- ##
1863## confdefs.h. ##
1864## ----------- ##
1865_ASBOX
1866 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001867 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
1871 echo "$as_me: caught signal $ac_signal"
1872 echo "$as_me: exit $exit_status"
1873 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001876 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001877' 0
John Criswell7a73b802003-06-30 21:59:07 +00001878for ac_signal in 1 2 13 15; do
1879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001884rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001885
1886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1910_ACEOF
1911
1912
1913# Let the site file select an alternate cache file if it wants to.
1914# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001915if test -n "$CONFIG_SITE"; then
1916 set x "$CONFIG_SITE"
1917elif test "x$prefix" != xNONE; then
1918 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1919else
1920 set x "$ac_default_prefix/share/config.site" \
1921 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001922fi
Reid Spencera773bd52006-08-04 18:18:08 +00001923shift
1924for ac_site_file
1925do
John Criswell7a73b802003-06-30 21:59:07 +00001926 if test -r "$ac_site_file"; then
1927 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1928echo "$as_me: loading site script $ac_site_file" >&6;}
1929 sed 's/^/| /' "$ac_site_file" >&5
1930 . "$ac_site_file"
1931 fi
1932done
1933
1934if test -r "$cache_file"; then
1935 # Some versions of bash will fail to source /dev/null (special
1936 # files actually), so we avoid doing that.
1937 if test -f "$cache_file"; then
1938 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1939echo "$as_me: loading cache $cache_file" >&6;}
1940 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001941 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1942 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001943 esac
1944 fi
1945else
1946 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1947echo "$as_me: creating cache $cache_file" >&6;}
1948 >$cache_file
1949fi
1950
1951# Check that the precious variables saved in the cache have kept the same
1952# value.
1953ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001954for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001955 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1956 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001957 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1958 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001959 case $ac_old_set,$ac_new_set in
1960 set,)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,set)
1965 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1966echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,);;
1969 *)
1970 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001974echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001975 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001976echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001977 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001978 fi;;
1979 esac
1980 # Pass precious variables to config.status.
1981 if test "$ac_new_set" = set; then
1982 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001983 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001984 *) ac_arg=$ac_var=$ac_new_val ;;
1985 esac
1986 case " $ac_configure_args " in
1987 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1988 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1989 esac
1990 fi
1991done
1992if $ac_cache_corrupted; then
1993 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1994echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1995 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1996echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1997 { (exit 1); exit 1; }; }
1998fi
1999
Reid Spencera773bd52006-08-04 18:18:08 +00002000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
John Criswell7a73b802003-06-30 21:59:07 +00002024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029
2030
2031
Tanya Lattnercf067672008-01-17 05:57:22 +00002032LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002033
2034
2035
2036
2037
2038
2039
John Criswell7a73b802003-06-30 21:59:07 +00002040ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002041for ac_dir in autoconf "$srcdir"/autoconf; do
2042 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install-sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/install.sh -c"
2049 break
Reid Spencera773bd52006-08-04 18:18:08 +00002050 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002051 ac_aux_dir=$ac_dir
2052 ac_install_sh="$ac_aux_dir/shtool install -c"
2053 break
2054 fi
2055done
2056if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002057 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2058echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002059 { (exit 1); exit 1; }; }
2060fi
Reid Spencera773bd52006-08-04 18:18:08 +00002061
2062# These three variables are undocumented and unsupported,
2063# and are intended to be withdrawn in a future Autoconf release.
2064# They can cause serious problems if a builder's source tree is in a directory
2065# whose full name contains unusual characters.
2066ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2067ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2068ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2069
John Criswell7a73b802003-06-30 21:59:07 +00002070
John Criswell392aaa32003-07-22 19:18:09 +00002071
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2074 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002075echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2076 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002077 fi
John Criswell93e1c722003-09-15 17:04:06 +00002078fi
2079
John Criswell33a911a2003-11-25 20:36:46 +00002080for i in `ls ${srcdir}/projects`
2081do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 if test -d ${srcdir}/projects/${i} ; then
2083 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 CVS) ;;
2085 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002087 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002088 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 ;;
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002091 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 ;;
2093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002102 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002103 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002106 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 esac
John Criswell33a911a2003-11-25 20:36:46 +00002112 fi
2113done
John Criswell559a6c12003-09-30 16:31:48 +00002114
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121
Reid Spencera773bd52006-08-04 18:18:08 +00002122{ echo "$as_me:$LINENO: checking build system type" >&5
2123echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002124if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
Reid Spencera773bd52006-08-04 18:18:08 +00002127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
2139fi
Reid Spencera773bd52006-08-04 18:18:08 +00002140{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141echo "${ECHO_T}$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
2144*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147esac
John Criswell7a73b802003-06-30 21:59:07 +00002148build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161
Reid Spencera773bd52006-08-04 18:18:08 +00002162{ echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002164if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
Reid Spencera773bd52006-08-04 18:18:08 +00002167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002173 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002174fi
John Criswell7a73b802003-06-30 21:59:07 +00002175
2176fi
Reid Spencera773bd52006-08-04 18:18:08 +00002177{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178echo "${ECHO_T}$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
John Criswell7a73b802003-06-30 21:59:07 +00002185host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198
Reid Spencera773bd52006-08-04 18:18:08 +00002199{ echo "$as_me:$LINENO: checking target system type" >&5
2200echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002201if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
Reid Spencera773bd52006-08-04 18:18:08 +00002204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2206else
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002211fi
John Criswell7a73b802003-06-30 21:59:07 +00002212
2213fi
Reid Spencera773bd52006-08-04 18:18:08 +00002214{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
John Criswell7a73b802003-06-30 21:59:07 +00002222target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_target
2225shift
2226target_cpu=$1
2227target_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231target_os=$*
2232IFS=$ac_save_IFS
2233case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235
2236# The aliases save the names the user supplied, while $host etc.
2237# will get canonicalized.
2238test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2240 NONENONEs,x,x, &&
2241 program_prefix=${target_alias}-
2242
Reid Spencera773bd52006-08-04 18:18:08 +00002243{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002248 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002254 *-*-irix*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002266 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002274 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002279 *-*-netbsd*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002284 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002287 llvm_cv_os_type="HP-UX"
2288 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292 llvm_cv_os_type="Interix"
2293 llvm_cv_platform_type="Unix" ;;
2294 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Linux"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,-z,allextract"
2301 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="SunOS"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,--whole-archive"
2306 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="Win32"
2308 llvm_cv_platform_type="Win32" ;;
2309 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="MingW"
2313 llvm_cv_platform_type="Win32" ;;
2314 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option=""
2316 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="Unknown"
2318 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002319esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002320fi
Reid Spencera773bd52006-08-04 18:18:08 +00002321{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2322echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002323
Reid Spencer7b3e8512004-12-24 06:29:05 +00002324if test "$llvm_cv_os_type" = "Unknown" ; then
2325 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2326echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002327 { (exit 1); exit 1; }; }
2328fi
2329
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331
2332
Reid Spencera773bd52006-08-04 18:18:08 +00002333LINKALL=$llvm_cv_link_all_option
2334
2335NOLINKALL=$llvm_cv_no_link_all_option
2336
2337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338case $llvm_cv_platform_type in
2339 Unix)
2340
2341cat >>confdefs.h <<\_ACEOF
2342#define LLVM_ON_UNIX 1
2343_ACEOF
2344
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002345 LLVM_ON_UNIX=1
2346
2347 LLVM_ON_WIN32=0
2348
Reid Spencer7b3e8512004-12-24 06:29:05 +00002349 ;;
2350 Win32)
2351
2352cat >>confdefs.h <<\_ACEOF
2353#define LLVM_ON_WIN32 1
2354_ACEOF
2355
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002356 LLVM_ON_UNIX=0
2357
2358 LLVM_ON_WIN32=1
2359
Reid Spencer7b3e8512004-12-24 06:29:05 +00002360 ;;
2361esac
2362
Reid Spencera773bd52006-08-04 18:18:08 +00002363{ echo "$as_me:$LINENO: checking target architecture" >&5
2364echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002365if test "${llvm_cv_target_arch+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367else
2368 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002369 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002370 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002371 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2372 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002373 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002374 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002375 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002376 mips-*) llvm_cv_target_arch="Mips" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002377 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002378esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379fi
Reid Spencera773bd52006-08-04 18:18:08 +00002380{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2381echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002382
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002383if test "$llvm_cv_target_arch" = "Unknown" ; then
2384 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2385echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2386fi
John Criswell76595452003-07-01 22:07:39 +00002387
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002388ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002389
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391ac_ext=c
2392ac_cpp='$CPP $CPPFLAGS'
2393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002396if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2398set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401if test "${ac_cv_prog_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404 if test -n "$CC"; then
2405 ac_cv_prog_CC="$CC" # Let the user override the test.
2406else
2407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408for as_dir in $PATH
2409do
2410 IFS=$as_save_IFS
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002413 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 +00002414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 break 2
2417 fi
2418done
2419done
Reid Spencera773bd52006-08-04 18:18:08 +00002420IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002426 { echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428else
Reid Spencera773bd52006-08-04 18:18:08 +00002429 { echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431fi
2432
Reid Spencera773bd52006-08-04 18:18:08 +00002433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434fi
2435if test -z "$ac_cv_prog_CC"; then
2436 ac_ct_CC=$CC
2437 # Extract the first word of "gcc", so it can be a program name with args.
2438set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443else
2444 if test -n "$ac_ct_CC"; then
2445 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2446else
2447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448for as_dir in $PATH
2449do
2450 IFS=$as_save_IFS
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002453 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 +00002454 ac_cv_prog_ac_ct_CC="gcc"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 break 2
2457 fi
2458done
2459done
Reid Spencera773bd52006-08-04 18:18:08 +00002460IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461
2462fi
2463fi
2464ac_ct_CC=$ac_cv_prog_ac_ct_CC
2465if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2467echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468else
Reid Spencera773bd52006-08-04 18:18:08 +00002469 { echo "$as_me:$LINENO: result: no" >&5
2470echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002471fi
2472
Reid Spencera773bd52006-08-04 18:18:08 +00002473 if test "x$ac_ct_CC" = x; then
2474 CC=""
2475 else
2476 case $cross_compiling:$ac_tool_warned in
2477yes:)
2478{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2479whose name does not start with the host triplet. If you think this
2480configuration is useful to you, please write to autoconf@gnu.org." >&5
2481echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2482whose name does not start with the host triplet. If you think this
2483configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2484ac_tool_warned=yes ;;
2485esac
2486 CC=$ac_ct_CC
2487 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
2489 CC="$ac_cv_prog_CC"
2490fi
2491
2492if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002493 if test -n "$ac_tool_prefix"; then
2494 # 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 +00002495set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002496{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2503else
2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH
2506do
2507 IFS=$as_save_IFS
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002510 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 +00002511 ac_cv_prog_CC="${ac_tool_prefix}cc"
2512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 break 2
2514 fi
2515done
2516done
Reid Spencera773bd52006-08-04 18:18:08 +00002517IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002518
2519fi
2520fi
2521CC=$ac_cv_prog_CC
2522if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002523 { echo "$as_me:$LINENO: result: $CC" >&5
2524echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525else
Reid Spencera773bd52006-08-04 18:18:08 +00002526 { echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002528fi
2529
Reid Spencera773bd52006-08-04 18:18:08 +00002530
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002531 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532fi
2533if test -z "$CC"; then
2534 # Extract the first word of "cc", so it can be a program name with args.
2535set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538if test "${ac_cv_prog_CC+set}" = set; then
2539 echo $ECHO_N "(cached) $ECHO_C" >&6
2540else
2541 if test -n "$CC"; then
2542 ac_cv_prog_CC="$CC" # Let the user override the test.
2543else
2544 ac_prog_rejected=no
2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546for as_dir in $PATH
2547do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002551 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 +00002552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2553 ac_prog_rejected=yes
2554 continue
2555 fi
2556 ac_cv_prog_CC="cc"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 break 2
2559 fi
2560done
2561done
Reid Spencera773bd52006-08-04 18:18:08 +00002562IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563
2564if test $ac_prog_rejected = yes; then
2565 # We found a bogon in the path, so make sure we never use it.
2566 set dummy $ac_cv_prog_CC
2567 shift
2568 if test $# != 0; then
2569 # We chose a different compiler from the bogus one.
2570 # However, it has the same basename, so the bogon will be chosen
2571 # first if we set CC to just the basename; use the full file name.
2572 shift
2573 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 fi
2575fi
2576fi
2577fi
2578CC=$ac_cv_prog_CC
2579if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002580 { echo "$as_me:$LINENO: result: $CC" >&5
2581echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002582else
Reid Spencera773bd52006-08-04 18:18:08 +00002583 { echo "$as_me:$LINENO: result: no" >&5
2584echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002585fi
2586
Reid Spencera773bd52006-08-04 18:18:08 +00002587
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002588fi
2589if test -z "$CC"; then
2590 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002591 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002592 do
2593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002595{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002597if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002598 echo $ECHO_N "(cached) $ECHO_C" >&6
2599else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 if test -n "$CC"; then
2601 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002602else
2603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2604for as_dir in $PATH
2605do
2606 IFS=$as_save_IFS
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002609 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 +00002610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2612 break 2
2613 fi
2614done
2615done
Reid Spencera773bd52006-08-04 18:18:08 +00002616IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002617
2618fi
2619fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002620CC=$ac_cv_prog_CC
2621if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002622 { echo "$as_me:$LINENO: result: $CC" >&5
2623echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002624else
Reid Spencera773bd52006-08-04 18:18:08 +00002625 { echo "$as_me:$LINENO: result: no" >&5
2626echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002627fi
2628
Reid Spencera773bd52006-08-04 18:18:08 +00002629
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002631 done
2632fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002633if test -z "$CC"; then
2634 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002635 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002636do
2637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2638set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002642 echo $ECHO_N "(cached) $ECHO_C" >&6
2643else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002646else
2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648for as_dir in $PATH
2649do
2650 IFS=$as_save_IFS
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00002653 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 +00002654 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 break 2
2657 fi
2658done
2659done
Reid Spencera773bd52006-08-04 18:18:08 +00002660IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002661
2662fi
2663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664ac_ct_CC=$ac_cv_prog_ac_ct_CC
2665if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002666 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2667echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002668else
Reid Spencera773bd52006-08-04 18:18:08 +00002669 { echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
2672
Reid Spencera773bd52006-08-04 18:18:08 +00002673
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002674 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002675done
John Criswell7a73b802003-06-30 21:59:07 +00002676
Reid Spencera773bd52006-08-04 18:18:08 +00002677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681yes:)
2682{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683whose name does not start with the host triplet. If you think this
2684configuration is useful to you, please write to autoconf@gnu.org." >&5
2685echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686whose name does not start with the host triplet. If you think this
2687configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2688ac_tool_warned=yes ;;
2689esac
2690 CC=$ac_ct_CC
2691 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692fi
2693
John Criswell7a73b802003-06-30 21:59:07 +00002694fi
2695
2696
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002697test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2698See \`config.log' for more details." >&5
2699echo "$as_me: error: no acceptable C compiler found in \$PATH
2700See \`config.log' for more details." >&2;}
2701 { (exit 1); exit 1; }; }
2702
John Criswell7a73b802003-06-30 21:59:07 +00002703# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002704echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002705ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002706{ (ac_try="$ac_compiler --version >&5"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002713 ac_status=$?
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002716{ (ac_try="$ac_compiler -v >&5"
2717case "(($ac_try" in
2718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2719 *) ac_try_echo=$ac_try;;
2720esac
2721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2722 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002723 ac_status=$?
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002726{ (ac_try="$ac_compiler -V >&5"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
2731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736
2737cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002743
John Criswell7a73b802003-06-30 21:59:07 +00002744int
2745main ()
2746{
2747
2748 ;
2749 return 0;
2750}
2751_ACEOF
2752ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002753ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002754# Try to create an executable without -o first, disregard a.out.
2755# It will help us diagnose broken compilers, and finding out an intuition
2756# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002757{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002760#
2761# List of possible output files, starting from the most likely.
2762# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2763# only as a last resort. b.out is created by i960 compilers.
2764ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2765#
2766# The IRIX 6 linker writes into existing files which may not be
2767# executable, retaining their permissions. Remove them first so a
2768# subsequent execution test works.
2769ac_rmfiles=
2770for ac_file in $ac_files
2771do
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2774 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 esac
2776done
2777rm -f $ac_rmfiles
2778
2779if { (ac_try="$ac_link_default"
2780case "(($ac_try" in
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2783esac
2784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2790# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2791# in a Makefile. We should not override ac_cv_exeext if it was cached,
2792# so that the user can short-circuit this test for compilers unknown to
2793# Autoconf.
Tanya Lattnercf067672008-01-17 05:57:22 +00002794for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002795do
2796 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002797 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002799 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002801 # We found the default executable, but exeext='' is most
2802 # certainly right.
2803 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2806 then :; else
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2808 fi
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2813 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002814 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002815 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002816 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002817 esac
2818done
Reid Spencera773bd52006-08-04 18:18:08 +00002819test "$ac_cv_exeext" = no && ac_cv_exeext=
2820
John Criswell7a73b802003-06-30 21:59:07 +00002821else
2822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002823sed 's/^/| /' conftest.$ac_ext >&5
2824
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002825{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002826See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002828See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002829 { (exit 77); exit 77; }; }
2830fi
2831
2832ac_exeext=$ac_cv_exeext
Tanya Lattnercf067672008-01-17 05:57:22 +00002833{ echo "$as_me:$LINENO: result: $ac_file" >&5
2834echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002835
Reid Spencera773bd52006-08-04 18:18:08 +00002836# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002837# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2839echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2841# If not cross compiling, check that we can run a simple program.
2842if test "$cross_compiling" != yes; then
2843 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002844 { (case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847esac
2848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 cross_compiling=no
2854 else
2855 if test "$cross_compiling" = maybe; then
2856 cross_compiling=yes
2857 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002858 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002859If you meant to cross compile, use \`--host'.
2860See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002861echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002862If you meant to cross compile, use \`--host'.
2863See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002864 { (exit 1); exit 1; }; }
2865 fi
2866 fi
2867fi
Reid Spencera773bd52006-08-04 18:18:08 +00002868{ echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002870
John Criswell0c38eaf2003-09-10 15:17:25 +00002871rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002872ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002873# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002874# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2876echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2877{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2878echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2881echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2882if { (ac_try="$ac_link"
2883case "(($ac_try" in
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2886esac
2887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
2892 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2893# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2894# work properly (i.e., refer to `conftest.exe'), while it won't with
2895# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002896for ac_file in conftest.exe conftest conftest.*; do
2897 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002898 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002900 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002901 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002902 * ) break;;
2903 esac
2904done
2905else
John Criswell0c38eaf2003-09-10 15:17:25 +00002906 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2907See \`config.log' for more details." >&5
2908echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2909See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002910 { (exit 1); exit 1; }; }
2911fi
2912
2913rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002914{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2915echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002916
2917rm -f conftest.$ac_ext
2918EXEEXT=$ac_cv_exeext
2919ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002920{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2921echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002922if test "${ac_cv_objext+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
2925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002931
John Criswell7a73b802003-06-30 21:59:07 +00002932int
2933main ()
2934{
2935
2936 ;
2937 return 0;
2938}
2939_ACEOF
2940rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002941if { (ac_try="$ac_compile"
2942case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2945esac
2946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002951 for ac_file in conftest.o conftest.obj conftest.*; do
2952 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002953 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002955 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 break;;
2957 esac
2958done
2959else
2960 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002961sed 's/^/| /' conftest.$ac_ext >&5
2962
2963{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: cannot compute suffix of object files: cannot compile
2966See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002967 { (exit 1); exit 1; }; }
2968fi
2969
2970rm -f conftest.$ac_cv_objext conftest.$ac_ext
2971fi
Reid Spencera773bd52006-08-04 18:18:08 +00002972{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2973echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002974OBJEXT=$ac_cv_objext
2975ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002976{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2977echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002978if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980else
2981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002982/* confdefs.h. */
2983_ACEOF
2984cat confdefs.h >>conftest.$ac_ext
2985cat >>conftest.$ac_ext <<_ACEOF
2986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002987
John Criswell7a73b802003-06-30 21:59:07 +00002988int
2989main ()
2990{
2991#ifndef __GNUC__
2992 choke me
2993#endif
2994
2995 ;
2996 return 0;
2997}
2998_ACEOF
2999rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003000if { (ac_try="$ac_compile"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003007 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003008 grep -v '^ *+' conftest.er1 >conftest.err
3009 rm -f conftest.er1
3010 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003012 (exit $ac_status); } &&
3013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3014 { (case "(($ac_try" in
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3017esac
3018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_try") 2>&5
3020 ac_status=$?
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }; } &&
3023 { ac_try='test -s conftest.$ac_objext'
3024 { (case "(($ac_try" in
3025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003033 ac_compiler_gnu=yes
3034else
3035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003036sed 's/^/| /' conftest.$ac_ext >&5
3037
Reid Spencera773bd52006-08-04 18:18:08 +00003038 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003039fi
Reid Spencera773bd52006-08-04 18:18:08 +00003040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003042ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003043
3044fi
Reid Spencera773bd52006-08-04 18:18:08 +00003045{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3046echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003047GCC=`test $ac_compiler_gnu = yes && echo yes`
3048ac_test_CFLAGS=${CFLAGS+set}
3049ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003050{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3051echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003052if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
Reid Spencera773bd52006-08-04 18:18:08 +00003055 ac_save_c_werror_flag=$ac_c_werror_flag
3056 ac_c_werror_flag=yes
3057 ac_cv_prog_cc_g=no
3058 CFLAGS="-g"
3059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003060/* confdefs.h. */
3061_ACEOF
3062cat confdefs.h >>conftest.$ac_ext
3063cat >>conftest.$ac_ext <<_ACEOF
3064/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003065
John Criswell7a73b802003-06-30 21:59:07 +00003066int
3067main ()
3068{
3069
3070 ;
3071 return 0;
3072}
3073_ACEOF
3074rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003075if { (ac_try="$ac_compile"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3081 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3089 { (case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
3093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_try") 2>&5
3095 ac_status=$?
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; } &&
3098 { ac_try='test -s conftest.$ac_objext'
3099 { (case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102esac
3103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_try") 2>&5
3105 ac_status=$?
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003108 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003109else
3110 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003111sed 's/^/| /' conftest.$ac_ext >&5
3112
Reid Spencera773bd52006-08-04 18:18:08 +00003113 CFLAGS=""
3114 cat >conftest.$ac_ext <<_ACEOF
3115/* confdefs.h. */
3116_ACEOF
3117cat confdefs.h >>conftest.$ac_ext
3118cat >>conftest.$ac_ext <<_ACEOF
3119/* end confdefs.h. */
3120
3121int
3122main ()
3123{
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129rm -f conftest.$ac_objext
3130if { (ac_try="$ac_compile"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003142 (exit $ac_status); } &&
3143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3144 { (case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149 (eval "$ac_try") 2>&5
3150 ac_status=$?
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152 (exit $ac_status); }; } &&
3153 { ac_try='test -s conftest.$ac_objext'
3154 { (case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157esac
3158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159 (eval "$ac_try") 2>&5
3160 ac_status=$?
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003163 :
3164else
3165 echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168 ac_c_werror_flag=$ac_save_c_werror_flag
3169 CFLAGS="-g"
3170 cat >conftest.$ac_ext <<_ACEOF
3171/* confdefs.h. */
3172_ACEOF
3173cat confdefs.h >>conftest.$ac_ext
3174cat >>conftest.$ac_ext <<_ACEOF
3175/* end confdefs.h. */
3176
3177int
3178main ()
3179{
3180
3181 ;
3182 return 0;
3183}
3184_ACEOF
3185rm -f conftest.$ac_objext
3186if { (ac_try="$ac_compile"
3187case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190esac
3191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_compile") 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003198 (exit $ac_status); } &&
3199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_try") 2>&5
3206 ac_status=$?
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); }; } &&
3209 { ac_try='test -s conftest.$ac_objext'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
3216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003219 ac_cv_prog_cc_g=yes
3220else
3221 echo "$as_me: failed program was:" >&5
3222sed 's/^/| /' conftest.$ac_ext >&5
3223
3224
John Criswell7a73b802003-06-30 21:59:07 +00003225fi
Reid Spencera773bd52006-08-04 18:18:08 +00003226
3227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003228fi
Reid Spencera773bd52006-08-04 18:18:08 +00003229
3230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
3232
3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 ac_c_werror_flag=$ac_save_c_werror_flag
3235fi
3236{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3237echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003238if test "$ac_test_CFLAGS" = set; then
3239 CFLAGS=$ac_save_CFLAGS
3240elif test $ac_cv_prog_cc_g = yes; then
3241 if test "$GCC" = yes; then
3242 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003243 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003244 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003245 fi
3246else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003247 if test "$GCC" = yes; then
3248 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003249 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003250 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003251 fi
3252fi
Reid Spencera773bd52006-08-04 18:18:08 +00003253{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3254echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3255if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
Reid Spencera773bd52006-08-04 18:18:08 +00003258 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259ac_save_CC=$CC
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
3268#include <sys/types.h>
3269#include <sys/stat.h>
3270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
3288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003292 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003295 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
Reid Spencera773bd52006-08-04 18:18:08 +00003298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319do
3320 CC="$ac_save_CC $ac_arg"
3321 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003322if { (ac_try="$ac_compile"
3323case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326esac
3327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003334 (exit $ac_status); } &&
3335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3336 { (case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
3340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_try") 2>&5
3342 ac_status=$?
3343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344 (exit $ac_status); }; } &&
3345 { ac_try='test -s conftest.$ac_objext'
3346 { (case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_try") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003355 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003356else
3357 echo "$as_me: failed program was:" >&5
3358sed 's/^/| /' conftest.$ac_ext >&5
3359
Reid Spencera773bd52006-08-04 18:18:08 +00003360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003361fi
Reid Spencera773bd52006-08-04 18:18:08 +00003362
3363rm -f core conftest.err conftest.$ac_objext
3364 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365done
Reid Spencera773bd52006-08-04 18:18:08 +00003366rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003367CC=$ac_save_CC
3368
3369fi
Reid Spencera773bd52006-08-04 18:18:08 +00003370# AC_CACHE_VAL
3371case "x$ac_cv_prog_cc_c89" in
3372 x)
3373 { echo "$as_me:$LINENO: result: none needed" >&5
3374echo "${ECHO_T}none needed" >&6; } ;;
3375 xno)
3376 { echo "$as_me:$LINENO: result: unsupported" >&5
3377echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003378 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003379 CC="$CC $ac_cv_prog_cc_c89"
3380 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3381echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003382esac
3383
John Criswell0c38eaf2003-09-10 15:17:25 +00003384
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385ac_ext=c
3386ac_cpp='$CPP $CPPFLAGS'
3387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390
3391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003397{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3398echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399# On Suns, sometimes $CPP names a directory.
3400if test -n "$CPP" && test -d "$CPP"; then
3401 CPP=
3402fi
3403if test -z "$CPP"; then
3404 if test "${ac_cv_prog_CPP+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406else
3407 # Double quotes because CPP needs to be expanded
3408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3409 do
3410 ac_preproc_ok=false
3411for ac_c_preproc_warn_flag in '' yes
3412do
3413 # Use a header file that comes with gcc, so configuring glibc
3414 # with a fresh cross-compiler works.
3415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3416 # <limits.h> exists even on freestanding compilers.
3417 # On the NeXT, cc -E runs the code through the compiler's parser,
3418 # not just through cpp. "Syntax error" is here to catch this case.
3419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425#ifdef __STDC__
3426# include <limits.h>
3427#else
3428# include <assert.h>
3429#endif
3430 Syntax error
3431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003432if { (ac_try="$ac_cpp conftest.$ac_ext"
3433case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436esac
3437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 ac_status=$?
3440 grep -v '^ *+' conftest.er1 >conftest.err
3441 rm -f conftest.er1
3442 cat conftest.err >&5
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003444 (exit $ac_status); } >/dev/null; then
3445 if test -s conftest.err; then
3446 ac_cpp_err=$ac_c_preproc_warn_flag
3447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 else
3449 ac_cpp_err=
3450 fi
3451else
3452 ac_cpp_err=yes
3453fi
3454if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 :
3456else
3457 echo "$as_me: failed program was:" >&5
3458sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 # Broken: fails on valid input.
3461continue
3462fi
Reid Spencera773bd52006-08-04 18:18:08 +00003463
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003464rm -f conftest.err conftest.$ac_ext
3465
Reid Spencera773bd52006-08-04 18:18:08 +00003466 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003467 # can be detected and how.
3468 cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h. */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h. */
3474#include <ac_nonexistent.h>
3475_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003476if { (ac_try="$ac_cpp conftest.$ac_ext"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
3481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 ac_status=$?
3484 grep -v '^ *+' conftest.er1 >conftest.err
3485 rm -f conftest.er1
3486 cat conftest.err >&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003488 (exit $ac_status); } >/dev/null; then
3489 if test -s conftest.err; then
3490 ac_cpp_err=$ac_c_preproc_warn_flag
3491 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 else
3493 ac_cpp_err=
3494 fi
3495else
3496 ac_cpp_err=yes
3497fi
3498if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 # Broken: success on invalid input.
3500continue
3501else
3502 echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505 # Passes both tests.
3506ac_preproc_ok=:
3507break
3508fi
Reid Spencera773bd52006-08-04 18:18:08 +00003509
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003510rm -f conftest.err conftest.$ac_ext
3511
3512done
3513# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514rm -f conftest.err conftest.$ac_ext
3515if $ac_preproc_ok; then
3516 break
3517fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522fi
3523 CPP=$ac_cv_prog_CPP
3524else
3525 ac_cv_prog_CPP=$CPP
3526fi
Reid Spencera773bd52006-08-04 18:18:08 +00003527{ echo "$as_me:$LINENO: result: $CPP" >&5
3528echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003529ac_preproc_ok=false
3530for ac_c_preproc_warn_flag in '' yes
3531do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat >conftest.$ac_ext <<_ACEOF
3539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
3544#ifdef __STDC__
3545# include <limits.h>
3546#else
3547# include <assert.h>
3548#endif
3549 Syntax error
3550_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003551if { (ac_try="$ac_cpp conftest.$ac_ext"
3552case "(($ac_try" in
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3555esac
3556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558 ac_status=$?
3559 grep -v '^ *+' conftest.er1 >conftest.err
3560 rm -f conftest.er1
3561 cat conftest.err >&5
3562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003563 (exit $ac_status); } >/dev/null; then
3564 if test -s conftest.err; then
3565 ac_cpp_err=$ac_c_preproc_warn_flag
3566 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 else
3568 ac_cpp_err=
3569 fi
3570else
3571 ac_cpp_err=yes
3572fi
3573if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 :
3575else
3576 echo "$as_me: failed program was:" >&5
3577sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 # Broken: fails on valid input.
3580continue
3581fi
Reid Spencera773bd52006-08-04 18:18:08 +00003582
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003583rm -f conftest.err conftest.$ac_ext
3584
Reid Spencera773bd52006-08-04 18:18:08 +00003585 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h. */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h. */
3593#include <ac_nonexistent.h>
3594_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003595if { (ac_try="$ac_cpp conftest.$ac_ext"
3596case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599esac
3600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003607 (exit $ac_status); } >/dev/null; then
3608 if test -s conftest.err; then
3609 ac_cpp_err=$ac_c_preproc_warn_flag
3610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 else
3612 ac_cpp_err=
3613 fi
3614else
3615 ac_cpp_err=yes
3616fi
3617if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 # Broken: success on invalid input.
3619continue
3620else
3621 echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624 # Passes both tests.
3625ac_preproc_ok=:
3626break
3627fi
Reid Spencera773bd52006-08-04 18:18:08 +00003628
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003629rm -f conftest.err conftest.$ac_ext
3630
3631done
3632# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633rm -f conftest.err conftest.$ac_ext
3634if $ac_preproc_ok; then
3635 :
3636else
3637 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3638See \`config.log' for more details." >&5
3639echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3640See \`config.log' for more details." >&2;}
3641 { (exit 1); exit 1; }; }
3642fi
3643
John Criswell7a73b802003-06-30 21:59:07 +00003644ac_ext=c
3645ac_cpp='$CPP $CPPFLAGS'
3646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649
John Criswell7a73b802003-06-30 21:59:07 +00003650
Reid Spencera773bd52006-08-04 18:18:08 +00003651{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3652echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003653if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
Reid Spencera773bd52006-08-04 18:18:08 +00003656 # Extract the first word of "grep ggrep" to use in msg output
3657if test -z "$GREP"; then
3658set dummy grep ggrep; ac_prog_name=$2
3659if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660 echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
Reid Spencera773bd52006-08-04 18:18:08 +00003662 ac_path_GREP_found=false
3663# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003665for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003669 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003670 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003671 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003672 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003673 # Check for GNU ac_path_GREP and select it if it is found.
3674 # Check for GNU $ac_path_GREP
3675case `"$ac_path_GREP" --version 2>&1` in
3676*GNU*)
3677 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3678*)
3679 ac_count=0
3680 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 echo 'GREP' >> "conftest.nl"
3687 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 ac_count=`expr $ac_count + 1`
3690 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_GREP="$ac_path_GREP"
3693 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699esac
3700
3701
3702 $ac_path_GREP_found && break 3
3703 done
3704done
3705
3706done
3707IFS=$as_save_IFS
3708
3709
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710fi
Reid Spencera773bd52006-08-04 18:18:08 +00003711
3712GREP="$ac_cv_path_GREP"
3713if test -z "$GREP"; then
3714 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3715echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3716 { (exit 1); exit 1; }; }
3717fi
3718
3719else
3720 ac_cv_path_GREP=$GREP
3721fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003722
John Criswell7a73b802003-06-30 21:59:07 +00003723
Reid Spencera773bd52006-08-04 18:18:08 +00003724fi
3725{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3726echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3727 GREP="$ac_cv_path_GREP"
3728
3729
3730{ echo "$as_me:$LINENO: checking for egrep" >&5
3731echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3732if test "${ac_cv_path_EGREP+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734else
3735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3736 then ac_cv_path_EGREP="$GREP -E"
3737 else
3738 # Extract the first word of "egrep" to use in msg output
3739if test -z "$EGREP"; then
3740set dummy egrep; ac_prog_name=$2
3741if test "${ac_cv_path_EGREP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743else
3744 ac_path_EGREP_found=false
3745# Loop through the user's path and test for each of PROGNAME-LIST
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_prog in egrep; do
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnercf067672008-01-17 05:57:22 +00003754 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003755 # Check for GNU ac_path_EGREP and select it if it is found.
3756 # Check for GNU $ac_path_EGREP
3757case `"$ac_path_EGREP" --version 2>&1` in
3758*GNU*)
3759 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3760*)
3761 ac_count=0
3762 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 while :
3764 do
3765 cat "conftest.in" "conftest.in" >"conftest.tmp"
3766 mv "conftest.tmp" "conftest.in"
3767 cp "conftest.in" "conftest.nl"
3768 echo 'EGREP' >> "conftest.nl"
3769 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3771 ac_count=`expr $ac_count + 1`
3772 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3773 # Best one so far, save it but keep looking for a better one
3774 ac_cv_path_EGREP="$ac_path_EGREP"
3775 ac_path_EGREP_max=$ac_count
3776 fi
3777 # 10*(2^10) chars as input seems more than enough
3778 test $ac_count -gt 10 && break
3779 done
3780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3781esac
3782
3783
3784 $ac_path_EGREP_found && break 3
3785 done
3786done
3787
3788done
3789IFS=$as_save_IFS
3790
3791
3792fi
3793
3794EGREP="$ac_cv_path_EGREP"
3795if test -z "$EGREP"; then
3796 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3797echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3798 { (exit 1); exit 1; }; }
3799fi
3800
3801else
3802 ac_cv_path_EGREP=$EGREP
3803fi
3804
3805
3806 fi
3807fi
3808{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3809echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3810 EGREP="$ac_cv_path_EGREP"
3811
3812
3813{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003815if test "${ac_cv_header_stdc+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003819/* confdefs.h. */
3820_ACEOF
3821cat confdefs.h >>conftest.$ac_ext
3822cat >>conftest.$ac_ext <<_ACEOF
3823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003824#include <stdlib.h>
3825#include <stdarg.h>
3826#include <string.h>
3827#include <float.h>
3828
John Criswell0c38eaf2003-09-10 15:17:25 +00003829int
3830main ()
3831{
3832
3833 ;
3834 return 0;
3835}
John Criswell7a73b802003-06-30 21:59:07 +00003836_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003837rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003838if { (ac_try="$ac_compile"
3839case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842esac
3843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003845 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003846 grep -v '^ *+' conftest.er1 >conftest.err
3847 rm -f conftest.er1
3848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00003850 (exit $ac_status); } &&
3851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3852 { (case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855esac
3856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_try") 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }; } &&
3861 { ac_try='test -s conftest.$ac_objext'
3862 { (case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_try") 2>&5
3868 ac_status=$?
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003871 ac_cv_header_stdc=yes
3872else
3873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003874sed 's/^/| /' conftest.$ac_ext >&5
3875
Reid Spencera773bd52006-08-04 18:18:08 +00003876 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003877fi
Reid Spencera773bd52006-08-04 18:18:08 +00003878
3879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003880
3881if test $ac_cv_header_stdc = yes; then
3882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3883 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003889#include <string.h>
3890
3891_ACEOF
3892if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003894 :
3895else
3896 ac_cv_header_stdc=no
3897fi
3898rm -f conftest*
3899
3900fi
3901
3902if test $ac_cv_header_stdc = yes; then
3903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003910#include <stdlib.h>
3911
3912_ACEOF
3913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003914 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003915 :
3916else
3917 ac_cv_header_stdc=no
3918fi
3919rm -f conftest*
3920
3921fi
3922
3923if test $ac_cv_header_stdc = yes; then
3924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3925 if test "$cross_compiling" = yes; then
3926 :
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003934#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003935#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003936#if ((' ' & 0x0FF) == 0x020)
3937# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3938# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3939#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003940# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003941 (('a' <= (c) && (c) <= 'i') \
3942 || ('j' <= (c) && (c) <= 'r') \
3943 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003944# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945#endif
3946
3947#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948int
3949main ()
3950{
3951 int i;
3952 for (i = 0; i < 256; i++)
3953 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003954 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003955 return 2;
3956 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003957}
3958_ACEOF
3959rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003960if { (ac_try="$ac_link"
3961case "(($ac_try" in
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3964esac
3965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973esac
3974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3979 :
3980else
3981 echo "$as_me: program exited with status $ac_status" >&5
3982echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003983sed 's/^/| /' conftest.$ac_ext >&5
3984
John Criswell7a73b802003-06-30 21:59:07 +00003985( exit $ac_status )
3986ac_cv_header_stdc=no
3987fi
Reid Spencera773bd52006-08-04 18:18:08 +00003988rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989fi
3990
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992fi
3993fi
Reid Spencera773bd52006-08-04 18:18:08 +00003994{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3995echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003996if test $ac_cv_header_stdc = yes; then
3997
3998cat >>confdefs.h <<\_ACEOF
3999#define STDC_HEADERS 1
4000_ACEOF
4001
4002fi
4003
Reid Spencera773bd52006-08-04 18:18:08 +00004004# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4015 inttypes.h stdint.h unistd.h
4016do
4017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4018{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4020if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4021 echo $ECHO_N "(cached) $ECHO_C" >&6
4022else
4023 cat >conftest.$ac_ext <<_ACEOF
4024/* confdefs.h. */
4025_ACEOF
4026cat confdefs.h >>conftest.$ac_ext
4027cat >>conftest.$ac_ext <<_ACEOF
4028/* end confdefs.h. */
4029$ac_includes_default
4030
4031#include <$ac_header>
4032_ACEOF
4033rm -f conftest.$ac_objext
4034if { (ac_try="$ac_compile"
4035case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038esac
4039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004046 (exit $ac_status); } &&
4047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4048 { (case "(($ac_try" in
4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050 *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053 (eval "$ac_try") 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest.$ac_objext'
4058 { (case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061esac
4062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4063 (eval "$ac_try") 2>&5
4064 ac_status=$?
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004067 eval "$as_ac_Header=yes"
4068else
4069 echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072 eval "$as_ac_Header=no"
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077ac_res=`eval echo '${'$as_ac_Header'}'`
4078 { echo "$as_me:$LINENO: result: $ac_res" >&5
4079echo "${ECHO_T}$ac_res" >&6; }
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
4089
4090{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4091echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4092if test "${ac_cv_c_bigendian+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4094else
4095 # See if sys/param.h defines the BYTE_ORDER macro.
4096cat >conftest.$ac_ext <<_ACEOF
4097/* confdefs.h. */
4098_ACEOF
4099cat confdefs.h >>conftest.$ac_ext
4100cat >>conftest.$ac_ext <<_ACEOF
4101/* end confdefs.h. */
4102#include <sys/types.h>
4103#include <sys/param.h>
4104
4105int
4106main ()
4107{
Tanya Lattnercf067672008-01-17 05:57:22 +00004108#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004109 bogus endian macros
4110#endif
4111
4112 ;
4113 return 0;
4114}
4115_ACEOF
4116rm -f conftest.$ac_objext
4117if { (ac_try="$ac_compile"
4118case "(($ac_try" in
4119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120 *) ac_try_echo=$ac_try;;
4121esac
4122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123 (eval "$ac_compile") 2>conftest.er1
4124 ac_status=$?
4125 grep -v '^ *+' conftest.er1 >conftest.err
4126 rm -f conftest.er1
4127 cat conftest.err >&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004129 (exit $ac_status); } &&
4130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4131 { (case "(($ac_try" in
4132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133 *) ac_try_echo=$ac_try;;
4134esac
4135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); }; } &&
4140 { ac_try='test -s conftest.$ac_objext'
4141 { (case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144esac
4145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_try") 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004150 # It does; now see whether it defined to BIG_ENDIAN or not.
4151cat >conftest.$ac_ext <<_ACEOF
4152/* confdefs.h. */
4153_ACEOF
4154cat confdefs.h >>conftest.$ac_ext
4155cat >>conftest.$ac_ext <<_ACEOF
4156/* end confdefs.h. */
4157#include <sys/types.h>
4158#include <sys/param.h>
4159
4160int
4161main ()
4162{
4163#if BYTE_ORDER != BIG_ENDIAN
4164 not big endian
4165#endif
4166
4167 ;
4168 return 0;
4169}
4170_ACEOF
4171rm -f conftest.$ac_objext
4172if { (ac_try="$ac_compile"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4178 (eval "$ac_compile") 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4186 { (case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_try") 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (case "(($ac_try" in
4197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198 *) ac_try_echo=$ac_try;;
4199esac
4200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201 (eval "$ac_try") 2>&5
4202 ac_status=$?
4203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004205 ac_cv_c_bigendian=yes
4206else
4207 echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210 ac_cv_c_bigendian=no
4211fi
4212
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 # It does not; compile a test program.
4219if test "$cross_compiling" = yes; then
4220 # try to guess the endianness by grepping values into an object file
4221 ac_cv_c_bigendian=unknown
4222 cat >conftest.$ac_ext <<_ACEOF
4223/* confdefs.h. */
4224_ACEOF
4225cat confdefs.h >>conftest.$ac_ext
4226cat >>conftest.$ac_ext <<_ACEOF
4227/* end confdefs.h. */
4228short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4229short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4231short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4232short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4234int
4235main ()
4236{
4237 _ascii (); _ebcdic ();
4238 ;
4239 return 0;
4240}
4241_ACEOF
4242rm -f conftest.$ac_objext
4243if { (ac_try="$ac_compile"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_compile") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260esac
4261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004276 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4277 ac_cv_c_bigendian=yes
4278fi
4279if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4280 if test "$ac_cv_c_bigendian" = unknown; then
4281 ac_cv_c_bigendian=no
4282 else
4283 # finding both strings is unlikely to happen, but who knows?
4284 ac_cv_c_bigendian=unknown
4285 fi
4286fi
4287else
4288 echo "$as_me: failed program was:" >&5
4289sed 's/^/| /' conftest.$ac_ext >&5
4290
4291
4292fi
4293
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295else
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h. */
4302$ac_includes_default
4303int
4304main ()
4305{
4306
4307 /* Are we little or big endian? From Harbison&Steele. */
4308 union
4309 {
4310 long int l;
4311 char c[sizeof (long int)];
4312 } u;
4313 u.l = 1;
4314 return u.c[sizeof (long int) - 1] == 1;
4315
4316 ;
4317 return 0;
4318}
4319_ACEOF
4320rm -f conftest$ac_exeext
4321if { (ac_try="$ac_link"
4322case "(($ac_try" in
4323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4324 *) ac_try_echo=$ac_try;;
4325esac
4326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4327 (eval "$ac_link") 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4334esac
4335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; }; then
4340 ac_cv_c_bigendian=no
4341else
4342 echo "$as_me: program exited with status $ac_status" >&5
4343echo "$as_me: failed program was:" >&5
4344sed 's/^/| /' conftest.$ac_ext >&5
4345
4346( exit $ac_status )
4347ac_cv_c_bigendian=yes
4348fi
4349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350fi
4351
4352
4353fi
4354
4355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356fi
4357{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4358echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4359case $ac_cv_c_bigendian in
4360 yes)
4361 ENDIAN=big
4362 ;;
4363 no)
4364 ENDIAN=little
4365 ;;
4366 *)
4367 { { echo "$as_me:$LINENO: error: unknown endianness
4368presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4369echo "$as_me: error: unknown endianness
4370presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4371 { (exit 1); exit 1; }; } ;;
4372esac
4373
4374
4375if test "$cross_compiling" = yes; then
4376 LLVM_CROSS_COMPILING=1
4377
4378
4379{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4380echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4381if test "${ac_cv_build_exeext+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383else
4384 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4385 ac_cv_build_exeext=.exe
4386else
4387 ac_build_prefix=${build_alias}-
4388
4389 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4390set dummy ${ac_build_prefix}gcc; ac_word=$2
4391{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4393if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4395else
4396 if test -n "$BUILD_CC"; then
4397 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4398else
4399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400for as_dir in $PATH
4401do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004406 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410done
4411done
4412IFS=$as_save_IFS
4413
4414fi
4415fi
4416BUILD_CC=$ac_cv_prog_BUILD_CC
4417if test -n "$BUILD_CC"; then
4418 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4419echo "${ECHO_T}$BUILD_CC" >&6; }
4420else
4421 { echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6; }
4423fi
4424
4425
4426 if test -z "$BUILD_CC"; then
4427 # Extract the first word of "gcc", so it can be a program name with args.
4428set dummy gcc; ac_word=$2
4429{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4431if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433else
4434 if test -n "$BUILD_CC"; then
4435 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004444 ac_cv_prog_BUILD_CC="gcc"
4445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4447 fi
4448done
4449done
4450IFS=$as_save_IFS
4451
4452fi
4453fi
4454BUILD_CC=$ac_cv_prog_BUILD_CC
4455if test -n "$BUILD_CC"; then
4456 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4457echo "${ECHO_T}$BUILD_CC" >&6; }
4458else
4459 { echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6; }
4461fi
4462
4463
4464 if test -z "$BUILD_CC"; then
4465 # Extract the first word of "cc", so it can be a program name with args.
4466set dummy cc; ac_word=$2
4467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471else
4472 if test -n "$BUILD_CC"; then
4473 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474else
4475 ac_prog_rejected=no
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479 IFS=$as_save_IFS
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00004482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004483 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4484 ac_prog_rejected=yes
4485 continue
4486 fi
4487 ac_cv_prog_BUILD_CC="cc"
4488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491done
4492done
4493IFS=$as_save_IFS
4494
4495if test $ac_prog_rejected = yes; then
4496 # We found a bogon in the path, so make sure we never use it.
4497 set dummy $ac_cv_prog_BUILD_CC
4498 shift
4499 if test $# != 0; then
4500 # We chose a different compiler from the bogus one.
4501 # However, it has the same basename, so the bogon will be chosen
4502 # first if we set BUILD_CC to just the basename; use the full file name.
4503 shift
4504 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 fi
4506fi
4507fi
4508fi
4509BUILD_CC=$ac_cv_prog_BUILD_CC
4510if test -n "$BUILD_CC"; then
4511 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4512echo "${ECHO_T}$BUILD_CC" >&6; }
4513else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6; }
4516fi
4517
4518
4519 fi
4520 fi
4521 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4522echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4523 { (exit 1); exit 1; }; }
4524 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4525 rm -f conftest*
4526 echo 'int main () { return 0; }' > conftest.$ac_ext
4527 ac_cv_build_exeext=
4528 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4529 (eval $ac_build_link) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 for file in conftest.*; do
4534 case $file in
4535 *.c | *.o | *.obj) ;;
4536 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4537 esac
4538 done
4539 else
4540 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4541echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4542 { (exit 1); exit 1; }; }
4543 fi
4544 rm -f conftest*
4545 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546fi
4547fi
4548
4549BUILD_EXEEXT=""
4550test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4551{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4552echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4553ac_build_exeext=$BUILD_EXEEXT
4554
4555else
4556 LLVM_CROSS_COMPILING=0
4557
4558fi
4559
Reid Spencer0b1e4662007-04-02 15:41:39 +00004560if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004561 cvsbuild="yes"
4562 optimize="no"
4563 CVSBUILD=CVSBUILD=1
4564
4565else
4566 cvsbuild="no"
4567 optimize="yes"
4568fi
4569
4570
4571# Check whether --enable-optimized was given.
4572if test "${enable_optimized+set}" = set; then
4573 enableval=$enable_optimized;
4574else
4575 enableval=$optimize
4576fi
4577
4578if test ${enableval} = "no" ; then
4579 ENABLE_OPTIMIZED=
4580
4581else
4582 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4583
4584fi
4585
4586# Check whether --enable-assertions was given.
4587if test "${enable_assertions+set}" = set; then
4588 enableval=$enable_assertions;
4589else
4590 enableval="yes"
4591fi
4592
4593if test ${enableval} = "yes" ; then
4594 DISABLE_ASSERTIONS=
4595
4596else
4597 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4598
4599fi
4600
David Greenea696d242007-06-28 19:36:08 +00004601# Check whether --enable-expensive-checks was given.
4602if test "${enable_expensive_checks+set}" = set; then
4603 enableval=$enable_expensive_checks;
4604else
4605 enableval="no"
4606fi
4607
4608if test ${enableval} = "yes" ; then
4609 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4610
4611 EXPENSIVE_CHECKS=yes
4612
4613else
4614 ENABLE_EXPENSIVE_CHECKS=
4615
4616 EXPENSIVE_CHECKS=no
4617
4618fi
4619
Reid Spencer8b2e1412006-11-17 03:32:33 +00004620# Check whether --enable-debug-runtime was given.
4621if test "${enable_debug_runtime+set}" = set; then
4622 enableval=$enable_debug_runtime;
4623else
4624 enableval=no
4625fi
4626
4627if test ${enableval} = "no" ; then
4628 DEBUG_RUNTIME=
4629
4630else
4631 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4632
4633fi
4634
Reid Spencera773bd52006-08-04 18:18:08 +00004635# Check whether --enable-jit was given.
4636if test "${enable_jit+set}" = set; then
4637 enableval=$enable_jit;
4638else
4639 enableval=default
4640fi
4641
4642if test ${enableval} = "no"
4643then
4644 JIT=
4645
4646else
4647 case "$llvm_cv_target_arch" in
4648 x86) TARGET_HAS_JIT=1
4649 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004650 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004651 ;;
4652 PowerPC) TARGET_HAS_JIT=1
4653 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004654 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004655 ;;
4656 Alpha) TARGET_HAS_JIT=1
4657 ;;
4658 IA64) TARGET_HAS_JIT=0
4659 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004660 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004661 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004662 Mips) TARGET_HAS_JIT=0
4663 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004664 *) TARGET_HAS_JIT=0
4665 ;;
4666 esac
4667fi
4668
4669# Check whether --enable-doxygen was given.
4670if test "${enable_doxygen+set}" = set; then
4671 enableval=$enable_doxygen;
4672else
4673 enableval=default
4674fi
4675
4676case "$enableval" in
4677 yes) ENABLE_DOXYGEN=1
4678 ;;
4679 no) ENABLE_DOXYGEN=0
4680 ;;
4681 default) ENABLE_DOXYGEN=0
4682 ;;
4683 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4684echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4685 { (exit 1); exit 1; }; } ;;
4686esac
4687
4688# Check whether --enable-threads was given.
4689if test "${enable_threads+set}" = set; then
4690 enableval=$enable_threads;
4691else
Reid Spencer65c5d752006-11-05 17:08:18 +00004692 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004693fi
4694
4695case "$enableval" in
4696 yes) ENABLE_THREADS=1
4697 ;;
4698 no) ENABLE_THREADS=0
4699 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004700 default) ENABLE_THREADS=1
4701 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004702 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4703echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705esac
4706
4707cat >>confdefs.h <<_ACEOF
4708#define ENABLE_THREADS $ENABLE_THREADS
4709_ACEOF
4710
4711
Reid Spencer89b0d992006-12-16 22:07:52 +00004712# Check whether --enable-pic was given.
4713if test "${enable_pic+set}" = set; then
4714 enableval=$enable_pic;
4715else
4716 enableval=default
4717fi
4718
4719case "$enableval" in
4720 yes) ENABLE_PIC=1
4721 ;;
4722 no) ENABLE_PIC=0
4723 ;;
4724 default) ENABLE_PIC=0
4725 ;;
4726 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4727echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4728 { (exit 1); exit 1; }; } ;;
4729esac
4730
4731cat >>confdefs.h <<_ACEOF
4732#define ENABLE_PIC $ENABLE_PIC
4733_ACEOF
4734
4735
Reid Spencera773bd52006-08-04 18:18:08 +00004736TARGETS_TO_BUILD=""
4737# Check whether --enable-targets was given.
4738if test "${enable_targets+set}" = set; then
4739 enableval=$enable_targets;
4740else
4741 enableval=all
4742fi
4743
4744case "$enableval" in
Nate Begeman57b1efb2007-12-13 01:18:52 +00004745 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU CBackend MSIL" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004746 host-only)
4747 case "$llvm_cv_target_arch" in
4748 x86) TARGETS_TO_BUILD="X86" ;;
4749 x86_64) TARGETS_TO_BUILD="X86" ;;
4750 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4751 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4752 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4753 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004754 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004755 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004756 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004757 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4758echo "$as_me: error: Can not set target to build" >&2;}
4759 { (exit 1); exit 1; }; } ;;
4760 esac
4761 ;;
4762 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4763 case "$a_target" in
4764 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4765 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4766 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4767 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4768 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4769 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004770 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004771 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004772 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004773 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4774 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004775 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4776echo "$as_me: error: Unrecognized target $a_target" >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4779 done
4780 ;;
4781esac
Reid Spencera773bd52006-08-04 18:18:08 +00004782TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4783
4784
Reid Spencer65c5d752006-11-05 17:08:18 +00004785# Check whether --enable-cbe-printf-a was given.
4786if test "${enable_cbe_printf_a+set}" = set; then
4787 enableval=$enable_cbe_printf_a;
4788else
4789 enableval=default
4790fi
4791
4792case "$enableval" in
4793 yes) ENABLE_CBE_PRINTF_A=1
4794 ;;
4795 no) ENABLE_CBE_PRINTF_A=0
4796 ;;
4797 default) ENABLE_CBE_PRINTF_A=1
4798 ;;
4799 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4800echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4801 { (exit 1); exit 1; }; } ;;
4802esac
4803
4804cat >>confdefs.h <<_ACEOF
4805#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4806_ACEOF
4807
4808
Reid Spencera773bd52006-08-04 18:18:08 +00004809
4810# Check whether --with-llvmgccdir was given.
4811if test "${with_llvmgccdir+set}" = set; then
4812 withval=$with_llvmgccdir;
4813else
4814 withval=default
4815fi
4816
4817case "$withval" in
4818 default) WITH_LLVMGCCDIR=default ;;
4819 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4820 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4821echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4822 { (exit 1); exit 1; }; } ;;
4823esac
4824
4825
Devang Patel5d28b882007-12-04 22:54:47 +00004826# Check whether --with-llvmgcc was given.
4827if test "${with_llvmgcc+set}" = set; then
4828 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4829 WITH_LLVMGCCDIR=""
4830fi
4831
4832
4833
4834# Check whether --with-llvmgxx was given.
4835if test "${with_llvmgxx+set}" = set; then
4836 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4837 WITH_LLVMGCCDIR=""
4838fi
4839
4840
4841if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4842 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4843echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4844 { (exit 1); exit 1; }; };
4845fi
4846
4847if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4848 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4849echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4850 { (exit 1); exit 1; }; };
4851fi
4852
4853
Reid Spencera773bd52006-08-04 18:18:08 +00004854# Check whether --with-extra-options was given.
4855if test "${with_extra_options+set}" = set; then
4856 withval=$with_extra_options;
4857else
4858 withval=default
4859fi
4860
4861case "$withval" in
4862 default) EXTRA_OPTIONS= ;;
4863 *) EXTRA_OPTIONS=$withval ;;
4864esac
4865EXTRA_OPTIONS=$EXTRA_OPTIONS
4866
4867
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004868# Check whether --enable-bindings was given.
4869if test "${enable_bindings+set}" = set; then
4870 enableval=$enable_bindings;
4871else
4872 enableval=default
4873fi
4874
4875BINDINGS_TO_BUILD=""
4876case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00004877 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00004878 all ) BINDINGS_TO_BUILD="ocaml" ;;
4879 none | no) BINDINGS_TO_BUILD="" ;;
4880 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
4881 case "$a_binding" in
4882 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
4883 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
4884echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
4885 { (exit 1); exit 1; }; } ;;
4886 esac
4887 done
4888 ;;
4889esac
4890
Reid Spencera773bd52006-08-04 18:18:08 +00004891
Gordon Henriksenf0915682007-10-02 16:42:22 +00004892# Check whether --with-ocaml-libdir was given.
4893if test "${with_ocaml_libdir+set}" = set; then
4894 withval=$with_ocaml_libdir;
4895else
4896 withval=auto
4897fi
4898
4899case "$withval" in
4900 auto) with_ocaml_libdir="$withval" ;;
4901 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
4902 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
4903echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
4904 { (exit 1); exit 1; }; } ;;
4905esac
4906
4907
Reid Spencera773bd52006-08-04 18:18:08 +00004908ac_ext=c
4909ac_cpp='$CPP $CPPFLAGS'
4910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912ac_compiler_gnu=$ac_cv_c_compiler_gnu
4913{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4914echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4915# On Suns, sometimes $CPP names a directory.
4916if test -n "$CPP" && test -d "$CPP"; then
4917 CPP=
4918fi
4919if test -z "$CPP"; then
4920 if test "${ac_cv_prog_CPP+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4922else
4923 # Double quotes because CPP needs to be expanded
4924 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4925 do
4926 ac_preproc_ok=false
4927for ac_c_preproc_warn_flag in '' yes
4928do
4929 # Use a header file that comes with gcc, so configuring glibc
4930 # with a fresh cross-compiler works.
4931 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4932 # <limits.h> exists even on freestanding compilers.
4933 # On the NeXT, cc -E runs the code through the compiler's parser,
4934 # not just through cpp. "Syntax error" is here to catch this case.
4935 cat >conftest.$ac_ext <<_ACEOF
4936/* confdefs.h. */
4937_ACEOF
4938cat confdefs.h >>conftest.$ac_ext
4939cat >>conftest.$ac_ext <<_ACEOF
4940/* end confdefs.h. */
4941#ifdef __STDC__
4942# include <limits.h>
4943#else
4944# include <assert.h>
4945#endif
4946 Syntax error
4947_ACEOF
4948if { (ac_try="$ac_cpp conftest.$ac_ext"
4949case "(($ac_try" in
4950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4951 *) ac_try_echo=$ac_try;;
4952esac
4953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4955 ac_status=$?
4956 grep -v '^ *+' conftest.er1 >conftest.err
4957 rm -f conftest.er1
4958 cat conftest.err >&5
4959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00004960 (exit $ac_status); } >/dev/null; then
4961 if test -s conftest.err; then
4962 ac_cpp_err=$ac_c_preproc_warn_flag
4963 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4964 else
4965 ac_cpp_err=
4966 fi
4967else
4968 ac_cpp_err=yes
4969fi
4970if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004971 :
4972else
4973 echo "$as_me: failed program was:" >&5
4974sed 's/^/| /' conftest.$ac_ext >&5
4975
4976 # Broken: fails on valid input.
4977continue
4978fi
4979
4980rm -f conftest.err conftest.$ac_ext
4981
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985/* confdefs.h. */
4986_ACEOF
4987cat confdefs.h >>conftest.$ac_ext
4988cat >>conftest.$ac_ext <<_ACEOF
4989/* end confdefs.h. */
4990#include <ac_nonexistent.h>
4991_ACEOF
4992if { (ac_try="$ac_cpp conftest.$ac_ext"
4993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
4997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_c_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5008 else
5009 ac_cpp_err=
5010 fi
5011else
5012 ac_cpp_err=yes
5013fi
5014if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005015 # Broken: success on invalid input.
5016continue
5017else
5018 echo "$as_me: failed program was:" >&5
5019sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 # Passes both tests.
5022ac_preproc_ok=:
5023break
5024fi
5025
5026rm -f conftest.err conftest.$ac_ext
5027
5028done
5029# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030rm -f conftest.err conftest.$ac_ext
5031if $ac_preproc_ok; then
5032 break
5033fi
5034
5035 done
5036 ac_cv_prog_CPP=$CPP
5037
5038fi
5039 CPP=$ac_cv_prog_CPP
5040else
5041 ac_cv_prog_CPP=$CPP
5042fi
5043{ echo "$as_me:$LINENO: result: $CPP" >&5
5044echo "${ECHO_T}$CPP" >&6; }
5045ac_preproc_ok=false
5046for ac_c_preproc_warn_flag in '' yes
5047do
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h. */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h. */
5060#ifdef __STDC__
5061# include <limits.h>
5062#else
5063# include <assert.h>
5064#endif
5065 Syntax error
5066_ACEOF
5067if { (ac_try="$ac_cpp conftest.$ac_ext"
5068case "(($ac_try" in
5069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5070 *) ac_try_echo=$ac_try;;
5071esac
5072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005079 (exit $ac_status); } >/dev/null; then
5080 if test -s conftest.err; then
5081 ac_cpp_err=$ac_c_preproc_warn_flag
5082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5083 else
5084 ac_cpp_err=
5085 fi
5086else
5087 ac_cpp_err=yes
5088fi
5089if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005090 :
5091else
5092 echo "$as_me: failed program was:" >&5
5093sed 's/^/| /' conftest.$ac_ext >&5
5094
5095 # Broken: fails on valid input.
5096continue
5097fi
5098
5099rm -f conftest.err conftest.$ac_ext
5100
5101 # OK, works on sane cases. Now check whether nonexistent headers
5102 # can be detected and how.
5103 cat >conftest.$ac_ext <<_ACEOF
5104/* confdefs.h. */
5105_ACEOF
5106cat confdefs.h >>conftest.$ac_ext
5107cat >>conftest.$ac_ext <<_ACEOF
5108/* end confdefs.h. */
5109#include <ac_nonexistent.h>
5110_ACEOF
5111if { (ac_try="$ac_cpp conftest.$ac_ext"
5112case "(($ac_try" in
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5115esac
5116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005123 (exit $ac_status); } >/dev/null; then
5124 if test -s conftest.err; then
5125 ac_cpp_err=$ac_c_preproc_warn_flag
5126 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5127 else
5128 ac_cpp_err=
5129 fi
5130else
5131 ac_cpp_err=yes
5132fi
5133if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005134 # Broken: success on invalid input.
5135continue
5136else
5137 echo "$as_me: failed program was:" >&5
5138sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 # Passes both tests.
5141ac_preproc_ok=:
5142break
5143fi
5144
5145rm -f conftest.err conftest.$ac_ext
5146
5147done
5148# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5149rm -f conftest.err conftest.$ac_ext
5150if $ac_preproc_ok; then
5151 :
5152else
5153 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5154See \`config.log' for more details." >&5
5155echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5156See \`config.log' for more details." >&2;}
5157 { (exit 1); exit 1; }; }
5158fi
5159
5160ac_ext=c
5161ac_cpp='$CPP $CPPFLAGS'
5162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166ac_ext=c
5167ac_cpp='$CPP $CPPFLAGS'
5168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5170ac_compiler_gnu=$ac_cv_c_compiler_gnu
5171if test -n "$ac_tool_prefix"; then
5172 for ac_prog in gcc
5173 do
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178if test "${ac_cv_prog_CC+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 if test -n "$CC"; then
5182 ac_cv_prog_CC="$CC" # Let the user override the test.
5183else
5184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185for as_dir in $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 break 2
5194 fi
5195done
5196done
5197IFS=$as_save_IFS
5198
5199fi
5200fi
5201CC=$ac_cv_prog_CC
5202if test -n "$CC"; then
5203 { echo "$as_me:$LINENO: result: $CC" >&5
5204echo "${ECHO_T}$CC" >&6; }
5205else
5206 { echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6; }
5208fi
5209
5210
5211 test -n "$CC" && break
5212 done
5213fi
5214if test -z "$CC"; then
5215 ac_ct_CC=$CC
5216 for ac_prog in gcc
5217do
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219set dummy $ac_prog; ac_word=$2
5220{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 if test -n "$ac_ct_CC"; then
5226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5227else
5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5229for as_dir in $PATH
5230do
5231 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005235 ac_cv_prog_ac_ct_CC="$ac_prog"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2
5238 fi
5239done
5240done
5241IFS=$as_save_IFS
5242
5243fi
5244fi
5245ac_ct_CC=$ac_cv_prog_ac_ct_CC
5246if test -n "$ac_ct_CC"; then
5247 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5248echo "${ECHO_T}$ac_ct_CC" >&6; }
5249else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6; }
5252fi
5253
5254
5255 test -n "$ac_ct_CC" && break
5256done
5257
5258 if test "x$ac_ct_CC" = x; then
5259 CC=""
5260 else
5261 case $cross_compiling:$ac_tool_warned in
5262yes:)
5263{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5264whose name does not start with the host triplet. If you think this
5265configuration is useful to you, please write to autoconf@gnu.org." >&5
5266echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5267whose name does not start with the host triplet. If you think this
5268configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5269ac_tool_warned=yes ;;
5270esac
5271 CC=$ac_ct_CC
5272 fi
5273fi
5274
5275
5276test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5277See \`config.log' for more details." >&5
5278echo "$as_me: error: no acceptable C compiler found in \$PATH
5279See \`config.log' for more details." >&2;}
5280 { (exit 1); exit 1; }; }
5281
5282# Provide some information about the compiler.
5283echo "$as_me:$LINENO: checking for C compiler version" >&5
5284ac_compiler=`set X $ac_compile; echo $2`
5285{ (ac_try="$ac_compiler --version >&5"
5286case "(($ac_try" in
5287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288 *) ac_try_echo=$ac_try;;
5289esac
5290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291 (eval "$ac_compiler --version >&5") 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }
5295{ (ac_try="$ac_compiler -v >&5"
5296case "(($ac_try" in
5297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5298 *) ac_try_echo=$ac_try;;
5299esac
5300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5301 (eval "$ac_compiler -v >&5") 2>&5
5302 ac_status=$?
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }
5305{ (ac_try="$ac_compiler -V >&5"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compiler -V >&5") 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }
5315
5316{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5317echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5318if test "${ac_cv_c_compiler_gnu+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5320else
5321 cat >conftest.$ac_ext <<_ACEOF
5322/* confdefs.h. */
5323_ACEOF
5324cat confdefs.h >>conftest.$ac_ext
5325cat >>conftest.$ac_ext <<_ACEOF
5326/* end confdefs.h. */
5327
5328int
5329main ()
5330{
5331#ifndef __GNUC__
5332 choke me
5333#endif
5334
5335 ;
5336 return 0;
5337}
5338_ACEOF
5339rm -f conftest.$ac_objext
5340if { (ac_try="$ac_compile"
5341case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344esac
5345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005352 (exit $ac_status); } &&
5353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5354 { (case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_try") 2>&5
5360 ac_status=$?
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (case "(($ac_try" in
5365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366 *) ac_try_echo=$ac_try;;
5367esac
5368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5369 (eval "$ac_try") 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005373 ac_compiler_gnu=yes
5374else
5375 echo "$as_me: failed program was:" >&5
5376sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_compiler_gnu=no
5379fi
5380
5381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382ac_cv_c_compiler_gnu=$ac_compiler_gnu
5383
5384fi
5385{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5386echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5387GCC=`test $ac_compiler_gnu = yes && echo yes`
5388ac_test_CFLAGS=${CFLAGS+set}
5389ac_save_CFLAGS=$CFLAGS
5390{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5391echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5392if test "${ac_cv_prog_cc_g+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 ac_save_c_werror_flag=$ac_c_werror_flag
5396 ac_c_werror_flag=yes
5397 ac_cv_prog_cc_g=no
5398 CFLAGS="-g"
5399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */
5405
5406int
5407main ()
5408{
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
5414rm -f conftest.$ac_objext
5415if { (ac_try="$ac_compile"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (case "(($ac_try" in
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5432esac
5433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_try") 2>&5
5435 ac_status=$?
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); }; } &&
5438 { ac_try='test -s conftest.$ac_objext'
5439 { (case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_try") 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005448 ac_cv_prog_cc_g=yes
5449else
5450 echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 CFLAGS=""
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460
5461int
5462main ()
5463{
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469rm -f conftest.$ac_objext
5470if { (ac_try="$ac_compile"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5477 ac_status=$?
5478 grep -v '^ *+' conftest.er1 >conftest.err
5479 rm -f conftest.er1
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005482 (exit $ac_status); } &&
5483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5484 { (case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_try") 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; } &&
5493 { ac_try='test -s conftest.$ac_objext'
5494 { (case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497esac
5498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_try") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005503 :
5504else
5505 echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508 ac_c_werror_flag=$ac_save_c_werror_flag
5509 CFLAGS="-g"
5510 cat >conftest.$ac_ext <<_ACEOF
5511/* confdefs.h. */
5512_ACEOF
5513cat confdefs.h >>conftest.$ac_ext
5514cat >>conftest.$ac_ext <<_ACEOF
5515/* end confdefs.h. */
5516
5517int
5518main ()
5519{
5520
5521 ;
5522 return 0;
5523}
5524_ACEOF
5525rm -f conftest.$ac_objext
5526if { (ac_try="$ac_compile"
5527case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005538 (exit $ac_status); } &&
5539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5540 { (case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_try") 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; } &&
5549 { ac_try='test -s conftest.$ac_objext'
5550 { (case "(($ac_try" in
5551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5552 *) ac_try_echo=$ac_try;;
5553esac
5554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5555 (eval "$ac_try") 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005559 ac_cv_prog_cc_g=yes
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571fi
5572
5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5574 ac_c_werror_flag=$ac_save_c_werror_flag
5575fi
5576{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5577echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5578if test "$ac_test_CFLAGS" = set; then
5579 CFLAGS=$ac_save_CFLAGS
5580elif test $ac_cv_prog_cc_g = yes; then
5581 if test "$GCC" = yes; then
5582 CFLAGS="-g -O2"
5583 else
5584 CFLAGS="-g"
5585 fi
5586else
5587 if test "$GCC" = yes; then
5588 CFLAGS="-O2"
5589 else
5590 CFLAGS=
5591 fi
5592fi
5593{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5594echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5595if test "${ac_cv_prog_cc_c89+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598 ac_cv_prog_cc_c89=no
5599ac_save_CC=$CC
5600cat >conftest.$ac_ext <<_ACEOF
5601/* confdefs.h. */
5602_ACEOF
5603cat confdefs.h >>conftest.$ac_ext
5604cat >>conftest.$ac_ext <<_ACEOF
5605/* end confdefs.h. */
5606#include <stdarg.h>
5607#include <stdio.h>
5608#include <sys/types.h>
5609#include <sys/stat.h>
5610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5611struct buf { int x; };
5612FILE * (*rcsopen) (struct buf *, struct stat *, int);
5613static char *e (p, i)
5614 char **p;
5615 int i;
5616{
5617 return p[i];
5618}
5619static char *f (char * (*g) (char **, int), char **p, ...)
5620{
5621 char *s;
5622 va_list v;
5623 va_start (v,p);
5624 s = g (p, va_arg (v,int));
5625 va_end (v);
5626 return s;
5627}
5628
5629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5630 function prototypes and stuff, but not '\xHH' hex character constants.
5631 These don't provoke an error unfortunately, instead are silently treated
5632 as 'x'. The following induces an error, until -std is added to get
5633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5634 array size at least. It's necessary to write '\x00'==0 to get something
5635 that's true only with -std. */
5636int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5637
5638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5639 inside strings and character constants. */
5640#define FOO(x) 'x'
5641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5642
5643int test (int i, double x);
5644struct s1 {int (*f) (int a);};
5645struct s2 {int (*f) (double a);};
5646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5647int argc;
5648char **argv;
5649int
5650main ()
5651{
5652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5659do
5660 CC="$ac_save_CC $ac_arg"
5661 rm -f conftest.$ac_objext
5662if { (ac_try="$ac_compile"
5663case "(($ac_try" in
5664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5666esac
5667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_compile") 2>conftest.er1
5669 ac_status=$?
5670 grep -v '^ *+' conftest.er1 >conftest.err
5671 rm -f conftest.er1
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005674 (exit $ac_status); } &&
5675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5676 { (case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679esac
5680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); }; } &&
5685 { ac_try='test -s conftest.$ac_objext'
5686 { (case "(($ac_try" in
5687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688 *) ac_try_echo=$ac_try;;
5689esac
5690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005695 ac_cv_prog_cc_c89=$ac_arg
5696else
5697 echo "$as_me: failed program was:" >&5
5698sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701fi
5702
5703rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5705done
5706rm -f conftest.$ac_ext
5707CC=$ac_save_CC
5708
5709fi
5710# AC_CACHE_VAL
5711case "x$ac_cv_prog_cc_c89" in
5712 x)
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714echo "${ECHO_T}none needed" >&6; } ;;
5715 xno)
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717echo "${ECHO_T}unsupported" >&6; } ;;
5718 *)
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722esac
5723
5724
5725ac_ext=c
5726ac_cpp='$CPP $CPPFLAGS'
5727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731ac_ext=cpp
5732ac_cpp='$CXXCPP $CPPFLAGS'
5733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736if test -z "$CXX"; then
5737 if test -n "$CCC"; then
5738 CXX=$CCC
5739 else
5740 if test -n "$ac_tool_prefix"; then
5741 for ac_prog in g++
5742 do
5743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747if test "${ac_cv_prog_CXX+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750 if test -n "$CXX"; then
5751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770CXX=$ac_cv_prog_CXX
5771if test -n "$CXX"; then
5772 { echo "$as_me:$LINENO: result: $CXX" >&5
5773echo "${ECHO_T}$CXX" >&6; }
5774else
5775 { echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6; }
5777fi
5778
5779
5780 test -n "$CXX" && break
5781 done
5782fi
5783if test -z "$CXX"; then
5784 ac_ct_CXX=$CXX
5785 for ac_prog in g++
5786do
5787 # Extract the first word of "$ac_prog", so it can be a program name with args.
5788set dummy $ac_prog; ac_word=$2
5789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793else
5794 if test -n "$ac_ct_CXX"; then
5795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5796else
5797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5798for as_dir in $PATH
5799do
5800 IFS=$as_save_IFS
5801 test -z "$as_dir" && as_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00005803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5806 break 2
5807 fi
5808done
5809done
5810IFS=$as_save_IFS
5811
5812fi
5813fi
5814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5815if test -n "$ac_ct_CXX"; then
5816 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5817echo "${ECHO_T}$ac_ct_CXX" >&6; }
5818else
5819 { echo "$as_me:$LINENO: result: no" >&5
5820echo "${ECHO_T}no" >&6; }
5821fi
5822
5823
5824 test -n "$ac_ct_CXX" && break
5825done
5826
5827 if test "x$ac_ct_CXX" = x; then
5828 CXX="g++"
5829 else
5830 case $cross_compiling:$ac_tool_warned in
5831yes:)
5832{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5833whose name does not start with the host triplet. If you think this
5834configuration is useful to you, please write to autoconf@gnu.org." >&5
5835echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5836whose name does not start with the host triplet. If you think this
5837configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5838ac_tool_warned=yes ;;
5839esac
5840 CXX=$ac_ct_CXX
5841 fi
5842fi
5843
5844 fi
5845fi
5846# Provide some information about the compiler.
5847echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5848ac_compiler=`set X $ac_compile; echo $2`
5849{ (ac_try="$ac_compiler --version >&5"
5850case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853esac
5854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compiler --version >&5") 2>&5
5856 ac_status=$?
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }
5859{ (ac_try="$ac_compiler -v >&5"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compiler -v >&5") 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }
5869{ (ac_try="$ac_compiler -V >&5"
5870case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873esac
5874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compiler -V >&5") 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }
5879
5880{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5881echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5882if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885 cat >conftest.$ac_ext <<_ACEOF
5886/* confdefs.h. */
5887_ACEOF
5888cat confdefs.h >>conftest.$ac_ext
5889cat >>conftest.$ac_ext <<_ACEOF
5890/* end confdefs.h. */
5891
5892int
5893main ()
5894{
5895#ifndef __GNUC__
5896 choke me
5897#endif
5898
5899 ;
5900 return 0;
5901}
5902_ACEOF
5903rm -f conftest.$ac_objext
5904if { (ac_try="$ac_compile"
5905case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908esac
5909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compile") 2>conftest.er1
5911 ac_status=$?
5912 grep -v '^ *+' conftest.er1 >conftest.err
5913 rm -f conftest.er1
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5918 { (case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; } &&
5927 { ac_try='test -s conftest.$ac_objext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5934 ac_status=$?
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005937 ac_compiler_gnu=yes
5938else
5939 echo "$as_me: failed program was:" >&5
5940sed 's/^/| /' conftest.$ac_ext >&5
5941
5942 ac_compiler_gnu=no
5943fi
5944
5945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5947
5948fi
5949{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5950echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5951GXX=`test $ac_compiler_gnu = yes && echo yes`
5952ac_test_CXXFLAGS=${CXXFLAGS+set}
5953ac_save_CXXFLAGS=$CXXFLAGS
5954{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5955echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5956if test "${ac_cv_prog_cxx_g+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5960 ac_cxx_werror_flag=yes
5961 ac_cv_prog_cxx_g=no
5962 CXXFLAGS="-g"
5963 cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969
5970int
5971main ()
5972{
5973
5974 ;
5975 return 0;
5976}
5977_ACEOF
5978rm -f conftest.$ac_objext
5979if { (ac_try="$ac_compile"
5980case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983esac
5984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00005991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5993 { (case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996esac
5997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_try") 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; } &&
6002 { ac_try='test -s conftest.$ac_objext'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6006esac
6007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6009 ac_status=$?
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006012 ac_cv_prog_cxx_g=yes
6013else
6014 echo "$as_me: failed program was:" >&5
6015sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 CXXFLAGS=""
6018 cat >conftest.$ac_ext <<_ACEOF
6019/* confdefs.h. */
6020_ACEOF
6021cat confdefs.h >>conftest.$ac_ext
6022cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */
6024
6025int
6026main ()
6027{
6028
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext
6034if { (ac_try="$ac_compile"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6048 { (case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051esac
6052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6053 (eval "$ac_try") 2>&5
6054 ac_status=$?
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (case "(($ac_try" in
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6061esac
6062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_try") 2>&5
6064 ac_status=$?
6065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006067 :
6068else
6069 echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6073 CXXFLAGS="-g"
6074 cat >conftest.$ac_ext <<_ACEOF
6075/* confdefs.h. */
6076_ACEOF
6077cat confdefs.h >>conftest.$ac_ext
6078cat >>conftest.$ac_ext <<_ACEOF
6079/* end confdefs.h. */
6080
6081int
6082main ()
6083{
6084
6085 ;
6086 return 0;
6087}
6088_ACEOF
6089rm -f conftest.$ac_objext
6090if { (ac_try="$ac_compile"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006102 (exit $ac_status); } &&
6103 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6104 { (case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107esac
6108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_try") 2>&5
6110 ac_status=$?
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }; } &&
6113 { ac_try='test -s conftest.$ac_objext'
6114 { (case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117esac
6118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_try") 2>&5
6120 ac_status=$?
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006123 ac_cv_prog_cxx_g=yes
6124else
6125 echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129fi
6130
6131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6132fi
6133
6134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135fi
6136
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6139fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6141echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6142if test "$ac_test_CXXFLAGS" = set; then
6143 CXXFLAGS=$ac_save_CXXFLAGS
6144elif test $ac_cv_prog_cxx_g = yes; then
6145 if test "$GXX" = yes; then
6146 CXXFLAGS="-g -O2"
6147 else
6148 CXXFLAGS="-g"
6149 fi
6150else
6151 if test "$GXX" = yes; then
6152 CXXFLAGS="-O2"
6153 else
6154 CXXFLAGS=
6155 fi
6156fi
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163{ echo "$as_me:$LINENO: checking " >&5
6164echo $ECHO_N "checking ... $ECHO_C" >&6; }
6165if test "${ac_cv_has_flex+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6167else
6168 for ac_prog in flex lex
6169do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171set dummy $ac_prog; ac_word=$2
6172{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6174if test "${ac_cv_prog_LEX+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177 if test -n "$LEX"; then
6178 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006187 ac_cv_prog_LEX="$ac_prog"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197LEX=$ac_cv_prog_LEX
6198if test -n "$LEX"; then
6199 { echo "$as_me:$LINENO: result: $LEX" >&5
6200echo "${ECHO_T}$LEX" >&6; }
6201else
6202 { echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6; }
6204fi
6205
6206
6207 test -n "$LEX" && break
6208done
6209test -n "$LEX" || LEX=":"
6210
Tanya Lattnercf067672008-01-17 05:57:22 +00006211if test -z "$LEXLIB"
6212then
6213 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6214echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6215if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 ac_check_lib_save_LIBS=$LIBS
6219LIBS="-lfl $LIBS"
6220cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h. */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h. */
6226
6227/* Override any GCC internal prototype to avoid an error.
6228 Use char because int might match the return type of a GCC
6229 builtin and then its argument prototype would still apply. */
6230#ifdef __cplusplus
6231extern "C"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006232#endif
Tanya Lattnercf067672008-01-17 05:57:22 +00006233char yywrap ();
Scott Michel96dcd2b2007-12-05 21:24:02 +00006234int
Tanya Lattnercf067672008-01-17 05:57:22 +00006235main ()
Scott Michel96dcd2b2007-12-05 21:24:02 +00006236{
Tanya Lattnercf067672008-01-17 05:57:22 +00006237return yywrap ();
6238 ;
6239 return 0;
Scott Michel96dcd2b2007-12-05 21:24:02 +00006240}
Reid Spencera773bd52006-08-04 18:18:08 +00006241_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +00006242rm -f conftest.$ac_objext conftest$ac_exeext
6243if { (ac_try="$ac_link"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_link") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6257 { (case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260esac
6261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_try") 2>&5
6263 ac_status=$?
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); }; } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270esac
6271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_try") 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_lib_fl_yywrap=yes
6277else
6278 echo "$as_me: failed program was:" >&5
6279sed 's/^/| /' conftest.$ac_ext >&5
6280
6281 ac_cv_lib_fl_yywrap=no
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6286LIBS=$ac_check_lib_save_LIBS
6287fi
6288{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6289echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6290if test $ac_cv_lib_fl_yywrap = yes; then
6291 LEXLIB="-lfl"
6292else
6293 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6294echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6295if test "${ac_cv_lib_l_yywrap+set}" = set; then
6296 echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298 ac_check_lib_save_LIBS=$LIBS
6299LIBS="-ll $LIBS"
6300cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307/* Override any GCC internal prototype to avoid an error.
6308 Use char because int might match the return type of a GCC
6309 builtin and then its argument prototype would still apply. */
6310#ifdef __cplusplus
6311extern "C"
6312#endif
6313char yywrap ();
6314int
6315main ()
6316{
6317return yywrap ();
6318 ;
6319 return 0;
6320}
6321_ACEOF
6322rm -f conftest.$ac_objext conftest$ac_exeext
6323if { (ac_try="$ac_link"
6324case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327esac
6328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_link") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } &&
6336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6337 { (case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340esac
6341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_try") 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; } &&
6346 { ac_try='test -s conftest$ac_exeext'
6347 { (case "(($ac_try" in
6348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6349 *) ac_try_echo=$ac_try;;
6350esac
6351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_try") 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_l_yywrap=yes
6357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
6361 ac_cv_lib_l_yywrap=no
6362fi
6363
6364rm -f core conftest.err conftest.$ac_objext \
6365 conftest$ac_exeext conftest.$ac_ext
6366LIBS=$ac_check_lib_save_LIBS
6367fi
6368{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6369echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6370if test $ac_cv_lib_l_yywrap = yes; then
6371 LEXLIB="-ll"
6372fi
6373
6374fi
6375
6376fi
6377
6378if test "x$LEX" != "x:"; then
6379 { echo "$as_me:$LINENO: checking lex output file root" >&5
6380echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6381if test "${ac_cv_prog_lex_root+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383else
6384 # The minimal lex program is just a single line: %%. But some broken lexes
6385# (Solaris, I think it was) want two %% lines, so accommodate them.
6386cat >conftest.l <<_ACEOF
6387%%
6388%%
6389_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006390{ (ac_try="$LEX conftest.l"
6391case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6394esac
6395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$LEX conftest.l") 2>&5
6397 ac_status=$?
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }
6400if test -f lex.yy.c; then
6401 ac_cv_prog_lex_root=lex.yy
6402elif test -f lexyy.c; then
6403 ac_cv_prog_lex_root=lexyy
6404else
6405 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6406echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6407 { (exit 1); exit 1; }; }
6408fi
6409fi
6410{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6411echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Tanya Lattnercf067672008-01-17 05:57:22 +00006412rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006413LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6414
Scott Michel96dcd2b2007-12-05 21:24:02 +00006415{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6416echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6417if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419else
6420 # POSIX says lex can declare yytext either as a pointer or an array; the
Tanya Lattnercf067672008-01-17 05:57:22 +00006421# default is implementation-dependent. Figure out which it is, since
Scott Michel96dcd2b2007-12-05 21:24:02 +00006422# not all implementations provide the %pointer and %array declarations.
6423ac_cv_prog_lex_yytext_pointer=no
Tanya Lattnercf067672008-01-17 05:57:22 +00006424echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Scott Michel96dcd2b2007-12-05 21:24:02 +00006425ac_save_LIBS=$LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006426LIBS="$LIBS $LEXLIB"
Scott Michel96dcd2b2007-12-05 21:24:02 +00006427cat >conftest.$ac_ext <<_ACEOF
Scott Michel96dcd2b2007-12-05 21:24:02 +00006428`cat $LEX_OUTPUT_ROOT.c`
6429_ACEOF
6430rm -f conftest.$ac_objext conftest$ac_exeext
6431if { (ac_try="$ac_link"
6432case "(($ac_try" in
Reid Spencera773bd52006-08-04 18:18:08 +00006433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435esac
6436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Scott Michel96dcd2b2007-12-05 21:24:02 +00006437 (eval "$ac_link") 2>conftest.er1
Reid Spencera773bd52006-08-04 18:18:08 +00006438 ac_status=$?
Scott Michel96dcd2b2007-12-05 21:24:02 +00006439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
Reid Spencera773bd52006-08-04 18:18:08 +00006442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (case "(($ac_try" in
6446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6448esac
6449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_try") 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (case "(($ac_try" in
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6458esac
6459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_try") 2>&5
6461 ac_status=$?
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006464 ac_cv_prog_lex_yytext_pointer=yes
6465else
6466 echo "$as_me: failed program was:" >&5
6467sed 's/^/| /' conftest.$ac_ext >&5
6468
6469
6470fi
6471
Tanya Lattnercf067672008-01-17 05:57:22 +00006472rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006473 conftest$ac_exeext conftest.$ac_ext
6474LIBS=$ac_save_LIBS
Tanya Lattnercf067672008-01-17 05:57:22 +00006475rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006476
6477fi
6478{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6479echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6480if test $ac_cv_prog_lex_yytext_pointer = yes; then
6481
6482cat >>confdefs.h <<\_ACEOF
6483#define YYTEXT_POINTER 1
6484_ACEOF
6485
6486fi
6487
6488fi
6489
6490fi
6491{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6492echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6493if test "$LEX" != "flex"; then
6494 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6495echo "$as_me: error: flex not found but required" >&2;}
6496 { (exit 1); exit 1; }; }
6497else
6498 FLEX=flex
6499
6500fi
6501
6502{ echo "$as_me:$LINENO: checking " >&5
6503echo $ECHO_N "checking ... $ECHO_C" >&6; }
6504if test "${llvm_cv_has_bison+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507 for ac_prog in 'bison -y' byacc
6508do
6509 # Extract the first word of "$ac_prog", so it can be a program name with args.
6510set dummy $ac_prog; ac_word=$2
6511{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6512echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6513if test "${ac_cv_prog_YACC+set}" = set; then
6514 echo $ECHO_N "(cached) $ECHO_C" >&6
6515else
6516 if test -n "$YACC"; then
6517 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006526 ac_cv_prog_YACC="$ac_prog"
6527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536YACC=$ac_cv_prog_YACC
6537if test -n "$YACC"; then
6538 { echo "$as_me:$LINENO: result: $YACC" >&5
6539echo "${ECHO_T}$YACC" >&6; }
6540else
6541 { echo "$as_me:$LINENO: result: no" >&5
6542echo "${ECHO_T}no" >&6; }
6543fi
6544
6545
6546 test -n "$YACC" && break
6547done
6548test -n "$YACC" || YACC="yacc"
6549
6550fi
6551{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6552echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6553if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006554
6555 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6556echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006557else
6558 BISON=bison
6559
6560fi
6561
6562{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6563echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6564if test "${lt_cv_path_NM+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 if test -n "$NM"; then
6568 # Let the user override the test.
6569 lt_cv_path_NM="$NM"
6570else
6571 lt_nm_to_check="${ac_tool_prefix}nm"
6572 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6573 lt_nm_to_check="$lt_nm_to_check nm"
6574 fi
6575 for lt_tmp_nm in $lt_nm_to_check; do
6576 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6577 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6578 IFS="$lt_save_ifs"
6579 test -z "$ac_dir" && ac_dir=.
6580 tmp_nm="$ac_dir/$lt_tmp_nm"
6581 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6582 # Check to see if the nm accepts a BSD-compat flag.
6583 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6584 # nm: unknown option "B" ignored
6585 # Tru64's nm complains that /dev/null is an invalid object file
6586 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6587 */dev/null* | *'Invalid file or object type'*)
6588 lt_cv_path_NM="$tmp_nm -B"
6589 break
6590 ;;
6591 *)
6592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6593 */dev/null*)
6594 lt_cv_path_NM="$tmp_nm -p"
6595 break
6596 ;;
6597 *)
6598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6599 continue # so that we can try to find one that supports BSD flags
6600 ;;
6601 esac
6602 ;;
6603 esac
6604 fi
6605 done
6606 IFS="$lt_save_ifs"
6607 done
6608 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6609fi
6610fi
6611{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6612echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6613NM="$lt_cv_path_NM"
6614
6615
6616
6617{ echo "$as_me:$LINENO: checking for GNU make" >&5
6618echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6619if test "${llvm_cv_gnu_make_command+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6621else
6622 llvm_cv_gnu_make_command=''
6623 for a in "$MAKE" make gmake gnumake ; do
6624 if test -z "$a" ; then continue ; fi ;
6625 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6626 then
6627 llvm_cv_gnu_make_command=$a ;
6628 break;
6629 fi
6630 done
6631fi
6632{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6633echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6634 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6635 ifGNUmake='' ;
6636 else
6637 ifGNUmake='#' ;
6638 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6639echo "${ECHO_T}\"Not found\"" >&6; };
6640 fi
6641
6642
6643{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6644echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6645LN_S=$as_ln_s
6646if test "$LN_S" = "ln -s"; then
6647 { echo "$as_me:$LINENO: result: yes" >&5
6648echo "${ECHO_T}yes" >&6; }
6649else
6650 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6651echo "${ECHO_T}no, using $LN_S" >&6; }
6652fi
6653
6654# Extract the first word of "cmp", so it can be a program name with args.
6655set dummy cmp; ac_word=$2
6656{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6658if test "${ac_cv_path_CMP+set}" = set; then
6659 echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661 case $CMP in
6662 [\\/]* | ?:[\\/]*)
6663 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6664 ;;
6665 *)
6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667for as_dir in $PATH
6668do
6669 IFS=$as_save_IFS
6670 test -z "$as_dir" && as_dir=.
6671 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006673 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677done
6678done
6679IFS=$as_save_IFS
6680
6681 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6682 ;;
6683esac
6684fi
6685CMP=$ac_cv_path_CMP
6686if test -n "$CMP"; then
6687 { echo "$as_me:$LINENO: result: $CMP" >&5
6688echo "${ECHO_T}$CMP" >&6; }
6689else
6690 { echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6; }
6692fi
6693
6694
6695# Extract the first word of "cp", so it can be a program name with args.
6696set dummy cp; ac_word=$2
6697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699if test "${ac_cv_path_CP+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702 case $CP in
6703 [\\/]* | ?:[\\/]*)
6704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6705 ;;
6706 *)
6707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710 IFS=$as_save_IFS
6711 test -z "$as_dir" && as_dir=.
6712 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716 break 2
6717 fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6723 ;;
6724esac
6725fi
6726CP=$ac_cv_path_CP
6727if test -n "$CP"; then
6728 { echo "$as_me:$LINENO: result: $CP" >&5
6729echo "${ECHO_T}$CP" >&6; }
6730else
6731 { echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6; }
6733fi
6734
6735
6736# Extract the first word of "date", so it can be a program name with args.
6737set dummy date; ac_word=$2
6738{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6740if test "${ac_cv_path_DATE+set}" = set; then
6741 echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743 case $DATE in
6744 [\\/]* | ?:[\\/]*)
6745 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6746 ;;
6747 *)
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006755 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759done
6760done
6761IFS=$as_save_IFS
6762
6763 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6764 ;;
6765esac
6766fi
6767DATE=$ac_cv_path_DATE
6768if test -n "$DATE"; then
6769 { echo "$as_me:$LINENO: result: $DATE" >&5
6770echo "${ECHO_T}$DATE" >&6; }
6771else
6772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
6774fi
6775
6776
6777# Extract the first word of "find", so it can be a program name with args.
6778set dummy find; ac_word=$2
6779{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6781if test "${ac_cv_path_FIND+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783else
6784 case $FIND in
6785 [\\/]* | ?:[\\/]*)
6786 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6787 ;;
6788 *)
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790for as_dir in $PATH
6791do
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006796 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6799 fi
6800done
6801done
6802IFS=$as_save_IFS
6803
6804 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6805 ;;
6806esac
6807fi
6808FIND=$ac_cv_path_FIND
6809if test -n "$FIND"; then
6810 { echo "$as_me:$LINENO: result: $FIND" >&5
6811echo "${ECHO_T}$FIND" >&6; }
6812else
6813 { echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6; }
6815fi
6816
6817
6818# Extract the first word of "grep", so it can be a program name with args.
6819set dummy grep; ac_word=$2
6820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6822if test "${ac_cv_path_GREP+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824else
6825 case $GREP in
6826 [\\/]* | ?:[\\/]*)
6827 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6828 ;;
6829 *)
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833 IFS=$as_save_IFS
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006837 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839 break 2
6840 fi
6841done
6842done
6843IFS=$as_save_IFS
6844
6845 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6846 ;;
6847esac
6848fi
6849GREP=$ac_cv_path_GREP
6850if test -n "$GREP"; then
6851 { echo "$as_me:$LINENO: result: $GREP" >&5
6852echo "${ECHO_T}$GREP" >&6; }
6853else
6854 { echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6; }
6856fi
6857
6858
6859# Extract the first word of "mkdir", so it can be a program name with args.
6860set dummy mkdir; ac_word=$2
6861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6863if test "${ac_cv_path_MKDIR+set}" = set; then
6864 echo $ECHO_N "(cached) $ECHO_C" >&6
6865else
6866 case $MKDIR in
6867 [\\/]* | ?:[\\/]*)
6868 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6869 ;;
6870 *)
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872for as_dir in $PATH
6873do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006878 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882done
6883done
6884IFS=$as_save_IFS
6885
6886 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6887 ;;
6888esac
6889fi
6890MKDIR=$ac_cv_path_MKDIR
6891if test -n "$MKDIR"; then
6892 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6893echo "${ECHO_T}$MKDIR" >&6; }
6894else
6895 { echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6; }
6897fi
6898
6899
6900# Extract the first word of "mv", so it can be a program name with args.
6901set dummy mv; ac_word=$2
6902{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904if test "${ac_cv_path_MV+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906else
6907 case $MV in
6908 [\\/]* | ?:[\\/]*)
6909 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6910 ;;
6911 *)
6912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913for as_dir in $PATH
6914do
6915 IFS=$as_save_IFS
6916 test -z "$as_dir" && as_dir=.
6917 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006919 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921 break 2
6922 fi
6923done
6924done
6925IFS=$as_save_IFS
6926
6927 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6928 ;;
6929esac
6930fi
6931MV=$ac_cv_path_MV
6932if test -n "$MV"; then
6933 { echo "$as_me:$LINENO: result: $MV" >&5
6934echo "${ECHO_T}$MV" >&6; }
6935else
6936 { echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6; }
6938fi
6939
6940
6941if test -n "$ac_tool_prefix"; then
6942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6943set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6944{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946if test "${ac_cv_prog_RANLIB+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949 if test -n "$RANLIB"; then
6950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6951else
6952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953for as_dir in $PATH
6954do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963done
6964done
6965IFS=$as_save_IFS
6966
6967fi
6968fi
6969RANLIB=$ac_cv_prog_RANLIB
6970if test -n "$RANLIB"; then
6971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6972echo "${ECHO_T}$RANLIB" >&6; }
6973else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6; }
6976fi
6977
6978
6979fi
6980if test -z "$ac_cv_prog_RANLIB"; then
6981 ac_ct_RANLIB=$RANLIB
6982 # Extract the first word of "ranlib", so it can be a program name with args.
6983set dummy ranlib; ac_word=$2
6984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6986if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 if test -n "$ac_ct_RANLIB"; then
6990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6991else
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00006998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006999 ac_cv_prog_ac_ct_RANLIB="ranlib"
7000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003done
7004done
7005IFS=$as_save_IFS
7006
7007fi
7008fi
7009ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7010if test -n "$ac_ct_RANLIB"; then
7011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7012echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7013else
7014 { echo "$as_me:$LINENO: result: no" >&5
7015echo "${ECHO_T}no" >&6; }
7016fi
7017
7018 if test "x$ac_ct_RANLIB" = x; then
7019 RANLIB=":"
7020 else
7021 case $cross_compiling:$ac_tool_warned in
7022yes:)
7023{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7024whose name does not start with the host triplet. If you think this
7025configuration is useful to you, please write to autoconf@gnu.org." >&5
7026echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7027whose name does not start with the host triplet. If you think this
7028configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7029ac_tool_warned=yes ;;
7030esac
7031 RANLIB=$ac_ct_RANLIB
7032 fi
7033else
7034 RANLIB="$ac_cv_prog_RANLIB"
7035fi
7036
7037# Extract the first word of "rm", so it can be a program name with args.
7038set dummy rm; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_path_RM+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044 case $RM in
7045 [\\/]* | ?:[\\/]*)
7046 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7047 ;;
7048 *)
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007056 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7059 fi
7060done
7061done
7062IFS=$as_save_IFS
7063
7064 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7065 ;;
7066esac
7067fi
7068RM=$ac_cv_path_RM
7069if test -n "$RM"; then
7070 { echo "$as_me:$LINENO: result: $RM" >&5
7071echo "${ECHO_T}$RM" >&6; }
7072else
7073 { echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6; }
7075fi
7076
7077
7078# Extract the first word of "sed", so it can be a program name with args.
7079set dummy sed; ac_word=$2
7080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082if test "${ac_cv_path_SED+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7084else
7085 case $SED in
7086 [\\/]* | ?:[\\/]*)
7087 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7088 ;;
7089 *)
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091for as_dir in $PATH
7092do
7093 IFS=$as_save_IFS
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007097 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7099 break 2
7100 fi
7101done
7102done
7103IFS=$as_save_IFS
7104
7105 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7106 ;;
7107esac
7108fi
7109SED=$ac_cv_path_SED
7110if test -n "$SED"; then
7111 { echo "$as_me:$LINENO: result: $SED" >&5
7112echo "${ECHO_T}$SED" >&6; }
7113else
7114 { echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6; }
7116fi
7117
7118
7119# Extract the first word of "tar", so it can be a program name with args.
7120set dummy tar; ac_word=$2
7121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123if test "${ac_cv_path_TAR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126 case $TAR in
7127 [\\/]* | ?:[\\/]*)
7128 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7129 ;;
7130 *)
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132for as_dir in $PATH
7133do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007138 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142done
7143done
7144IFS=$as_save_IFS
7145
7146 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7147 ;;
7148esac
7149fi
7150TAR=$ac_cv_path_TAR
7151if test -n "$TAR"; then
7152 { echo "$as_me:$LINENO: result: $TAR" >&5
7153echo "${ECHO_T}$TAR" >&6; }
7154else
7155 { echo "$as_me:$LINENO: result: no" >&5
7156echo "${ECHO_T}no" >&6; }
7157fi
7158
7159
7160# Extract the first word of "pwd", so it can be a program name with args.
7161set dummy pwd; 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_BINPWD+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7166else
7167 case $BINPWD in
7168 [\\/]* | ?:[\\/]*)
7169 ac_cv_path_BINPWD="$BINPWD" # 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
Tanya Lattnercf067672008-01-17 05:57:22 +00007178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007179 ac_cv_path_BINPWD="$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 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7188 ;;
7189esac
7190fi
7191BINPWD=$ac_cv_path_BINPWD
7192if test -n "$BINPWD"; then
7193 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7194echo "${ECHO_T}$BINPWD" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201
7202# Extract the first word of "Graphviz", so it can be a program name with args.
7203set dummy Graphviz; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $GRAPHVIZ in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007221 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7230 ;;
7231esac
7232fi
7233GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7234if test -n "$GRAPHVIZ"; then
7235 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7236echo "${ECHO_T}$GRAPHVIZ" >&6; }
7237else
7238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
7240fi
7241
7242
7243if test "$GRAPHVIZ" != "echo Graphviz" ; then
7244
7245cat >>confdefs.h <<\_ACEOF
7246#define HAVE_GRAPHVIZ 1
7247_ACEOF
7248
Jeff Cohen28783c32007-01-12 18:22:38 +00007249 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007250 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 fi
7252
7253cat >>confdefs.h <<_ACEOF
7254#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7255_ACEOF
7256
7257fi
7258# Extract the first word of "dot", so it can be a program name with args.
7259set dummy dot; ac_word=$2
7260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262if test "${ac_cv_path_DOT+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264else
7265 case $DOT in
7266 [\\/]* | ?:[\\/]*)
7267 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7268 ;;
7269 *)
7270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271for as_dir in $PATH
7272do
7273 IFS=$as_save_IFS
7274 test -z "$as_dir" && as_dir=.
7275 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007277 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7279 break 2
7280 fi
7281done
7282done
7283IFS=$as_save_IFS
7284
7285 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7286 ;;
7287esac
7288fi
7289DOT=$ac_cv_path_DOT
7290if test -n "$DOT"; then
7291 { echo "$as_me:$LINENO: result: $DOT" >&5
7292echo "${ECHO_T}$DOT" >&6; }
7293else
7294 { echo "$as_me:$LINENO: result: no" >&5
7295echo "${ECHO_T}no" >&6; }
7296fi
7297
7298
7299if test "$DOT" != "echo dot" ; then
7300
7301cat >>confdefs.h <<\_ACEOF
7302#define HAVE_DOT 1
7303_ACEOF
7304
Jeff Cohen28783c32007-01-12 18:22:38 +00007305 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007306 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7307 fi
7308
7309cat >>confdefs.h <<_ACEOF
7310#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7311_ACEOF
7312
7313fi
7314for ac_prog in gv gsview32
7315do
7316 # Extract the first word of "$ac_prog", so it can be a program name with args.
7317set dummy $ac_prog; ac_word=$2
7318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7320if test "${ac_cv_path_GV+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7322else
7323 case $GV in
7324 [\\/]* | ?:[\\/]*)
7325 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7326 ;;
7327 *)
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007335 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339done
7340done
7341IFS=$as_save_IFS
7342
7343 ;;
7344esac
7345fi
7346GV=$ac_cv_path_GV
7347if test -n "$GV"; then
7348 { echo "$as_me:$LINENO: result: $GV" >&5
7349echo "${ECHO_T}$GV" >&6; }
7350else
7351 { echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6; }
7353fi
7354
7355
7356 test -n "$GV" && break
7357done
7358test -n "$GV" || GV="echo gv"
7359
7360if test "$GV" != "echo gv" ; then
7361
7362cat >>confdefs.h <<\_ACEOF
7363#define HAVE_GV 1
7364_ACEOF
7365
Jeff Cohen28783c32007-01-12 18:22:38 +00007366 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007367 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7368 fi
7369
7370cat >>confdefs.h <<_ACEOF
7371#define LLVM_PATH_GV "$GV${EXEEXT}"
7372_ACEOF
7373
7374fi
7375# Extract the first word of "dotty", so it can be a program name with args.
7376set dummy dotty; ac_word=$2
7377{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379if test "${ac_cv_path_DOTTY+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382 case $DOTTY in
7383 [\\/]* | ?:[\\/]*)
7384 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7385 ;;
7386 *)
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388for as_dir in $PATH
7389do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007394 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398done
7399done
7400IFS=$as_save_IFS
7401
7402 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7403 ;;
7404esac
7405fi
7406DOTTY=$ac_cv_path_DOTTY
7407if test -n "$DOTTY"; then
7408 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7409echo "${ECHO_T}$DOTTY" >&6; }
7410else
7411 { echo "$as_me:$LINENO: result: no" >&5
7412echo "${ECHO_T}no" >&6; }
7413fi
7414
7415
7416if test "$DOTTY" != "echo dotty" ; then
7417
7418cat >>confdefs.h <<\_ACEOF
7419#define HAVE_DOTTY 1
7420_ACEOF
7421
Jeff Cohen28783c32007-01-12 18:22:38 +00007422 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007423 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424 fi
7425
7426cat >>confdefs.h <<_ACEOF
7427#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7428_ACEOF
7429
7430fi
7431
7432
7433# Extract the first word of "perl", so it can be a program name with args.
7434set dummy perl; ac_word=$2
7435{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437if test "${ac_cv_path_PERL+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439else
7440 case $PERL in
7441 [\\/]* | ?:[\\/]*)
7442 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7443 ;;
7444 *)
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007452 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457done
7458IFS=$as_save_IFS
7459
7460 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7461 ;;
7462esac
7463fi
7464PERL=$ac_cv_path_PERL
7465if test -n "$PERL"; then
7466 { echo "$as_me:$LINENO: result: $PERL" >&5
7467echo "${ECHO_T}$PERL" >&6; }
7468else
7469 { echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6; }
7471fi
7472
7473
7474if test "$PERL" != "none"; then
7475 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7476echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7477 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7478 { echo "$as_me:$LINENO: result: yes" >&5
7479echo "${ECHO_T}yes" >&6; }
7480 else
7481 PERL=none
7482 { echo "$as_me:$LINENO: result: not found" >&5
7483echo "${ECHO_T}not found" >&6; }
7484 fi
7485fi
7486
7487
7488if test x"$PERL" = xnone; then
7489 HAVE_PERL=0
7490
Reid Spencer59807fa2007-05-17 18:11:03 +00007491 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7492echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7493 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007494else
7495 HAVE_PERL=1
7496
7497fi
7498
7499# Find a good install program. We prefer a C program (faster),
7500# so one script is as good as another. But avoid the broken or
7501# incompatible versions:
7502# SysV /etc/install, /usr/sbin/install
7503# SunOS /usr/etc/install
7504# IRIX /sbin/install
7505# AIX /bin/install
7506# AmigaOS /C/install, which installs bootblocks on floppy discs
7507# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7508# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7509# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7510# OS/2's system install, which has a completely different semantic
7511# ./install, which can be erroneously created by make from ./install.sh.
7512{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7513echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7514if test -z "$INSTALL"; then
7515if test "${ac_cv_path_install+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7519for as_dir in $PATH
7520do
7521 IFS=$as_save_IFS
7522 test -z "$as_dir" && as_dir=.
7523 # Account for people who put trailing slashes in PATH elements.
7524case $as_dir/ in
7525 ./ | .// | /cC/* | \
7526 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7527 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7528 /usr/ucb/* ) ;;
7529 *)
7530 # OSF1 and SCO ODT 3.0 have their own names for install.
7531 # Don't use installbsd from OSF since it installs stuff as root
7532 # by default.
7533 for ac_prog in ginstall scoinst install; do
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007535 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007536 if test $ac_prog = install &&
7537 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7538 # AIX install. It has an incompatible calling convention.
7539 :
7540 elif test $ac_prog = install &&
7541 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7542 # program-specific install script used by HP pwplus--don't use.
7543 :
7544 else
7545 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7546 break 3
7547 fi
7548 fi
7549 done
7550 done
7551 ;;
7552esac
7553done
7554IFS=$as_save_IFS
7555
7556
7557fi
7558 if test "${ac_cv_path_install+set}" = set; then
7559 INSTALL=$ac_cv_path_install
7560 else
7561 # As a last resort, use the slow shell script. Don't cache a
7562 # value for INSTALL within a source directory, because that will
7563 # break other packages using the cache if that directory is
7564 # removed, or if the value is a relative name.
7565 INSTALL=$ac_install_sh
7566 fi
7567fi
7568{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7569echo "${ECHO_T}$INSTALL" >&6; }
7570
7571# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7572# It thinks the first close brace ends the variable substitution.
7573test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7574
7575test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7576
7577test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7578
7579
7580# Extract the first word of "bzip2", so it can be a program name with args.
7581set dummy bzip2; ac_word=$2
7582{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584if test "${ac_cv_path_BZIP2+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7586else
7587 case $BZIP2 in
7588 [\\/]* | ?:[\\/]*)
7589 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7590 ;;
7591 *)
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7593for as_dir in $PATH
7594do
7595 IFS=$as_save_IFS
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007599 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7601 break 2
7602 fi
7603done
7604done
7605IFS=$as_save_IFS
7606
Reid Spencera773bd52006-08-04 18:18:08 +00007607 ;;
7608esac
7609fi
7610BZIP2=$ac_cv_path_BZIP2
7611if test -n "$BZIP2"; then
7612 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7613echo "${ECHO_T}$BZIP2" >&6; }
7614else
7615 { echo "$as_me:$LINENO: result: no" >&5
7616echo "${ECHO_T}no" >&6; }
7617fi
7618
7619
7620# Extract the first word of "doxygen", so it can be a program name with args.
7621set dummy doxygen; ac_word=$2
7622{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7624if test "${ac_cv_path_DOXYGEN+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7626else
7627 case $DOXYGEN in
7628 [\\/]* | ?:[\\/]*)
7629 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7630 ;;
7631 *)
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
7637 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007639 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 break 2
7642 fi
7643done
7644done
7645IFS=$as_save_IFS
7646
Reid Spencera773bd52006-08-04 18:18:08 +00007647 ;;
7648esac
7649fi
7650DOXYGEN=$ac_cv_path_DOXYGEN
7651if test -n "$DOXYGEN"; then
7652 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7653echo "${ECHO_T}$DOXYGEN" >&6; }
7654else
7655 { echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6; }
7657fi
7658
7659
Reid Spencera773bd52006-08-04 18:18:08 +00007660# Extract the first word of "groff", so it can be a program name with args.
7661set dummy groff; ac_word=$2
7662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664if test "${ac_cv_path_GROFF+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 case $GROFF in
7668 [\\/]* | ?:[\\/]*)
7669 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7670 ;;
7671 *)
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673for as_dir in $PATH
7674do
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007679 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7682 fi
7683done
7684done
7685IFS=$as_save_IFS
7686
Reid Spencera773bd52006-08-04 18:18:08 +00007687 ;;
7688esac
7689fi
7690GROFF=$ac_cv_path_GROFF
7691if test -n "$GROFF"; then
7692 { echo "$as_me:$LINENO: result: $GROFF" >&5
7693echo "${ECHO_T}$GROFF" >&6; }
7694else
7695 { echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6; }
7697fi
7698
7699
7700# Extract the first word of "gzip", so it can be a program name with args.
7701set dummy gzip; ac_word=$2
7702{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704if test "${ac_cv_path_GZIP+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707 case $GZIP in
7708 [\\/]* | ?:[\\/]*)
7709 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7710 ;;
7711 *)
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713for as_dir in $PATH
7714do
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007719 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7722 fi
7723done
7724done
7725IFS=$as_save_IFS
7726
Reid Spencera773bd52006-08-04 18:18:08 +00007727 ;;
7728esac
7729fi
7730GZIP=$ac_cv_path_GZIP
7731if test -n "$GZIP"; then
7732 { echo "$as_me:$LINENO: result: $GZIP" >&5
7733echo "${ECHO_T}$GZIP" >&6; }
7734else
7735 { echo "$as_me:$LINENO: result: no" >&5
7736echo "${ECHO_T}no" >&6; }
7737fi
7738
7739
7740# Extract the first word of "pod2html", so it can be a program name with args.
7741set dummy pod2html; ac_word=$2
7742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744if test "${ac_cv_path_POD2HTML+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747 case $POD2HTML in
7748 [\\/]* | ?:[\\/]*)
7749 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7750 ;;
7751 *)
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753for as_dir in $PATH
7754do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007759 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763done
7764done
7765IFS=$as_save_IFS
7766
Reid Spencera773bd52006-08-04 18:18:08 +00007767 ;;
7768esac
7769fi
7770POD2HTML=$ac_cv_path_POD2HTML
7771if test -n "$POD2HTML"; then
7772 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7773echo "${ECHO_T}$POD2HTML" >&6; }
7774else
7775 { echo "$as_me:$LINENO: result: no" >&5
7776echo "${ECHO_T}no" >&6; }
7777fi
7778
7779
7780# Extract the first word of "pod2man", so it can be a program name with args.
7781set dummy pod2man; ac_word=$2
7782{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7784if test "${ac_cv_path_POD2MAN+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 case $POD2MAN in
7788 [\\/]* | ?:[\\/]*)
7789 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7790 ;;
7791 *)
7792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793for as_dir in $PATH
7794do
7795 IFS=$as_save_IFS
7796 test -z "$as_dir" && as_dir=.
7797 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007799 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7801 break 2
7802 fi
7803done
7804done
7805IFS=$as_save_IFS
7806
Reid Spencera773bd52006-08-04 18:18:08 +00007807 ;;
7808esac
7809fi
7810POD2MAN=$ac_cv_path_POD2MAN
7811if test -n "$POD2MAN"; then
7812 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7813echo "${ECHO_T}$POD2MAN" >&6; }
7814else
7815 { echo "$as_me:$LINENO: result: no" >&5
7816echo "${ECHO_T}no" >&6; }
7817fi
7818
7819
7820# Extract the first word of "runtest", so it can be a program name with args.
7821set dummy runtest; ac_word=$2
7822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7824if test "${ac_cv_path_RUNTEST+set}" = set; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 case $RUNTEST in
7828 [\\/]* | ?:[\\/]*)
7829 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7830 ;;
7831 *)
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007839 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843done
7844done
7845IFS=$as_save_IFS
7846
Reid Spencera773bd52006-08-04 18:18:08 +00007847 ;;
7848esac
7849fi
7850RUNTEST=$ac_cv_path_RUNTEST
7851if test -n "$RUNTEST"; then
7852 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7853echo "${ECHO_T}$RUNTEST" >&6; }
7854else
7855 { echo "$as_me:$LINENO: result: no" >&5
7856echo "${ECHO_T}no" >&6; }
7857fi
7858
7859
7860
7861no_itcl=true
7862{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7863echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7864
7865# Check whether --with-tclinclude was given.
7866if test "${with_tclinclude+set}" = set; then
7867 withval=$with_tclinclude; with_tclinclude=${withval}
7868else
7869 with_tclinclude=''
7870fi
7871
7872if test "${ac_cv_path_tclsh+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875
7876if test x"${with_tclinclude}" != x ; then
7877 if test -f ${with_tclinclude}/tclsh ; then
7878 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7879 elif test -f ${with_tclinclude}/src/tclsh ; then
7880 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7881 else
7882 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7883echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7884 { (exit 1); exit 1; }; }
7885 fi
7886fi
7887
7888if test x"${ac_cv_path_tclsh}" = x ; then
7889 { echo "$as_me:$LINENO: result: none" >&5
7890echo "${ECHO_T}none" >&6; }
7891 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
7892do
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894set dummy $ac_prog; ac_word=$2
7895{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7897if test "${ac_cv_path_TCLSH+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 case $TCLSH in
7901 [\\/]* | ?:[\\/]*)
7902 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7903 ;;
7904 *)
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007912 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916done
7917done
7918IFS=$as_save_IFS
7919
7920 ;;
7921esac
7922fi
7923TCLSH=$ac_cv_path_TCLSH
7924if test -n "$TCLSH"; then
7925 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7926echo "${ECHO_T}$TCLSH" >&6; }
7927else
7928 { echo "$as_me:$LINENO: result: no" >&5
7929echo "${ECHO_T}no" >&6; }
7930fi
7931
7932
7933 test -n "$TCLSH" && break
7934done
7935
7936 if test x"${TCLSH}" = x ; then
7937 ac_cv_path_tclsh='';
7938 else
7939 ac_cv_path_tclsh="${TCLSH}";
7940 fi
7941else
7942 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7943echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7944 TCLSH="${ac_cv_path_tclsh}"
7945
7946fi
7947
7948fi
7949
7950# Extract the first word of "zip", so it can be a program name with args.
7951set dummy zip; ac_word=$2
7952{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954if test "${ac_cv_path_ZIP+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 case $ZIP in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7960 ;;
7961 *)
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00007968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007969 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7971 break 2
7972 fi
7973done
7974done
7975IFS=$as_save_IFS
7976
Reid Spencera773bd52006-08-04 18:18:08 +00007977 ;;
7978esac
7979fi
7980ZIP=$ac_cv_path_ZIP
7981if test -n "$ZIP"; then
7982 { echo "$as_me:$LINENO: result: $ZIP" >&5
7983echo "${ECHO_T}$ZIP" >&6; }
7984else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
Gordon Henriksene7072162008-03-07 18:20:01 +00007990for ac_prog in ocamlc.opt ocamlc
7991do
7992 # Extract the first word of "$ac_prog", so it can be a program name with args.
7993set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7996if test "${ac_cv_path_OCAMLC+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 case $OCAMLC in
8000 [\\/]* | ?:[\\/]*)
8001 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8002 ;;
8003 *)
8004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007 IFS=$as_save_IFS
8008 test -z "$as_dir" && as_dir=.
8009 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008011 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 break 2
8014 fi
8015done
8016done
8017IFS=$as_save_IFS
8018
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008019 ;;
8020esac
8021fi
8022OCAMLC=$ac_cv_path_OCAMLC
8023if test -n "$OCAMLC"; then
8024 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8025echo "${ECHO_T}$OCAMLC" >&6; }
8026else
8027 { echo "$as_me:$LINENO: result: no" >&5
8028echo "${ECHO_T}no" >&6; }
8029fi
8030
8031
Gordon Henriksene7072162008-03-07 18:20:01 +00008032 test -n "$OCAMLC" && break
8033done
8034
8035for ac_prog in ocamlopt.opt ocamlopt
8036do
8037 # Extract the first word of "$ac_prog", so it can be a program name with args.
8038set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8041if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8043else
8044 case $OCAMLOPT in
8045 [\\/]* | ?:[\\/]*)
8046 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8047 ;;
8048 *)
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050for as_dir in $PATH
8051do
8052 IFS=$as_save_IFS
8053 test -z "$as_dir" && as_dir=.
8054 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008056 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8058 break 2
8059 fi
8060done
8061done
8062IFS=$as_save_IFS
8063
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008064 ;;
8065esac
8066fi
8067OCAMLOPT=$ac_cv_path_OCAMLOPT
8068if test -n "$OCAMLOPT"; then
8069 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8070echo "${ECHO_T}$OCAMLOPT" >&6; }
8071else
8072 { echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6; }
8074fi
8075
8076
Gordon Henriksene7072162008-03-07 18:20:01 +00008077 test -n "$OCAMLOPT" && break
8078done
8079
8080for ac_prog in ocamldep.opt ocamldep
8081do
8082 # Extract the first word of "$ac_prog", so it can be a program name with args.
8083set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8086if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088else
8089 case $OCAMLDEP in
8090 [\\/]* | ?:[\\/]*)
8091 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8092 ;;
8093 *)
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +00008100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008101 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8103 break 2
8104 fi
8105done
8106done
8107IFS=$as_save_IFS
8108
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008109 ;;
8110esac
8111fi
8112OCAMLDEP=$ac_cv_path_OCAMLDEP
8113if test -n "$OCAMLDEP"; then
8114 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8115echo "${ECHO_T}$OCAMLDEP" >&6; }
8116else
8117 { echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6; }
8119fi
8120
8121
Gordon Henriksene7072162008-03-07 18:20:01 +00008122 test -n "$OCAMLDEP" && break
8123done
8124
Reid Spencera773bd52006-08-04 18:18:08 +00008125
8126{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8127echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8128if test "${llvm_cv_link_use_r+set}" = set; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130else
8131 ac_ext=c
8132ac_cpp='$CPP $CPPFLAGS'
8133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8135ac_compiler_gnu=$ac_cv_c_compiler_gnu
8136
8137 oldcflags="$CFLAGS"
8138 CFLAGS="$CFLAGS -Wl,-R."
8139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h. */
8145
8146int
8147main ()
8148{
8149int main() { return 0; }
8150 ;
8151 return 0;
8152}
8153_ACEOF
8154rm -f conftest.$ac_objext conftest$ac_exeext
8155if { (ac_try="$ac_link"
8156case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159esac
8160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_link") 2>conftest.er1
8162 ac_status=$?
8163 grep -v '^ *+' conftest.er1 >conftest.err
8164 rm -f conftest.er1
8165 cat conftest.err >&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008167 (exit $ac_status); } &&
8168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8169 { (case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8172esac
8173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_try") 2>&5
8175 ac_status=$?
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); }; } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
8185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008188 llvm_cv_link_use_r=yes
8189else
8190 echo "$as_me: failed program was:" >&5
8191sed 's/^/| /' conftest.$ac_ext >&5
8192
8193 llvm_cv_link_use_r=no
8194fi
8195
Tanya Lattnercf067672008-01-17 05:57:22 +00008196rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008197 conftest$ac_exeext conftest.$ac_ext
8198 CFLAGS="$oldcflags"
8199 ac_ext=c
8200ac_cpp='$CPP $CPPFLAGS'
8201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8203ac_compiler_gnu=$ac_cv_c_compiler_gnu
8204
8205
8206fi
8207{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8208echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8209if test "$llvm_cv_link_use_r" = yes ; then
8210
8211cat >>confdefs.h <<\_ACEOF
8212#define HAVE_LINK_R 1
8213_ACEOF
8214
8215 fi
8216
8217
8218
8219
8220{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8221echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8222if test "${ac_cv_c_const+set}" = set; then
8223 echo $ECHO_N "(cached) $ECHO_C" >&6
8224else
8225 cat >conftest.$ac_ext <<_ACEOF
8226/* confdefs.h. */
8227_ACEOF
8228cat confdefs.h >>conftest.$ac_ext
8229cat >>conftest.$ac_ext <<_ACEOF
8230/* end confdefs.h. */
8231
8232int
8233main ()
8234{
8235/* FIXME: Include the comments suggested by Paul. */
8236#ifndef __cplusplus
8237 /* Ultrix mips cc rejects this. */
8238 typedef int charset[2];
Tanya Lattnercf067672008-01-17 05:57:22 +00008239 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008240 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008241 char const *const *ccp;
8242 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008243 /* NEC SVR4.0.2 mips cc rejects this. */
8244 struct point {int x, y;};
8245 static struct point const zero = {0,0};
8246 /* AIX XL C 1.02.0.0 rejects this.
8247 It does not let you subtract one const X* pointer from another in
8248 an arm of an if-expression whose if-part is not a constant
8249 expression */
8250 const char *g = "string";
Tanya Lattnercf067672008-01-17 05:57:22 +00008251 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008252 /* HPUX 7.0 cc rejects these. */
Tanya Lattnercf067672008-01-17 05:57:22 +00008253 ++ccp;
8254 p = (char**) ccp;
8255 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008256 { /* SCO 3.2v4 cc rejects this. */
8257 char *t;
8258 char const *s = 0 ? (char *) 0 : (char const *) 0;
8259
8260 *t++ = 0;
8261 if (s) return 0;
8262 }
8263 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8264 int x[] = {25, 17};
8265 const int *foo = &x[0];
8266 ++foo;
8267 }
8268 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8269 typedef const int *iptr;
8270 iptr p = 0;
8271 ++p;
8272 }
8273 { /* AIX XL C 1.02.0.0 rejects this saying
8274 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8275 struct s { int j; const int *ap[3]; };
8276 struct s *b; b->j = 5;
8277 }
8278 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8279 const int foo = 10;
8280 if (!foo) return 0;
8281 }
Tanya Lattnercf067672008-01-17 05:57:22 +00008282 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008283#endif
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext
8290if { (ac_try="$ac_compile"
8291case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
8295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307esac
8308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008323 ac_cv_c_const=yes
8324else
8325 echo "$as_me: failed program was:" >&5
8326sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 ac_cv_c_const=no
8329fi
8330
8331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8332fi
8333{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8334echo "${ECHO_T}$ac_cv_c_const" >&6; }
8335if test $ac_cv_c_const = no; then
8336
8337cat >>confdefs.h <<\_ACEOF
8338#define const
8339_ACEOF
8340
8341fi
8342
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008343
8344
8345
8346
8347
8348ac_header_dirent=no
8349for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8350 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008351{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8352echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008354 echo $ECHO_N "(cached) $ECHO_C" >&6
8355else
8356 cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
8362#include <sys/types.h>
8363#include <$ac_hdr>
8364
8365int
8366main ()
8367{
8368if ((DIR *) 0)
8369return 0;
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008375if { (ac_try="$ac_compile"
8376case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest.$ac_objext'
8399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008408 eval "$as_ac_Header=yes"
8409else
8410 echo "$as_me: failed program was:" >&5
8411sed 's/^/| /' conftest.$ac_ext >&5
8412
Reid Spencera773bd52006-08-04 18:18:08 +00008413 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008414fi
Reid Spencera773bd52006-08-04 18:18:08 +00008415
8416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008417fi
Reid Spencera773bd52006-08-04 18:18:08 +00008418ac_res=`eval echo '${'$as_ac_Header'}'`
8419 { echo "$as_me:$LINENO: result: $ac_res" >&5
8420echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008421if test `eval echo '${'$as_ac_Header'}'` = yes; then
8422 cat >>confdefs.h <<_ACEOF
8423#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8424_ACEOF
8425
8426ac_header_dirent=$ac_hdr; break
8427fi
8428
8429done
8430# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8431if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008432 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8433echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008434if test "${ac_cv_search_opendir+set}" = set; then
8435 echo $ECHO_N "(cached) $ECHO_C" >&6
8436else
8437 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008438cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
8443/* end confdefs.h. */
8444
Reid Spencera773bd52006-08-04 18:18:08 +00008445/* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008448#ifdef __cplusplus
8449extern "C"
8450#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008451char opendir ();
8452int
8453main ()
8454{
Reid Spencera773bd52006-08-04 18:18:08 +00008455return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008456 ;
8457 return 0;
8458}
8459_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008460for ac_lib in '' dir; do
8461 if test -z "$ac_lib"; then
8462 ac_res="none required"
8463 else
8464 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008466 fi
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468if { (ac_try="$ac_link"
8469case "(($ac_try" in
8470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471 *) ac_try_echo=$ac_try;;
8472esac
8473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8482 { (case "(($ac_try" in
8483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8484 *) ac_try_echo=$ac_try;;
8485esac
8486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8487 (eval "$ac_try") 2>&5
8488 ac_status=$?
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); }; } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008501 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008502else
8503 echo "$as_me: failed program was:" >&5
8504sed 's/^/| /' conftest.$ac_ext >&5
8505
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008506
8507fi
8508
Tanya Lattnercf067672008-01-17 05:57:22 +00008509rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008510 conftest$ac_exeext
8511 if test "${ac_cv_search_opendir+set}" = set; then
8512 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008513fi
John Criswell7a73b802003-06-30 21:59:07 +00008514done
Reid Spencera773bd52006-08-04 18:18:08 +00008515if test "${ac_cv_search_opendir+set}" = set; then
8516 :
8517else
8518 ac_cv_search_opendir=no
8519fi
8520rm conftest.$ac_ext
8521LIBS=$ac_func_search_save_LIBS
8522fi
8523{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8524echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8525ac_res=$ac_cv_search_opendir
8526if test "$ac_res" != no; then
8527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008528
Reid Spencera773bd52006-08-04 18:18:08 +00008529fi
8530
8531else
8532 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8533echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8534if test "${ac_cv_search_opendir+set}" = set; then
8535 echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537 ac_func_search_save_LIBS=$LIBS
8538cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h. */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h. */
8544
8545/* Override any GCC internal prototype to avoid an error.
8546 Use char because int might match the return type of a GCC
8547 builtin and then its argument prototype would still apply. */
8548#ifdef __cplusplus
8549extern "C"
8550#endif
8551char opendir ();
8552int
8553main ()
8554{
8555return opendir ();
8556 ;
8557 return 0;
8558}
8559_ACEOF
8560for ac_lib in '' x; do
8561 if test -z "$ac_lib"; then
8562 ac_res="none required"
8563 else
8564 ac_res=-l$ac_lib
8565 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8566 fi
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568if { (ac_try="$ac_link"
8569case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572esac
8573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_link") 2>conftest.er1
8575 ac_status=$?
8576 grep -v '^ *+' conftest.er1 >conftest.err
8577 rm -f conftest.er1
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008580 (exit $ac_status); } &&
8581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8582 { (case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
8586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587 (eval "$ac_try") 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595esac
8596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_try") 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008601 ac_cv_search_opendir=$ac_res
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
8606
8607fi
8608
Tanya Lattnercf067672008-01-17 05:57:22 +00008609rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008610 conftest$ac_exeext
8611 if test "${ac_cv_search_opendir+set}" = set; then
8612 break
8613fi
8614done
8615if test "${ac_cv_search_opendir+set}" = set; then
8616 :
8617else
8618 ac_cv_search_opendir=no
8619fi
8620rm conftest.$ac_ext
8621LIBS=$ac_func_search_save_LIBS
8622fi
8623{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8624echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8625ac_res=$ac_cv_search_opendir
8626if test "$ac_res" != no; then
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8628
8629fi
8630
8631fi
John Criswell7a73b802003-06-30 21:59:07 +00008632
8633
8634for ac_header in dlfcn.h
8635do
8636as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008641 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008642fi
Reid Spencera773bd52006-08-04 18:18:08 +00008643ac_res=`eval echo '${'$as_ac_Header'}'`
8644 { echo "$as_me:$LINENO: result: $ac_res" >&5
8645echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008646else
Brian Gaeke0a621332004-09-08 20:38:05 +00008647 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008648{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8649echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008650cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008651/* confdefs.h. */
8652_ACEOF
8653cat confdefs.h >>conftest.$ac_ext
8654cat >>conftest.$ac_ext <<_ACEOF
8655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008656$ac_includes_default
8657#include <$ac_header>
8658_ACEOF
8659rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008660if { (ac_try="$ac_compile"
8661case "(($ac_try" in
8662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8663 *) ac_try_echo=$ac_try;;
8664esac
8665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8666 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008667 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008668 grep -v '^ *+' conftest.er1 >conftest.err
8669 rm -f conftest.er1
8670 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_try") 2>&5
8680 ac_status=$?
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; } &&
8683 { ac_try='test -s conftest.$ac_objext'
8684 { (case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687esac
8688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_try") 2>&5
8690 ac_status=$?
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008693 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008694else
8695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008696sed 's/^/| /' conftest.$ac_ext >&5
8697
Reid Spencera773bd52006-08-04 18:18:08 +00008698 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008699fi
Reid Spencera773bd52006-08-04 18:18:08 +00008700
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8703echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008704
8705# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008706{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008708cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008709/* confdefs.h. */
8710_ACEOF
8711cat confdefs.h >>conftest.$ac_ext
8712cat >>conftest.$ac_ext <<_ACEOF
8713/* end confdefs.h. */
8714#include <$ac_header>
8715_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008716if { (ac_try="$ac_cpp conftest.$ac_ext"
8717case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00008728 (exit $ac_status); } >/dev/null; then
8729 if test -s conftest.err; then
8730 ac_cpp_err=$ac_c_preproc_warn_flag
8731 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8732 else
8733 ac_cpp_err=
8734 fi
8735else
8736 ac_cpp_err=yes
8737fi
8738if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008739 ac_header_preproc=yes
8740else
8741 echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
8744 ac_header_preproc=no
8745fi
Reid Spencera773bd52006-08-04 18:18:08 +00008746
Brian Gaeke0a621332004-09-08 20:38:05 +00008747rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008748{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8749echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008750
8751# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8753 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8755echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8757echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8758 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008759 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008760 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8762echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8764echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8766echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8768echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8770echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8772echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008773 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008774## ----------------------------------- ##
8775## Report this to llvmbugs@cs.uiuc.edu ##
8776## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008777_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008778 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008779 ;;
8780esac
Reid Spencera773bd52006-08-04 18:18:08 +00008781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008786 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008787fi
Reid Spencera773bd52006-08-04 18:18:08 +00008788ac_res=`eval echo '${'$as_ac_Header'}'`
8789 { echo "$as_me:$LINENO: result: $ac_res" >&5
8790echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008791
8792fi
John Criswell7a73b802003-06-30 21:59:07 +00008793if test `eval echo '${'$as_ac_Header'}'` = yes; then
8794 cat >>confdefs.h <<_ACEOF
8795#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8796_ACEOF
8797
8798fi
8799
8800done
8801
Reid Spencera773bd52006-08-04 18:18:08 +00008802# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008803if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008804 enableval=$enable_ltdl_install;
8805fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008807
Duncan Sands1eff7042007-12-10 17:43:13 +00008808
8809
8810if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008811 INSTALL_LTDL_TRUE=
8812 INSTALL_LTDL_FALSE='#'
8813else
8814 INSTALL_LTDL_TRUE='#'
8815 INSTALL_LTDL_FALSE=
8816fi
8817
Duncan Sands1eff7042007-12-10 17:43:13 +00008818
8819
8820if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008821 CONVENIENCE_LTDL_TRUE=
8822 CONVENIENCE_LTDL_FALSE='#'
8823else
8824 CONVENIENCE_LTDL_TRUE='#'
8825 CONVENIENCE_LTDL_FALSE=
8826fi
8827
8828
Reid Spencera773bd52006-08-04 18:18:08 +00008829{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8830echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008831library_names_spec=
8832libname_spec='lib$name'
8833soname_spec=
8834shrext_cmds=".so"
8835postinstall_cmds=
8836postuninstall_cmds=
8837finish_cmds=
8838finish_eval=
8839shlibpath_var=
8840shlibpath_overrides_runpath=unknown
8841version_type=none
8842dynamic_linker="$host_os ld.so"
8843sys_lib_dlsearch_path_spec="/lib /usr/lib"
8844if test "$GCC" = yes; then
8845 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8846 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8847 # if the path contains ";" then we assume it to be the separator
8848 # otherwise default to the standard path separator (i.e. ":") - it is
8849 # assumed that no part of a normal pathname contains ";" but that should
8850 # okay in the real world where ";" in dirpaths is itself problematic.
8851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8852 else
8853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8854 fi
8855else
8856 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8857fi
8858need_lib_prefix=unknown
8859hardcode_into_libs=no
8860
8861# when you set need_version to no, make sure it does not cause -set_version
8862# flags to be left without arguments
8863need_version=unknown
8864
8865case $host_os in
8866aix3*)
8867 version_type=linux
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8869 shlibpath_var=LIBPATH
8870
8871 # AIX 3 has no versioning support, so we append a major version to the name.
8872 soname_spec='${libname}${release}${shared_ext}$major'
8873 ;;
8874
8875aix4* | aix5*)
8876 version_type=linux
8877 need_lib_prefix=no
8878 need_version=no
8879 hardcode_into_libs=yes
8880 if test "$host_cpu" = ia64; then
8881 # AIX 5 supports IA64
8882 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 else
8885 # With GCC up to 2.95.x, collect2 would create an import file
8886 # for dependence libraries. The import file would start with
8887 # the line `#! .'. This would cause the generated library to
8888 # depend on `.', always an invalid library. This was fixed in
8889 # development snapshots of GCC prior to 3.0.
8890 case $host_os in
8891 aix4 | aix4.[01] | aix4.[01].*)
8892 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8893 echo ' yes '
8894 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8895 :
8896 else
8897 can_build_shared=no
8898 fi
8899 ;;
8900 esac
8901 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8902 # soname into executable. Probably we can add versioning support to
8903 # collect2, so additional links can be useful in future.
8904 if test "$aix_use_runtimelinking" = yes; then
8905 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8906 # instead of lib<name>.a to let people know that these are not
8907 # typical AIX shared libraries.
8908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8909 else
8910 # We preserve .a as extension for shared libraries through AIX4.2
8911 # and later when we are not doing run time linking.
8912 library_names_spec='${libname}${release}.a $libname.a'
8913 soname_spec='${libname}${release}${shared_ext}$major'
8914 fi
8915 shlibpath_var=LIBPATH
8916 fi
8917 ;;
8918
8919amigaos*)
8920 library_names_spec='$libname.ixlibrary $libname.a'
8921 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8922 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'
8923 ;;
8924
8925beos*)
8926 library_names_spec='${libname}${shared_ext}'
8927 dynamic_linker="$host_os ld.so"
8928 shlibpath_var=LIBRARY_PATH
8929 ;;
8930
8931bsdi[45]*)
8932 version_type=linux
8933 need_version=no
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8935 soname_spec='${libname}${release}${shared_ext}$major'
8936 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8937 shlibpath_var=LD_LIBRARY_PATH
8938 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8939 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8940 # the default ld.so.conf also contains /usr/contrib/lib and
8941 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8942 # libtool to hard-code these into programs
8943 ;;
8944
8945cygwin* | mingw* | pw32*)
8946 version_type=windows
8947 shrext_cmds=".dll"
8948 need_version=no
8949 need_lib_prefix=no
8950
8951 case $GCC,$host_os in
8952 yes,cygwin* | yes,mingw* | yes,pw32*)
8953 library_names_spec='$libname.dll.a'
8954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8955 postinstall_cmds='base_file=`basename \${file}`~
8956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8957 dldir=$destdir/`dirname \$dlpath`~
8958 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008959 $install_prog $dir/$dlname \$dldir/$dlname~
8960 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008961 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8962 dlpath=$dir/\$dldll~
8963 $rm \$dlpath'
8964 shlibpath_overrides_runpath=yes
8965
8966 case $host_os in
8967 cygwin*)
8968 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8969 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8970 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8971 ;;
8972 mingw*)
8973 # MinGW DLLs use traditional 'lib' prefix
8974 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8976 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8977 # It is most probably a Windows format PATH printed by
8978 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8979 # path with ; separators, and with drive letters. We can handle the
8980 # drive letters (cygwin fileutils understands them), so leave them,
8981 # especially as we might pass files found there to a mingw objdump,
8982 # which wouldn't understand a cygwinified path. Ahh.
8983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8984 else
8985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8986 fi
8987 ;;
8988 pw32*)
8989 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008990 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 +00008991 ;;
8992 esac
8993 ;;
8994
8995 *)
8996 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8997 ;;
8998 esac
8999 dynamic_linker='Win32 ld.exe'
9000 # FIXME: first we should search . and the directory the executable is in
9001 shlibpath_var=PATH
9002 ;;
9003
9004darwin* | rhapsody*)
9005 dynamic_linker="$host_os dyld"
9006 version_type=darwin
9007 need_lib_prefix=no
9008 need_version=no
9009 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9010 soname_spec='${libname}${release}${major}$shared_ext'
9011 shlibpath_overrides_runpath=yes
9012 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009013 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009014 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9015 if test "$GCC" = yes; then
9016 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"`
9017 else
9018 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9019 fi
9020 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9021 ;;
9022
9023dgux*)
9024 version_type=linux
9025 need_lib_prefix=no
9026 need_version=no
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9028 soname_spec='${libname}${release}${shared_ext}$major'
9029 shlibpath_var=LD_LIBRARY_PATH
9030 ;;
9031
9032freebsd1*)
9033 dynamic_linker=no
9034 ;;
9035
9036kfreebsd*-gnu)
9037 version_type=linux
9038 need_lib_prefix=no
9039 need_version=no
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9041 soname_spec='${libname}${release}${shared_ext}$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9043 shlibpath_overrides_runpath=no
9044 hardcode_into_libs=yes
9045 dynamic_linker='GNU ld.so'
9046 ;;
9047
Reid Spencera773bd52006-08-04 18:18:08 +00009048freebsd* | dragonfly*)
9049 # DragonFly does not have aout. When/if they implement a new
9050 # versioning mechanism, adjust this.
9051 if test -x /usr/bin/objformat; then
9052 objformat=`/usr/bin/objformat`
9053 else
9054 case $host_os in
9055 freebsd[123]*) objformat=aout ;;
9056 *) objformat=elf ;;
9057 esac
9058 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009059 version_type=freebsd-$objformat
9060 case $version_type in
9061 freebsd-elf*)
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9063 need_version=no
9064 need_lib_prefix=no
9065 ;;
9066 freebsd-*)
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9068 need_version=yes
9069 ;;
9070 esac
9071 shlibpath_var=LD_LIBRARY_PATH
9072 case $host_os in
9073 freebsd2*)
9074 shlibpath_overrides_runpath=yes
9075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009076 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009080 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9081 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009082 shlibpath_overrides_runpath=no
9083 hardcode_into_libs=yes
9084 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009085 freebsd*) # from 4.6 on
9086 shlibpath_overrides_runpath=yes
9087 hardcode_into_libs=yes
9088 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009089 esac
9090 ;;
9091
9092gnu*)
9093 version_type=linux
9094 need_lib_prefix=no
9095 need_version=no
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9097 soname_spec='${libname}${release}${shared_ext}$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9099 hardcode_into_libs=yes
9100 ;;
9101
9102hpux9* | hpux10* | hpux11*)
9103 # Give a soname corresponding to the major version so that dld.sl refuses to
9104 # link against other versions.
9105 version_type=sunos
9106 need_lib_prefix=no
9107 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009108 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009109 ia64*)
9110 shrext_cmds='.so'
9111 hardcode_into_libs=yes
9112 dynamic_linker="$host_os dld.so"
9113 shlibpath_var=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 if test "X$HPUX_IA64_MODE" = X32; then
9118 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9119 else
9120 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9121 fi
9122 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9123 ;;
9124 hppa*64*)
9125 shrext_cmds='.sl'
9126 hardcode_into_libs=yes
9127 dynamic_linker="$host_os dld.sl"
9128 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9133 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9134 ;;
9135 *)
9136 shrext_cmds='.sl'
9137 dynamic_linker="$host_os dld.sl"
9138 shlibpath_var=SHLIB_PATH
9139 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 ;;
9143 esac
9144 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9145 postinstall_cmds='chmod 555 $lib'
9146 ;;
9147
Reid Spencera773bd52006-08-04 18:18:08 +00009148interix3*)
9149 version_type=linux
9150 need_lib_prefix=no
9151 need_version=no
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 shlibpath_overrides_runpath=no
9157 hardcode_into_libs=yes
9158 ;;
9159
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009160irix5* | irix6* | nonstopux*)
9161 case $host_os in
9162 nonstopux*) version_type=nonstopux ;;
9163 *)
9164 if test "$lt_cv_prog_gnu_ld" = yes; then
9165 version_type=linux
9166 else
9167 version_type=irix
9168 fi ;;
9169 esac
9170 need_lib_prefix=no
9171 need_version=no
9172 soname_spec='${libname}${release}${shared_ext}$major'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9174 case $host_os in
9175 irix5* | nonstopux*)
9176 libsuff= shlibsuff=
9177 ;;
9178 *)
9179 case $LD in # libtool.m4 will add one of these switches to LD
9180 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9181 libsuff= shlibsuff= libmagic=32-bit;;
9182 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9183 libsuff=32 shlibsuff=N32 libmagic=N32;;
9184 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9185 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9186 *) libsuff= shlibsuff= libmagic=never-match;;
9187 esac
9188 ;;
9189 esac
9190 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9191 shlibpath_overrides_runpath=no
9192 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9193 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9194 hardcode_into_libs=yes
9195 ;;
9196
9197# No shared lib support for Linux oldld, aout, or coff.
9198linux*oldld* | linux*aout* | linux*coff*)
9199 dynamic_linker=no
9200 ;;
9201
9202# This must be Linux ELF.
9203linux*)
9204 version_type=linux
9205 need_lib_prefix=no
9206 need_version=no
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9208 soname_spec='${libname}${release}${shared_ext}$major'
9209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9210 shlibpath_var=LD_LIBRARY_PATH
9211 shlibpath_overrides_runpath=no
9212 # This implies no fast_install, which is unacceptable.
9213 # Some rework will be needed to allow for fast_install
9214 # before this can be enabled.
9215 hardcode_into_libs=yes
9216
9217 # Append ld.so.conf contents to the search path
9218 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009219 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 +00009220 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9221 fi
9222
9223 # We used to test for /lib/ld.so.1 and disable shared libraries on
9224 # powerpc, because MkLinux only supported shared libraries with the
9225 # GNU dynamic linker. Since this was broken with cross compilers,
9226 # most powerpc-linux boxes support dynamic linking these days and
9227 # people can always --disable-shared, the test was removed, and we
9228 # assume the GNU/Linux dynamic linker is in use.
9229 dynamic_linker='GNU/Linux ld.so'
9230 ;;
9231
9232knetbsd*-gnu)
9233 version_type=linux
9234 need_lib_prefix=no
9235 need_version=no
9236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9237 soname_spec='${libname}${release}${shared_ext}$major'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=no
9240 hardcode_into_libs=yes
9241 dynamic_linker='GNU ld.so'
9242 ;;
9243
9244netbsd*)
9245 version_type=sunos
9246 need_lib_prefix=no
9247 need_version=no
9248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9251 dynamic_linker='NetBSD (a.out) ld.so'
9252 else
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 dynamic_linker='NetBSD ld.elf_so'
9256 fi
9257 shlibpath_var=LD_LIBRARY_PATH
9258 shlibpath_overrides_runpath=yes
9259 hardcode_into_libs=yes
9260 ;;
9261
9262newsos6)
9263 version_type=linux
9264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 shlibpath_overrides_runpath=yes
9267 ;;
9268
9269nto-qnx*)
9270 version_type=linux
9271 need_lib_prefix=no
9272 need_version=no
9273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9274 soname_spec='${libname}${release}${shared_ext}$major'
9275 shlibpath_var=LD_LIBRARY_PATH
9276 shlibpath_overrides_runpath=yes
9277 ;;
9278
9279openbsd*)
9280 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009281 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009282 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9284 case $host_os in
9285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9286 *) need_version=no ;;
9287 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9292 case $host_os in
9293 openbsd2.[89] | openbsd2.[89].*)
9294 shlibpath_overrides_runpath=no
9295 ;;
9296 *)
9297 shlibpath_overrides_runpath=yes
9298 ;;
9299 esac
9300 else
9301 shlibpath_overrides_runpath=yes
9302 fi
9303 ;;
9304
9305os2*)
9306 libname_spec='$name'
9307 shrext_cmds=".dll"
9308 need_lib_prefix=no
9309 library_names_spec='$libname${shared_ext} $libname.a'
9310 dynamic_linker='OS/2 ld.exe'
9311 shlibpath_var=LIBPATH
9312 ;;
9313
9314osf3* | osf4* | osf5*)
9315 version_type=osf
9316 need_lib_prefix=no
9317 need_version=no
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 shlibpath_var=LD_LIBRARY_PATH
9321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9323 ;;
9324
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325solaris*)
9326 version_type=linux
9327 need_lib_prefix=no
9328 need_version=no
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 shlibpath_var=LD_LIBRARY_PATH
9332 shlibpath_overrides_runpath=yes
9333 hardcode_into_libs=yes
9334 # ldd complains unless libraries are executable
9335 postinstall_cmds='chmod +x $lib'
9336 ;;
9337
9338sunos4*)
9339 version_type=sunos
9340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9341 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9342 shlibpath_var=LD_LIBRARY_PATH
9343 shlibpath_overrides_runpath=yes
9344 if test "$with_gnu_ld" = yes; then
9345 need_lib_prefix=no
9346 fi
9347 need_version=yes
9348 ;;
9349
Reid Spencera773bd52006-08-04 18:18:08 +00009350sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009351 version_type=linux
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
9355 case $host_vendor in
9356 sni)
9357 shlibpath_overrides_runpath=no
9358 need_lib_prefix=no
9359 export_dynamic_flag_spec='${wl}-Blargedynsym'
9360 runpath_var=LD_RUN_PATH
9361 ;;
9362 siemens)
9363 need_lib_prefix=no
9364 ;;
9365 motorola)
9366 need_lib_prefix=no
9367 need_version=no
9368 shlibpath_overrides_runpath=no
9369 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9370 ;;
9371 esac
9372 ;;
9373
9374sysv4*MP*)
9375 if test -d /usr/nec ;then
9376 version_type=linux
9377 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9378 soname_spec='$libname${shared_ext}.$major'
9379 shlibpath_var=LD_LIBRARY_PATH
9380 fi
9381 ;;
9382
Reid Spencera773bd52006-08-04 18:18:08 +00009383sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9384 version_type=freebsd-elf
9385 need_lib_prefix=no
9386 need_version=no
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 hardcode_into_libs=yes
9391 if test "$with_gnu_ld" = yes; then
9392 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9393 shlibpath_overrides_runpath=no
9394 else
9395 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9396 shlibpath_overrides_runpath=yes
9397 case $host_os in
9398 sco3.2v5*)
9399 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9400 ;;
9401 esac
9402 fi
9403 sys_lib_dlsearch_path_spec='/usr/lib'
9404 ;;
9405
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009406uts4*)
9407 version_type=linux
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 shlibpath_var=LD_LIBRARY_PATH
9411 ;;
9412
9413*)
9414 dynamic_linker=no
9415 ;;
9416esac
Reid Spencera773bd52006-08-04 18:18:08 +00009417{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9418echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009419test "$dynamic_linker" = no && can_build_shared=no
9420
Reid Spencera773bd52006-08-04 18:18:08 +00009421variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9422if test "$GCC" = yes; then
9423 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9424fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009425
Reid Spencera773bd52006-08-04 18:18:08 +00009426
9427{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9428echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429if test "${libltdl_cv_shlibext+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9431else
9432
9433module=yes
9434eval libltdl_cv_shlibext=$shrext_cmds
9435
9436fi
Reid Spencera773bd52006-08-04 18:18:08 +00009437{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9438echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009439if test -n "$libltdl_cv_shlibext"; then
9440
9441cat >>confdefs.h <<_ACEOF
9442#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9443_ACEOF
9444
9445fi
9446
9447
Reid Spencera773bd52006-08-04 18:18:08 +00009448{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9449echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450if test "${libltdl_cv_shlibpath_var+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 libltdl_cv_shlibpath_var="$shlibpath_var"
9454fi
Reid Spencera773bd52006-08-04 18:18:08 +00009455{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9456echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009457if test -n "$libltdl_cv_shlibpath_var"; then
9458
9459cat >>confdefs.h <<_ACEOF
9460#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9461_ACEOF
9462
9463fi
9464
9465
Reid Spencera773bd52006-08-04 18:18:08 +00009466{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9467echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468if test "${libltdl_cv_sys_search_path+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9472fi
Reid Spencera773bd52006-08-04 18:18:08 +00009473{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9474echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475if test -n "$libltdl_cv_sys_search_path"; then
9476 sys_search_path=
9477 for dir in $libltdl_cv_sys_search_path; do
9478 if test -z "$sys_search_path"; then
9479 sys_search_path="$dir"
9480 else
9481 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9482 fi
9483 done
9484
9485cat >>confdefs.h <<_ACEOF
9486#define LTDL_SYSSEARCHPATH "$sys_search_path"
9487_ACEOF
9488
9489fi
9490
Reid Spencera773bd52006-08-04 18:18:08 +00009491{ echo "$as_me:$LINENO: checking for objdir" >&5
9492echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009493if test "${libltdl_cv_objdir+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9495else
9496 libltdl_cv_objdir="$objdir"
9497 if test -n "$objdir"; then
9498 :
9499 else
9500 rm -f .libs 2>/dev/null
9501 mkdir .libs 2>/dev/null
9502 if test -d .libs; then
9503 libltdl_cv_objdir=.libs
9504 else
9505 # MS-DOS does not allow filenames that begin with a dot.
9506 libltdl_cv_objdir=_libs
9507 fi
9508 rmdir .libs 2>/dev/null
9509 fi
9510
9511fi
Reid Spencera773bd52006-08-04 18:18:08 +00009512{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9513echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514
9515cat >>confdefs.h <<_ACEOF
9516#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9517_ACEOF
9518
9519
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009520
9521
9522
9523
9524# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009525{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9526echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009527if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529else
9530
9531# These are sane defaults that work on at least a few old systems.
9532# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9533
9534# Character class describing NM global symbol codes.
9535symcode='[BCDEGRST]'
9536
9537# Regexp to match symbols that can be accessed directly from C.
9538sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9539
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009540# Transform an extracted symbol line into a proper C declaration
9541lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9542
9543# Transform an extracted symbol line into symbol name and symbol address
9544lt_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'"
9545
9546# Define system-specific variables.
9547case $host_os in
9548aix*)
9549 symcode='[BCDT]'
9550 ;;
9551cygwin* | mingw* | pw32*)
9552 symcode='[ABCDGISTW]'
9553 ;;
9554hpux*) # Its linker distinguishes data from code symbols
9555 if test "$host_cpu" = ia64; then
9556 symcode='[ABCDEGRST]'
9557 fi
9558 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9559 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'"
9560 ;;
9561linux*)
9562 if test "$host_cpu" = ia64; then
9563 symcode='[ABCDGIRSTW]'
9564 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9565 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'"
9566 fi
9567 ;;
9568irix* | nonstopux*)
9569 symcode='[BCDEGRST]'
9570 ;;
9571osf*)
9572 symcode='[BCDEGQRST]'
9573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009574solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009575 symcode='[BDRT]'
9576 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009577sco3.2v5*)
9578 symcode='[DT]'
9579 ;;
9580sysv4.2uw2*)
9581 symcode='[DT]'
9582 ;;
9583sysv5* | sco5v6* | unixware* | OpenUNIX*)
9584 symcode='[ABDT]'
9585 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009586sysv4)
9587 symcode='[DFNSTU]'
9588 ;;
9589esac
9590
9591# Handle CRLF in mingw tool chain
9592opt_cr=
9593case $build_os in
9594mingw*)
9595 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9596 ;;
9597esac
9598
9599# If we're using GNU nm, then use its standard symbol codes.
9600case `$NM -V 2>&1` in
9601*GNU* | *'with BFD'*)
9602 symcode='[ABCDGIRSTW]' ;;
9603esac
9604
9605# Try without a prefix undercore, then with it.
9606for ac_symprfx in "" "_"; do
9607
Reid Spencera773bd52006-08-04 18:18:08 +00009608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9609 symxfrm="\\1 $ac_symprfx\\2 \\2"
9610
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009612 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 +00009613
9614 # Check to see that the pipe works correctly.
9615 pipe_works=no
9616
9617 rm -f conftest*
9618 cat > conftest.$ac_ext <<EOF
9619#ifdef __cplusplus
9620extern "C" {
9621#endif
9622char nm_test_var;
9623void nm_test_func(){}
9624#ifdef __cplusplus
9625}
9626#endif
9627int main(){nm_test_var='a';nm_test_func();return(0);}
9628EOF
9629
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>&5
9632 ac_status=$?
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); }; then
9635 # Now try to grab the symbols.
9636 nlist=conftest.nm
9637 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9638 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && test -s "$nlist"; then
9642 # Try sorting and uniquifying the output.
9643 if sort "$nlist" | uniq > "$nlist"T; then
9644 mv -f "$nlist"T "$nlist"
9645 else
9646 rm -f "$nlist"T
9647 fi
9648
9649 # Make sure that we snagged all the symbols we need.
9650 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9651 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9652 cat <<EOF > conftest.$ac_ext
9653#ifdef __cplusplus
9654extern "C" {
9655#endif
9656
9657EOF
9658 # Now generate the symbol file.
9659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9660
9661 cat <<EOF >> conftest.$ac_ext
9662#if defined (__STDC__) && __STDC__
9663# define lt_ptr_t void *
9664#else
9665# define lt_ptr_t char *
9666# define const
9667#endif
9668
9669/* The mapping between symbol names and symbols. */
9670const struct {
9671 const char *name;
9672 lt_ptr_t address;
9673}
9674lt_preloaded_symbols[] =
9675{
9676EOF
9677 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9678 cat <<\EOF >> conftest.$ac_ext
9679 {0, (lt_ptr_t) 0}
9680};
9681
9682#ifdef __cplusplus
9683}
9684#endif
9685EOF
9686 # Now try linking the two files.
9687 mv conftest.$ac_objext conftstm.$ac_objext
9688 lt_save_LIBS="$LIBS"
9689 lt_save_CFLAGS="$CFLAGS"
9690 LIBS="conftstm.$ac_objext"
9691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9693 (eval $ac_link) 2>&5
9694 ac_status=$?
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9697 pipe_works=yes
9698 fi
9699 LIBS="$lt_save_LIBS"
9700 CFLAGS="$lt_save_CFLAGS"
9701 else
9702 echo "cannot find nm_test_func in $nlist" >&5
9703 fi
9704 else
9705 echo "cannot find nm_test_var in $nlist" >&5
9706 fi
9707 else
9708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9709 fi
9710 else
9711 echo "$progname: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9713 fi
9714 rm -f conftest* conftst*
9715
9716 # Do not use the global_symbol_pipe unless it works.
9717 if test "$pipe_works" = yes; then
9718 break
9719 else
9720 lt_cv_sys_global_symbol_pipe=
9721 fi
9722done
9723
9724fi
9725
9726if test -z "$lt_cv_sys_global_symbol_pipe"; then
9727 lt_cv_sys_global_symbol_to_cdecl=
9728fi
9729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009730 { echo "$as_me:$LINENO: result: failed" >&5
9731echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732else
Reid Spencera773bd52006-08-04 18:18:08 +00009733 { echo "$as_me:$LINENO: result: ok" >&5
9734echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009735fi
9736
9737
Reid Spencera773bd52006-08-04 18:18:08 +00009738{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9739echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9741 echo $ECHO_N "(cached) $ECHO_C" >&6
9742else
9743 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9744 libltdl_cv_preloaded_symbols=yes
9745 else
9746 libltdl_cv_preloaded_symbols=no
9747 fi
9748
9749fi
Reid Spencera773bd52006-08-04 18:18:08 +00009750{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9751echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009752if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9753
9754cat >>confdefs.h <<\_ACEOF
9755#define HAVE_PRELOADED_SYMBOLS 1
9756_ACEOF
9757
9758fi
9759
9760LIBADD_DL=
9761
9762ac_ext=c
9763ac_cpp='$CPP $CPPFLAGS'
9764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9766ac_compiler_gnu=$ac_cv_c_compiler_gnu
9767
9768
Reid Spencera773bd52006-08-04 18:18:08 +00009769{ echo "$as_me:$LINENO: checking for shl_load" >&5
9770echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009771if test "${ac_cv_func_shl_load+set}" = set; then
9772 echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774 cat >conftest.$ac_ext <<_ACEOF
9775/* confdefs.h. */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
9779/* end confdefs.h. */
9780/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9782#define shl_load innocuous_shl_load
9783
9784/* System header to define __stub macros and hopefully few prototypes,
9785 which can conflict with char shl_load (); below.
9786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787 <limits.h> exists even on freestanding compilers. */
9788
9789#ifdef __STDC__
9790# include <limits.h>
9791#else
9792# include <assert.h>
9793#endif
9794
9795#undef shl_load
9796
Reid Spencera773bd52006-08-04 18:18:08 +00009797/* Override any GCC internal prototype to avoid an error.
9798 Use char because int might match the return type of a GCC
9799 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009800#ifdef __cplusplus
9801extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009802#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803char shl_load ();
9804/* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009807#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009808choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809#endif
9810
9811int
9812main ()
9813{
Reid Spencera773bd52006-08-04 18:18:08 +00009814return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009815 ;
9816 return 0;
9817}
9818_ACEOF
9819rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009820if { (ac_try="$ac_link"
9821case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9824esac
9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827 ac_status=$?
9828 grep -v '^ *+' conftest.er1 >conftest.err
9829 rm -f conftest.er1
9830 cat conftest.err >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009832 (exit $ac_status); } &&
9833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834 { (case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837esac
9838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_try") 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); }; } &&
9843 { ac_try='test -s conftest$ac_exeext'
9844 { (case "(($ac_try" in
9845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846 *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849 (eval "$ac_try") 2>&5
9850 ac_status=$?
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853 ac_cv_func_shl_load=yes
9854else
9855 echo "$as_me: failed program was:" >&5
9856sed 's/^/| /' conftest.$ac_ext >&5
9857
Reid Spencera773bd52006-08-04 18:18:08 +00009858 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859fi
Reid Spencera773bd52006-08-04 18:18:08 +00009860
Tanya Lattnercf067672008-01-17 05:57:22 +00009861rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 conftest$ac_exeext conftest.$ac_ext
9863fi
Reid Spencera773bd52006-08-04 18:18:08 +00009864{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9865echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866if test $ac_cv_func_shl_load = yes; then
9867
9868cat >>confdefs.h <<\_ACEOF
9869#define HAVE_SHL_LOAD 1
9870_ACEOF
9871
9872else
Reid Spencera773bd52006-08-04 18:18:08 +00009873 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9874echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009875if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_check_lib_save_LIBS=$LIBS
9879LIBS="-ldld $LIBS"
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886
Reid Spencera773bd52006-08-04 18:18:08 +00009887/* Override any GCC internal prototype to avoid an error.
9888 Use char because int might match the return type of a GCC
9889 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009890#ifdef __cplusplus
9891extern "C"
9892#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009893char shl_load ();
9894int
9895main ()
9896{
Reid Spencera773bd52006-08-04 18:18:08 +00009897return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009903if { (ac_try="$ac_link"
9904case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9907esac
9908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00009915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9917 { (case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_try") 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; } &&
9926 { ac_try='test -s conftest$ac_exeext'
9927 { (case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930esac
9931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_try") 2>&5
9933 ac_status=$?
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 ac_cv_lib_dld_shl_load=yes
9937else
9938 echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
Reid Spencera773bd52006-08-04 18:18:08 +00009941 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009942fi
Reid Spencera773bd52006-08-04 18:18:08 +00009943
Tanya Lattnercf067672008-01-17 05:57:22 +00009944rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
Reid Spencera773bd52006-08-04 18:18:08 +00009948{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9949echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009950if test $ac_cv_lib_dld_shl_load = yes; then
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_SHL_LOAD 1
9954_ACEOF
9955
9956 LIBADD_DL="$LIBADD_DL -ldld"
9957else
Reid Spencera773bd52006-08-04 18:18:08 +00009958 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9959echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009960if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962else
9963 ac_check_lib_save_LIBS=$LIBS
9964LIBS="-ldl $LIBS"
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971
Reid Spencera773bd52006-08-04 18:18:08 +00009972/* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009975#ifdef __cplusplus
9976extern "C"
9977#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009978char dlopen ();
9979int
9980main ()
9981{
Reid Spencera773bd52006-08-04 18:18:08 +00009982return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983 ;
9984 return 0;
9985}
9986_ACEOF
9987rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009988if { (ac_try="$ac_link"
9989case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9992esac
9993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995 ac_status=$?
9996 grep -v '^ *+' conftest.er1 >conftest.err
9997 rm -f conftest.er1
9998 cat conftest.err >&5
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010000 (exit $ac_status); } &&
10001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10002 { (case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_try") 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (case "(($ac_try" in
10013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014 *) ac_try_echo=$ac_try;;
10015esac
10016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017 (eval "$ac_try") 2>&5
10018 ac_status=$?
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021 ac_cv_lib_dl_dlopen=yes
10022else
10023 echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
Reid Spencera773bd52006-08-04 18:18:08 +000010026 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010027fi
Reid Spencera773bd52006-08-04 18:18:08 +000010028
Tanya Lattnercf067672008-01-17 05:57:22 +000010029rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010030 conftest$ac_exeext conftest.$ac_ext
10031LIBS=$ac_check_lib_save_LIBS
10032fi
Reid Spencera773bd52006-08-04 18:18:08 +000010033{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10034echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035if test $ac_cv_lib_dl_dlopen = yes; then
10036
10037cat >>confdefs.h <<\_ACEOF
10038#define HAVE_LIBDL 1
10039_ACEOF
10040
10041 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10042else
10043 cat >conftest.$ac_ext <<_ACEOF
10044/* confdefs.h. */
10045_ACEOF
10046cat confdefs.h >>conftest.$ac_ext
10047cat >>conftest.$ac_ext <<_ACEOF
10048/* end confdefs.h. */
10049#if HAVE_DLFCN_H
10050# include <dlfcn.h>
10051#endif
10052
10053int
10054main ()
10055{
10056dlopen(0, 0);
10057 ;
10058 return 0;
10059}
10060_ACEOF
10061rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010062if { (ac_try="$ac_link"
10063case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010069 ac_status=$?
10070 grep -v '^ *+' conftest.er1 >conftest.err
10071 rm -f conftest.er1
10072 cat conftest.err >&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010074 (exit $ac_status); } &&
10075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10076 { (case "(($ac_try" in
10077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10078 *) ac_try_echo=$ac_try;;
10079esac
10080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10081 (eval "$ac_try") 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010095
10096cat >>confdefs.h <<\_ACEOF
10097#define HAVE_LIBDL 1
10098_ACEOF
10099 libltdl_cv_func_dlopen="yes"
10100else
10101 echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
Reid Spencera773bd52006-08-04 18:18:08 +000010104 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10105echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010106if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10108else
10109 ac_check_lib_save_LIBS=$LIBS
10110LIBS="-lsvld $LIBS"
10111cat >conftest.$ac_ext <<_ACEOF
10112/* confdefs.h. */
10113_ACEOF
10114cat confdefs.h >>conftest.$ac_ext
10115cat >>conftest.$ac_ext <<_ACEOF
10116/* end confdefs.h. */
10117
Reid Spencera773bd52006-08-04 18:18:08 +000010118/* Override any GCC internal prototype to avoid an error.
10119 Use char because int might match the return type of a GCC
10120 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010121#ifdef __cplusplus
10122extern "C"
10123#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010124char dlopen ();
10125int
10126main ()
10127{
Reid Spencera773bd52006-08-04 18:18:08 +000010128return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010129 ;
10130 return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010134if { (ac_try="$ac_link"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010146 (exit $ac_status); } &&
10147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10148 { (case "(($ac_try" in
10149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10150 *) ac_try_echo=$ac_try;;
10151esac
10152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10153 (eval "$ac_try") 2>&5
10154 ac_status=$?
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; } &&
10157 { ac_try='test -s conftest$ac_exeext'
10158 { (case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_try") 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010167 ac_cv_lib_svld_dlopen=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
Reid Spencera773bd52006-08-04 18:18:08 +000010172 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010173fi
Reid Spencera773bd52006-08-04 18:18:08 +000010174
Tanya Lattnercf067672008-01-17 05:57:22 +000010175rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176 conftest$ac_exeext conftest.$ac_ext
10177LIBS=$ac_check_lib_save_LIBS
10178fi
Reid Spencera773bd52006-08-04 18:18:08 +000010179{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10180echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181if test $ac_cv_lib_svld_dlopen = yes; then
10182
10183cat >>confdefs.h <<\_ACEOF
10184#define HAVE_LIBDL 1
10185_ACEOF
10186
10187 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10188else
Reid Spencera773bd52006-08-04 18:18:08 +000010189 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10190echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 ac_check_lib_save_LIBS=$LIBS
10195LIBS="-ldld $LIBS"
10196cat >conftest.$ac_ext <<_ACEOF
10197/* confdefs.h. */
10198_ACEOF
10199cat confdefs.h >>conftest.$ac_ext
10200cat >>conftest.$ac_ext <<_ACEOF
10201/* end confdefs.h. */
10202
Reid Spencera773bd52006-08-04 18:18:08 +000010203/* Override any GCC internal prototype to avoid an error.
10204 Use char because int might match the return type of a GCC
10205 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010206#ifdef __cplusplus
10207extern "C"
10208#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209char dld_link ();
10210int
10211main ()
10212{
Reid Spencera773bd52006-08-04 18:18:08 +000010213return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010214 ;
10215 return 0;
10216}
10217_ACEOF
10218rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010219if { (ac_try="$ac_link"
10220case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223esac
10224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226 ac_status=$?
10227 grep -v '^ *+' conftest.er1 >conftest.err
10228 rm -f conftest.er1
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010231 (exit $ac_status); } &&
10232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10233 { (case "(($ac_try" in
10234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10235 *) ac_try_echo=$ac_try;;
10236esac
10237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_try") 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest$ac_exeext'
10243 { (case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246esac
10247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10248 (eval "$ac_try") 2>&5
10249 ac_status=$?
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010252 ac_cv_lib_dld_dld_link=yes
10253else
10254 echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
Reid Spencera773bd52006-08-04 18:18:08 +000010257 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010258fi
Reid Spencera773bd52006-08-04 18:18:08 +000010259
Tanya Lattnercf067672008-01-17 05:57:22 +000010260rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010261 conftest$ac_exeext conftest.$ac_ext
10262LIBS=$ac_check_lib_save_LIBS
10263fi
Reid Spencera773bd52006-08-04 18:18:08 +000010264{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10265echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010266if test $ac_cv_lib_dld_dld_link = yes; then
10267
10268cat >>confdefs.h <<\_ACEOF
10269#define HAVE_DLD 1
10270_ACEOF
10271
10272 LIBADD_DL="$LIBADD_DL -ldld"
10273else
Reid Spencera773bd52006-08-04 18:18:08 +000010274 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10275echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010276if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
10278else
10279 cat >conftest.$ac_ext <<_ACEOF
10280/* confdefs.h. */
10281_ACEOF
10282cat confdefs.h >>conftest.$ac_ext
10283cat >>conftest.$ac_ext <<_ACEOF
10284/* end confdefs.h. */
10285/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10287#define _dyld_func_lookup innocuous__dyld_func_lookup
10288
10289/* System header to define __stub macros and hopefully few prototypes,
10290 which can conflict with char _dyld_func_lookup (); below.
10291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10292 <limits.h> exists even on freestanding compilers. */
10293
10294#ifdef __STDC__
10295# include <limits.h>
10296#else
10297# include <assert.h>
10298#endif
10299
10300#undef _dyld_func_lookup
10301
Reid Spencera773bd52006-08-04 18:18:08 +000010302/* Override any GCC internal prototype to avoid an error.
10303 Use char because int might match the return type of a GCC
10304 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010305#ifdef __cplusplus
10306extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010307#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308char _dyld_func_lookup ();
10309/* The GNU C library defines this for functions which it implements
10310 to always fail with ENOSYS. Some functions are actually named
10311 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010312#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314#endif
10315
10316int
10317main ()
10318{
Reid Spencera773bd52006-08-04 18:18:08 +000010319return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320 ;
10321 return 0;
10322}
10323_ACEOF
10324rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010325if { (ac_try="$ac_link"
10326case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329esac
10330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342esac
10343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_try") 2>&5
10345 ac_status=$?
10346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347 (exit $ac_status); }; } &&
10348 { ac_try='test -s conftest$ac_exeext'
10349 { (case "(($ac_try" in
10350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351 *) ac_try_echo=$ac_try;;
10352esac
10353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354 (eval "$ac_try") 2>&5
10355 ac_status=$?
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 ac_cv_func__dyld_func_lookup=yes
10359else
10360 echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
Reid Spencera773bd52006-08-04 18:18:08 +000010363 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010364fi
Reid Spencera773bd52006-08-04 18:18:08 +000010365
Tanya Lattnercf067672008-01-17 05:57:22 +000010366rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010367 conftest$ac_exeext conftest.$ac_ext
10368fi
Reid Spencera773bd52006-08-04 18:18:08 +000010369{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10370echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371if test $ac_cv_func__dyld_func_lookup = yes; then
10372
10373cat >>confdefs.h <<\_ACEOF
10374#define HAVE_DYLD 1
10375_ACEOF
10376
10377fi
10378
10379
10380fi
10381
10382
10383fi
10384
10385
10386fi
Reid Spencera773bd52006-08-04 18:18:08 +000010387
Tanya Lattnercf067672008-01-17 05:57:22 +000010388rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 conftest$ac_exeext conftest.$ac_ext
10390
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399
10400if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10401then
10402 lt_save_LIBS="$LIBS"
10403 LIBS="$LIBS $LIBADD_DL"
10404
10405for ac_func in dlerror
10406do
10407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010408{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10410if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010411 echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413 cat >conftest.$ac_ext <<_ACEOF
10414/* confdefs.h. */
10415_ACEOF
10416cat confdefs.h >>conftest.$ac_ext
10417cat >>conftest.$ac_ext <<_ACEOF
10418/* end confdefs.h. */
10419/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10421#define $ac_func innocuous_$ac_func
10422
10423/* System header to define __stub macros and hopefully few prototypes,
10424 which can conflict with char $ac_func (); below.
10425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426 <limits.h> exists even on freestanding compilers. */
10427
10428#ifdef __STDC__
10429# include <limits.h>
10430#else
10431# include <assert.h>
10432#endif
10433
10434#undef $ac_func
10435
Reid Spencera773bd52006-08-04 18:18:08 +000010436/* Override any GCC internal prototype to avoid an error.
10437 Use char because int might match the return type of a GCC
10438 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439#ifdef __cplusplus
10440extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010441#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442char $ac_func ();
10443/* The GNU C library defines this for functions which it implements
10444 to always fail with ENOSYS. Some functions are actually named
10445 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010446#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010447choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010448#endif
10449
10450int
10451main ()
10452{
Reid Spencera773bd52006-08-04 18:18:08 +000010453return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454 ;
10455 return 0;
10456}
10457_ACEOF
10458rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010459if { (ac_try="$ac_link"
10460case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466 ac_status=$?
10467 grep -v '^ *+' conftest.er1 >conftest.err
10468 rm -f conftest.er1
10469 cat conftest.err >&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010471 (exit $ac_status); } &&
10472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10473 { (case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_try") 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest$ac_exeext'
10483 { (case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10486esac
10487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_try") 2>&5
10489 ac_status=$?
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010492 eval "$as_ac_var=yes"
10493else
10494 echo "$as_me: failed program was:" >&5
10495sed 's/^/| /' conftest.$ac_ext >&5
10496
Reid Spencera773bd52006-08-04 18:18:08 +000010497 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010498fi
Reid Spencera773bd52006-08-04 18:18:08 +000010499
Tanya Lattnercf067672008-01-17 05:57:22 +000010500rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010501 conftest$ac_exeext conftest.$ac_ext
10502fi
Reid Spencera773bd52006-08-04 18:18:08 +000010503ac_res=`eval echo '${'$as_ac_var'}'`
10504 { echo "$as_me:$LINENO: result: $ac_res" >&5
10505echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506if test `eval echo '${'$as_ac_var'}'` = yes; then
10507 cat >>confdefs.h <<_ACEOF
10508#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10509_ACEOF
10510
10511fi
10512done
10513
10514 LIBS="$lt_save_LIBS"
10515fi
10516ac_ext=c
10517ac_cpp='$CPP $CPPFLAGS'
10518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520ac_compiler_gnu=$ac_cv_c_compiler_gnu
10521
10522
10523
Reid Spencera773bd52006-08-04 18:18:08 +000010524{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10525echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529 ac_cv_sys_symbol_underscore=no
10530 cat > conftest.$ac_ext <<EOF
10531void nm_test_func(){}
10532int main(){nm_test_func;return 0;}
10533EOF
10534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10535 (eval $ac_compile) 2>&5
10536 ac_status=$?
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); }; then
10539 # Now try to grab the symbols.
10540 ac_nlist=conftest.nm
10541 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10542 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10543 ac_status=$?
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && test -s "$ac_nlist"; then
10546 # See whether the symbols have a leading underscore.
10547 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10548 ac_cv_sys_symbol_underscore=yes
10549 else
10550 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10551 :
10552 else
10553 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10554 fi
10555 fi
10556 else
10557 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10558 fi
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.c >&5
10562 fi
10563 rm -rf conftest*
10564
10565fi
Reid Spencera773bd52006-08-04 18:18:08 +000010566{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10567echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568
10569
10570if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10571 if test x"$libltdl_cv_func_dlopen" = xyes ||
10572 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010573 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10574echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010575if test "${libltdl_cv_need_uscore+set}" = set; then
10576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 libltdl_cv_need_uscore=unknown
10579 save_LIBS="$LIBS"
10580 LIBS="$LIBS $LIBADD_DL"
10581 if test "$cross_compiling" = yes; then :
10582 libltdl_cv_need_uscore=cross
10583else
10584 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10585 lt_status=$lt_dlunknown
10586 cat > conftest.$ac_ext <<EOF
Gordon Henriksene7072162008-03-07 18:20:01 +000010587#line 10587 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588#include "confdefs.h"
10589
10590#if HAVE_DLFCN_H
10591#include <dlfcn.h>
10592#endif
10593
10594#include <stdio.h>
10595
10596#ifdef RTLD_GLOBAL
10597# define LT_DLGLOBAL RTLD_GLOBAL
10598#else
10599# ifdef DL_GLOBAL
10600# define LT_DLGLOBAL DL_GLOBAL
10601# else
10602# define LT_DLGLOBAL 0
10603# endif
10604#endif
10605
10606/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10607 find out it does not work in some platform. */
10608#ifndef LT_DLLAZY_OR_NOW
10609# ifdef RTLD_LAZY
10610# define LT_DLLAZY_OR_NOW RTLD_LAZY
10611# else
10612# ifdef DL_LAZY
10613# define LT_DLLAZY_OR_NOW DL_LAZY
10614# else
10615# ifdef RTLD_NOW
10616# define LT_DLLAZY_OR_NOW RTLD_NOW
10617# else
10618# ifdef DL_NOW
10619# define LT_DLLAZY_OR_NOW DL_NOW
10620# else
10621# define LT_DLLAZY_OR_NOW 0
10622# endif
10623# endif
10624# endif
10625# endif
10626#endif
10627
10628#ifdef __cplusplus
10629extern "C" void exit (int);
10630#endif
10631
10632void fnord() { int i=42;}
10633int main ()
10634{
10635 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10636 int status = $lt_dlunknown;
10637
10638 if (self)
10639 {
10640 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10641 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10642 /* dlclose (self); */
10643 }
Reid Spencera773bd52006-08-04 18:18:08 +000010644 else
10645 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646
10647 exit (status);
10648}
10649EOF
10650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10651 (eval $ac_link) 2>&5
10652 ac_status=$?
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010655 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010656 lt_status=$?
10657 case x$lt_status in
10658 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10659 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010660 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661 esac
10662 else :
10663 # compilation failed
10664
10665 fi
10666fi
10667rm -fr conftest*
10668
10669 LIBS="$save_LIBS"
10670
10671fi
Reid Spencera773bd52006-08-04 18:18:08 +000010672{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10673echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010674 fi
10675fi
10676
10677if test x"$libltdl_cv_need_uscore" = xyes; then
10678
10679cat >>confdefs.h <<\_ACEOF
10680#define NEED_USCORE 1
10681_ACEOF
10682
10683fi
10684
10685
Reid Spencera773bd52006-08-04 18:18:08 +000010686{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10687echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010688if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690else
10691 # PORTME does your system automatically load deplibs for dlopen?
10692 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10693 # For now, we just catch OSes we know something about -- in the
10694 # future, we'll try test this programmatically.
10695 libltdl_cv_sys_dlopen_deplibs=unknown
10696 case "$host_os" in
10697 aix3*|aix4.1.*|aix4.2.*)
10698 # Unknown whether this is true for these versions of AIX, but
10699 # we want this `case' here to explicitly catch those versions.
10700 libltdl_cv_sys_dlopen_deplibs=unknown
10701 ;;
10702 aix[45]*)
10703 libltdl_cv_sys_dlopen_deplibs=yes
10704 ;;
10705 darwin*)
10706 # Assuming the user has installed a libdl from somewhere, this is true
10707 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10708 libltdl_cv_sys_dlopen_deplibs=yes
10709 ;;
10710 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10711 # GNU and its variants, using gnu ld.so (Glibc)
10712 libltdl_cv_sys_dlopen_deplibs=yes
10713 ;;
10714 hpux10*|hpux11*)
10715 libltdl_cv_sys_dlopen_deplibs=yes
10716 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010717 interix*)
10718 libltdl_cv_sys_dlopen_deplibs=yes
10719 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720 irix[12345]*|irix6.[01]*)
10721 # Catch all versions of IRIX before 6.2, and indicate that we don't
10722 # know how it worked for any of those versions.
10723 libltdl_cv_sys_dlopen_deplibs=unknown
10724 ;;
10725 irix*)
10726 # The case above catches anything before 6.2, and it's known that
10727 # at 6.2 and later dlopen does load deplibs.
10728 libltdl_cv_sys_dlopen_deplibs=yes
10729 ;;
10730 netbsd*)
10731 libltdl_cv_sys_dlopen_deplibs=yes
10732 ;;
10733 openbsd*)
10734 libltdl_cv_sys_dlopen_deplibs=yes
10735 ;;
10736 osf[1234]*)
10737 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10738 # it did *not* use an RPATH in a shared library to find objects the
10739 # library depends on, so we explictly say `no'.
10740 libltdl_cv_sys_dlopen_deplibs=no
10741 ;;
10742 osf5.0|osf5.0a|osf5.1)
10743 # dlopen *does* load deplibs and with the right loader patch applied
10744 # it even uses RPATH in a shared library to search for shared objects
10745 # that the library depends on, but there's no easy way to know if that
10746 # patch is installed. Since this is the case, all we can really
10747 # say is unknown -- it depends on the patch being installed. If
10748 # it is, this changes to `yes'. Without it, it would be `no'.
10749 libltdl_cv_sys_dlopen_deplibs=unknown
10750 ;;
10751 osf*)
10752 # the two cases above should catch all versions of osf <= 5.1. Read
10753 # the comments above for what we know about them.
10754 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10755 # is used to find them so we can finally say `yes'.
10756 libltdl_cv_sys_dlopen_deplibs=yes
10757 ;;
10758 solaris*)
10759 libltdl_cv_sys_dlopen_deplibs=yes
10760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10762 libltdl_cv_sys_dlopen_deplibs=yes
10763 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010764 esac
10765
10766fi
Reid Spencera773bd52006-08-04 18:18:08 +000010767{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10768echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010769if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10770
10771cat >>confdefs.h <<\_ACEOF
10772#define LTDL_DLOPEN_DEPLIBS 1
10773_ACEOF
10774
10775fi
10776
10777
10778for ac_header in argz.h
10779do
10780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010781if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10784if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785 echo $ECHO_N "(cached) $ECHO_C" >&6
10786fi
Reid Spencera773bd52006-08-04 18:18:08 +000010787ac_res=`eval echo '${'$as_ac_Header'}'`
10788 { echo "$as_me:$LINENO: result: $ac_res" >&5
10789echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790else
10791 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010792{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010794cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800$ac_includes_default
10801#include <$ac_header>
10802_ACEOF
10803rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010804if { (ac_try="$ac_compile"
10805case "(($ac_try" in
10806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807 *) ac_try_echo=$ac_try;;
10808esac
10809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010811 ac_status=$?
10812 grep -v '^ *+' conftest.er1 >conftest.err
10813 rm -f conftest.er1
10814 cat conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010816 (exit $ac_status); } &&
10817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10818 { (case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_try") 2>&5
10824 ac_status=$?
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; } &&
10827 { ac_try='test -s conftest.$ac_objext'
10828 { (case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831esac
10832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_try") 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010837 ac_header_compiler=yes
10838else
10839 echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841
Reid Spencera773bd52006-08-04 18:18:08 +000010842 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843fi
Reid Spencera773bd52006-08-04 18:18:08 +000010844
10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010848
10849# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010850{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852cat >conftest.$ac_ext <<_ACEOF
10853/* confdefs.h. */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h. */
10858#include <$ac_header>
10859_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010860if { (ac_try="$ac_cpp conftest.$ac_ext"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010867 ac_status=$?
10868 grep -v '^ *+' conftest.er1 >conftest.err
10869 rm -f conftest.er1
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010872 (exit $ac_status); } >/dev/null; then
10873 if test -s conftest.err; then
10874 ac_cpp_err=$ac_c_preproc_warn_flag
10875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10876 else
10877 ac_cpp_err=
10878 fi
10879else
10880 ac_cpp_err=yes
10881fi
10882if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 ac_header_preproc=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
10888 ac_header_preproc=no
10889fi
Reid Spencera773bd52006-08-04 18:18:08 +000010890
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010892{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894
10895# So? What about this header?
10896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10897 yes:no: )
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc=yes
10903 ;;
10904 no:yes:* )
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010917 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010918## ----------------------------------- ##
10919## Report this to llvmbugs@cs.uiuc.edu ##
10920## ----------------------------------- ##
10921_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010922 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923 ;;
10924esac
Reid Spencera773bd52006-08-04 18:18:08 +000010925{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929else
10930 eval "$as_ac_Header=\$ac_header_preproc"
10931fi
Reid Spencera773bd52006-08-04 18:18:08 +000010932ac_res=`eval echo '${'$as_ac_Header'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935
10936fi
10937if test `eval echo '${'$as_ac_Header'}'` = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10940_ACEOF
10941
10942fi
10943
10944done
10945
10946
Reid Spencera773bd52006-08-04 18:18:08 +000010947{ echo "$as_me:$LINENO: checking for error_t" >&5
10948echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949if test "${ac_cv_type_error_t+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10951else
10952 cat >conftest.$ac_ext <<_ACEOF
10953/* confdefs.h. */
10954_ACEOF
10955cat confdefs.h >>conftest.$ac_ext
10956cat >>conftest.$ac_ext <<_ACEOF
10957/* end confdefs.h. */
10958#if HAVE_ARGZ_H
10959# include <argz.h>
10960#endif
10961
Reid Spencera773bd52006-08-04 18:18:08 +000010962typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963int
10964main ()
10965{
Reid Spencera773bd52006-08-04 18:18:08 +000010966if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010968if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969 return 0;
10970 ;
10971 return 0;
10972}
10973_ACEOF
10974rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010975if { (ac_try="$ac_compile"
10976case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000010987 (exit $ac_status); } &&
10988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10989 { (case "(($ac_try" in
10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10992esac
10993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10995 ac_status=$?
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; } &&
10998 { ac_try='test -s conftest.$ac_objext'
10999 { (case "(($ac_try" in
11000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001 *) ac_try_echo=$ac_try;;
11002esac
11003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004 (eval "$ac_try") 2>&5
11005 ac_status=$?
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011008 ac_cv_type_error_t=yes
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
Reid Spencera773bd52006-08-04 18:18:08 +000011013 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011014fi
Reid Spencera773bd52006-08-04 18:18:08 +000011015
11016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017fi
Reid Spencera773bd52006-08-04 18:18:08 +000011018{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11019echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020if test $ac_cv_type_error_t = yes; then
11021
11022cat >>confdefs.h <<_ACEOF
11023#define HAVE_ERROR_T 1
11024_ACEOF
11025
11026
11027else
11028
11029cat >>confdefs.h <<\_ACEOF
11030#define error_t int
11031_ACEOF
11032
11033fi
11034
11035
11036
11037
11038
11039
11040
11041for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11042do
11043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011044{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11046if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
11049 cat >conftest.$ac_ext <<_ACEOF
11050/* confdefs.h. */
11051_ACEOF
11052cat confdefs.h >>conftest.$ac_ext
11053cat >>conftest.$ac_ext <<_ACEOF
11054/* end confdefs.h. */
11055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11057#define $ac_func innocuous_$ac_func
11058
11059/* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char $ac_func (); below.
11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 <limits.h> exists even on freestanding compilers. */
11063
11064#ifdef __STDC__
11065# include <limits.h>
11066#else
11067# include <assert.h>
11068#endif
11069
11070#undef $ac_func
11071
Reid Spencera773bd52006-08-04 18:18:08 +000011072/* Override any GCC internal prototype to avoid an error.
11073 Use char because int might match the return type of a GCC
11074 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011075#ifdef __cplusplus
11076extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078char $ac_func ();
11079/* The GNU C library defines this for functions which it implements
11080 to always fail with ENOSYS. Some functions are actually named
11081 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011082#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011083choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011084#endif
11085
11086int
11087main ()
11088{
Reid Spencera773bd52006-08-04 18:18:08 +000011089return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011090 ;
11091 return 0;
11092}
11093_ACEOF
11094rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011095if { (ac_try="$ac_link"
11096case "(($ac_try" in
11097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11098 *) ac_try_echo=$ac_try;;
11099esac
11100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11101 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102 ac_status=$?
11103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011107 (exit $ac_status); } &&
11108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11109 { (case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_try") 2>&5
11115 ac_status=$?
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; } &&
11118 { ac_try='test -s conftest$ac_exeext'
11119 { (case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_try") 2>&5
11125 ac_status=$?
11126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128 eval "$as_ac_var=yes"
11129else
11130 echo "$as_me: failed program was:" >&5
11131sed 's/^/| /' conftest.$ac_ext >&5
11132
Reid Spencera773bd52006-08-04 18:18:08 +000011133 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134fi
Reid Spencera773bd52006-08-04 18:18:08 +000011135
Tanya Lattnercf067672008-01-17 05:57:22 +000011136rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011137 conftest$ac_exeext conftest.$ac_ext
11138fi
Reid Spencera773bd52006-08-04 18:18:08 +000011139ac_res=`eval echo '${'$as_ac_var'}'`
11140 { echo "$as_me:$LINENO: result: $ac_res" >&5
11141echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142if test `eval echo '${'$as_ac_var'}'` = yes; then
11143 cat >>confdefs.h <<_ACEOF
11144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11145_ACEOF
11146
11147fi
11148done
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11178 stdio.h unistd.h
11179do
11180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11184if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185 echo $ECHO_N "(cached) $ECHO_C" >&6
11186fi
Reid Spencera773bd52006-08-04 18:18:08 +000011187ac_res=`eval echo '${'$as_ac_Header'}'`
11188 { echo "$as_me:$LINENO: result: $ac_res" >&5
11189echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190else
11191 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011192{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11193echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011194cat >conftest.$ac_ext <<_ACEOF
11195/* confdefs.h. */
11196_ACEOF
11197cat confdefs.h >>conftest.$ac_ext
11198cat >>conftest.$ac_ext <<_ACEOF
11199/* end confdefs.h. */
11200$ac_includes_default
11201#include <$ac_header>
11202_ACEOF
11203rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011204if { (ac_try="$ac_compile"
11205case "(($ac_try" in
11206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207 *) ac_try_echo=$ac_try;;
11208esac
11209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211 ac_status=$?
11212 grep -v '^ *+' conftest.er1 >conftest.err
11213 rm -f conftest.er1
11214 cat conftest.err >&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011216 (exit $ac_status); } &&
11217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11218 { (case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11221esac
11222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_try") 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; } &&
11227 { ac_try='test -s conftest.$ac_objext'
11228 { (case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231esac
11232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_try") 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011237 ac_header_compiler=yes
11238else
11239 echo "$as_me: failed program was:" >&5
11240sed 's/^/| /' conftest.$ac_ext >&5
11241
Reid Spencera773bd52006-08-04 18:18:08 +000011242 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243fi
Reid Spencera773bd52006-08-04 18:18:08 +000011244
11245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11246{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11247echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011248
11249# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011250{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11251echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252cat >conftest.$ac_ext <<_ACEOF
11253/* confdefs.h. */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
11257/* end confdefs.h. */
11258#include <$ac_header>
11259_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011260if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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
Tanya Lattnercf067672008-01-17 05:57:22 +000011272 (exit $ac_status); } >/dev/null; then
11273 if test -s conftest.err; then
11274 ac_cpp_err=$ac_c_preproc_warn_flag
11275 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11276 else
11277 ac_cpp_err=
11278 fi
11279else
11280 ac_cpp_err=yes
11281fi
11282if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283 ac_header_preproc=yes
11284else
11285 echo "$as_me: failed program was:" >&5
11286sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_header_preproc=no
11289fi
Reid Spencera773bd52006-08-04 18:18:08 +000011290
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011292{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11293echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011294
11295# So? What about this header?
11296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11297 yes:no: )
11298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11302 ac_header_preproc=yes
11303 ;;
11304 no:yes:* )
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011317 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011318## ----------------------------------- ##
11319## Report this to llvmbugs@cs.uiuc.edu ##
11320## ----------------------------------- ##
11321_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011322 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323 ;;
11324esac
Reid Spencera773bd52006-08-04 18:18:08 +000011325{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11326echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11327if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328 echo $ECHO_N "(cached) $ECHO_C" >&6
11329else
11330 eval "$as_ac_Header=\$ac_header_preproc"
11331fi
Reid Spencera773bd52006-08-04 18:18:08 +000011332ac_res=`eval echo '${'$as_ac_Header'}'`
11333 { echo "$as_me:$LINENO: result: $ac_res" >&5
11334echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335
11336fi
11337if test `eval echo '${'$as_ac_Header'}'` = yes; then
11338 cat >>confdefs.h <<_ACEOF
11339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11340_ACEOF
11341
11342fi
11343
11344done
11345
11346
11347
11348
11349
11350for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11351do
11352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358fi
Reid Spencera773bd52006-08-04 18:18:08 +000011359ac_res=`eval echo '${'$as_ac_Header'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362else
11363 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011366cat >conftest.$ac_ext <<_ACEOF
11367/* confdefs.h. */
11368_ACEOF
11369cat confdefs.h >>conftest.$ac_ext
11370cat >>conftest.$ac_ext <<_ACEOF
11371/* end confdefs.h. */
11372$ac_includes_default
11373#include <$ac_header>
11374_ACEOF
11375rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011376if { (ac_try="$ac_compile"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011383 ac_status=$?
11384 grep -v '^ *+' conftest.er1 >conftest.err
11385 rm -f conftest.er1
11386 cat conftest.err >&5
11387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011388 (exit $ac_status); } &&
11389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390 { (case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
11394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_try") 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; } &&
11399 { ac_try='test -s conftest.$ac_objext'
11400 { (case "(($ac_try" in
11401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11403esac
11404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_try") 2>&5
11406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011409 ac_header_compiler=yes
11410else
11411 echo "$as_me: failed program was:" >&5
11412sed 's/^/| /' conftest.$ac_ext >&5
11413
Reid Spencera773bd52006-08-04 18:18:08 +000011414 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415fi
Reid Spencera773bd52006-08-04 18:18:08 +000011416
11417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420
11421# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424cat >conftest.$ac_ext <<_ACEOF
11425/* confdefs.h. */
11426_ACEOF
11427cat confdefs.h >>conftest.$ac_ext
11428cat >>conftest.$ac_ext <<_ACEOF
11429/* end confdefs.h. */
11430#include <$ac_header>
11431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011432if { (ac_try="$ac_cpp conftest.$ac_ext"
11433case "(($ac_try" in
11434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11436esac
11437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011439 ac_status=$?
11440 grep -v '^ *+' conftest.er1 >conftest.err
11441 rm -f conftest.er1
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011444 (exit $ac_status); } >/dev/null; then
11445 if test -s conftest.err; then
11446 ac_cpp_err=$ac_c_preproc_warn_flag
11447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448 else
11449 ac_cpp_err=
11450 fi
11451else
11452 ac_cpp_err=yes
11453fi
11454if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 ac_header_preproc=yes
11456else
11457 echo "$as_me: failed program was:" >&5
11458sed 's/^/| /' conftest.$ac_ext >&5
11459
11460 ac_header_preproc=no
11461fi
Reid Spencera773bd52006-08-04 18:18:08 +000011462
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011463rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011466
11467# So? What about this header?
11468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469 yes:no: )
11470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474 ac_header_preproc=yes
11475 ;;
11476 no:yes:* )
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011489 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490## ----------------------------------- ##
11491## Report this to llvmbugs@cs.uiuc.edu ##
11492## ----------------------------------- ##
11493_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011494 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495 ;;
11496esac
Reid Spencera773bd52006-08-04 18:18:08 +000011497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500 echo $ECHO_N "(cached) $ECHO_C" >&6
11501else
11502 eval "$as_ac_Header=\$ac_header_preproc"
11503fi
Reid Spencera773bd52006-08-04 18:18:08 +000011504ac_res=`eval echo '${'$as_ac_Header'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507
11508fi
11509if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510 cat >>confdefs.h <<_ACEOF
11511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512_ACEOF
11513
11514fi
11515
11516done
11517
11518
11519
11520for ac_header in string.h strings.h
11521do
11522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528fi
Reid Spencera773bd52006-08-04 18:18:08 +000011529ac_res=`eval echo '${'$as_ac_Header'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532else
11533 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011534{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11535echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542$ac_includes_default
11543#include <$ac_header>
11544_ACEOF
11545rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011546if { (ac_try="$ac_compile"
11547case "(($ac_try" in
11548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11550esac
11551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553 ac_status=$?
11554 grep -v '^ *+' conftest.er1 >conftest.err
11555 rm -f conftest.er1
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011558 (exit $ac_status); } &&
11559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11560 { (case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563esac
11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_try") 2>&5
11566 ac_status=$?
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); }; } &&
11569 { ac_try='test -s conftest.$ac_objext'
11570 { (case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573esac
11574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_try") 2>&5
11576 ac_status=$?
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579 ac_header_compiler=yes
11580else
11581 echo "$as_me: failed program was:" >&5
11582sed 's/^/| /' conftest.$ac_ext >&5
11583
Reid Spencera773bd52006-08-04 18:18:08 +000011584 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585fi
Reid Spencera773bd52006-08-04 18:18:08 +000011586
11587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11588{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11589echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590
11591# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011592{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11593echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594cat >conftest.$ac_ext <<_ACEOF
11595/* confdefs.h. */
11596_ACEOF
11597cat confdefs.h >>conftest.$ac_ext
11598cat >>conftest.$ac_ext <<_ACEOF
11599/* end confdefs.h. */
11600#include <$ac_header>
11601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011602if { (ac_try="$ac_cpp conftest.$ac_ext"
11603case "(($ac_try" in
11604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605 *) ac_try_echo=$ac_try;;
11606esac
11607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011609 ac_status=$?
11610 grep -v '^ *+' conftest.er1 >conftest.err
11611 rm -f conftest.er1
11612 cat conftest.err >&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011614 (exit $ac_status); } >/dev/null; then
11615 if test -s conftest.err; then
11616 ac_cpp_err=$ac_c_preproc_warn_flag
11617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11618 else
11619 ac_cpp_err=
11620 fi
11621else
11622 ac_cpp_err=yes
11623fi
11624if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011625 ac_header_preproc=yes
11626else
11627 echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630 ac_header_preproc=no
11631fi
Reid Spencera773bd52006-08-04 18:18:08 +000011632
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011633rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011634{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11635echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636
11637# So? What about this header?
11638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11639 yes:no: )
11640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11644 ac_header_preproc=yes
11645 ;;
11646 no:yes:* )
11647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011659 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011660## ----------------------------------- ##
11661## Report this to llvmbugs@cs.uiuc.edu ##
11662## ----------------------------------- ##
11663_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011664 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665 ;;
11666esac
Reid Spencera773bd52006-08-04 18:18:08 +000011667{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670 echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672 eval "$as_ac_Header=\$ac_header_preproc"
11673fi
Reid Spencera773bd52006-08-04 18:18:08 +000011674ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677
11678fi
11679if test `eval echo '${'$as_ac_Header'}'` = yes; then
11680 cat >>confdefs.h <<_ACEOF
11681#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11682_ACEOF
11683 break
11684fi
11685
11686done
11687
11688
11689
11690
11691for ac_func in strchr index
11692do
11693as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011694{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11695echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11696if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698else
11699 cat >conftest.$ac_ext <<_ACEOF
11700/* confdefs.h. */
11701_ACEOF
11702cat confdefs.h >>conftest.$ac_ext
11703cat >>conftest.$ac_ext <<_ACEOF
11704/* end confdefs.h. */
11705/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11707#define $ac_func innocuous_$ac_func
11708
11709/* System header to define __stub macros and hopefully few prototypes,
11710 which can conflict with char $ac_func (); below.
11711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11712 <limits.h> exists even on freestanding compilers. */
11713
11714#ifdef __STDC__
11715# include <limits.h>
11716#else
11717# include <assert.h>
11718#endif
11719
11720#undef $ac_func
11721
Reid Spencera773bd52006-08-04 18:18:08 +000011722/* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011725#ifdef __cplusplus
11726extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011728char $ac_func ();
11729/* The GNU C library defines this for functions which it implements
11730 to always fail with ENOSYS. Some functions are actually named
11731 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011732#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011733choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011734#endif
11735
11736int
11737main ()
11738{
Reid Spencera773bd52006-08-04 18:18:08 +000011739return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740 ;
11741 return 0;
11742}
11743_ACEOF
11744rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011745if { (ac_try="$ac_link"
11746case "(($ac_try" in
11747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11748 *) ac_try_echo=$ac_try;;
11749esac
11750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11751 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 ac_status=$?
11753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011757 (exit $ac_status); } &&
11758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11759 { (case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762esac
11763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11764 (eval "$ac_try") 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
11769 { (case "(($ac_try" in
11770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11771 *) ac_try_echo=$ac_try;;
11772esac
11773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11774 (eval "$ac_try") 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011778 eval "$as_ac_var=yes"
11779else
11780 echo "$as_me: failed program was:" >&5
11781sed 's/^/| /' conftest.$ac_ext >&5
11782
Reid Spencera773bd52006-08-04 18:18:08 +000011783 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784fi
Reid Spencera773bd52006-08-04 18:18:08 +000011785
Tanya Lattnercf067672008-01-17 05:57:22 +000011786rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011787 conftest$ac_exeext conftest.$ac_ext
11788fi
Reid Spencera773bd52006-08-04 18:18:08 +000011789ac_res=`eval echo '${'$as_ac_var'}'`
11790 { echo "$as_me:$LINENO: result: $ac_res" >&5
11791echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011792if test `eval echo '${'$as_ac_var'}'` = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11795_ACEOF
11796 break
11797fi
11798done
11799
11800
11801
11802for ac_func in strrchr rindex
11803do
11804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809else
11810 cat >conftest.$ac_ext <<_ACEOF
11811/* confdefs.h. */
11812_ACEOF
11813cat confdefs.h >>conftest.$ac_ext
11814cat >>conftest.$ac_ext <<_ACEOF
11815/* end confdefs.h. */
11816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11818#define $ac_func innocuous_$ac_func
11819
11820/* System header to define __stub macros and hopefully few prototypes,
11821 which can conflict with char $ac_func (); below.
11822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11823 <limits.h> exists even on freestanding compilers. */
11824
11825#ifdef __STDC__
11826# include <limits.h>
11827#else
11828# include <assert.h>
11829#endif
11830
11831#undef $ac_func
11832
Reid Spencera773bd52006-08-04 18:18:08 +000011833/* Override any GCC internal prototype to avoid an error.
11834 Use char because int might match the return type of a GCC
11835 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011836#ifdef __cplusplus
11837extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011838#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839char $ac_func ();
11840/* The GNU C library defines this for functions which it implements
11841 to always fail with ENOSYS. Some functions are actually named
11842 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011843#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011844choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011845#endif
11846
11847int
11848main ()
11849{
Reid Spencera773bd52006-08-04 18:18:08 +000011850return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851 ;
11852 return 0;
11853}
11854_ACEOF
11855rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011856if { (ac_try="$ac_link"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011868 (exit $ac_status); } &&
11869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11870 { (case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_try") 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; } &&
11879 { ac_try='test -s conftest$ac_exeext'
11880 { (case "(($ac_try" in
11881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11882 *) ac_try_echo=$ac_try;;
11883esac
11884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11885 (eval "$ac_try") 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011889 eval "$as_ac_var=yes"
11890else
11891 echo "$as_me: failed program was:" >&5
11892sed 's/^/| /' conftest.$ac_ext >&5
11893
Reid Spencera773bd52006-08-04 18:18:08 +000011894 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011895fi
Reid Spencera773bd52006-08-04 18:18:08 +000011896
Tanya Lattnercf067672008-01-17 05:57:22 +000011897rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011898 conftest$ac_exeext conftest.$ac_ext
11899fi
Reid Spencera773bd52006-08-04 18:18:08 +000011900ac_res=`eval echo '${'$as_ac_var'}'`
11901 { echo "$as_me:$LINENO: result: $ac_res" >&5
11902echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011903if test `eval echo '${'$as_ac_var'}'` = yes; then
11904 cat >>confdefs.h <<_ACEOF
11905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11906_ACEOF
11907 break
11908fi
11909done
11910
11911
11912
11913for ac_func in memcpy bcopy
11914do
11915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011916{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
11927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929#define $ac_func innocuous_$ac_func
11930
11931/* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char $ac_func (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11935
11936#ifdef __STDC__
11937# include <limits.h>
11938#else
11939# include <assert.h>
11940#endif
11941
11942#undef $ac_func
11943
Reid Spencera773bd52006-08-04 18:18:08 +000011944/* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947#ifdef __cplusplus
11948extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011949#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011950char $ac_func ();
11951/* The GNU C library defines this for functions which it implements
11952 to always fail with ENOSYS. Some functions are actually named
11953 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011954#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011956#endif
11957
11958int
11959main ()
11960{
Reid Spencera773bd52006-08-04 18:18:08 +000011961return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962 ;
11963 return 0;
11964}
11965_ACEOF
11966rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011967if { (ac_try="$ac_link"
11968case "(($ac_try" in
11969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11970 *) ac_try_echo=$ac_try;;
11971esac
11972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000011979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11993 *) ac_try_echo=$ac_try;;
11994esac
11995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000 eval "$as_ac_var=yes"
12001else
12002 echo "$as_me: failed program was:" >&5
12003sed 's/^/| /' conftest.$ac_ext >&5
12004
Reid Spencera773bd52006-08-04 18:18:08 +000012005 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012006fi
Reid Spencera773bd52006-08-04 18:18:08 +000012007
Tanya Lattnercf067672008-01-17 05:57:22 +000012008rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009 conftest$ac_exeext conftest.$ac_ext
12010fi
Reid Spencera773bd52006-08-04 18:18:08 +000012011ac_res=`eval echo '${'$as_ac_var'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014if test `eval echo '${'$as_ac_var'}'` = yes; then
12015 cat >>confdefs.h <<_ACEOF
12016#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12017_ACEOF
12018 break
12019fi
12020done
12021
12022
12023
12024for ac_func in memmove strcmp
12025do
12026as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012027{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12028echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12029if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
12038/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12040#define $ac_func innocuous_$ac_func
12041
12042/* System header to define __stub macros and hopefully few prototypes,
12043 which can conflict with char $ac_func (); below.
12044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 <limits.h> exists even on freestanding compilers. */
12046
12047#ifdef __STDC__
12048# include <limits.h>
12049#else
12050# include <assert.h>
12051#endif
12052
12053#undef $ac_func
12054
Reid Spencera773bd52006-08-04 18:18:08 +000012055/* Override any GCC internal prototype to avoid an error.
12056 Use char because int might match the return type of a GCC
12057 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012058#ifdef __cplusplus
12059extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012060#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061char $ac_func ();
12062/* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012065#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012066choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012067#endif
12068
12069int
12070main ()
12071{
Reid Spencera773bd52006-08-04 18:18:08 +000012072return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012078if { (ac_try="$ac_link"
12079case "(($ac_try" in
12080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12082esac
12083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 ac_status=$?
12086 grep -v '^ *+' conftest.er1 >conftest.err
12087 rm -f conftest.er1
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012090 (exit $ac_status); } &&
12091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12092 { (case "(($ac_try" in
12093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12095esac
12096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12097 (eval "$ac_try") 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; } &&
12101 { ac_try='test -s conftest$ac_exeext'
12102 { (case "(($ac_try" in
12103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12104 *) ac_try_echo=$ac_try;;
12105esac
12106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12107 (eval "$ac_try") 2>&5
12108 ac_status=$?
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111 eval "$as_ac_var=yes"
12112else
12113 echo "$as_me: failed program was:" >&5
12114sed 's/^/| /' conftest.$ac_ext >&5
12115
Reid Spencera773bd52006-08-04 18:18:08 +000012116 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117fi
Reid Spencera773bd52006-08-04 18:18:08 +000012118
Tanya Lattnercf067672008-01-17 05:57:22 +000012119rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120 conftest$ac_exeext conftest.$ac_ext
12121fi
Reid Spencera773bd52006-08-04 18:18:08 +000012122ac_res=`eval echo '${'$as_ac_var'}'`
12123 { echo "$as_me:$LINENO: result: $ac_res" >&5
12124echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012125if test `eval echo '${'$as_ac_var'}'` = yes; then
12126 cat >>confdefs.h <<_ACEOF
12127#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12128_ACEOF
12129
12130fi
12131done
12132
12133
12134
12135
12136for ac_func in closedir opendir readdir
12137do
12138as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012139{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12140echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12141if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012142 echo $ECHO_N "(cached) $ECHO_C" >&6
12143else
12144 cat >conftest.$ac_ext <<_ACEOF
12145/* confdefs.h. */
12146_ACEOF
12147cat confdefs.h >>conftest.$ac_ext
12148cat >>conftest.$ac_ext <<_ACEOF
12149/* end confdefs.h. */
12150/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12152#define $ac_func innocuous_$ac_func
12153
12154/* System header to define __stub macros and hopefully few prototypes,
12155 which can conflict with char $ac_func (); below.
12156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12157 <limits.h> exists even on freestanding compilers. */
12158
12159#ifdef __STDC__
12160# include <limits.h>
12161#else
12162# include <assert.h>
12163#endif
12164
12165#undef $ac_func
12166
Reid Spencera773bd52006-08-04 18:18:08 +000012167/* Override any GCC internal prototype to avoid an error.
12168 Use char because int might match the return type of a GCC
12169 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170#ifdef __cplusplus
12171extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012172#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173char $ac_func ();
12174/* The GNU C library defines this for functions which it implements
12175 to always fail with ENOSYS. Some functions are actually named
12176 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012177#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012178choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179#endif
12180
12181int
12182main ()
12183{
Reid Spencera773bd52006-08-04 18:18:08 +000012184return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012185 ;
12186 return 0;
12187}
12188_ACEOF
12189rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012190if { (ac_try="$ac_link"
12191case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194esac
12195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012202 (exit $ac_status); } &&
12203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12204 { (case "(($ac_try" in
12205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206 *) ac_try_echo=$ac_try;;
12207esac
12208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209 (eval "$ac_try") 2>&5
12210 ac_status=$?
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest$ac_exeext'
12214 { (case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217esac
12218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_try") 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012223 eval "$as_ac_var=yes"
12224else
12225 echo "$as_me: failed program was:" >&5
12226sed 's/^/| /' conftest.$ac_ext >&5
12227
Reid Spencera773bd52006-08-04 18:18:08 +000012228 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229fi
Reid Spencera773bd52006-08-04 18:18:08 +000012230
Tanya Lattnercf067672008-01-17 05:57:22 +000012231rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012232 conftest$ac_exeext conftest.$ac_ext
12233fi
Reid Spencera773bd52006-08-04 18:18:08 +000012234ac_res=`eval echo '${'$as_ac_var'}'`
12235 { echo "$as_me:$LINENO: result: $ac_res" >&5
12236echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012237if test `eval echo '${'$as_ac_var'}'` = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12240_ACEOF
12241
12242fi
12243done
12244
12245
Reid Spencera773bd52006-08-04 18:18:08 +000012246# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012247if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012248 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012249 case $enableval in
12250 yes) enable_shared=yes ;;
12251 no) enable_shared=no ;;
12252 *)
12253 enable_shared=no
12254 # Look at the argument we got. We use all the common list separators.
12255 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12256 for pkg in $enableval; do
12257 IFS="$lt_save_ifs"
12258 if test "X$pkg" = "X$p"; then
12259 enable_shared=yes
12260 fi
12261 done
12262 IFS="$lt_save_ifs"
12263 ;;
12264 esac
12265else
12266 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012267fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012268
Reid Spencera773bd52006-08-04 18:18:08 +000012269
12270# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012271if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012272 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012273 case $enableval in
12274 yes) enable_static=yes ;;
12275 no) enable_static=no ;;
12276 *)
12277 enable_static=no
12278 # Look at the argument we got. We use all the common list separators.
12279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12280 for pkg in $enableval; do
12281 IFS="$lt_save_ifs"
12282 if test "X$pkg" = "X$p"; then
12283 enable_static=yes
12284 fi
12285 done
12286 IFS="$lt_save_ifs"
12287 ;;
12288 esac
12289else
12290 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012291fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012292
Reid Spencera773bd52006-08-04 18:18:08 +000012293
12294# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012295if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012296 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012297 case $enableval in
12298 yes) enable_fast_install=yes ;;
12299 no) enable_fast_install=no ;;
12300 *)
12301 enable_fast_install=no
12302 # Look at the argument we got. We use all the common list separators.
12303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12304 for pkg in $enableval; do
12305 IFS="$lt_save_ifs"
12306 if test "X$pkg" = "X$p"; then
12307 enable_fast_install=yes
12308 fi
12309 done
12310 IFS="$lt_save_ifs"
12311 ;;
12312 esac
12313else
12314 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012315fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316
Reid Spencera773bd52006-08-04 18:18:08 +000012317
12318{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12319echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012320if test "${lt_cv_path_SED+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323 # Loop through the user's path and test for sed and gsed.
12324# Then use that list of sed's as ones to test for truncation.
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
12330 for lt_ac_prog in sed gsed; do
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12333 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12334 fi
12335 done
12336 done
12337done
12338lt_ac_max=0
12339lt_ac_count=0
12340# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12341# along with /bin/sed that truncates output.
12342for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012343 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344 cat /dev/null > conftest.in
12345 lt_ac_count=0
12346 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12347 # Check for GNU sed and select it if it is found.
12348 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12349 lt_cv_path_SED=$lt_ac_sed
12350 break
12351 fi
12352 while true; do
12353 cat conftest.in conftest.in >conftest.tmp
12354 mv conftest.tmp conftest.in
12355 cp conftest.in conftest.nl
12356 echo >>conftest.nl
12357 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12358 cmp -s conftest.out conftest.nl || break
12359 # 10000 chars as input seems more than enough
12360 test $lt_ac_count -gt 10 && break
12361 lt_ac_count=`expr $lt_ac_count + 1`
12362 if test $lt_ac_count -gt $lt_ac_max; then
12363 lt_ac_max=$lt_ac_count
12364 lt_cv_path_SED=$lt_ac_sed
12365 fi
12366 done
12367done
12368
12369fi
12370
12371SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012372{ echo "$as_me:$LINENO: result: $SED" >&5
12373echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012374
12375
Reid Spencera773bd52006-08-04 18:18:08 +000012376# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012377if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012378 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012379else
12380 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012381fi
12382
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012383ac_prog=ld
12384if test "$GCC" = yes; then
12385 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012386 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12387echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012388 case $host in
12389 *-*-mingw*)
12390 # gcc leaves a trailing carriage return which upsets mingw
12391 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12392 *)
12393 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12394 esac
12395 case $ac_prog in
12396 # Accept absolute paths.
12397 [\\/]* | ?:[\\/]*)
12398 re_direlt='/[^/][^/]*/\.\./'
12399 # Canonicalize the pathname of ld
12400 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12401 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12402 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12403 done
12404 test -z "$LD" && LD="$ac_prog"
12405 ;;
12406 "")
12407 # If it fails, then pretend we aren't using GCC.
12408 ac_prog=ld
12409 ;;
12410 *)
12411 # If it is relative, then search for the first ld in PATH.
12412 with_gnu_ld=unknown
12413 ;;
12414 esac
12415elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012416 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12417echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418else
Reid Spencera773bd52006-08-04 18:18:08 +000012419 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12420echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421fi
12422if test "${lt_cv_path_LD+set}" = set; then
12423 echo $ECHO_N "(cached) $ECHO_C" >&6
12424else
12425 if test -z "$LD"; then
12426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12427 for ac_dir in $PATH; do
12428 IFS="$lt_save_ifs"
12429 test -z "$ac_dir" && ac_dir=.
12430 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12431 lt_cv_path_LD="$ac_dir/$ac_prog"
12432 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012433 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012434 # Break only if it was the GNU/non-GNU ld that we prefer.
12435 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12436 *GNU* | *'with BFD'*)
12437 test "$with_gnu_ld" != no && break
12438 ;;
12439 *)
12440 test "$with_gnu_ld" != yes && break
12441 ;;
12442 esac
12443 fi
12444 done
12445 IFS="$lt_save_ifs"
12446else
12447 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12448fi
12449fi
12450
12451LD="$lt_cv_path_LD"
12452if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012453 { echo "$as_me:$LINENO: result: $LD" >&5
12454echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012455else
Reid Spencera773bd52006-08-04 18:18:08 +000012456 { echo "$as_me:$LINENO: result: no" >&5
12457echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012458fi
12459test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12460echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12461 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012462{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12463echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012464if test "${lt_cv_prog_gnu_ld+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12466else
Reid Spencera773bd52006-08-04 18:18:08 +000012467 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468case `$LD -v 2>&1 </dev/null` in
12469*GNU* | *'with BFD'*)
12470 lt_cv_prog_gnu_ld=yes
12471 ;;
12472*)
12473 lt_cv_prog_gnu_ld=no
12474 ;;
12475esac
12476fi
Reid Spencera773bd52006-08-04 18:18:08 +000012477{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12478echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012479with_gnu_ld=$lt_cv_prog_gnu_ld
12480
12481
Reid Spencera773bd52006-08-04 18:18:08 +000012482{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12483echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012484if test "${lt_cv_ld_reload_flag+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12486else
12487 lt_cv_ld_reload_flag='-r'
12488fi
Reid Spencera773bd52006-08-04 18:18:08 +000012489{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12490echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012491reload_flag=$lt_cv_ld_reload_flag
12492case $reload_flag in
12493"" | " "*) ;;
12494*) reload_flag=" $reload_flag" ;;
12495esac
12496reload_cmds='$LD$reload_flag -o $output$reload_objs'
12497case $host_os in
12498 darwin*)
12499 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012500 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012501 else
12502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12503 fi
12504 ;;
12505esac
12506
Reid Spencera773bd52006-08-04 18:18:08 +000012507{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12508echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012509if test "${lt_cv_deplibs_check_method+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511else
12512 lt_cv_file_magic_cmd='$MAGIC_CMD'
12513lt_cv_file_magic_test_file=
12514lt_cv_deplibs_check_method='unknown'
12515# Need to set the preceding variable on all platforms that support
12516# interlibrary dependencies.
12517# 'none' -- dependencies not supported.
12518# `unknown' -- same as none, but documents that we really don't know.
12519# 'pass_all' -- all dependencies passed with no checks.
12520# 'test_compile' -- check by making test program.
12521# 'file_magic [[regex]]' -- check by looking for files in library path
12522# which responds to the $file_magic_cmd with a given extended regex.
12523# If you have `file' or equivalent on your system and you're not sure
12524# whether `pass_all' will *always* work, you probably want this one.
12525
12526case $host_os in
12527aix4* | aix5*)
12528 lt_cv_deplibs_check_method=pass_all
12529 ;;
12530
12531beos*)
12532 lt_cv_deplibs_check_method=pass_all
12533 ;;
12534
12535bsdi[45]*)
12536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12537 lt_cv_file_magic_cmd='/usr/bin/file -L'
12538 lt_cv_file_magic_test_file=/shlib/libc.so
12539 ;;
12540
12541cygwin*)
12542 # func_win32_libid is a shell function defined in ltmain.sh
12543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12544 lt_cv_file_magic_cmd='func_win32_libid'
12545 ;;
12546
12547mingw* | pw32*)
12548 # Base MSYS/MinGW do not provide the 'file' command needed by
12549 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12550 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12551 lt_cv_file_magic_cmd='$OBJDUMP -f'
12552 ;;
12553
12554darwin* | rhapsody*)
12555 lt_cv_deplibs_check_method=pass_all
12556 ;;
12557
Reid Spencera773bd52006-08-04 18:18:08 +000012558freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012559 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12560 case $host_cpu in
12561 i*86 )
12562 # Not sure whether the presence of OpenBSD here was a mistake.
12563 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012564 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 +000012565 lt_cv_file_magic_cmd=/usr/bin/file
12566 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12567 ;;
12568 esac
12569 else
12570 lt_cv_deplibs_check_method=pass_all
12571 fi
12572 ;;
12573
12574gnu*)
12575 lt_cv_deplibs_check_method=pass_all
12576 ;;
12577
12578hpux10.20* | hpux11*)
12579 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012580 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012581 ia64*)
12582 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12583 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12584 ;;
12585 hppa*64*)
12586 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]'
12587 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12588 ;;
12589 *)
12590 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12591 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12592 ;;
12593 esac
12594 ;;
12595
Reid Spencera773bd52006-08-04 18:18:08 +000012596interix3*)
12597 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12599 ;;
12600
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012601irix5* | irix6* | nonstopux*)
12602 case $LD in
12603 *-32|*"-32 ") libmagic=32-bit;;
12604 *-n32|*"-n32 ") libmagic=N32;;
12605 *-64|*"-64 ") libmagic=64-bit;;
12606 *) libmagic=never-match;;
12607 esac
12608 lt_cv_deplibs_check_method=pass_all
12609 ;;
12610
12611# This must be Linux ELF.
12612linux*)
12613 lt_cv_deplibs_check_method=pass_all
12614 ;;
12615
12616netbsd*)
12617 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12618 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12619 else
12620 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12621 fi
12622 ;;
12623
12624newos6*)
12625 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12626 lt_cv_file_magic_cmd=/usr/bin/file
12627 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12628 ;;
12629
12630nto-qnx*)
12631 lt_cv_deplibs_check_method=unknown
12632 ;;
12633
12634openbsd*)
12635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12636 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12637 else
12638 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12639 fi
12640 ;;
12641
12642osf3* | osf4* | osf5*)
12643 lt_cv_deplibs_check_method=pass_all
12644 ;;
12645
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012646solaris*)
12647 lt_cv_deplibs_check_method=pass_all
12648 ;;
12649
Reid Spencera773bd52006-08-04 18:18:08 +000012650sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012651 case $host_vendor in
12652 motorola)
12653 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]'
12654 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12655 ;;
12656 ncr)
12657 lt_cv_deplibs_check_method=pass_all
12658 ;;
12659 sequent)
12660 lt_cv_file_magic_cmd='/bin/file'
12661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12662 ;;
12663 sni)
12664 lt_cv_file_magic_cmd='/bin/file'
12665 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12666 lt_cv_file_magic_test_file=/lib/libc.so
12667 ;;
12668 siemens)
12669 lt_cv_deplibs_check_method=pass_all
12670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012671 pc)
12672 lt_cv_deplibs_check_method=pass_all
12673 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012674 esac
12675 ;;
12676
Reid Spencera773bd52006-08-04 18:18:08 +000012677sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012678 lt_cv_deplibs_check_method=pass_all
12679 ;;
12680esac
12681
12682fi
Reid Spencera773bd52006-08-04 18:18:08 +000012683{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12684echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685file_magic_cmd=$lt_cv_file_magic_cmd
12686deplibs_check_method=$lt_cv_deplibs_check_method
12687test -z "$deplibs_check_method" && deplibs_check_method=unknown
12688
12689
12690
12691# If no C compiler was specified, use CC.
12692LTCC=${LTCC-"$CC"}
12693
Reid Spencera773bd52006-08-04 18:18:08 +000012694# If no C compiler flags were specified, use CFLAGS.
12695LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12696
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012697# Allow CC to be a program name with arguments.
12698compiler=$CC
12699
Reid Spencera773bd52006-08-04 18:18:08 +000012700# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012701if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012702 enableval=$enable_libtool_lock;
12703fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012704
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012705test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12706
12707# Some flags need to be propagated to the compiler or linker for good
12708# libtool support.
12709case $host in
12710ia64-*-hpux*)
12711 # Find out which ABI we are using.
12712 echo 'int i;' > conftest.$ac_ext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; then
12718 case `/usr/bin/file conftest.$ac_objext` in
12719 *ELF-32*)
12720 HPUX_IA64_MODE="32"
12721 ;;
12722 *ELF-64*)
12723 HPUX_IA64_MODE="64"
12724 ;;
12725 esac
12726 fi
12727 rm -rf conftest*
12728 ;;
12729*-*-irix6*)
12730 # Find out which ABI we are using.
Gordon Henriksene7072162008-03-07 18:20:01 +000012731 echo '#line 12731 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12733 (eval $ac_compile) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; then
12737 if test "$lt_cv_prog_gnu_ld" = yes; then
12738 case `/usr/bin/file conftest.$ac_objext` in
12739 *32-bit*)
12740 LD="${LD-ld} -melf32bsmip"
12741 ;;
12742 *N32*)
12743 LD="${LD-ld} -melf32bmipn32"
12744 ;;
12745 *64-bit*)
12746 LD="${LD-ld} -melf64bmip"
12747 ;;
12748 esac
12749 else
12750 case `/usr/bin/file conftest.$ac_objext` in
12751 *32-bit*)
12752 LD="${LD-ld} -32"
12753 ;;
12754 *N32*)
12755 LD="${LD-ld} -n32"
12756 ;;
12757 *64-bit*)
12758 LD="${LD-ld} -64"
12759 ;;
12760 esac
12761 fi
12762 fi
12763 rm -rf conftest*
12764 ;;
12765
12766x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12767 # Find out which ABI we are using.
12768 echo 'int i;' > conftest.$ac_ext
12769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12770 (eval $ac_compile) 2>&5
12771 ac_status=$?
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012774 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012775 *32-bit*)
12776 case $host in
12777 x86_64-*linux*)
12778 LD="${LD-ld} -m elf_i386"
12779 ;;
12780 ppc64-*linux*|powerpc64-*linux*)
12781 LD="${LD-ld} -m elf32ppclinux"
12782 ;;
12783 s390x-*linux*)
12784 LD="${LD-ld} -m elf_s390"
12785 ;;
12786 sparc64-*linux*)
12787 LD="${LD-ld} -m elf32_sparc"
12788 ;;
12789 esac
12790 ;;
12791 *64-bit*)
12792 case $host in
12793 x86_64-*linux*)
12794 LD="${LD-ld} -m elf_x86_64"
12795 ;;
12796 ppc*-*linux*|powerpc*-*linux*)
12797 LD="${LD-ld} -m elf64ppc"
12798 ;;
12799 s390*-*linux*)
12800 LD="${LD-ld} -m elf64_s390"
12801 ;;
12802 sparc*-*linux*)
12803 LD="${LD-ld} -m elf64_sparc"
12804 ;;
12805 esac
12806 ;;
12807 esac
12808 fi
12809 rm -rf conftest*
12810 ;;
12811
12812*-*-sco3.2v5*)
12813 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12814 SAVE_CFLAGS="$CFLAGS"
12815 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012816 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12817echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012818if test "${lt_cv_cc_needs_belf+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12820else
12821 ac_ext=c
12822ac_cpp='$CPP $CPPFLAGS'
12823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
12827 cat >conftest.$ac_ext <<_ACEOF
12828/* confdefs.h. */
12829_ACEOF
12830cat confdefs.h >>conftest.$ac_ext
12831cat >>conftest.$ac_ext <<_ACEOF
12832/* end confdefs.h. */
12833
Reid Spencera773bd52006-08-04 18:18:08 +000012834int
12835main ()
12836{
12837
12838 ;
12839 return 0;
12840}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012841_ACEOF
12842rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012843if { (ac_try="$ac_link"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012855 (exit $ac_status); } &&
12856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859 *) ac_try_echo=$ac_try;;
12860esac
12861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12863 ac_status=$?
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; } &&
12866 { ac_try='test -s conftest$ac_exeext'
12867 { (case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870esac
12871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_try") 2>&5
12873 ac_status=$?
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012876 lt_cv_cc_needs_belf=yes
12877else
12878 echo "$as_me: failed program was:" >&5
12879sed 's/^/| /' conftest.$ac_ext >&5
12880
Reid Spencera773bd52006-08-04 18:18:08 +000012881 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012882fi
Reid Spencera773bd52006-08-04 18:18:08 +000012883
Tanya Lattnercf067672008-01-17 05:57:22 +000012884rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012885 conftest$ac_exeext conftest.$ac_ext
12886 ac_ext=c
12887ac_cpp='$CPP $CPPFLAGS'
12888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890ac_compiler_gnu=$ac_cv_c_compiler_gnu
12891
12892fi
Reid Spencera773bd52006-08-04 18:18:08 +000012893{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12894echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12897 CFLAGS="$SAVE_CFLAGS"
12898 fi
12899 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012900sparc*-*solaris*)
12901 # Find out which ABI we are using.
12902 echo 'int i;' > conftest.$ac_ext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>&5
12905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; then
12908 case `/usr/bin/file conftest.o` in
12909 *64-bit*)
12910 case $lt_cv_prog_gnu_ld in
12911 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12912 *) LD="${LD-ld} -64" ;;
12913 esac
12914 ;;
12915 esac
12916 fi
12917 rm -rf conftest*
12918 ;;
12919
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012920
12921esac
12922
12923need_locks="$enable_libtool_lock"
12924
12925
Reid Spencer2706f8c2004-09-19 23:53:36 +000012926
12927
12928if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12930 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012931 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012932ac_cpp='$CXXCPP $CPPFLAGS'
12933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012936{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12937echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012938if test -z "$CXXCPP"; then
12939 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012940 echo $ECHO_N "(cached) $ECHO_C" >&6
12941else
John Criswell47fdd832003-07-14 16:52:07 +000012942 # Double quotes because CXXCPP needs to be expanded
12943 for CXXCPP in "$CXX -E" "/lib/cpp"
12944 do
12945 ac_preproc_ok=false
12946for ac_cxx_preproc_warn_flag in '' yes
12947do
12948 # Use a header file that comes with gcc, so configuring glibc
12949 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012952 # On the NeXT, cc -E runs the code through the compiler's parser,
12953 # not just through cpp. "Syntax error" is here to catch this case.
12954 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012955/* confdefs.h. */
12956_ACEOF
12957cat confdefs.h >>conftest.$ac_ext
12958cat >>conftest.$ac_ext <<_ACEOF
12959/* end confdefs.h. */
12960#ifdef __STDC__
12961# include <limits.h>
12962#else
12963# include <assert.h>
12964#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012965 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012966_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012967if { (ac_try="$ac_cpp conftest.$ac_ext"
12968case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
12972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012974 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012975 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012976 rm -f conftest.er1
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000012979 (exit $ac_status); } >/dev/null; then
12980 if test -s conftest.err; then
12981 ac_cpp_err=$ac_cxx_preproc_warn_flag
12982 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12983 else
12984 ac_cpp_err=
12985 fi
12986else
12987 ac_cpp_err=yes
12988fi
12989if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012990 :
12991else
12992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012993sed 's/^/| /' conftest.$ac_ext >&5
12994
John Criswell47fdd832003-07-14 16:52:07 +000012995 # Broken: fails on valid input.
12996continue
12997fi
Reid Spencera773bd52006-08-04 18:18:08 +000012998
John Criswell47fdd832003-07-14 16:52:07 +000012999rm -f conftest.err conftest.$ac_ext
13000
Reid Spencera773bd52006-08-04 18:18:08 +000013001 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013002 # can be detected and how.
13003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013009#include <ac_nonexistent.h>
13010_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013011if { (ac_try="$ac_cpp conftest.$ac_ext"
13012case "(($ac_try" in
13013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014 *) ac_try_echo=$ac_try;;
13015esac
13016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013018 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013019 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013020 rm -f conftest.er1
13021 cat conftest.err >&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013023 (exit $ac_status); } >/dev/null; then
13024 if test -s conftest.err; then
13025 ac_cpp_err=$ac_cxx_preproc_warn_flag
13026 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13027 else
13028 ac_cpp_err=
13029 fi
13030else
13031 ac_cpp_err=yes
13032fi
13033if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013034 # Broken: success on invalid input.
13035continue
13036else
13037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013038sed 's/^/| /' conftest.$ac_ext >&5
13039
John Criswell47fdd832003-07-14 16:52:07 +000013040 # Passes both tests.
13041ac_preproc_ok=:
13042break
13043fi
Reid Spencera773bd52006-08-04 18:18:08 +000013044
John Criswell47fdd832003-07-14 16:52:07 +000013045rm -f conftest.err conftest.$ac_ext
13046
13047done
13048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13049rm -f conftest.err conftest.$ac_ext
13050if $ac_preproc_ok; then
13051 break
John Criswell7a73b802003-06-30 21:59:07 +000013052fi
13053
John Criswell47fdd832003-07-14 16:52:07 +000013054 done
13055 ac_cv_prog_CXXCPP=$CXXCPP
13056
13057fi
13058 CXXCPP=$ac_cv_prog_CXXCPP
13059else
13060 ac_cv_prog_CXXCPP=$CXXCPP
13061fi
Reid Spencera773bd52006-08-04 18:18:08 +000013062{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13063echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013064ac_preproc_ok=false
13065for ac_cxx_preproc_warn_flag in '' yes
13066do
13067 # Use a header file that comes with gcc, so configuring glibc
13068 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13070 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013071 # On the NeXT, cc -E runs the code through the compiler's parser,
13072 # not just through cpp. "Syntax error" is here to catch this case.
13073 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013074/* confdefs.h. */
13075_ACEOF
13076cat confdefs.h >>conftest.$ac_ext
13077cat >>conftest.$ac_ext <<_ACEOF
13078/* end confdefs.h. */
13079#ifdef __STDC__
13080# include <limits.h>
13081#else
13082# include <assert.h>
13083#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013084 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013085_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013086if { (ac_try="$ac_cpp conftest.$ac_ext"
13087case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013093 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013094 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013095 rm -f conftest.er1
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013098 (exit $ac_status); } >/dev/null; then
13099 if test -s conftest.err; then
13100 ac_cpp_err=$ac_cxx_preproc_warn_flag
13101 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13102 else
13103 ac_cpp_err=
13104 fi
13105else
13106 ac_cpp_err=yes
13107fi
13108if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013109 :
13110else
13111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013112sed 's/^/| /' conftest.$ac_ext >&5
13113
John Criswell47fdd832003-07-14 16:52:07 +000013114 # Broken: fails on valid input.
13115continue
13116fi
Reid Spencera773bd52006-08-04 18:18:08 +000013117
John Criswell47fdd832003-07-14 16:52:07 +000013118rm -f conftest.err conftest.$ac_ext
13119
Reid Spencera773bd52006-08-04 18:18:08 +000013120 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013121 # can be detected and how.
13122 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013123/* confdefs.h. */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013128#include <ac_nonexistent.h>
13129_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013130if { (ac_try="$ac_cpp conftest.$ac_ext"
13131case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13134esac
13135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013137 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013138 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013139 rm -f conftest.er1
13140 cat conftest.err >&5
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013142 (exit $ac_status); } >/dev/null; then
13143 if test -s conftest.err; then
13144 ac_cpp_err=$ac_cxx_preproc_warn_flag
13145 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13146 else
13147 ac_cpp_err=
13148 fi
13149else
13150 ac_cpp_err=yes
13151fi
13152if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013153 # Broken: success on invalid input.
13154continue
13155else
13156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013157sed 's/^/| /' conftest.$ac_ext >&5
13158
John Criswell47fdd832003-07-14 16:52:07 +000013159 # Passes both tests.
13160ac_preproc_ok=:
13161break
13162fi
Reid Spencera773bd52006-08-04 18:18:08 +000013163
John Criswell47fdd832003-07-14 16:52:07 +000013164rm -f conftest.err conftest.$ac_ext
13165
13166done
13167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13168rm -f conftest.err conftest.$ac_ext
13169if $ac_preproc_ok; then
13170 :
13171else
John Criswell0c38eaf2003-09-10 15:17:25 +000013172 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13173See \`config.log' for more details." >&5
13174echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13175See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013176 { (exit 1); exit 1; }; }
13177fi
13178
Reid Spencera773bd52006-08-04 18:18:08 +000013179ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013180ac_cpp='$CXXCPP $CPPFLAGS'
13181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13184
Reid Spencer2706f8c2004-09-19 23:53:36 +000013185fi
13186
John Criswell47fdd832003-07-14 16:52:07 +000013187
13188ac_ext=f
13189ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13190ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13192if test -n "$ac_tool_prefix"; then
Tanya Lattnercf067672008-01-17 05:57:22 +000013193 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 +000013194 do
13195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13196set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013199if test "${ac_cv_prog_F77+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 if test -n "$F77"; then
13203 ac_cv_prog_F77="$F77" # Let the user override the test.
13204else
13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206for as_dir in $PATH
13207do
13208 IFS=$as_save_IFS
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013211 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 +000013212 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13214 break 2
13215 fi
13216done
13217done
Reid Spencera773bd52006-08-04 18:18:08 +000013218IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013219
13220fi
13221fi
13222F77=$ac_cv_prog_F77
13223if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013224 { echo "$as_me:$LINENO: result: $F77" >&5
13225echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013226else
Reid Spencera773bd52006-08-04 18:18:08 +000013227 { echo "$as_me:$LINENO: result: no" >&5
13228echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013229fi
13230
Reid Spencera773bd52006-08-04 18:18:08 +000013231
John Criswell47fdd832003-07-14 16:52:07 +000013232 test -n "$F77" && break
13233 done
13234fi
13235if test -z "$F77"; then
13236 ac_ct_F77=$F77
Tanya Lattnercf067672008-01-17 05:57:22 +000013237 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 +000013238do
13239 # Extract the first word of "$ac_prog", so it can be a program name with args.
13240set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013243if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13245else
13246 if test -n "$ac_ct_F77"; then
13247 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13248else
13249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250for as_dir in $PATH
13251do
13252 IFS=$as_save_IFS
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013255 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 +000013256 ac_cv_prog_ac_ct_F77="$ac_prog"
13257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13258 break 2
13259 fi
13260done
13261done
Reid Spencera773bd52006-08-04 18:18:08 +000013262IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013263
13264fi
13265fi
13266ac_ct_F77=$ac_cv_prog_ac_ct_F77
13267if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013268 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13269echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013270else
Reid Spencera773bd52006-08-04 18:18:08 +000013271 { echo "$as_me:$LINENO: result: no" >&5
13272echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013273fi
13274
Reid Spencera773bd52006-08-04 18:18:08 +000013275
John Criswell47fdd832003-07-14 16:52:07 +000013276 test -n "$ac_ct_F77" && break
13277done
13278
Reid Spencera773bd52006-08-04 18:18:08 +000013279 if test "x$ac_ct_F77" = x; then
13280 F77=""
13281 else
13282 case $cross_compiling:$ac_tool_warned in
13283yes:)
13284{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13285whose name does not start with the host triplet. If you think this
13286configuration is useful to you, please write to autoconf@gnu.org." >&5
13287echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13288whose name does not start with the host triplet. If you think this
13289configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13290ac_tool_warned=yes ;;
13291esac
13292 F77=$ac_ct_F77
13293 fi
John Criswell47fdd832003-07-14 16:52:07 +000013294fi
13295
13296
13297# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013298echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013299ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013300{ (ac_try="$ac_compiler --version >&5"
13301case "(($ac_try" in
13302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303 *) ac_try_echo=$ac_try;;
13304esac
13305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013307 ac_status=$?
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013310{ (ac_try="$ac_compiler -v >&5"
13311case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13314esac
13315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013317 ac_status=$?
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013320{ (ac_try="$ac_compiler -V >&5"
13321case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13324esac
13325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013327 ac_status=$?
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013330rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013331
13332# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013333# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013334ac_save_ext=$ac_ext
13335ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013336{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13337echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013338if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13339 echo $ECHO_N "(cached) $ECHO_C" >&6
13340else
13341 cat >conftest.$ac_ext <<_ACEOF
13342 program main
13343#ifndef __GNUC__
13344 choke me
13345#endif
13346
13347 end
13348_ACEOF
13349rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013350if { (ac_try="$ac_compile"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
13370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest.$ac_objext'
13374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
13380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013383 ac_compiler_gnu=yes
13384else
13385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013386sed 's/^/| /' conftest.$ac_ext >&5
13387
Reid Spencera773bd52006-08-04 18:18:08 +000013388 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013389fi
Reid Spencera773bd52006-08-04 18:18:08 +000013390
13391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013392ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13393
13394fi
Reid Spencera773bd52006-08-04 18:18:08 +000013395{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13396echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013397ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013398ac_test_FFLAGS=${FFLAGS+set}
13399ac_save_FFLAGS=$FFLAGS
13400FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013401{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13402echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013403if test "${ac_cv_prog_f77_g+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13405else
13406 FFLAGS=-g
13407cat >conftest.$ac_ext <<_ACEOF
13408 program main
13409
13410 end
13411_ACEOF
13412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013413if { (ac_try="$ac_compile"
13414case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417esac
13418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000013425 (exit $ac_status); } &&
13426 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13427 { (case "(($ac_try" in
13428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13429 *) ac_try_echo=$ac_try;;
13430esac
13431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13432 (eval "$ac_try") 2>&5
13433 ac_status=$?
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try='test -s conftest.$ac_objext'
13437 { (case "(($ac_try" in
13438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439 *) ac_try_echo=$ac_try;;
13440esac
13441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442 (eval "$ac_try") 2>&5
13443 ac_status=$?
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013446 ac_cv_prog_f77_g=yes
13447else
13448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013449sed 's/^/| /' conftest.$ac_ext >&5
13450
Reid Spencera773bd52006-08-04 18:18:08 +000013451 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013452fi
Reid Spencera773bd52006-08-04 18:18:08 +000013453
13454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013455
13456fi
Reid Spencera773bd52006-08-04 18:18:08 +000013457{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13458echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013459if test "$ac_test_FFLAGS" = set; then
13460 FFLAGS=$ac_save_FFLAGS
13461elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013462 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013463 FFLAGS="-g -O2"
13464 else
13465 FFLAGS="-g"
13466 fi
13467else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013468 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013469 FFLAGS="-O2"
13470 else
13471 FFLAGS=
13472 fi
13473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013474
13475G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013476ac_ext=c
13477ac_cpp='$CPP $CPPFLAGS'
13478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13480ac_compiler_gnu=$ac_cv_c_compiler_gnu
13481
13482
13483
13484# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13485
13486# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013487{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13488echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013489if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13491else
13492 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013493 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013494
13495 case $build_os in
13496 msdosdjgpp*)
13497 # On DJGPP, this test can blow up pretty badly due to problems in libc
13498 # (any single argument exceeding 2000 bytes causes a buffer overrun
13499 # during glob expansion). Even if it were fixed, the result of this
13500 # check would be larger than it should be.
13501 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13502 ;;
13503
13504 gnu*)
13505 # Under GNU Hurd, this test is not required because there is
13506 # no limit to the length of command line arguments.
13507 # Libtool will interpret -1 as no limit whatsoever
13508 lt_cv_sys_max_cmd_len=-1;
13509 ;;
13510
13511 cygwin* | mingw*)
13512 # On Win9x/ME, this test blows up -- it succeeds, but takes
13513 # about 5 minutes as the teststring grows exponentially.
13514 # Worse, since 9x/ME are not pre-emptively multitasking,
13515 # you end up with a "frozen" computer, even though with patience
13516 # the test eventually succeeds (with a max line length of 256k).
13517 # Instead, let's just punt: use the minimum linelength reported by
13518 # all of the supported platforms: 8192 (on NT/2K/XP).
13519 lt_cv_sys_max_cmd_len=8192;
13520 ;;
13521
Reid Spencer2706f8c2004-09-19 23:53:36 +000013522 amigaos*)
13523 # On AmigaOS with pdksh, this test takes hours, literally.
13524 # So we just punt and use a minimum line length of 8192.
13525 lt_cv_sys_max_cmd_len=8192;
13526 ;;
13527
Reid Spencera773bd52006-08-04 18:18:08 +000013528 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013529 # This has been around since 386BSD, at least. Likely further.
13530 if test -x /sbin/sysctl; then
13531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13532 elif test -x /usr/sbin/sysctl; then
13533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13534 else
Reid Spencera773bd52006-08-04 18:18:08 +000013535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013536 fi
13537 # And add a safety zone
13538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013540 ;;
13541
Reid Spencera773bd52006-08-04 18:18:08 +000013542 interix*)
13543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13544 lt_cv_sys_max_cmd_len=196608
13545 ;;
13546
13547 osf*)
13548 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13549 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13550 # nice to cause kernel panics so lets avoid the loop below.
13551 # First set a reasonable default.
13552 lt_cv_sys_max_cmd_len=16384
13553 #
13554 if test -x /sbin/sysconfig; then
13555 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13556 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13557 esac
13558 fi
13559 ;;
13560 sco3.2v5*)
13561 lt_cv_sys_max_cmd_len=102400
13562 ;;
13563 sysv5* | sco5v6* | sysv4.2uw2*)
13564 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13565 if test -n "$kargmax"; then
13566 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13567 else
13568 lt_cv_sys_max_cmd_len=32768
13569 fi
13570 ;;
13571 *)
John Criswell47fdd832003-07-14 16:52:07 +000013572 # If test is not a shell built-in, we'll probably end up computing a
13573 # maximum length that is only half of the actual maximum length, but
13574 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13577 = "XX$teststring") >/dev/null 2>&1 &&
13578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013579 lt_cv_sys_max_cmd_len=$new_result &&
13580 test $i != 17 # 1/2 MB should be enough
13581 do
13582 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013583 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013584 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013585 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013586 # Add a significant safety factor because C++ compilers can tack on massive
13587 # amounts of additional arguments before passing them to the linker.
13588 # It appears as though 1/2 is a usable value.
13589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13590 ;;
13591 esac
13592
13593fi
13594
13595if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013596 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13597echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013598else
Reid Spencera773bd52006-08-04 18:18:08 +000013599 { echo "$as_me:$LINENO: result: none" >&5
13600echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013601fi
13602
13603
13604
13605
13606# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013607{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13608echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013609if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13611else
13612
13613# These are sane defaults that work on at least a few old systems.
13614# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13615
13616# Character class describing NM global symbol codes.
13617symcode='[BCDEGRST]'
13618
13619# Regexp to match symbols that can be accessed directly from C.
13620sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13621
John Criswell47fdd832003-07-14 16:52:07 +000013622# Transform an extracted symbol line into a proper C declaration
13623lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13624
13625# Transform an extracted symbol line into symbol name and symbol address
13626lt_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'"
13627
13628# Define system-specific variables.
13629case $host_os in
13630aix*)
13631 symcode='[BCDT]'
13632 ;;
13633cygwin* | mingw* | pw32*)
13634 symcode='[ABCDGISTW]'
13635 ;;
13636hpux*) # Its linker distinguishes data from code symbols
13637 if test "$host_cpu" = ia64; then
13638 symcode='[ABCDEGRST]'
13639 fi
13640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13641 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'"
13642 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013643linux*)
13644 if test "$host_cpu" = ia64; then
13645 symcode='[ABCDGIRSTW]'
13646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13647 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'"
13648 fi
13649 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013650irix* | nonstopux*)
13651 symcode='[BCDEGRST]'
13652 ;;
13653osf*)
13654 symcode='[BCDEGQRST]'
13655 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013656solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013657 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013658 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013659sco3.2v5*)
13660 symcode='[DT]'
13661 ;;
13662sysv4.2uw2*)
13663 symcode='[DT]'
13664 ;;
13665sysv5* | sco5v6* | unixware* | OpenUNIX*)
13666 symcode='[ABDT]'
13667 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013668sysv4)
13669 symcode='[DFNSTU]'
13670 ;;
13671esac
13672
13673# Handle CRLF in mingw tool chain
13674opt_cr=
13675case $build_os in
13676mingw*)
13677 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13678 ;;
13679esac
13680
13681# If we're using GNU nm, then use its standard symbol codes.
13682case `$NM -V 2>&1` in
13683*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013684 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013685esac
13686
13687# Try without a prefix undercore, then with it.
13688for ac_symprfx in "" "_"; do
13689
Reid Spencera773bd52006-08-04 18:18:08 +000013690 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13691 symxfrm="\\1 $ac_symprfx\\2 \\2"
13692
John Criswell47fdd832003-07-14 16:52:07 +000013693 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013694 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 +000013695
13696 # Check to see that the pipe works correctly.
13697 pipe_works=no
13698
13699 rm -f conftest*
13700 cat > conftest.$ac_ext <<EOF
13701#ifdef __cplusplus
13702extern "C" {
13703#endif
13704char nm_test_var;
13705void nm_test_func(){}
13706#ifdef __cplusplus
13707}
13708#endif
13709int main(){nm_test_var='a';nm_test_func();return(0);}
13710EOF
13711
13712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13713 (eval $ac_compile) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; then
13717 # Now try to grab the symbols.
13718 nlist=conftest.nm
13719 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13720 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13721 ac_status=$?
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } && test -s "$nlist"; then
13724 # Try sorting and uniquifying the output.
13725 if sort "$nlist" | uniq > "$nlist"T; then
13726 mv -f "$nlist"T "$nlist"
13727 else
13728 rm -f "$nlist"T
13729 fi
13730
13731 # Make sure that we snagged all the symbols we need.
13732 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13733 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13734 cat <<EOF > conftest.$ac_ext
13735#ifdef __cplusplus
13736extern "C" {
13737#endif
13738
13739EOF
13740 # Now generate the symbol file.
13741 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13742
13743 cat <<EOF >> conftest.$ac_ext
13744#if defined (__STDC__) && __STDC__
13745# define lt_ptr_t void *
13746#else
13747# define lt_ptr_t char *
13748# define const
13749#endif
13750
13751/* The mapping between symbol names and symbols. */
13752const struct {
13753 const char *name;
13754 lt_ptr_t address;
13755}
13756lt_preloaded_symbols[] =
13757{
13758EOF
13759 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13760 cat <<\EOF >> conftest.$ac_ext
13761 {0, (lt_ptr_t) 0}
13762};
13763
13764#ifdef __cplusplus
13765}
13766#endif
13767EOF
13768 # Now try linking the two files.
13769 mv conftest.$ac_objext conftstm.$ac_objext
13770 lt_save_LIBS="$LIBS"
13771 lt_save_CFLAGS="$CFLAGS"
13772 LIBS="conftstm.$ac_objext"
13773 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13775 (eval $ac_link) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13779 pipe_works=yes
13780 fi
13781 LIBS="$lt_save_LIBS"
13782 CFLAGS="$lt_save_CFLAGS"
13783 else
13784 echo "cannot find nm_test_func in $nlist" >&5
13785 fi
13786 else
13787 echo "cannot find nm_test_var in $nlist" >&5
13788 fi
13789 else
13790 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13791 fi
13792 else
13793 echo "$progname: failed program was:" >&5
13794 cat conftest.$ac_ext >&5
13795 fi
13796 rm -f conftest* conftst*
13797
13798 # Do not use the global_symbol_pipe unless it works.
13799 if test "$pipe_works" = yes; then
13800 break
13801 else
13802 lt_cv_sys_global_symbol_pipe=
13803 fi
13804done
13805
13806fi
13807
13808if test -z "$lt_cv_sys_global_symbol_pipe"; then
13809 lt_cv_sys_global_symbol_to_cdecl=
13810fi
13811if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013812 { echo "$as_me:$LINENO: result: failed" >&5
13813echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013814else
Reid Spencera773bd52006-08-04 18:18:08 +000013815 { echo "$as_me:$LINENO: result: ok" >&5
13816echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013817fi
13818
Reid Spencera773bd52006-08-04 18:18:08 +000013819{ echo "$as_me:$LINENO: checking for objdir" >&5
13820echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013821if test "${lt_cv_objdir+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823else
13824 rm -f .libs 2>/dev/null
13825mkdir .libs 2>/dev/null
13826if test -d .libs; then
13827 lt_cv_objdir=.libs
13828else
13829 # MS-DOS does not allow filenames that begin with a dot.
13830 lt_cv_objdir=_libs
13831fi
13832rmdir .libs 2>/dev/null
13833fi
Reid Spencera773bd52006-08-04 18:18:08 +000013834{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13835echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013836objdir=$lt_cv_objdir
13837
13838
13839
13840
13841
13842case $host_os in
13843aix3*)
13844 # AIX sometimes has problems with the GCC collect2 program. For some
13845 # reason, if we set the COLLECT_NAMES environment variable, the problems
13846 # vanish in a puff of smoke.
13847 if test "X${COLLECT_NAMES+set}" != Xset; then
13848 COLLECT_NAMES=
13849 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013850 fi
13851 ;;
13852esac
13853
John Criswell47fdd832003-07-14 16:52:07 +000013854# Sed substitution that helps us do robust quoting. It backslashifies
13855# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013856Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013857sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13858
13859# Same as above, but do not quote variable references.
13860double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13861
13862# Sed substitution to delay expansion of an escaped shell variable in a
13863# double_quote_subst'ed string.
13864delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13865
13866# Sed substitution to avoid accidental globbing in evaled expressions
13867no_glob_subst='s/\*/\\\*/g'
13868
13869# Constants:
13870rm="rm -f"
13871
13872# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013873default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013874can_build_shared=yes
13875
Reid Spencera773bd52006-08-04 18:18:08 +000013876# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013877# which needs '.lib').
13878libext=a
13879ltmain="$ac_aux_dir/ltmain.sh"
13880ofile="$default_ofile"
13881with_gnu_ld="$lt_cv_prog_gnu_ld"
13882
13883if test -n "$ac_tool_prefix"; then
13884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13885set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013888if test "${ac_cv_prog_AR+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
13891 if test -n "$AR"; then
13892 ac_cv_prog_AR="$AR" # Let the user override the test.
13893else
13894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13895for as_dir in $PATH
13896do
13897 IFS=$as_save_IFS
13898 test -z "$as_dir" && as_dir=.
13899 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013900 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 +000013901 ac_cv_prog_AR="${ac_tool_prefix}ar"
13902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13903 break 2
13904 fi
13905done
13906done
Reid Spencera773bd52006-08-04 18:18:08 +000013907IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013908
13909fi
13910fi
13911AR=$ac_cv_prog_AR
13912if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013913 { echo "$as_me:$LINENO: result: $AR" >&5
13914echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013915else
Reid Spencera773bd52006-08-04 18:18:08 +000013916 { echo "$as_me:$LINENO: result: no" >&5
13917echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013918fi
13919
Reid Spencera773bd52006-08-04 18:18:08 +000013920
John Criswell47fdd832003-07-14 16:52:07 +000013921fi
13922if test -z "$ac_cv_prog_AR"; then
13923 ac_ct_AR=$AR
13924 # Extract the first word of "ar", so it can be a program name with args.
13925set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930else
13931 if test -n "$ac_ct_AR"; then
13932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13933else
13934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13935for as_dir in $PATH
13936do
13937 IFS=$as_save_IFS
13938 test -z "$as_dir" && as_dir=.
13939 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013940 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 +000013941 ac_cv_prog_ac_ct_AR="ar"
13942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13943 break 2
13944 fi
13945done
13946done
Reid Spencera773bd52006-08-04 18:18:08 +000013947IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013948
John Criswell47fdd832003-07-14 16:52:07 +000013949fi
13950fi
13951ac_ct_AR=$ac_cv_prog_ac_ct_AR
13952if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013953 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13954echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013955else
Reid Spencera773bd52006-08-04 18:18:08 +000013956 { echo "$as_me:$LINENO: result: no" >&5
13957echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013958fi
13959
Reid Spencera773bd52006-08-04 18:18:08 +000013960 if test "x$ac_ct_AR" = x; then
13961 AR="false"
13962 else
13963 case $cross_compiling:$ac_tool_warned in
13964yes:)
13965{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13966whose name does not start with the host triplet. If you think this
13967configuration is useful to you, please write to autoconf@gnu.org." >&5
13968echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13969whose name does not start with the host triplet. If you think this
13970configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13971ac_tool_warned=yes ;;
13972esac
13973 AR=$ac_ct_AR
13974 fi
John Criswell47fdd832003-07-14 16:52:07 +000013975else
13976 AR="$ac_cv_prog_AR"
13977fi
13978
John Criswell7a73b802003-06-30 21:59:07 +000013979if test -n "$ac_tool_prefix"; then
13980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013984if test "${ac_cv_prog_RANLIB+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987 if test -n "$RANLIB"; then
13988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13989else
13990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13991for as_dir in $PATH
13992do
13993 IFS=$as_save_IFS
13994 test -z "$as_dir" && as_dir=.
13995 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000013996 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 +000013997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13999 break 2
14000 fi
14001done
14002done
Reid Spencera773bd52006-08-04 18:18:08 +000014003IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014004
14005fi
14006fi
14007RANLIB=$ac_cv_prog_RANLIB
14008if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14010echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014011else
Reid Spencera773bd52006-08-04 18:18:08 +000014012 { echo "$as_me:$LINENO: result: no" >&5
14013echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014014fi
14015
Reid Spencera773bd52006-08-04 18:18:08 +000014016
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
14018if test -z "$ac_cv_prog_RANLIB"; then
14019 ac_ct_RANLIB=$RANLIB
14020 # Extract the first word of "ranlib", so it can be a program name with args.
14021set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14026else
14027 if test -n "$ac_ct_RANLIB"; then
14028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14029else
14030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14031for as_dir in $PATH
14032do
14033 IFS=$as_save_IFS
14034 test -z "$as_dir" && as_dir=.
14035 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014036 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 +000014037 ac_cv_prog_ac_ct_RANLIB="ranlib"
14038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14039 break 2
14040 fi
14041done
14042done
Reid Spencera773bd52006-08-04 18:18:08 +000014043IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014044
John Criswell7a73b802003-06-30 21:59:07 +000014045fi
14046fi
14047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14048if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014049 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14050echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014051else
Reid Spencera773bd52006-08-04 18:18:08 +000014052 { echo "$as_me:$LINENO: result: no" >&5
14053echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014054fi
14055
Reid Spencera773bd52006-08-04 18:18:08 +000014056 if test "x$ac_ct_RANLIB" = x; then
14057 RANLIB=":"
14058 else
14059 case $cross_compiling:$ac_tool_warned in
14060yes:)
14061{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14062whose name does not start with the host triplet. If you think this
14063configuration is useful to you, please write to autoconf@gnu.org." >&5
14064echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14065whose name does not start with the host triplet. If you think this
14066configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14067ac_tool_warned=yes ;;
14068esac
14069 RANLIB=$ac_ct_RANLIB
14070 fi
John Criswell7a73b802003-06-30 21:59:07 +000014071else
14072 RANLIB="$ac_cv_prog_RANLIB"
14073fi
14074
14075if test -n "$ac_tool_prefix"; then
14076 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14077set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014080if test "${ac_cv_prog_STRIP+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 if test -n "$STRIP"; then
14084 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14085else
14086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14087for as_dir in $PATH
14088do
14089 IFS=$as_save_IFS
14090 test -z "$as_dir" && as_dir=.
14091 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014092 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 +000014093 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14095 break 2
14096 fi
14097done
14098done
Reid Spencera773bd52006-08-04 18:18:08 +000014099IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014100
14101fi
14102fi
14103STRIP=$ac_cv_prog_STRIP
14104if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014105 { echo "$as_me:$LINENO: result: $STRIP" >&5
14106echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014107else
Reid Spencera773bd52006-08-04 18:18:08 +000014108 { echo "$as_me:$LINENO: result: no" >&5
14109echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014110fi
14111
Reid Spencera773bd52006-08-04 18:18:08 +000014112
John Criswell7a73b802003-06-30 21:59:07 +000014113fi
14114if test -z "$ac_cv_prog_STRIP"; then
14115 ac_ct_STRIP=$STRIP
14116 # Extract the first word of "strip", so it can be a program name with args.
14117set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014118{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014120if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14121 echo $ECHO_N "(cached) $ECHO_C" >&6
14122else
14123 if test -n "$ac_ct_STRIP"; then
14124 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14125else
14126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14127for as_dir in $PATH
14128do
14129 IFS=$as_save_IFS
14130 test -z "$as_dir" && as_dir=.
14131 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000014132 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 +000014133 ac_cv_prog_ac_ct_STRIP="strip"
14134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14135 break 2
14136 fi
14137done
14138done
Reid Spencera773bd52006-08-04 18:18:08 +000014139IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014140
John Criswell7a73b802003-06-30 21:59:07 +000014141fi
14142fi
14143ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14144if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014145 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14146echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014147else
Reid Spencera773bd52006-08-04 18:18:08 +000014148 { echo "$as_me:$LINENO: result: no" >&5
14149echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014150fi
14151
Reid Spencera773bd52006-08-04 18:18:08 +000014152 if test "x$ac_ct_STRIP" = x; then
14153 STRIP=":"
14154 else
14155 case $cross_compiling:$ac_tool_warned in
14156yes:)
14157{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14158whose name does not start with the host triplet. If you think this
14159configuration is useful to you, please write to autoconf@gnu.org." >&5
14160echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14161whose name does not start with the host triplet. If you think this
14162configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14163ac_tool_warned=yes ;;
14164esac
14165 STRIP=$ac_ct_STRIP
14166 fi
John Criswell7a73b802003-06-30 21:59:07 +000014167else
14168 STRIP="$ac_cv_prog_STRIP"
14169fi
14170
14171
John Criswell7a73b802003-06-30 21:59:07 +000014172old_CC="$CC"
14173old_CFLAGS="$CFLAGS"
14174
14175# Set sane defaults for various variables
14176test -z "$AR" && AR=ar
14177test -z "$AR_FLAGS" && AR_FLAGS=cru
14178test -z "$AS" && AS=as
14179test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014180test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014181test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014182test -z "$DLLTOOL" && DLLTOOL=dlltool
14183test -z "$LD" && LD=ld
14184test -z "$LN_S" && LN_S="ln -s"
14185test -z "$MAGIC_CMD" && MAGIC_CMD=file
14186test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014187test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014188test -z "$OBJDUMP" && OBJDUMP=objdump
14189test -z "$RANLIB" && RANLIB=:
14190test -z "$STRIP" && STRIP=:
14191test -z "$ac_objext" && ac_objext=o
14192
John Criswell7a73b802003-06-30 21:59:07 +000014193# Determine commands to create old-style static archives.
14194old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14195old_postinstall_cmds='chmod 644 $oldlib'
14196old_postuninstall_cmds=
14197
14198if test -n "$RANLIB"; then
14199 case $host_os in
14200 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014202 ;;
14203 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014205 ;;
14206 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014208fi
14209
Reid Spencera773bd52006-08-04 18:18:08 +000014210for cc_temp in $compiler""; do
14211 case $cc_temp in
14212 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14213 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14214 \-*) ;;
14215 *) break;;
14216 esac
14217done
14218cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14219
Reid Spencer2706f8c2004-09-19 23:53:36 +000014220
John Criswell47fdd832003-07-14 16:52:07 +000014221# Only perform the check for file, if the check method requires it
14222case $deplibs_check_method in
14223file_magic*)
14224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014225 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14226echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014227if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014229else
John Criswell47fdd832003-07-14 16:52:07 +000014230 case $MAGIC_CMD in
14231[\\/*] | ?:[\\/]*)
14232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14233 ;;
14234*)
14235 lt_save_MAGIC_CMD="$MAGIC_CMD"
14236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14238 for ac_dir in $ac_dummy; do
14239 IFS="$lt_save_ifs"
14240 test -z "$ac_dir" && ac_dir=.
14241 if test -f $ac_dir/${ac_tool_prefix}file; then
14242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14243 if test -n "$file_magic_test_file"; then
14244 case $deplibs_check_method in
14245 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14249 $EGREP "$file_magic_regex" > /dev/null; then
14250 :
14251 else
14252 cat <<EOF 1>&2
14253
14254*** Warning: the command libtool uses to detect shared libraries,
14255*** $file_magic_cmd, produces output that libtool cannot recognize.
14256*** The result is that libtool may fail to recognize shared libraries
14257*** as such. This will affect the creation of libtool libraries that
14258*** depend on shared libraries, but programs linked with such libtool
14259*** libraries will work regardless of this problem. Nevertheless, you
14260*** may want to report the problem to your system manager and/or to
14261*** bug-libtool@gnu.org
14262
14263EOF
14264 fi ;;
14265 esac
14266 fi
14267 break
14268 fi
14269 done
14270 IFS="$lt_save_ifs"
14271 MAGIC_CMD="$lt_save_MAGIC_CMD"
14272 ;;
14273esac
John Criswell7a73b802003-06-30 21:59:07 +000014274fi
John Criswell7a73b802003-06-30 21:59:07 +000014275
John Criswell47fdd832003-07-14 16:52:07 +000014276MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14277if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014278 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14279echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014280else
Reid Spencera773bd52006-08-04 18:18:08 +000014281 { echo "$as_me:$LINENO: result: no" >&5
14282echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014283fi
John Criswell7a73b802003-06-30 21:59:07 +000014284
John Criswell47fdd832003-07-14 16:52:07 +000014285if test -z "$lt_cv_path_MAGIC_CMD"; then
14286 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014287 { echo "$as_me:$LINENO: checking for file" >&5
14288echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014289if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14291else
14292 case $MAGIC_CMD in
14293[\\/*] | ?:[\\/]*)
14294 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14295 ;;
14296*)
14297 lt_save_MAGIC_CMD="$MAGIC_CMD"
14298 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14299 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14300 for ac_dir in $ac_dummy; do
14301 IFS="$lt_save_ifs"
14302 test -z "$ac_dir" && ac_dir=.
14303 if test -f $ac_dir/file; then
14304 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14305 if test -n "$file_magic_test_file"; then
14306 case $deplibs_check_method in
14307 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014308 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014309 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14310 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14311 $EGREP "$file_magic_regex" > /dev/null; then
14312 :
14313 else
14314 cat <<EOF 1>&2
14315
14316*** Warning: the command libtool uses to detect shared libraries,
14317*** $file_magic_cmd, produces output that libtool cannot recognize.
14318*** The result is that libtool may fail to recognize shared libraries
14319*** as such. This will affect the creation of libtool libraries that
14320*** depend on shared libraries, but programs linked with such libtool
14321*** libraries will work regardless of this problem. Nevertheless, you
14322*** may want to report the problem to your system manager and/or to
14323*** bug-libtool@gnu.org
14324
14325EOF
14326 fi ;;
14327 esac
14328 fi
14329 break
14330 fi
14331 done
14332 IFS="$lt_save_ifs"
14333 MAGIC_CMD="$lt_save_MAGIC_CMD"
14334 ;;
14335esac
14336fi
14337
14338MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14339if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014340 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14341echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014342else
Reid Spencera773bd52006-08-04 18:18:08 +000014343 { echo "$as_me:$LINENO: result: no" >&5
14344echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014345fi
14346
14347 else
14348 MAGIC_CMD=:
14349 fi
14350fi
14351
14352 fi
14353 ;;
14354esac
14355
Reid Spencer17795972004-11-18 09:47:37 +000014356enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014357enable_win32_dll=no
14358
Reid Spencera773bd52006-08-04 18:18:08 +000014359# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014360if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014361 enableval=$enable_libtool_lock;
14362fi
John Criswell47fdd832003-07-14 16:52:07 +000014363
John Criswell47fdd832003-07-14 16:52:07 +000014364test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14365
John Criswell7a73b802003-06-30 21:59:07 +000014366
Reid Spencera773bd52006-08-04 18:18:08 +000014367# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014368if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014369 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014370else
14371 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014372fi
14373
John Criswell7a73b802003-06-30 21:59:07 +000014374test -z "$pic_mode" && pic_mode=default
14375
John Criswell47fdd832003-07-14 16:52:07 +000014376# Use C for the default configuration in the libtool script
14377tagname=
14378lt_save_CC="$CC"
14379ac_ext=c
14380ac_cpp='$CPP $CPPFLAGS'
14381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383ac_compiler_gnu=$ac_cv_c_compiler_gnu
14384
14385
14386# Source file extension for C test sources.
14387ac_ext=c
14388
14389# Object file extension for compiled C test sources.
14390objext=o
14391objext=$objext
14392
14393# Code to be used in simple compile tests
14394lt_simple_compile_test_code="int some_variable = 0;\n"
14395
14396# Code to be used in simple link tests
14397lt_simple_link_test_code='int main(){return(0);}\n'
14398
14399
14400# If no C compiler was specified, use CC.
14401LTCC=${LTCC-"$CC"}
14402
Reid Spencera773bd52006-08-04 18:18:08 +000014403# If no C compiler flags were specified, use CFLAGS.
14404LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14405
John Criswell47fdd832003-07-14 16:52:07 +000014406# Allow CC to be a program name with arguments.
14407compiler=$CC
14408
14409
Reid Spencera773bd52006-08-04 18:18:08 +000014410# save warnings/boilerplate of simple test code
14411ac_outfile=conftest.$ac_objext
14412printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14413eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14414_lt_compiler_boilerplate=`cat conftest.err`
14415$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014416
Reid Spencera773bd52006-08-04 18:18:08 +000014417ac_outfile=conftest.$ac_objext
14418printf "$lt_simple_link_test_code" >conftest.$ac_ext
14419eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14420_lt_linker_boilerplate=`cat conftest.err`
14421$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014422
14423
John Criswell47fdd832003-07-14 16:52:07 +000014424
14425lt_prog_compiler_no_builtin_flag=
14426
14427if test "$GCC" = yes; then
14428 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14429
Reid Spencer2706f8c2004-09-19 23:53:36 +000014430
Reid Spencera773bd52006-08-04 18:18:08 +000014431{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014433if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435else
14436 lt_cv_prog_compiler_rtti_exceptions=no
14437 ac_outfile=conftest.$ac_objext
14438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14439 lt_compiler_flag="-fno-rtti -fno-exceptions"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 # The option is referenced via a variable to avoid confusing sed.
14445 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000014449 (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014450 (eval "$lt_compile" 2>conftest.err)
14451 ac_status=$?
14452 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000014453 echo "$as_me:14453: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014454 if (exit $ac_status) && test -s "$ac_outfile"; then
14455 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014456 # So say no if there are warnings other than the usual output.
14457 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014460 lt_cv_prog_compiler_rtti_exceptions=yes
14461 fi
14462 fi
14463 $rm conftest*
14464
14465fi
Reid Spencera773bd52006-08-04 18:18:08 +000014466{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014468
14469if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14471else
14472 :
14473fi
14474
14475fi
14476
14477lt_prog_compiler_wl=
14478lt_prog_compiler_pic=
14479lt_prog_compiler_static=
14480
Reid Spencera773bd52006-08-04 18:18:08 +000014481{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14482echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014483
14484 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014485 lt_prog_compiler_wl='-Wl,'
14486 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014487
14488 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014489 aix*)
14490 # All AIX code is PIC.
14491 if test "$host_cpu" = ia64; then
14492 # AIX 5 now supports IA64 processor
14493 lt_prog_compiler_static='-Bstatic'
14494 fi
John Criswell7a73b802003-06-30 21:59:07 +000014495 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014496
John Criswell7a73b802003-06-30 21:59:07 +000014497 amigaos*)
14498 # FIXME: we need at least 68020 code to build shared libraries, but
14499 # adding the `-m68020' flag to GCC prevents building anything better,
14500 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014501 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014502 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014503
14504 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014505 # PIC is the default for these OSes.
14506 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014507
14508 mingw* | pw32* | os2*)
14509 # This hack is so that the source file can tell whether it is being
14510 # built for inclusion in a dll (and should export symbols for example).
14511 lt_prog_compiler_pic='-DDLL_EXPORT'
14512 ;;
14513
John Criswell7a73b802003-06-30 21:59:07 +000014514 darwin* | rhapsody*)
14515 # PIC is the default on this platform
14516 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014517 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014518 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014519
Reid Spencera773bd52006-08-04 18:18:08 +000014520 interix3*)
14521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14522 # Instead, we relocate shared libraries at runtime.
14523 ;;
14524
John Criswell47fdd832003-07-14 16:52:07 +000014525 msdosdjgpp*)
14526 # Just because we use GCC doesn't mean we suddenly get shared libraries
14527 # on systems that don't support them.
14528 lt_prog_compiler_can_build_shared=no
14529 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014530 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014531
John Criswell7a73b802003-06-30 21:59:07 +000014532 sysv4*MP*)
14533 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014534 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014535 fi
14536 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014537
14538 hpux*)
14539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14540 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014541 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014542 hppa*64*|ia64*)
14543 # +Z the default
14544 ;;
14545 *)
14546 lt_prog_compiler_pic='-fPIC'
14547 ;;
14548 esac
14549 ;;
14550
John Criswell7a73b802003-06-30 21:59:07 +000014551 *)
John Criswell47fdd832003-07-14 16:52:07 +000014552 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014553 ;;
14554 esac
14555 else
John Criswell47fdd832003-07-14 16:52:07 +000014556 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014557 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014558 aix*)
14559 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014560 if test "$host_cpu" = ia64; then
14561 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014562 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014563 else
John Criswell47fdd832003-07-14 16:52:07 +000014564 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014565 fi
14566 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014567 darwin*)
14568 # PIC is the default on this platform
14569 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014570 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014571 xlc*)
14572 lt_prog_compiler_pic='-qnocommon'
14573 lt_prog_compiler_wl='-Wl,'
14574 ;;
14575 esac
14576 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014577
John Criswell47fdd832003-07-14 16:52:07 +000014578 mingw* | pw32* | os2*)
14579 # This hack is so that the source file can tell whether it is being
14580 # built for inclusion in a dll (and should export symbols for example).
14581 lt_prog_compiler_pic='-DDLL_EXPORT'
14582 ;;
14583
John Criswell7a73b802003-06-30 21:59:07 +000014584 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014585 lt_prog_compiler_wl='-Wl,'
14586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14587 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014588 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014589 hppa*64*|ia64*)
14590 # +Z the default
14591 ;;
14592 *)
14593 lt_prog_compiler_pic='+Z'
14594 ;;
14595 esac
14596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14597 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014598 ;;
14599
John Criswell47fdd832003-07-14 16:52:07 +000014600 irix5* | irix6* | nonstopux*)
14601 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014602 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014603 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014604 ;;
14605
14606 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014607 lt_prog_compiler_pic='-KPIC'
14608 lt_prog_compiler_static='-Bstatic'
14609 ;;
14610
14611 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014612 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014613 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014614 lt_prog_compiler_wl='-Wl,'
14615 lt_prog_compiler_pic='-KPIC'
14616 lt_prog_compiler_static='-static'
14617 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014618 pgcc* | pgf77* | pgf90* | pgf95*)
14619 # Portland Group compilers (*not* the Pentium gcc compiler,
14620 # which looks to be a dead project)
14621 lt_prog_compiler_wl='-Wl,'
14622 lt_prog_compiler_pic='-fpic'
14623 lt_prog_compiler_static='-Bstatic'
14624 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014625 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014626 lt_prog_compiler_wl='-Wl,'
14627 # All Alpha code is PIC.
14628 lt_prog_compiler_static='-non_shared'
14629 ;;
14630 esac
John Criswell7a73b802003-06-30 21:59:07 +000014631 ;;
14632
14633 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014634 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014635 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014636 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014637 ;;
14638
John Criswell7a73b802003-06-30 21:59:07 +000014639 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014640 lt_prog_compiler_pic='-KPIC'
14641 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014642 case $cc_basename in
14643 f77* | f90* | f95*)
14644 lt_prog_compiler_wl='-Qoption ld ';;
14645 *)
14646 lt_prog_compiler_wl='-Wl,';;
14647 esac
John Criswell7a73b802003-06-30 21:59:07 +000014648 ;;
14649
14650 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014651 lt_prog_compiler_wl='-Qoption ld '
14652 lt_prog_compiler_pic='-PIC'
14653 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014654 ;;
14655
Reid Spencera773bd52006-08-04 18:18:08 +000014656 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014657 lt_prog_compiler_wl='-Wl,'
14658 lt_prog_compiler_pic='-KPIC'
14659 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014660 ;;
14661
14662 sysv4*MP*)
14663 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014664 lt_prog_compiler_pic='-Kconform_pic'
14665 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014666 fi
14667 ;;
14668
Reid Spencera773bd52006-08-04 18:18:08 +000014669 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14670 lt_prog_compiler_wl='-Wl,'
14671 lt_prog_compiler_pic='-KPIC'
14672 lt_prog_compiler_static='-Bstatic'
14673 ;;
14674
14675 unicos*)
14676 lt_prog_compiler_wl='-Wl,'
14677 lt_prog_compiler_can_build_shared=no
14678 ;;
14679
John Criswell47fdd832003-07-14 16:52:07 +000014680 uts4*)
14681 lt_prog_compiler_pic='-pic'
14682 lt_prog_compiler_static='-Bstatic'
14683 ;;
14684
John Criswell7a73b802003-06-30 21:59:07 +000014685 *)
John Criswell47fdd832003-07-14 16:52:07 +000014686 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014687 ;;
14688 esac
14689 fi
14690
Reid Spencera773bd52006-08-04 18:18:08 +000014691{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14692echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014693
John Criswell47fdd832003-07-14 16:52:07 +000014694#
14695# Check to make sure the PIC flag actually works.
14696#
14697if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014698
Reid Spencera773bd52006-08-04 18:18:08 +000014699{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14700echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014701if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
John Criswell47fdd832003-07-14 16:52:07 +000014704 lt_prog_compiler_pic_works=no
14705 ac_outfile=conftest.$ac_objext
14706 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14707 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14708 # Insert the option either (1) after the last *FLAGS variable, or
14709 # (2) before a word containing "conftest.", or (3) at the end.
14710 # Note that $ac_compile itself does not contain backslashes and begins
14711 # with a dollar sign (not a hyphen), so the echo should work correctly.
14712 # The option is referenced via a variable to avoid confusing sed.
14713 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014714 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014715 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14716 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000014717 (eval echo "\"\$as_me:14717: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014718 (eval "$lt_compile" 2>conftest.err)
14719 ac_status=$?
14720 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000014721 echo "$as_me:14721: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014722 if (exit $ac_status) && test -s "$ac_outfile"; then
14723 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014724 # So say no if there are warnings other than the usual output.
14725 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014728 lt_prog_compiler_pic_works=yes
14729 fi
14730 fi
14731 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014732
John Criswell47fdd832003-07-14 16:52:07 +000014733fi
Reid Spencera773bd52006-08-04 18:18:08 +000014734{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14735echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014736
John Criswell47fdd832003-07-14 16:52:07 +000014737if test x"$lt_prog_compiler_pic_works" = xyes; then
14738 case $lt_prog_compiler_pic in
14739 "" | " "*) ;;
14740 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14741 esac
John Criswell7a73b802003-06-30 21:59:07 +000014742else
John Criswell47fdd832003-07-14 16:52:07 +000014743 lt_prog_compiler_pic=
14744 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014745fi
14746
John Criswell7a73b802003-06-30 21:59:07 +000014747fi
Reid Spencera773bd52006-08-04 18:18:08 +000014748case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014749 # For platforms which do not support PIC, -DPIC is meaningless:
14750 *djgpp*)
14751 lt_prog_compiler_pic=
14752 ;;
14753 *)
14754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14755 ;;
14756esac
John Criswell7a73b802003-06-30 21:59:07 +000014757
Reid Spencera773bd52006-08-04 18:18:08 +000014758#
14759# Check to make sure the static flag actually works.
14760#
14761wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14762{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14763echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14764if test "${lt_prog_compiler_static_works+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 lt_prog_compiler_static_works=no
14768 save_LDFLAGS="$LDFLAGS"
14769 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14770 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14771 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14772 # The linker can only warn and ignore the option if not recognized
14773 # So say no if there are warnings
14774 if test -s conftest.err; then
14775 # Append any errors to the config.log.
14776 cat conftest.err 1>&5
14777 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14778 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14779 if diff conftest.exp conftest.er2 >/dev/null; then
14780 lt_prog_compiler_static_works=yes
14781 fi
14782 else
14783 lt_prog_compiler_static_works=yes
14784 fi
14785 fi
14786 $rm conftest*
14787 LDFLAGS="$save_LDFLAGS"
14788
14789fi
14790{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14791echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14792
14793if test x"$lt_prog_compiler_static_works" = xyes; then
14794 :
14795else
14796 lt_prog_compiler_static=
14797fi
14798
14799
14800{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14801echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014802if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014803 echo $ECHO_N "(cached) $ECHO_C" >&6
14804else
John Criswell47fdd832003-07-14 16:52:07 +000014805 lt_cv_prog_compiler_c_o=no
14806 $rm -r conftest 2>/dev/null
14807 mkdir conftest
14808 cd conftest
14809 mkdir out
14810 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014811
John Criswell47fdd832003-07-14 16:52:07 +000014812 lt_compiler_flag="-o out/conftest2.$ac_objext"
14813 # Insert the option either (1) after the last *FLAGS variable, or
14814 # (2) before a word containing "conftest.", or (3) at the end.
14815 # Note that $ac_compile itself does not contain backslashes and begins
14816 # with a dollar sign (not a hyphen), so the echo should work correctly.
14817 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14820 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000014821 (eval echo "\"\$as_me:14821: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014822 (eval "$lt_compile" 2>out/conftest.err)
14823 ac_status=$?
14824 cat out/conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000014825 echo "$as_me:14825: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14827 then
14828 # The compiler can only warn and ignore the option if not recognized
14829 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014830 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014833 lt_cv_prog_compiler_c_o=yes
14834 fi
14835 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014836 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014837 $rm conftest*
14838 # SGI C++ compiler will create directory out/ii_files/ for
14839 # template instantiation
14840 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14841 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014842 cd ..
14843 rmdir conftest
14844 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014845
14846fi
Reid Spencera773bd52006-08-04 18:18:08 +000014847{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14848echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014849
John Criswell7a73b802003-06-30 21:59:07 +000014850
John Criswell7a73b802003-06-30 21:59:07 +000014851hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014852if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014853 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014854 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14855echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014856 hard_links=yes
14857 $rm conftest*
14858 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14859 touch conftest.a
14860 ln conftest.a conftest.b 2>&5 || hard_links=no
14861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014862 { echo "$as_me:$LINENO: result: $hard_links" >&5
14863echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014864 if test "$hard_links" = no; then
14865 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14866echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14867 need_locks=warn
14868 fi
14869else
14870 need_locks=no
14871fi
John Criswell7a73b802003-06-30 21:59:07 +000014872
Reid Spencera773bd52006-08-04 18:18:08 +000014873{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14874echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014875
14876 runpath_var=
14877 allow_undefined_flag=
14878 enable_shared_with_static_runtimes=no
14879 archive_cmds=
14880 archive_expsym_cmds=
14881 old_archive_From_new_cmds=
14882 old_archive_from_expsyms_cmds=
14883 export_dynamic_flag_spec=
14884 whole_archive_flag_spec=
14885 thread_safe_flag_spec=
14886 hardcode_libdir_flag_spec=
14887 hardcode_libdir_flag_spec_ld=
14888 hardcode_libdir_separator=
14889 hardcode_direct=no
14890 hardcode_minus_L=no
14891 hardcode_shlibpath_var=unsupported
14892 link_all_deplibs=unknown
14893 hardcode_automatic=no
14894 module_cmds=
14895 module_expsym_cmds=
14896 always_export_symbols=no
14897 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14898 # include_expsyms should be a list of space-separated symbols to be *always*
14899 # included in the symbol list
14900 include_expsyms=
14901 # exclude_expsyms can be an extended regexp of symbols to exclude
14902 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14903 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14904 # as well as any symbol that contains `d'.
14905 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14907 # platforms (ab)use it in PIC code, but their linkers get confused if
14908 # the symbol is explicitly referenced. Since portable code cannot
14909 # rely on this symbol name, it's probably fine to never include it in
14910 # preloaded symbol tables.
14911 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014912 # Just being paranoid about ensuring that cc_basename is set.
14913 for cc_temp in $compiler""; do
14914 case $cc_temp in
14915 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14916 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14917 \-*) ;;
14918 *) break;;
14919 esac
14920done
14921cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014922
14923 case $host_os in
14924 cygwin* | mingw* | pw32*)
14925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14926 # When not using gcc, we currently assume that we are using
14927 # Microsoft Visual C++.
14928 if test "$GCC" != yes; then
14929 with_gnu_ld=no
14930 fi
14931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014932 interix*)
14933 # we just hope/assume this is gcc and not c89 (= MSVC++)
14934 with_gnu_ld=yes
14935 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014936 openbsd*)
14937 with_gnu_ld=no
14938 ;;
14939 esac
14940
14941 ld_shlibs=yes
14942 if test "$with_gnu_ld" = yes; then
14943 # If archive_cmds runs LD, not CC, wlarc should be empty
14944 wlarc='${wl}'
14945
Reid Spencera773bd52006-08-04 18:18:08 +000014946 # Set some defaults for GNU ld with shared library support. These
14947 # are reset later if shared libraries are not supported. Putting them
14948 # here allows them to be overridden if necessary.
14949 runpath_var=LD_RUN_PATH
14950 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14951 export_dynamic_flag_spec='${wl}--export-dynamic'
14952 # ancient GNU ld didn't support --whole-archive et. al.
14953 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14954 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14955 else
14956 whole_archive_flag_spec=
14957 fi
14958 supports_anon_versioning=no
14959 case `$LD -v 2>/dev/null` in
14960 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14961 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14962 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14963 *\ 2.11.*) ;; # other 2.11 versions
14964 *) supports_anon_versioning=yes ;;
14965 esac
14966
John Criswell47fdd832003-07-14 16:52:07 +000014967 # See if GNU ld supports shared libraries.
14968 case $host_os in
14969 aix3* | aix4* | aix5*)
14970 # On AIX/PPC, the GNU linker is very broken
14971 if test "$host_cpu" != ia64; then
14972 ld_shlibs=no
14973 cat <<EOF 1>&2
14974
14975*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14976*** to be unable to reliably create shared libraries on AIX.
14977*** Therefore, libtool is disabling shared libraries support. If you
14978*** really care for shared libraries, you may want to modify your PATH
14979*** so that a non-GNU linker is found, and then restart.
14980
14981EOF
14982 fi
14983 ;;
14984
14985 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014986 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 +000014987 hardcode_libdir_flag_spec='-L$libdir'
14988 hardcode_minus_L=yes
14989
14990 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14991 # that the semantics of dynamic libraries on AmigaOS, at least up
14992 # to version 4, is to share data among multiple programs linked
14993 # with the same dynamic library. Since this doesn't match the
14994 # behavior of shared libraries on other platforms, we can't use
14995 # them.
14996 ld_shlibs=no
14997 ;;
14998
14999 beos*)
15000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15001 allow_undefined_flag=unsupported
15002 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15003 # support --undefined. This deserves some investigation. FIXME
15004 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15005 else
15006 ld_shlibs=no
15007 fi
15008 ;;
15009
15010 cygwin* | mingw* | pw32*)
15011 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15012 # as there is no search path for DLLs.
15013 hardcode_libdir_flag_spec='-L$libdir'
15014 allow_undefined_flag=unsupported
15015 always_export_symbols=no
15016 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015017 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 +000015018
15019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015020 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 +000015021 # If the export-symbols file already is a .def file (1st line
15022 # is EXPORTS), use it as is; otherwise, prepend...
15023 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15024 cp $export_symbols $output_objdir/$soname.def;
15025 else
15026 echo EXPORTS > $output_objdir/$soname.def;
15027 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015028 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015029 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15030 else
15031 ld_shlibs=no
15032 fi
15033 ;;
15034
15035 interix3*)
15036 hardcode_direct=no
15037 hardcode_shlibpath_var=no
15038 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15039 export_dynamic_flag_spec='${wl}-E'
15040 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15041 # Instead, shared libraries are loaded at an image base (0x10000000 by
15042 # default) and relocated if they conflict, which is a slow very memory
15043 # consuming and fragmenting process. To avoid this, we pick a random,
15044 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15045 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15046 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15047 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'
15048 ;;
15049
15050 linux*)
15051 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15052 tmp_addflag=
15053 case $cc_basename,$host_cpu in
15054 pgcc*) # Portland Group C compiler
15055 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'
15056 tmp_addflag=' $pic_flag'
15057 ;;
15058 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15059 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'
15060 tmp_addflag=' $pic_flag -Mnomain' ;;
15061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15062 tmp_addflag=' -i_dynamic' ;;
15063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15064 tmp_addflag=' -i_dynamic -nofor_main' ;;
15065 ifc* | ifort*) # Intel Fortran compiler
15066 tmp_addflag=' -nofor_main' ;;
15067 esac
15068 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15069
15070 if test $supports_anon_versioning = yes; then
15071 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15073 $echo "local: *; };" >> $output_objdir/$libname.ver~
15074 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15075 fi
John Criswell47fdd832003-07-14 16:52:07 +000015076 else
15077 ld_shlibs=no
15078 fi
15079 ;;
15080
15081 netbsd*)
15082 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15083 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15084 wlarc=
15085 else
15086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15087 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15088 fi
15089 ;;
15090
Reid Spencera773bd52006-08-04 18:18:08 +000015091 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015092 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15093 ld_shlibs=no
15094 cat <<EOF 1>&2
15095
15096*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15097*** create shared libraries on Solaris systems. Therefore, libtool
15098*** is disabling shared libraries support. We urge you to upgrade GNU
15099*** binutils to release 2.9.1 or newer. Another option is to modify
15100*** your PATH or compiler configuration so that the native linker is
15101*** used, and then restart.
15102
15103EOF
15104 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15105 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15106 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15107 else
15108 ld_shlibs=no
15109 fi
15110 ;;
15111
Reid Spencera773bd52006-08-04 18:18:08 +000015112 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15113 case `$LD -v 2>&1` in
15114 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15115 ld_shlibs=no
15116 cat <<_LT_EOF 1>&2
15117
15118*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15119*** reliably create shared libraries on SCO systems. Therefore, libtool
15120*** is disabling shared libraries support. We urge you to upgrade GNU
15121*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15122*** your PATH or compiler configuration so that the native linker is
15123*** used, and then restart.
15124
15125_LT_EOF
15126 ;;
15127 *)
15128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15129 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15130 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15131 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15132 else
15133 ld_shlibs=no
15134 fi
15135 ;;
15136 esac
15137 ;;
15138
John Criswell47fdd832003-07-14 16:52:07 +000015139 sunos4*)
15140 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15141 wlarc=
15142 hardcode_direct=yes
15143 hardcode_shlibpath_var=no
15144 ;;
15145
15146 *)
15147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15148 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15149 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15150 else
15151 ld_shlibs=no
15152 fi
15153 ;;
15154 esac
15155
Reid Spencera773bd52006-08-04 18:18:08 +000015156 if test "$ld_shlibs" = no; then
15157 runpath_var=
15158 hardcode_libdir_flag_spec=
15159 export_dynamic_flag_spec=
15160 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015161 fi
15162 else
15163 # PORTME fill in a description of your system's linker (not GNU ld)
15164 case $host_os in
15165 aix3*)
15166 allow_undefined_flag=unsupported
15167 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015168 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 +000015169 # Note: this linker hardcodes the directories in LIBPATH if there
15170 # are no directories specified by -L.
15171 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015172 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015173 # Neither direct hardcoding nor static linking is supported with a
15174 # broken collect2.
15175 hardcode_direct=unsupported
15176 fi
15177 ;;
15178
15179 aix4* | aix5*)
15180 if test "$host_cpu" = ia64; then
15181 # On IA64, the linker does run time linking by default, so we don't
15182 # have to do anything special.
15183 aix_use_runtimelinking=no
15184 exp_sym_flag='-Bexport'
15185 no_entry_flag=""
15186 else
15187 # If we're using GNU nm, then we don't want the "-C" option.
15188 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15189 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15190 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'
15191 else
15192 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'
15193 fi
15194 aix_use_runtimelinking=no
15195
15196 # Test if we are trying to use run time linking or normal
15197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15198 # need to do runtime linking.
15199 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15200 for ld_flag in $LDFLAGS; do
15201 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15202 aix_use_runtimelinking=yes
15203 break
15204 fi
15205 done
Reid Spencera773bd52006-08-04 18:18:08 +000015206 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015207 esac
15208
15209 exp_sym_flag='-bexport'
15210 no_entry_flag='-bnoentry'
15211 fi
15212
15213 # When large executables or shared objects are built, AIX ld can
15214 # have problems creating the table of contents. If linking a library
15215 # or program results in "error TOC overflow" add -mminimal-toc to
15216 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15217 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15218
15219 archive_cmds=''
15220 hardcode_direct=yes
15221 hardcode_libdir_separator=':'
15222 link_all_deplibs=yes
15223
15224 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015225 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015226 # We only want to do this on AIX 4.2 and lower, the check
15227 # below for broken collect2 doesn't work under 4.3+
15228 collect2name=`${CC} -print-prog-name=collect2`
15229 if test -f "$collect2name" && \
15230 strings "$collect2name" | grep resolve_lib_name >/dev/null
15231 then
15232 # We have reworked collect2
15233 hardcode_direct=yes
15234 else
15235 # We have old collect2
15236 hardcode_direct=unsupported
15237 # It fails to find uninstalled libraries when the uninstalled
15238 # path is not listed in the libpath. Setting hardcode_minus_L
15239 # to unsupported forces relinking
15240 hardcode_minus_L=yes
15241 hardcode_libdir_flag_spec='-L$libdir'
15242 hardcode_libdir_separator=
15243 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015244 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015245 esac
15246 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015247 if test "$aix_use_runtimelinking" = yes; then
15248 shared_flag="$shared_flag "'${wl}-G'
15249 fi
John Criswell47fdd832003-07-14 16:52:07 +000015250 else
15251 # not using gcc
15252 if test "$host_cpu" = ia64; then
15253 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15254 # chokes on -Wl,-G. The following line is correct:
15255 shared_flag='-G'
15256 else
Reid Spencera773bd52006-08-04 18:18:08 +000015257 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015258 shared_flag='${wl}-G'
15259 else
15260 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015261 fi
John Criswell47fdd832003-07-14 16:52:07 +000015262 fi
15263 fi
15264
15265 # It seems that -bexpall does not export symbols beginning with
15266 # underscore (_), so it is better to generate a list of symbols to export.
15267 always_export_symbols=yes
15268 if test "$aix_use_runtimelinking" = yes; then
15269 # Warning - without using the other runtime loading flags (-brtl),
15270 # -berok will link without error, but may produce a broken library.
15271 allow_undefined_flag='-berok'
15272 # Determine the default libpath from the value encoded in an empty executable.
15273 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015274/* confdefs.h. */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015279
John Criswell7a73b802003-06-30 21:59:07 +000015280int
15281main ()
15282{
John Criswell47fdd832003-07-14 16:52:07 +000015283
John Criswell7a73b802003-06-30 21:59:07 +000015284 ;
15285 return 0;
15286}
15287_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015288rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015289if { (ac_try="$ac_link"
15290case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15293esac
15294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015296 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015297 grep -v '^ *+' conftest.er1 >conftest.err
15298 rm -f conftest.er1
15299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015301 (exit $ac_status); } &&
15302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
15307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15309 ac_status=$?
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } &&
15312 { ac_try='test -s conftest$ac_exeext'
15313 { (case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316esac
15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_try") 2>&5
15319 ac_status=$?
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015322
John Criswell47fdd832003-07-14 16:52:07 +000015323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15324}'`
15325# Check for a 64-bit object if we didn't find anything.
15326if 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; }
15327}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015328else
15329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015330sed 's/^/| /' conftest.$ac_ext >&5
15331
Reid Spencera773bd52006-08-04 18:18:08 +000015332
John Criswell7a73b802003-06-30 21:59:07 +000015333fi
Reid Spencera773bd52006-08-04 18:18:08 +000015334
Tanya Lattnercf067672008-01-17 05:57:22 +000015335rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015336 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015338
John Criswell47fdd832003-07-14 16:52:07 +000015339 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015340 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 +000015341 else
15342 if test "$host_cpu" = ia64; then
15343 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15344 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015345 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 +000015346 else
15347 # Determine the default libpath from the value encoded in an empty executable.
15348 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015354
John Criswell47fdd832003-07-14 16:52:07 +000015355int
15356main ()
15357{
John Criswell7a73b802003-06-30 21:59:07 +000015358
John Criswell47fdd832003-07-14 16:52:07 +000015359 ;
15360 return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015364if { (ac_try="$ac_link"
15365case "(($ac_try" in
15366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15368esac
15369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000015376 (exit $ac_status); } &&
15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15378 { (case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15381esac
15382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_try") 2>&5
15384 ac_status=$?
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; } &&
15387 { ac_try='test -s conftest$ac_exeext'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391esac
15392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015397
John Criswell47fdd832003-07-14 16:52:07 +000015398aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15399}'`
15400# Check for a 64-bit object if we didn't find anything.
15401if 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; }
15402}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015403else
John Criswell47fdd832003-07-14 16:52:07 +000015404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015405sed 's/^/| /' conftest.$ac_ext >&5
15406
Reid Spencera773bd52006-08-04 18:18:08 +000015407
John Criswell47fdd832003-07-14 16:52:07 +000015408fi
Reid Spencera773bd52006-08-04 18:18:08 +000015409
Tanya Lattnercf067672008-01-17 05:57:22 +000015410rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015411 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015413
John Criswell47fdd832003-07-14 16:52:07 +000015414 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15415 # Warning - without using the other run time loading flags,
15416 # -berok will link without error, but may produce a broken library.
15417 no_undefined_flag=' ${wl}-bernotok'
15418 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015419 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015420 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015421 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015422 # This is similar to how AIX traditionally builds its shared libraries.
15423 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 +000015424 fi
15425 fi
John Criswell7a73b802003-06-30 21:59:07 +000015426 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015427
15428 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015429 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 +000015430 hardcode_libdir_flag_spec='-L$libdir'
15431 hardcode_minus_L=yes
15432 # see comment about different semantics on the GNU ld section
15433 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015434 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015435
Reid Spencer2706f8c2004-09-19 23:53:36 +000015436 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015437 export_dynamic_flag_spec=-rdynamic
15438 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015439
John Criswell47fdd832003-07-14 16:52:07 +000015440 cygwin* | mingw* | pw32*)
15441 # When not using gcc, we currently assume that we are using
15442 # Microsoft Visual C++.
15443 # hardcode_libdir_flag_spec is actually meaningless, as there is
15444 # no search path for DLLs.
15445 hardcode_libdir_flag_spec=' '
15446 allow_undefined_flag=unsupported
15447 # Tell ltmain to make .lib files, not .a files.
15448 libext=lib
15449 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015450 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015451 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015452 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015453 # The linker will automatically build a .lib file if we build a DLL.
15454 old_archive_From_new_cmds='true'
15455 # FIXME: Should let the user specify the lib program.
15456 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15457 fix_srcfile_path='`cygpath -w "$srcfile"`'
15458 enable_shared_with_static_runtimes=yes
15459 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015460
John Criswell47fdd832003-07-14 16:52:07 +000015461 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015462 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015463 rhapsody* | darwin1.[012])
15464 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15465 ;;
15466 *) # Darwin 1.3 on
15467 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15468 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15469 else
15470 case ${MACOSX_DEPLOYMENT_TARGET} in
15471 10.[012])
15472 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15473 ;;
15474 10.*)
15475 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15476 ;;
15477 esac
15478 fi
15479 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015480 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015481 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015482 hardcode_direct=no
15483 hardcode_automatic=yes
15484 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015485 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015486 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015487 if test "$GCC" = yes ; then
15488 output_verbose_link_cmd='echo'
15489 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15490 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015491 # 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 +000015492 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}'
15493 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 +000015494 else
Reid Spencera773bd52006-08-04 18:18:08 +000015495 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015496 xlc*)
15497 output_verbose_link_cmd='echo'
15498 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15499 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015500 # 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 +000015501 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}'
15502 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 +000015503 ;;
15504 *)
15505 ld_shlibs=no
15506 ;;
15507 esac
John Criswell7a73b802003-06-30 21:59:07 +000015508 fi
John Criswell47fdd832003-07-14 16:52:07 +000015509 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015510
John Criswell47fdd832003-07-14 16:52:07 +000015511 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015513 hardcode_libdir_flag_spec='-L$libdir'
15514 hardcode_shlibpath_var=no
15515 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015516
John Criswell47fdd832003-07-14 16:52:07 +000015517 freebsd1*)
15518 ld_shlibs=no
15519 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015520
John Criswell47fdd832003-07-14 16:52:07 +000015521 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15522 # support. Future versions do this automatically, but an explicit c++rt0.o
15523 # does not break anything, and helps significantly (at the cost of a little
15524 # extra space).
15525 freebsd2.2*)
15526 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15527 hardcode_libdir_flag_spec='-R$libdir'
15528 hardcode_direct=yes
15529 hardcode_shlibpath_var=no
15530 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015531
John Criswell47fdd832003-07-14 16:52:07 +000015532 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15533 freebsd2*)
15534 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15535 hardcode_direct=yes
15536 hardcode_minus_L=yes
15537 hardcode_shlibpath_var=no
15538 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015539
John Criswell47fdd832003-07-14 16:52:07 +000015540 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015541 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015542 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15543 hardcode_libdir_flag_spec='-R$libdir'
15544 hardcode_direct=yes
15545 hardcode_shlibpath_var=no
15546 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015547
John Criswell47fdd832003-07-14 16:52:07 +000015548 hpux9*)
15549 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015550 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 +000015551 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015552 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 +000015553 fi
15554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15555 hardcode_libdir_separator=:
15556 hardcode_direct=yes
15557
15558 # hardcode_minus_L: Not really in the search PATH,
15559 # but as the default location of the library.
15560 hardcode_minus_L=yes
15561 export_dynamic_flag_spec='${wl}-E'
15562 ;;
15563
Reid Spencera773bd52006-08-04 18:18:08 +000015564 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015565 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015566 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15567 else
15568 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15569 fi
15570 if test "$with_gnu_ld" = no; then
15571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15572 hardcode_libdir_separator=:
15573
15574 hardcode_direct=yes
15575 export_dynamic_flag_spec='${wl}-E'
15576
15577 # hardcode_minus_L: Not really in the search PATH,
15578 # but as the default location of the library.
15579 hardcode_minus_L=yes
15580 fi
15581 ;;
15582
15583 hpux11*)
15584 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15585 case $host_cpu in
15586 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015589 ia64*)
15590 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15591 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015592 *)
15593 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15594 ;;
15595 esac
15596 else
Reid Spencera773bd52006-08-04 18:18:08 +000015597 case $host_cpu in
15598 hppa*64*)
15599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15600 ;;
15601 ia64*)
15602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015603 ;;
15604 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015605 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 +000015606 ;;
15607 esac
15608 fi
15609 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15611 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015612
Reid Spencera773bd52006-08-04 18:18:08 +000015613 case $host_cpu in
15614 hppa*64*|ia64*)
15615 hardcode_libdir_flag_spec_ld='+b $libdir'
15616 hardcode_direct=no
15617 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015618 ;;
15619 *)
John Criswell47fdd832003-07-14 16:52:07 +000015620 hardcode_direct=yes
15621 export_dynamic_flag_spec='${wl}-E'
15622
15623 # hardcode_minus_L: Not really in the search PATH,
15624 # but as the default location of the library.
15625 hardcode_minus_L=yes
15626 ;;
15627 esac
15628 fi
15629 ;;
15630
15631 irix5* | irix6* | nonstopux*)
15632 if test "$GCC" = yes; then
15633 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'
15634 else
15635 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'
15636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15637 fi
15638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15639 hardcode_libdir_separator=:
15640 link_all_deplibs=yes
15641 ;;
15642
15643 netbsd*)
15644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15645 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15646 else
15647 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15648 fi
15649 hardcode_libdir_flag_spec='-R$libdir'
15650 hardcode_direct=yes
15651 hardcode_shlibpath_var=no
15652 ;;
15653
15654 newsos6)
15655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_direct=yes
15657 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15658 hardcode_libdir_separator=:
15659 hardcode_shlibpath_var=no
15660 ;;
15661
15662 openbsd*)
15663 hardcode_direct=yes
15664 hardcode_shlibpath_var=no
15665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15666 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015667 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 +000015668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15669 export_dynamic_flag_spec='${wl}-E'
15670 else
15671 case $host_os in
15672 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15674 hardcode_libdir_flag_spec='-R$libdir'
15675 ;;
15676 *)
15677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15678 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15679 ;;
15680 esac
15681 fi
15682 ;;
15683
15684 os2*)
15685 hardcode_libdir_flag_spec='-L$libdir'
15686 hardcode_minus_L=yes
15687 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015688 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 +000015689 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15690 ;;
15691
15692 osf3*)
15693 if test "$GCC" = yes; then
15694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15695 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'
15696 else
15697 allow_undefined_flag=' -expect_unresolved \*'
15698 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'
15699 fi
15700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15701 hardcode_libdir_separator=:
15702 ;;
15703
15704 osf4* | osf5*) # as osf3* with the addition of -msym flag
15705 if test "$GCC" = yes; then
15706 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15707 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'
15708 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15709 else
15710 allow_undefined_flag=' -expect_unresolved \*'
15711 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 +000015712 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 +000015713 $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 +000015714
John Criswell47fdd832003-07-14 16:52:07 +000015715 # Both c and cxx compiler support -rpath directly
15716 hardcode_libdir_flag_spec='-rpath $libdir'
15717 fi
15718 hardcode_libdir_separator=:
15719 ;;
15720
John Criswell47fdd832003-07-14 16:52:07 +000015721 solaris*)
15722 no_undefined_flag=' -z text'
15723 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015724 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015725 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015726 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15727 $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 +000015728 else
Reid Spencera773bd52006-08-04 18:18:08 +000015729 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015730 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015731 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15732 $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 +000015733 fi
15734 hardcode_libdir_flag_spec='-R$libdir'
15735 hardcode_shlibpath_var=no
15736 case $host_os in
15737 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015738 *)
15739 # The compiler driver will combine linker options so we
15740 # cannot just pass the convience library names through
15741 # without $wl, iff we do not link with $LD.
15742 # Luckily, gcc supports the same syntax we need for Sun Studio.
15743 # Supported since Solaris 2.6 (maybe 2.5.1?)
15744 case $wlarc in
15745 '')
15746 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15747 *)
15748 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' ;;
15749 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015750 esac
15751 link_all_deplibs=yes
15752 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015753
John Criswell47fdd832003-07-14 16:52:07 +000015754 sunos4*)
15755 if test "x$host_vendor" = xsequent; then
15756 # Use $CC to link under sequent, because it throws in some extra .o
15757 # files that make .init and .fini sections work.
15758 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15759 else
15760 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15761 fi
15762 hardcode_libdir_flag_spec='-L$libdir'
15763 hardcode_direct=yes
15764 hardcode_minus_L=yes
15765 hardcode_shlibpath_var=no
15766 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015767
John Criswell47fdd832003-07-14 16:52:07 +000015768 sysv4)
15769 case $host_vendor in
15770 sni)
15771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15772 hardcode_direct=yes # is this really true???
15773 ;;
15774 siemens)
15775 ## LD is ld it makes a PLAMLIB
15776 ## CC just makes a GrossModule.
15777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15778 reload_cmds='$CC -r -o $output$reload_objs'
15779 hardcode_direct=no
15780 ;;
15781 motorola)
15782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15784 ;;
15785 esac
15786 runpath_var='LD_RUN_PATH'
15787 hardcode_shlibpath_var=no
15788 ;;
15789
15790 sysv4.3*)
15791 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15792 hardcode_shlibpath_var=no
15793 export_dynamic_flag_spec='-Bexport'
15794 ;;
15795
15796 sysv4*MP*)
15797 if test -d /usr/nec; then
15798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15799 hardcode_shlibpath_var=no
15800 runpath_var=LD_RUN_PATH
15801 hardcode_runpath_var=yes
15802 ld_shlibs=yes
15803 fi
15804 ;;
15805
Reid Spencera773bd52006-08-04 18:18:08 +000015806 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15807 no_undefined_flag='${wl}-z,text'
15808 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015809 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015810 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015811
John Criswell47fdd832003-07-14 16:52:07 +000015812 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15814 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 +000015815 else
Reid Spencera773bd52006-08-04 18:18:08 +000015816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 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 +000015818 fi
John Criswell47fdd832003-07-14 16:52:07 +000015819 ;;
15820
Reid Spencera773bd52006-08-04 18:18:08 +000015821 sysv5* | sco3.2v5* | sco5v6*)
15822 # Note: We can NOT use -z defs as we might desire, because we do not
15823 # link with -lc, and that would cause any symbols used from libc to
15824 # always be unresolved, which means just about no library would
15825 # ever link correctly. If we're not using GNU ld we use -z text
15826 # though, which does catch some bad symbols but isn't as heavy-handed
15827 # as -z defs.
15828 no_undefined_flag='${wl}-z,text'
15829 allow_undefined_flag='${wl}-z,nodefs'
15830 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015831 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015832 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15833 hardcode_libdir_separator=':'
15834 link_all_deplibs=yes
15835 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015836 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015837
15838 if test "$GCC" = yes; then
15839 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15841 else
15842 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15844 fi
John Criswell47fdd832003-07-14 16:52:07 +000015845 ;;
15846
15847 uts4*)
15848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849 hardcode_libdir_flag_spec='-L$libdir'
15850 hardcode_shlibpath_var=no
15851 ;;
15852
15853 *)
15854 ld_shlibs=no
15855 ;;
15856 esac
15857 fi
15858
Reid Spencera773bd52006-08-04 18:18:08 +000015859{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15860echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015861test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015862
John Criswell47fdd832003-07-14 16:52:07 +000015863#
15864# Do we need to explicitly link libc?
15865#
15866case "x$archive_cmds_need_lc" in
15867x|xyes)
15868 # Assume -lc should be added
15869 archive_cmds_need_lc=yes
15870
15871 if test "$enable_shared" = yes && test "$GCC" = yes; then
15872 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015873 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015874 # FIXME: we may have to deal with multi-command sequences.
15875 ;;
15876 '$CC '*)
15877 # Test whether the compiler implicitly links with -lc since on some
15878 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15879 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015880 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15881echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015882 $rm conftest*
15883 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15884
15885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15886 (eval $ac_compile) 2>&5
15887 ac_status=$?
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } 2>conftest.err; then
15890 soname=conftest
15891 lib=conftest
15892 libobjs=conftest.$ac_objext
15893 deplibs=
15894 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015895 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015896 compiler_flags=-v
15897 linker_flags=-v
15898 verstring=
15899 output_objdir=.
15900 libname=conftest
15901 lt_save_allow_undefined_flag=$allow_undefined_flag
15902 allow_undefined_flag=
15903 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15904 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }
15908 then
15909 archive_cmds_need_lc=no
15910 else
15911 archive_cmds_need_lc=yes
15912 fi
15913 allow_undefined_flag=$lt_save_allow_undefined_flag
15914 else
15915 cat conftest.err 1>&5
15916 fi
15917 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015918 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15919echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015920 ;;
15921 esac
15922 fi
15923 ;;
15924esac
15925
Reid Spencera773bd52006-08-04 18:18:08 +000015926{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15927echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015928library_names_spec=
15929libname_spec='lib$name'
15930soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015931shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015932postinstall_cmds=
15933postuninstall_cmds=
15934finish_cmds=
15935finish_eval=
15936shlibpath_var=
15937shlibpath_overrides_runpath=unknown
15938version_type=none
15939dynamic_linker="$host_os ld.so"
15940sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015941if test "$GCC" = yes; then
15942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15943 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15944 # if the path contains ";" then we assume it to be the separator
15945 # otherwise default to the standard path separator (i.e. ":") - it is
15946 # assumed that no part of a normal pathname contains ";" but that should
15947 # okay in the real world where ";" in dirpaths is itself problematic.
15948 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15949 else
15950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15951 fi
15952else
15953 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15954fi
15955need_lib_prefix=unknown
15956hardcode_into_libs=no
15957
15958# when you set need_version to no, make sure it does not cause -set_version
15959# flags to be left without arguments
15960need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015961
15962case $host_os in
15963aix3*)
15964 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015966 shlibpath_var=LIBPATH
15967
John Criswell47fdd832003-07-14 16:52:07 +000015968 # AIX 3 has no versioning support, so we append a major version to the name.
15969 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015970 ;;
15971
15972aix4* | aix5*)
15973 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015974 need_lib_prefix=no
15975 need_version=no
15976 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015977 if test "$host_cpu" = ia64; then
15978 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015979 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015980 shlibpath_var=LD_LIBRARY_PATH
15981 else
15982 # With GCC up to 2.95.x, collect2 would create an import file
15983 # for dependence libraries. The import file would start with
15984 # the line `#! .'. This would cause the generated library to
15985 # depend on `.', always an invalid library. This was fixed in
15986 # development snapshots of GCC prior to 3.0.
15987 case $host_os in
15988 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015989 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15990 echo ' yes '
15991 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15992 :
15993 else
15994 can_build_shared=no
15995 fi
15996 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015997 esac
John Criswell47fdd832003-07-14 16:52:07 +000015998 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15999 # soname into executable. Probably we can add versioning support to
16000 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016001 if test "$aix_use_runtimelinking" = yes; then
16002 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16003 # instead of lib<name>.a to let people know that these are not
16004 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016006 else
16007 # We preserve .a as extension for shared libraries through AIX4.2
16008 # and later when we are not doing run time linking.
16009 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016010 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016011 fi
16012 shlibpath_var=LIBPATH
16013 fi
16014 ;;
16015
16016amigaos*)
16017 library_names_spec='$libname.ixlibrary $libname.a'
16018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016019 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 +000016020 ;;
16021
16022beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016023 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016024 dynamic_linker="$host_os ld.so"
16025 shlibpath_var=LIBRARY_PATH
16026 ;;
16027
Reid Spencer2706f8c2004-09-19 23:53:36 +000016028bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016029 version_type=linux
16030 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16032 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016033 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16036 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016037 # the default ld.so.conf also contains /usr/contrib/lib and
16038 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16039 # libtool to hard-code these into programs
16040 ;;
16041
16042cygwin* | mingw* | pw32*)
16043 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016044 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016045 need_version=no
16046 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016047
John Criswell7a73b802003-06-30 21:59:07 +000016048 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016049 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016050 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016051 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016052 postinstall_cmds='base_file=`basename \${file}`~
16053 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16054 dldir=$destdir/`dirname \$dlpath`~
16055 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016056 $install_prog $dir/$dlname \$dldir/$dlname~
16057 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16059 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016060 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016061 shlibpath_overrides_runpath=yes
16062
16063 case $host_os in
16064 cygwin*)
16065 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16066 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 +000016067 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016068 ;;
16069 mingw*)
16070 # MinGW DLLs use traditional 'lib' prefix
16071 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16072 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16073 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16074 # It is most probably a Windows format PATH printed by
16075 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16076 # path with ; separators, and with drive letters. We can handle the
16077 # drive letters (cygwin fileutils understands them), so leave them,
16078 # especially as we might pass files found there to a mingw objdump,
16079 # which wouldn't understand a cygwinified path. Ahh.
16080 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081 else
16082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16083 fi
16084 ;;
16085 pw32*)
16086 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016087 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 +000016088 ;;
16089 esac
John Criswell7a73b802003-06-30 21:59:07 +000016090 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016091
John Criswell7a73b802003-06-30 21:59:07 +000016092 *)
John Criswell47fdd832003-07-14 16:52:07 +000016093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016094 ;;
16095 esac
16096 dynamic_linker='Win32 ld.exe'
16097 # FIXME: first we should search . and the directory the executable is in
16098 shlibpath_var=PATH
16099 ;;
16100
16101darwin* | rhapsody*)
16102 dynamic_linker="$host_os dyld"
16103 version_type=darwin
16104 need_lib_prefix=no
16105 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016107 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016108 shlibpath_overrides_runpath=yes
16109 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016110 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016111 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016112 if test "$GCC" = yes; then
16113 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"`
16114 else
16115 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016116 fi
16117 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16118 ;;
16119
16120dgux*)
16121 version_type=linux
16122 need_lib_prefix=no
16123 need_version=no
16124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16125 soname_spec='${libname}${release}${shared_ext}$major'
16126 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016127 ;;
16128
16129freebsd1*)
16130 dynamic_linker=no
16131 ;;
16132
Reid Spencer2706f8c2004-09-19 23:53:36 +000016133kfreebsd*-gnu)
16134 version_type=linux
16135 need_lib_prefix=no
16136 need_version=no
16137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16138 soname_spec='${libname}${release}${shared_ext}$major'
16139 shlibpath_var=LD_LIBRARY_PATH
16140 shlibpath_overrides_runpath=no
16141 hardcode_into_libs=yes
16142 dynamic_linker='GNU ld.so'
16143 ;;
16144
Reid Spencera773bd52006-08-04 18:18:08 +000016145freebsd* | dragonfly*)
16146 # DragonFly does not have aout. When/if they implement a new
16147 # versioning mechanism, adjust this.
16148 if test -x /usr/bin/objformat; then
16149 objformat=`/usr/bin/objformat`
16150 else
16151 case $host_os in
16152 freebsd[123]*) objformat=aout ;;
16153 *) objformat=elf ;;
16154 esac
16155 fi
John Criswell7a73b802003-06-30 21:59:07 +000016156 version_type=freebsd-$objformat
16157 case $version_type in
16158 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016160 need_version=no
16161 need_lib_prefix=no
16162 ;;
16163 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016164 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016165 need_version=yes
16166 ;;
16167 esac
16168 shlibpath_var=LD_LIBRARY_PATH
16169 case $host_os in
16170 freebsd2*)
16171 shlibpath_overrides_runpath=yes
16172 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016173 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016179 shlibpath_overrides_runpath=no
16180 hardcode_into_libs=yes
16181 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016182 freebsd*) # from 4.6 on
16183 shlibpath_overrides_runpath=yes
16184 hardcode_into_libs=yes
16185 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016186 esac
16187 ;;
16188
16189gnu*)
16190 version_type=linux
16191 need_lib_prefix=no
16192 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016195 shlibpath_var=LD_LIBRARY_PATH
16196 hardcode_into_libs=yes
16197 ;;
16198
16199hpux9* | hpux10* | hpux11*)
16200 # Give a soname corresponding to the major version so that dld.sl refuses to
16201 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016202 version_type=sunos
16203 need_lib_prefix=no
16204 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016205 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016206 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016207 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016208 hardcode_into_libs=yes
16209 dynamic_linker="$host_os dld.so"
16210 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16213 soname_spec='${libname}${release}${shared_ext}$major'
16214 if test "X$HPUX_IA64_MODE" = X32; then
16215 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16216 else
16217 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16218 fi
16219 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16220 ;;
16221 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016222 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016223 hardcode_into_libs=yes
16224 dynamic_linker="$host_os dld.sl"
16225 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16230 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16231 ;;
16232 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016233 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016234 dynamic_linker="$host_os dld.sl"
16235 shlibpath_var=SHLIB_PATH
16236 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 ;;
16240 esac
John Criswell7a73b802003-06-30 21:59:07 +000016241 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16242 postinstall_cmds='chmod 555 $lib'
16243 ;;
16244
Reid Spencera773bd52006-08-04 18:18:08 +000016245interix3*)
16246 version_type=linux
16247 need_lib_prefix=no
16248 need_version=no
16249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16250 soname_spec='${libname}${release}${shared_ext}$major'
16251 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 shlibpath_overrides_runpath=no
16254 hardcode_into_libs=yes
16255 ;;
16256
John Criswell47fdd832003-07-14 16:52:07 +000016257irix5* | irix6* | nonstopux*)
16258 case $host_os in
16259 nonstopux*) version_type=nonstopux ;;
16260 *)
16261 if test "$lt_cv_prog_gnu_ld" = yes; then
16262 version_type=linux
16263 else
16264 version_type=irix
16265 fi ;;
16266 esac
John Criswell7a73b802003-06-30 21:59:07 +000016267 need_lib_prefix=no
16268 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016269 soname_spec='${libname}${release}${shared_ext}$major'
16270 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 +000016271 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016272 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016273 libsuff= shlibsuff=
16274 ;;
16275 *)
16276 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016277 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16278 libsuff= shlibsuff= libmagic=32-bit;;
16279 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16280 libsuff=32 shlibsuff=N32 libmagic=N32;;
16281 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16282 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016283 *) libsuff= shlibsuff= libmagic=never-match;;
16284 esac
16285 ;;
16286 esac
16287 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16288 shlibpath_overrides_runpath=no
16289 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16290 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016291 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016292 ;;
16293
16294# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016295linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016296 dynamic_linker=no
16297 ;;
16298
16299# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016300linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016301 version_type=linux
16302 need_lib_prefix=no
16303 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016306 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16307 shlibpath_var=LD_LIBRARY_PATH
16308 shlibpath_overrides_runpath=no
16309 # This implies no fast_install, which is unacceptable.
16310 # Some rework will be needed to allow for fast_install
16311 # before this can be enabled.
16312 hardcode_into_libs=yes
16313
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314 # Append ld.so.conf contents to the search path
16315 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016316 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 +000016317 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16318 fi
16319
John Criswell7a73b802003-06-30 21:59:07 +000016320 # We used to test for /lib/ld.so.1 and disable shared libraries on
16321 # powerpc, because MkLinux only supported shared libraries with the
16322 # GNU dynamic linker. Since this was broken with cross compilers,
16323 # most powerpc-linux boxes support dynamic linking these days and
16324 # people can always --disable-shared, the test was removed, and we
16325 # assume the GNU/Linux dynamic linker is in use.
16326 dynamic_linker='GNU/Linux ld.so'
16327 ;;
16328
Reid Spencer2706f8c2004-09-19 23:53:36 +000016329knetbsd*-gnu)
16330 version_type=linux
16331 need_lib_prefix=no
16332 need_version=no
16333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16334 soname_spec='${libname}${release}${shared_ext}$major'
16335 shlibpath_var=LD_LIBRARY_PATH
16336 shlibpath_overrides_runpath=no
16337 hardcode_into_libs=yes
16338 dynamic_linker='GNU ld.so'
16339 ;;
16340
John Criswell7a73b802003-06-30 21:59:07 +000016341netbsd*)
16342 version_type=sunos
16343 need_lib_prefix=no
16344 need_version=no
16345 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16348 dynamic_linker='NetBSD (a.out) ld.so'
16349 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016351 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016352 dynamic_linker='NetBSD ld.elf_so'
16353 fi
16354 shlibpath_var=LD_LIBRARY_PATH
16355 shlibpath_overrides_runpath=yes
16356 hardcode_into_libs=yes
16357 ;;
16358
16359newsos6)
16360 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16362 shlibpath_var=LD_LIBRARY_PATH
16363 shlibpath_overrides_runpath=yes
16364 ;;
16365
Reid Spencer2706f8c2004-09-19 23:53:36 +000016366nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016367 version_type=linux
16368 need_lib_prefix=no
16369 need_version=no
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016372 shlibpath_var=LD_LIBRARY_PATH
16373 shlibpath_overrides_runpath=yes
16374 ;;
16375
16376openbsd*)
16377 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016378 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016379 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016380 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16381 case $host_os in
16382 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16383 *) need_version=no ;;
16384 esac
John Criswell47fdd832003-07-14 16:52:07 +000016385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16386 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16387 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016388 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 +000016389 case $host_os in
16390 openbsd2.[89] | openbsd2.[89].*)
16391 shlibpath_overrides_runpath=no
16392 ;;
16393 *)
16394 shlibpath_overrides_runpath=yes
16395 ;;
16396 esac
John Criswell7a73b802003-06-30 21:59:07 +000016397 else
16398 shlibpath_overrides_runpath=yes
16399 fi
John Criswell7a73b802003-06-30 21:59:07 +000016400 ;;
16401
16402os2*)
16403 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016404 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016405 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016406 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016407 dynamic_linker='OS/2 ld.exe'
16408 shlibpath_var=LIBPATH
16409 ;;
16410
16411osf3* | osf4* | osf5*)
16412 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016413 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016415 soname_spec='${libname}${release}${shared_ext}$major'
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016417 shlibpath_var=LD_LIBRARY_PATH
16418 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16419 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16420 ;;
16421
John Criswell7a73b802003-06-30 21:59:07 +000016422solaris*)
16423 version_type=linux
16424 need_lib_prefix=no
16425 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16427 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16430 hardcode_into_libs=yes
16431 # ldd complains unless libraries are executable
16432 postinstall_cmds='chmod +x $lib'
16433 ;;
16434
16435sunos4*)
16436 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16439 shlibpath_var=LD_LIBRARY_PATH
16440 shlibpath_overrides_runpath=yes
16441 if test "$with_gnu_ld" = yes; then
16442 need_lib_prefix=no
16443 fi
16444 need_version=yes
16445 ;;
16446
Reid Spencera773bd52006-08-04 18:18:08 +000016447sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016448 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016451 shlibpath_var=LD_LIBRARY_PATH
16452 case $host_vendor in
16453 sni)
16454 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016455 need_lib_prefix=no
16456 export_dynamic_flag_spec='${wl}-Blargedynsym'
16457 runpath_var=LD_RUN_PATH
16458 ;;
16459 siemens)
16460 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016461 ;;
16462 motorola)
16463 need_lib_prefix=no
16464 need_version=no
16465 shlibpath_overrides_runpath=no
16466 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16467 ;;
16468 esac
16469 ;;
16470
John Criswell7a73b802003-06-30 21:59:07 +000016471sysv4*MP*)
16472 if test -d /usr/nec ;then
16473 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016474 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16475 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016476 shlibpath_var=LD_LIBRARY_PATH
16477 fi
16478 ;;
16479
Reid Spencera773bd52006-08-04 18:18:08 +000016480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16481 version_type=freebsd-elf
16482 need_lib_prefix=no
16483 need_version=no
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16485 soname_spec='${libname}${release}${shared_ext}$major'
16486 shlibpath_var=LD_LIBRARY_PATH
16487 hardcode_into_libs=yes
16488 if test "$with_gnu_ld" = yes; then
16489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16490 shlibpath_overrides_runpath=no
16491 else
16492 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16493 shlibpath_overrides_runpath=yes
16494 case $host_os in
16495 sco3.2v5*)
16496 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16497 ;;
16498 esac
16499 fi
16500 sys_lib_dlsearch_path_spec='/usr/lib'
16501 ;;
16502
John Criswell47fdd832003-07-14 16:52:07 +000016503uts4*)
16504 version_type=linux
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 soname_spec='${libname}${release}${shared_ext}$major'
16507 shlibpath_var=LD_LIBRARY_PATH
16508 ;;
16509
John Criswell7a73b802003-06-30 21:59:07 +000016510*)
16511 dynamic_linker=no
16512 ;;
16513esac
Reid Spencera773bd52006-08-04 18:18:08 +000016514{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16515echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016516test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016517
Reid Spencera773bd52006-08-04 18:18:08 +000016518variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16519if test "$GCC" = yes; then
16520 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16521fi
16522
16523{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16524echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016525hardcode_action=
16526if test -n "$hardcode_libdir_flag_spec" || \
16527 test -n "$runpath_var" || \
16528 test "X$hardcode_automatic" = "Xyes" ; then
16529
16530 # We can hardcode non-existant directories.
16531 if test "$hardcode_direct" != no &&
16532 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16533 # have to relink, otherwise we might link with an installed library
16534 # when we should be linking with a yet-to-be-installed one
16535 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16536 test "$hardcode_minus_L" != no; then
16537 # Linking always hardcodes the temporary library directory.
16538 hardcode_action=relink
16539 else
16540 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16541 hardcode_action=immediate
16542 fi
16543else
16544 # We cannot hardcode anything, or else we can only hardcode existing
16545 # directories.
16546 hardcode_action=unsupported
16547fi
Reid Spencera773bd52006-08-04 18:18:08 +000016548{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16549echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016550
16551if test "$hardcode_action" = relink; then
16552 # Fast installation is not supported
16553 enable_fast_install=no
16554elif test "$shlibpath_overrides_runpath" = yes ||
16555 test "$enable_shared" = no; then
16556 # Fast installation is not necessary
16557 enable_fast_install=needless
16558fi
16559
16560striplib=
16561old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016562{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16563echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016564if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16565 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16566 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016567 { echo "$as_me:$LINENO: result: yes" >&5
16568echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016569else
16570# FIXME - insert some real tests, host_os isn't really good enough
16571 case $host_os in
16572 darwin*)
16573 if test -n "$STRIP" ; then
16574 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016575 { echo "$as_me:$LINENO: result: yes" >&5
16576echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577 else
Reid Spencera773bd52006-08-04 18:18:08 +000016578 { echo "$as_me:$LINENO: result: no" >&5
16579echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016580fi
16581 ;;
16582 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016583 { echo "$as_me:$LINENO: result: no" >&5
16584echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016585 ;;
16586 esac
16587fi
16588
John Criswell7a73b802003-06-30 21:59:07 +000016589if test "x$enable_dlopen" != xyes; then
16590 enable_dlopen=unknown
16591 enable_dlopen_self=unknown
16592 enable_dlopen_self_static=unknown
16593else
16594 lt_cv_dlopen=no
16595 lt_cv_dlopen_libs=
16596
16597 case $host_os in
16598 beos*)
16599 lt_cv_dlopen="load_add_on"
16600 lt_cv_dlopen_libs=
16601 lt_cv_dlopen_self=yes
16602 ;;
16603
John Criswell47fdd832003-07-14 16:52:07 +000016604 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016605 lt_cv_dlopen="LoadLibrary"
16606 lt_cv_dlopen_libs=
16607 ;;
16608
John Criswell47fdd832003-07-14 16:52:07 +000016609 cygwin*)
16610 lt_cv_dlopen="dlopen"
16611 lt_cv_dlopen_libs=
16612 ;;
16613
16614 darwin*)
16615 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016616 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016618if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16619 echo $ECHO_N "(cached) $ECHO_C" >&6
16620else
16621 ac_check_lib_save_LIBS=$LIBS
16622LIBS="-ldl $LIBS"
16623cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016624/* confdefs.h. */
16625_ACEOF
16626cat confdefs.h >>conftest.$ac_ext
16627cat >>conftest.$ac_ext <<_ACEOF
16628/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016629
Reid Spencera773bd52006-08-04 18:18:08 +000016630/* Override any GCC internal prototype to avoid an error.
16631 Use char because int might match the return type of a GCC
16632 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016633#ifdef __cplusplus
16634extern "C"
16635#endif
John Criswell47fdd832003-07-14 16:52:07 +000016636char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016637int
16638main ()
16639{
Reid Spencera773bd52006-08-04 18:18:08 +000016640return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016641 ;
16642 return 0;
16643}
16644_ACEOF
16645rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016646if { (ac_try="$ac_link"
16647case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16650esac
16651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016653 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016654 grep -v '^ *+' conftest.er1 >conftest.err
16655 rm -f conftest.er1
16656 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16663esac
16664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest$ac_exeext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16673esac
16674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016679 ac_cv_lib_dl_dlopen=yes
16680else
16681 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016682sed 's/^/| /' conftest.$ac_ext >&5
16683
Reid Spencera773bd52006-08-04 18:18:08 +000016684 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016685fi
Reid Spencera773bd52006-08-04 18:18:08 +000016686
Tanya Lattnercf067672008-01-17 05:57:22 +000016687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016688 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016689LIBS=$ac_check_lib_save_LIBS
16690fi
Reid Spencera773bd52006-08-04 18:18:08 +000016691{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16692echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016693if test $ac_cv_lib_dl_dlopen = yes; then
16694 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16695else
16696
16697 lt_cv_dlopen="dyld"
16698 lt_cv_dlopen_libs=
16699 lt_cv_dlopen_self=yes
16700
16701fi
16702
16703 ;;
16704
John Criswell7a73b802003-06-30 21:59:07 +000016705 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016706 { echo "$as_me:$LINENO: checking for shl_load" >&5
16707echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016708if test "${ac_cv_func_shl_load+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16710else
16711 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016712/* confdefs.h. */
16713_ACEOF
16714cat confdefs.h >>conftest.$ac_ext
16715cat >>conftest.$ac_ext <<_ACEOF
16716/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016717/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16719#define shl_load innocuous_shl_load
16720
John Criswell7a73b802003-06-30 21:59:07 +000016721/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016722 which can conflict with char shl_load (); below.
16723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16724 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016725
John Criswell0c38eaf2003-09-10 15:17:25 +000016726#ifdef __STDC__
16727# include <limits.h>
16728#else
16729# include <assert.h>
16730#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016731
16732#undef shl_load
16733
Reid Spencera773bd52006-08-04 18:18:08 +000016734/* Override any GCC internal prototype to avoid an error.
16735 Use char because int might match the return type of a GCC
16736 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016737#ifdef __cplusplus
16738extern "C"
16739#endif
John Criswell7a73b802003-06-30 21:59:07 +000016740char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016741/* The GNU C library defines this for functions which it implements
16742 to always fail with ENOSYS. Some functions are actually named
16743 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016744#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016745choke me
John Criswell7a73b802003-06-30 21:59:07 +000016746#endif
16747
John Criswell0c38eaf2003-09-10 15:17:25 +000016748int
16749main ()
16750{
Reid Spencera773bd52006-08-04 18:18:08 +000016751return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016752 ;
16753 return 0;
16754}
16755_ACEOF
16756rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016757if { (ac_try="$ac_link"
16758case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761esac
16762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016769 (exit $ac_status); } &&
16770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16771 { (case "(($ac_try" in
16772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773 *) ac_try_echo=$ac_try;;
16774esac
16775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776 (eval "$ac_try") 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; } &&
16780 { ac_try='test -s conftest$ac_exeext'
16781 { (case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16784esac
16785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_try") 2>&5
16787 ac_status=$?
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016790 ac_cv_func_shl_load=yes
16791else
16792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016793sed 's/^/| /' conftest.$ac_ext >&5
16794
Reid Spencera773bd52006-08-04 18:18:08 +000016795 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016796fi
Reid Spencera773bd52006-08-04 18:18:08 +000016797
Tanya Lattnercf067672008-01-17 05:57:22 +000016798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016799 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016800fi
Reid Spencera773bd52006-08-04 18:18:08 +000016801{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16802echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016803if test $ac_cv_func_shl_load = yes; then
16804 lt_cv_dlopen="shl_load"
16805else
Reid Spencera773bd52006-08-04 18:18:08 +000016806 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16807echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016808if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16809 echo $ECHO_N "(cached) $ECHO_C" >&6
16810else
16811 ac_check_lib_save_LIBS=$LIBS
16812LIBS="-ldld $LIBS"
16813cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016819
Reid Spencera773bd52006-08-04 18:18:08 +000016820/* Override any GCC internal prototype to avoid an error.
16821 Use char because int might match the return type of a GCC
16822 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016823#ifdef __cplusplus
16824extern "C"
16825#endif
John Criswell7a73b802003-06-30 21:59:07 +000016826char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016827int
16828main ()
16829{
Reid Spencera773bd52006-08-04 18:18:08 +000016830return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016831 ;
16832 return 0;
16833}
16834_ACEOF
16835rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016836if { (ac_try="$ac_link"
16837case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16840esac
16841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016848 (exit $ac_status); } &&
16849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16853esac
16854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; } &&
16859 { ac_try='test -s conftest$ac_exeext'
16860 { (case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_try") 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016869 ac_cv_lib_dld_shl_load=yes
16870else
16871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016872sed 's/^/| /' conftest.$ac_ext >&5
16873
Reid Spencera773bd52006-08-04 18:18:08 +000016874 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016875fi
Reid Spencera773bd52006-08-04 18:18:08 +000016876
Tanya Lattnercf067672008-01-17 05:57:22 +000016877rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016878 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016879LIBS=$ac_check_lib_save_LIBS
16880fi
Reid Spencera773bd52006-08-04 18:18:08 +000016881{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16882echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016883if test $ac_cv_lib_dld_shl_load = yes; then
16884 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16885else
Reid Spencera773bd52006-08-04 18:18:08 +000016886 { echo "$as_me:$LINENO: checking for dlopen" >&5
16887echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016888if test "${ac_cv_func_dlopen+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16890else
16891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16899#define dlopen innocuous_dlopen
16900
John Criswell7a73b802003-06-30 21:59:07 +000016901/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016902 which can conflict with char dlopen (); below.
16903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16904 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905
John Criswell0c38eaf2003-09-10 15:17:25 +000016906#ifdef __STDC__
16907# include <limits.h>
16908#else
16909# include <assert.h>
16910#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016911
16912#undef dlopen
16913
Reid Spencera773bd52006-08-04 18:18:08 +000016914/* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016917#ifdef __cplusplus
16918extern "C"
16919#endif
John Criswell7a73b802003-06-30 21:59:07 +000016920char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016921/* The GNU C library defines this for functions which it implements
16922 to always fail with ENOSYS. Some functions are actually named
16923 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016924#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016925choke me
John Criswell7a73b802003-06-30 21:59:07 +000016926#endif
16927
John Criswell0c38eaf2003-09-10 15:17:25 +000016928int
16929main ()
16930{
Reid Spencera773bd52006-08-04 18:18:08 +000016931return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016932 ;
16933 return 0;
16934}
16935_ACEOF
16936rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016937if { (ac_try="$ac_link"
16938case "(($ac_try" in
16939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940 *) ac_try_echo=$ac_try;;
16941esac
16942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016945 grep -v '^ *+' conftest.er1 >conftest.err
16946 rm -f conftest.er1
16947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000016949 (exit $ac_status); } &&
16950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16951 { (case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954esac
16955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956 (eval "$ac_try") 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest$ac_exeext'
16961 { (case "(($ac_try" in
16962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963 *) ac_try_echo=$ac_try;;
16964esac
16965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966 (eval "$ac_try") 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016970 ac_cv_func_dlopen=yes
16971else
16972 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016973sed 's/^/| /' conftest.$ac_ext >&5
16974
Reid Spencera773bd52006-08-04 18:18:08 +000016975 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016976fi
Reid Spencera773bd52006-08-04 18:18:08 +000016977
Tanya Lattnercf067672008-01-17 05:57:22 +000016978rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016979 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016980fi
Reid Spencera773bd52006-08-04 18:18:08 +000016981{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16982echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016983if test $ac_cv_func_dlopen = yes; then
16984 lt_cv_dlopen="dlopen"
16985else
Reid Spencera773bd52006-08-04 18:18:08 +000016986 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16987echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016988if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990else
16991 ac_check_lib_save_LIBS=$LIBS
16992LIBS="-ldl $LIBS"
16993cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016994/* confdefs.h. */
16995_ACEOF
16996cat confdefs.h >>conftest.$ac_ext
16997cat >>conftest.$ac_ext <<_ACEOF
16998/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016999
Reid Spencera773bd52006-08-04 18:18:08 +000017000/* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017003#ifdef __cplusplus
17004extern "C"
17005#endif
John Criswell7a73b802003-06-30 21:59:07 +000017006char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017007int
17008main ()
17009{
Reid Spencera773bd52006-08-04 18:18:08 +000017010return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017011 ;
17012 return 0;
17013}
17014_ACEOF
17015rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017016if { (ac_try="$ac_link"
17017case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17020esac
17021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017023 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017024 grep -v '^ *+' conftest.er1 >conftest.err
17025 rm -f conftest.er1
17026 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017028 (exit $ac_status); } &&
17029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17030 { (case "(($ac_try" in
17031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032 *) ac_try_echo=$ac_try;;
17033esac
17034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035 (eval "$ac_try") 2>&5
17036 ac_status=$?
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043esac
17044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_try") 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017049 ac_cv_lib_dl_dlopen=yes
17050else
17051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017052sed 's/^/| /' conftest.$ac_ext >&5
17053
Reid Spencera773bd52006-08-04 18:18:08 +000017054 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017055fi
Reid Spencera773bd52006-08-04 18:18:08 +000017056
Tanya Lattnercf067672008-01-17 05:57:22 +000017057rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017058 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017059LIBS=$ac_check_lib_save_LIBS
17060fi
Reid Spencera773bd52006-08-04 18:18:08 +000017061{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17062echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017063if test $ac_cv_lib_dl_dlopen = yes; then
17064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17065else
Reid Spencera773bd52006-08-04 18:18:08 +000017066 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17067echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017068if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 ac_check_lib_save_LIBS=$LIBS
17072LIBS="-lsvld $LIBS"
17073cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017074/* confdefs.h. */
17075_ACEOF
17076cat confdefs.h >>conftest.$ac_ext
17077cat >>conftest.$ac_ext <<_ACEOF
17078/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017079
Reid Spencera773bd52006-08-04 18:18:08 +000017080/* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017083#ifdef __cplusplus
17084extern "C"
17085#endif
John Criswell7a73b802003-06-30 21:59:07 +000017086char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017087int
17088main ()
17089{
Reid Spencera773bd52006-08-04 18:18:08 +000017090return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017091 ;
17092 return 0;
17093}
17094_ACEOF
17095rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017096if { (ac_try="$ac_link"
17097case "(($ac_try" in
17098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099 *) ac_try_echo=$ac_try;;
17100esac
17101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017103 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17110 { (case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17113esac
17114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_try") 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest$ac_exeext'
17120 { (case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17123esac
17124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_try") 2>&5
17126 ac_status=$?
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017129 ac_cv_lib_svld_dlopen=yes
17130else
17131 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017132sed 's/^/| /' conftest.$ac_ext >&5
17133
Reid Spencera773bd52006-08-04 18:18:08 +000017134 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017135fi
Reid Spencera773bd52006-08-04 18:18:08 +000017136
Tanya Lattnercf067672008-01-17 05:57:22 +000017137rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017138 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017139LIBS=$ac_check_lib_save_LIBS
17140fi
Reid Spencera773bd52006-08-04 18:18:08 +000017141{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17142echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017143if test $ac_cv_lib_svld_dlopen = yes; then
17144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17145else
Reid Spencera773bd52006-08-04 18:18:08 +000017146 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17147echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017148if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17149 echo $ECHO_N "(cached) $ECHO_C" >&6
17150else
17151 ac_check_lib_save_LIBS=$LIBS
17152LIBS="-ldld $LIBS"
17153cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017159
Reid Spencera773bd52006-08-04 18:18:08 +000017160/* Override any GCC internal prototype to avoid an error.
17161 Use char because int might match the return type of a GCC
17162 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017163#ifdef __cplusplus
17164extern "C"
17165#endif
John Criswell7a73b802003-06-30 21:59:07 +000017166char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017167int
17168main ()
17169{
Reid Spencera773bd52006-08-04 18:18:08 +000017170return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017176if { (ac_try="$ac_link"
17177case "(($ac_try" in
17178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17179 *) ac_try_echo=$ac_try;;
17180esac
17181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17182 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017183 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000017188 (exit $ac_status); } &&
17189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17190 { (case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193esac
17194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_try") 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (case "(($ac_try" in
17201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17202 *) ac_try_echo=$ac_try;;
17203esac
17204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17205 (eval "$ac_try") 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017209 ac_cv_lib_dld_dld_link=yes
17210else
17211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017212sed 's/^/| /' conftest.$ac_ext >&5
17213
Reid Spencera773bd52006-08-04 18:18:08 +000017214 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017215fi
Reid Spencera773bd52006-08-04 18:18:08 +000017216
Tanya Lattnercf067672008-01-17 05:57:22 +000017217rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017218 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017219LIBS=$ac_check_lib_save_LIBS
17220fi
Reid Spencera773bd52006-08-04 18:18:08 +000017221{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17222echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017223if test $ac_cv_lib_dld_dld_link = yes; then
17224 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17225fi
17226
17227
17228fi
17229
17230
17231fi
17232
17233
17234fi
17235
17236
17237fi
17238
17239
17240fi
17241
17242 ;;
17243 esac
17244
17245 if test "x$lt_cv_dlopen" != xno; then
17246 enable_dlopen=yes
17247 else
17248 enable_dlopen=no
17249 fi
17250
17251 case $lt_cv_dlopen in
17252 dlopen)
17253 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017254 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017255
17256 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017258
17259 save_LIBS="$LIBS"
17260 LIBS="$lt_cv_dlopen_libs $LIBS"
17261
Reid Spencera773bd52006-08-04 18:18:08 +000017262 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17263echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017264if test "${lt_cv_dlopen_self+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17266else
17267 if test "$cross_compiling" = yes; then :
17268 lt_cv_dlopen_self=cross
17269else
John Criswell47fdd832003-07-14 16:52:07 +000017270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017271 lt_status=$lt_dlunknown
17272 cat > conftest.$ac_ext <<EOF
Gordon Henriksene7072162008-03-07 18:20:01 +000017273#line 17273 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017274#include "confdefs.h"
17275
17276#if HAVE_DLFCN_H
17277#include <dlfcn.h>
17278#endif
17279
17280#include <stdio.h>
17281
17282#ifdef RTLD_GLOBAL
17283# define LT_DLGLOBAL RTLD_GLOBAL
17284#else
17285# ifdef DL_GLOBAL
17286# define LT_DLGLOBAL DL_GLOBAL
17287# else
17288# define LT_DLGLOBAL 0
17289# endif
17290#endif
17291
17292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17293 find out it does not work in some platform. */
17294#ifndef LT_DLLAZY_OR_NOW
17295# ifdef RTLD_LAZY
17296# define LT_DLLAZY_OR_NOW RTLD_LAZY
17297# else
17298# ifdef DL_LAZY
17299# define LT_DLLAZY_OR_NOW DL_LAZY
17300# else
17301# ifdef RTLD_NOW
17302# define LT_DLLAZY_OR_NOW RTLD_NOW
17303# else
17304# ifdef DL_NOW
17305# define LT_DLLAZY_OR_NOW DL_NOW
17306# else
17307# define LT_DLLAZY_OR_NOW 0
17308# endif
17309# endif
17310# endif
17311# endif
17312#endif
17313
17314#ifdef __cplusplus
17315extern "C" void exit (int);
17316#endif
17317
17318void fnord() { int i=42;}
17319int main ()
17320{
17321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17322 int status = $lt_dlunknown;
17323
17324 if (self)
17325 {
17326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17328 /* dlclose (self); */
17329 }
Reid Spencera773bd52006-08-04 18:18:08 +000017330 else
17331 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017332
17333 exit (status);
17334}
17335EOF
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017341 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017342 lt_status=$?
17343 case x$lt_status in
17344 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17345 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017346 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017347 esac
17348 else :
17349 # compilation failed
17350 lt_cv_dlopen_self=no
17351 fi
17352fi
17353rm -fr conftest*
17354
17355
17356fi
Reid Spencera773bd52006-08-04 18:18:08 +000017357{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17358echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017359
17360 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017361 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17362 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17363echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017364if test "${lt_cv_dlopen_self_static+set}" = set; then
17365 echo $ECHO_N "(cached) $ECHO_C" >&6
17366else
17367 if test "$cross_compiling" = yes; then :
17368 lt_cv_dlopen_self_static=cross
17369else
John Criswell47fdd832003-07-14 16:52:07 +000017370 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017371 lt_status=$lt_dlunknown
17372 cat > conftest.$ac_ext <<EOF
Gordon Henriksene7072162008-03-07 18:20:01 +000017373#line 17373 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017374#include "confdefs.h"
17375
17376#if HAVE_DLFCN_H
17377#include <dlfcn.h>
17378#endif
17379
17380#include <stdio.h>
17381
17382#ifdef RTLD_GLOBAL
17383# define LT_DLGLOBAL RTLD_GLOBAL
17384#else
17385# ifdef DL_GLOBAL
17386# define LT_DLGLOBAL DL_GLOBAL
17387# else
17388# define LT_DLGLOBAL 0
17389# endif
17390#endif
17391
17392/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17393 find out it does not work in some platform. */
17394#ifndef LT_DLLAZY_OR_NOW
17395# ifdef RTLD_LAZY
17396# define LT_DLLAZY_OR_NOW RTLD_LAZY
17397# else
17398# ifdef DL_LAZY
17399# define LT_DLLAZY_OR_NOW DL_LAZY
17400# else
17401# ifdef RTLD_NOW
17402# define LT_DLLAZY_OR_NOW RTLD_NOW
17403# else
17404# ifdef DL_NOW
17405# define LT_DLLAZY_OR_NOW DL_NOW
17406# else
17407# define LT_DLLAZY_OR_NOW 0
17408# endif
17409# endif
17410# endif
17411# endif
17412#endif
17413
17414#ifdef __cplusplus
17415extern "C" void exit (int);
17416#endif
17417
17418void fnord() { int i=42;}
17419int main ()
17420{
17421 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17422 int status = $lt_dlunknown;
17423
17424 if (self)
17425 {
17426 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17427 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17428 /* dlclose (self); */
17429 }
Reid Spencera773bd52006-08-04 18:18:08 +000017430 else
17431 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017432
17433 exit (status);
17434}
17435EOF
17436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017441 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017442 lt_status=$?
17443 case x$lt_status in
17444 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17445 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017446 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017447 esac
17448 else :
17449 # compilation failed
17450 lt_cv_dlopen_self_static=no
17451 fi
17452fi
17453rm -fr conftest*
17454
17455
17456fi
Reid Spencera773bd52006-08-04 18:18:08 +000017457{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17458echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017459 fi
17460
17461 CPPFLAGS="$save_CPPFLAGS"
17462 LDFLAGS="$save_LDFLAGS"
17463 LIBS="$save_LIBS"
17464 ;;
17465 esac
17466
17467 case $lt_cv_dlopen_self in
17468 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17469 *) enable_dlopen_self=unknown ;;
17470 esac
17471
17472 case $lt_cv_dlopen_self_static in
17473 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17474 *) enable_dlopen_self_static=unknown ;;
17475 esac
17476fi
17477
17478
Reid Spencera773bd52006-08-04 18:18:08 +000017479# Report which library types will actually be built
17480{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17481echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17482{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17483echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017484
Reid Spencera773bd52006-08-04 18:18:08 +000017485{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17486echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017487test "$can_build_shared" = "no" && enable_shared=no
17488
17489# On AIX, shared libraries and static libraries use the same namespace, and
17490# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017491case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017492aix3*)
17493 test "$enable_shared" = yes && enable_static=no
17494 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017495 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017496 postinstall_cmds='$RANLIB $lib'
17497 fi
17498 ;;
17499
Reid Spencer2706f8c2004-09-19 23:53:36 +000017500aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017501 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17502 test "$enable_shared" = yes && enable_static=no
17503 fi
John Criswell7a73b802003-06-30 21:59:07 +000017504 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017505esac
Reid Spencera773bd52006-08-04 18:18:08 +000017506{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17507echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017508
Reid Spencera773bd52006-08-04 18:18:08 +000017509{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17510echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017511# Make sure either enable_shared or enable_static is yes.
17512test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017513{ echo "$as_me:$LINENO: result: $enable_static" >&5
17514echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017515
17516# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017517# libtool distribution, otherwise you forgot to ship ltmain.sh
17518# with your package, and you will get complaints that there are
17519# no rules to generate ltmain.sh.
17520if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017521 # See if we are running on zsh, and set the options which allow our commands through
17522 # without removal of \ escapes.
17523 if test -n "${ZSH_VERSION+set}" ; then
17524 setopt NO_GLOB_SUBST
17525 fi
John Criswell7a73b802003-06-30 21:59:07 +000017526 # Now quote all the things that may contain metacharacters while being
17527 # careful not to overquote the AC_SUBSTed values. We take copies of the
17528 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017529 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 +000017530 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017531 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17532 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17533 deplibs_check_method reload_flag reload_cmds need_locks \
17534 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17535 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017536 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017537 old_postinstall_cmds old_postuninstall_cmds \
17538 compiler \
17539 CC \
17540 LD \
17541 lt_prog_compiler_wl \
17542 lt_prog_compiler_pic \
17543 lt_prog_compiler_static \
17544 lt_prog_compiler_no_builtin_flag \
17545 export_dynamic_flag_spec \
17546 thread_safe_flag_spec \
17547 whole_archive_flag_spec \
17548 enable_shared_with_static_runtimes \
17549 old_archive_cmds \
17550 old_archive_from_new_cmds \
17551 predep_objects \
17552 postdep_objects \
17553 predeps \
17554 postdeps \
17555 compiler_lib_search_path \
17556 archive_cmds \
17557 archive_expsym_cmds \
17558 postinstall_cmds \
17559 postuninstall_cmds \
17560 old_archive_from_expsyms_cmds \
17561 allow_undefined_flag \
17562 no_undefined_flag \
17563 export_symbols_cmds \
17564 hardcode_libdir_flag_spec \
17565 hardcode_libdir_flag_spec_ld \
17566 hardcode_libdir_separator \
17567 hardcode_automatic \
17568 module_cmds \
17569 module_expsym_cmds \
17570 lt_cv_prog_compiler_c_o \
17571 exclude_expsyms \
17572 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017573
17574 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017575 old_archive_cmds | \
17576 old_archive_from_new_cmds | \
17577 archive_cmds | \
17578 archive_expsym_cmds | \
17579 module_cmds | \
17580 module_expsym_cmds | \
17581 old_archive_from_expsyms_cmds | \
17582 export_symbols_cmds | \
17583 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017584 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017585 old_postinstall_cmds | old_postuninstall_cmds | \
17586 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017587 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017588 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 +000017589 ;;
17590 *)
17591 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17592 ;;
17593 esac
17594 done
17595
John Criswell47fdd832003-07-14 16:52:07 +000017596 case $lt_echo in
17597 *'\$0 --fallback-echo"')
17598 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17599 ;;
17600 esac
17601
17602cfgfile="${ofile}T"
17603 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17604 $rm -f "$cfgfile"
17605 { echo "$as_me:$LINENO: creating $ofile" >&5
17606echo "$as_me: creating $ofile" >&6;}
17607
17608 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017609#! $SHELL
17610
John Criswell47fdd832003-07-14 16:52:07 +000017611# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017612# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17613# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17614#
John Criswell47fdd832003-07-14 16:52:07 +000017615# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17616# Free Software Foundation, Inc.
17617#
17618# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017619# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17620#
17621# This program is free software; you can redistribute it and/or modify
17622# it under the terms of the GNU General Public License as published by
17623# the Free Software Foundation; either version 2 of the License, or
17624# (at your option) any later version.
17625#
17626# This program is distributed in the hope that it will be useful, but
17627# WITHOUT ANY WARRANTY; without even the implied warranty of
17628# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17629# General Public License for more details.
17630#
17631# You should have received a copy of the GNU General Public License
17632# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017633# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017634#
17635# As a special exception to the GNU General Public License, if you
17636# distribute this file as part of a program that contains a
17637# configuration script generated by Autoconf, you may include it under
17638# the same distribution terms that you use for the rest of that program.
17639
John Criswell47fdd832003-07-14 16:52:07 +000017640# A sed program that does not truncate output.
17641SED=$lt_SED
17642
John Criswell7a73b802003-06-30 21:59:07 +000017643# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017644Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017645
17646# The HP-UX ksh and POSIX shell print the target directory to stdout
17647# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017649
John Criswell47fdd832003-07-14 16:52:07 +000017650# The names of the tagged configurations supported by this script.
17651available_tags=
17652
John Criswell7a73b802003-06-30 21:59:07 +000017653# ### BEGIN LIBTOOL CONFIG
17654
17655# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17656
17657# Shell to use when invoking shell scripts.
17658SHELL=$lt_SHELL
17659
17660# Whether or not to build shared libraries.
17661build_libtool_libs=$enable_shared
17662
17663# Whether or not to build static libraries.
17664build_old_libs=$enable_static
17665
17666# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017667build_libtool_need_lc=$archive_cmds_need_lc
17668
17669# Whether or not to disallow shared libs when runtime libs are static
17670allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017671
17672# Whether or not to optimize for fast installation.
17673fast_install=$enable_fast_install
17674
17675# The host system.
17676host_alias=$host_alias
17677host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017678host_os=$host_os
17679
17680# The build system.
17681build_alias=$build_alias
17682build=$build
17683build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017684
17685# An echo program that does not interpret backslashes.
17686echo=$lt_echo
17687
17688# The archiver.
17689AR=$lt_AR
17690AR_FLAGS=$lt_AR_FLAGS
17691
John Criswell47fdd832003-07-14 16:52:07 +000017692# A C compiler.
17693LTCC=$lt_LTCC
17694
Reid Spencera773bd52006-08-04 18:18:08 +000017695# LTCC compiler flags.
17696LTCFLAGS=$lt_LTCFLAGS
17697
John Criswell47fdd832003-07-14 16:52:07 +000017698# A language-specific compiler.
17699CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017700
17701# Is the compiler the GNU C compiler?
17702with_gcc=$GCC
17703
John Criswell47fdd832003-07-14 16:52:07 +000017704# An ERE matcher.
17705EGREP=$lt_EGREP
17706
John Criswell7a73b802003-06-30 21:59:07 +000017707# The linker used to build libraries.
17708LD=$lt_LD
17709
17710# Whether we need hard or soft links.
17711LN_S=$lt_LN_S
17712
17713# A BSD-compatible nm program.
17714NM=$lt_NM
17715
17716# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017717STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017718
17719# Used to examine libraries when file_magic_cmd begins "file"
17720MAGIC_CMD=$MAGIC_CMD
17721
17722# Used on cygwin: DLL creation program.
17723DLLTOOL="$DLLTOOL"
17724
17725# Used on cygwin: object dumper.
17726OBJDUMP="$OBJDUMP"
17727
17728# Used on cygwin: assembler.
17729AS="$AS"
17730
17731# The name of the directory that contains temporary libtool files.
17732objdir=$objdir
17733
17734# How to create reloadable object files.
17735reload_flag=$lt_reload_flag
17736reload_cmds=$lt_reload_cmds
17737
17738# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017739wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017740
17741# Object file suffix (normally "o").
17742objext="$ac_objext"
17743
17744# Old archive suffix (normally "a").
17745libext="$libext"
17746
John Criswell47fdd832003-07-14 16:52:07 +000017747# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017748shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017749
John Criswell7a73b802003-06-30 21:59:07 +000017750# Executable file suffix (normally "").
17751exeext="$exeext"
17752
17753# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017754pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017755pic_mode=$pic_mode
17756
John Criswell47fdd832003-07-14 16:52:07 +000017757# What is the maximum length of a command?
17758max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017759
John Criswell47fdd832003-07-14 16:52:07 +000017760# Does compiler simultaneously support -c and -o options?
17761compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017762
Reid Spencera773bd52006-08-04 18:18:08 +000017763# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017764need_locks=$lt_need_locks
17765
17766# Do we need the lib prefix for modules?
17767need_lib_prefix=$need_lib_prefix
17768
17769# Do we need a version for libraries?
17770need_version=$need_version
17771
17772# Whether dlopen is supported.
17773dlopen_support=$enable_dlopen
17774
17775# Whether dlopen of programs is supported.
17776dlopen_self=$enable_dlopen_self
17777
17778# Whether dlopen of statically linked programs is supported.
17779dlopen_self_static=$enable_dlopen_self_static
17780
17781# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017782link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017783
17784# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017785no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017786
17787# Compiler flag to allow reflexive dlopens.
17788export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17789
17790# Compiler flag to generate shared objects directly from archives.
17791whole_archive_flag_spec=$lt_whole_archive_flag_spec
17792
17793# Compiler flag to generate thread-safe objects.
17794thread_safe_flag_spec=$lt_thread_safe_flag_spec
17795
17796# Library versioning type.
17797version_type=$version_type
17798
17799# Format of library name prefix.
17800libname_spec=$lt_libname_spec
17801
17802# List of archive names. First name is the real one, the rest are links.
17803# The last name is the one that the linker finds with -lNAME.
17804library_names_spec=$lt_library_names_spec
17805
17806# The coded name of the library, if different from the real name.
17807soname_spec=$lt_soname_spec
17808
17809# Commands used to build and install an old-style archive.
17810RANLIB=$lt_RANLIB
17811old_archive_cmds=$lt_old_archive_cmds
17812old_postinstall_cmds=$lt_old_postinstall_cmds
17813old_postuninstall_cmds=$lt_old_postuninstall_cmds
17814
17815# Create an old-style archive from a shared archive.
17816old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17817
17818# Create a temporary old-style archive to link instead of a shared archive.
17819old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17820
17821# Commands used to build and install a shared archive.
17822archive_cmds=$lt_archive_cmds
17823archive_expsym_cmds=$lt_archive_expsym_cmds
17824postinstall_cmds=$lt_postinstall_cmds
17825postuninstall_cmds=$lt_postuninstall_cmds
17826
John Criswell47fdd832003-07-14 16:52:07 +000017827# Commands used to build a loadable module (assumed same as above if empty)
17828module_cmds=$lt_module_cmds
17829module_expsym_cmds=$lt_module_expsym_cmds
17830
John Criswell7a73b802003-06-30 21:59:07 +000017831# Commands to strip libraries.
17832old_striplib=$lt_old_striplib
17833striplib=$lt_striplib
17834
John Criswell47fdd832003-07-14 16:52:07 +000017835# Dependencies to place before the objects being linked to create a
17836# shared library.
17837predep_objects=$lt_predep_objects
17838
17839# Dependencies to place after the objects being linked to create a
17840# shared library.
17841postdep_objects=$lt_postdep_objects
17842
17843# Dependencies to place before the objects being linked to create a
17844# shared library.
17845predeps=$lt_predeps
17846
17847# Dependencies to place after the objects being linked to create a
17848# shared library.
17849postdeps=$lt_postdeps
17850
17851# The library search path used internally by the compiler when linking
17852# a shared library.
17853compiler_lib_search_path=$lt_compiler_lib_search_path
17854
John Criswell7a73b802003-06-30 21:59:07 +000017855# Method to check whether dependent libraries are shared objects.
17856deplibs_check_method=$lt_deplibs_check_method
17857
17858# Command to use when deplibs_check_method == file_magic.
17859file_magic_cmd=$lt_file_magic_cmd
17860
17861# Flag that allows shared libraries with undefined symbols to be built.
17862allow_undefined_flag=$lt_allow_undefined_flag
17863
17864# Flag that forces no undefined symbols.
17865no_undefined_flag=$lt_no_undefined_flag
17866
17867# Commands used to finish a libtool library installation in a directory.
17868finish_cmds=$lt_finish_cmds
17869
17870# Same as above, but a single script fragment to be evaled but not shown.
17871finish_eval=$lt_finish_eval
17872
17873# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017874global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017875
17876# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017877global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017878
17879# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017880global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017881
17882# This is the shared library runtime path variable.
17883runpath_var=$runpath_var
17884
17885# This is the shared library path variable.
17886shlibpath_var=$shlibpath_var
17887
17888# Is shlibpath searched before the hard-coded library search path?
17889shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17890
17891# How to hardcode a shared library path into an executable.
17892hardcode_action=$hardcode_action
17893
17894# Whether we should hardcode library paths into libraries.
17895hardcode_into_libs=$hardcode_into_libs
17896
17897# Flag to hardcode \$libdir into a binary during linking.
17898# This must work even if \$libdir does not exist.
17899hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17900
John Criswell47fdd832003-07-14 16:52:07 +000017901# If ld is used when linking, flag to hardcode \$libdir into
17902# a binary during linking. This must work even if \$libdir does
17903# not exist.
17904hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17905
John Criswell7a73b802003-06-30 21:59:07 +000017906# Whether we need a single -rpath flag with a separated argument.
17907hardcode_libdir_separator=$lt_hardcode_libdir_separator
17908
John Criswell47fdd832003-07-14 16:52:07 +000017909# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017910# resulting binary.
17911hardcode_direct=$hardcode_direct
17912
17913# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17914# resulting binary.
17915hardcode_minus_L=$hardcode_minus_L
17916
17917# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17918# the resulting binary.
17919hardcode_shlibpath_var=$hardcode_shlibpath_var
17920
John Criswell47fdd832003-07-14 16:52:07 +000017921# Set to yes if building a shared library automatically hardcodes DIR into the library
17922# and all subsequent libraries and executables linked against it.
17923hardcode_automatic=$hardcode_automatic
17924
John Criswell7a73b802003-06-30 21:59:07 +000017925# Variables whose values should be saved in libtool wrapper scripts and
17926# restored at relink time.
17927variables_saved_for_relink="$variables_saved_for_relink"
17928
17929# Whether libtool must link a program against all its dependency libraries.
17930link_all_deplibs=$link_all_deplibs
17931
17932# Compile-time system search path for libraries
17933sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17934
17935# Run-time system search path for libraries
17936sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17937
17938# Fix the shell variable \$srcfile for the compiler.
17939fix_srcfile_path="$fix_srcfile_path"
17940
17941# Set to yes if exported symbols are required.
17942always_export_symbols=$always_export_symbols
17943
17944# The commands to list exported symbols.
17945export_symbols_cmds=$lt_export_symbols_cmds
17946
17947# The commands to extract the exported symbol list from a shared archive.
17948extract_expsyms_cmds=$lt_extract_expsyms_cmds
17949
17950# Symbols that should not be listed in the preloaded symbols.
17951exclude_expsyms=$lt_exclude_expsyms
17952
17953# Symbols that must always be exported.
17954include_expsyms=$lt_include_expsyms
17955
17956# ### END LIBTOOL CONFIG
17957
17958__EOF__
17959
John Criswell47fdd832003-07-14 16:52:07 +000017960
John Criswell7a73b802003-06-30 21:59:07 +000017961 case $host_os in
17962 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017963 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017964
17965# AIX sometimes has problems with the GCC collect2 program. For some
17966# reason, if we set the COLLECT_NAMES environment variable, the problems
17967# vanish in a puff of smoke.
17968if test "X${COLLECT_NAMES+set}" != Xset; then
17969 COLLECT_NAMES=
17970 export COLLECT_NAMES
17971fi
17972EOF
17973 ;;
17974 esac
17975
John Criswell7a73b802003-06-30 21:59:07 +000017976 # We use sed instead of cat because bash on DJGPP gets confused if
17977 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17978 # text mode, it properly converts lines to CR/LF. This bash problem
17979 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017980 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017981
John Criswell47fdd832003-07-14 16:52:07 +000017982 mv -f "$cfgfile" "$ofile" || \
17983 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017984 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017985
17986else
17987 # If there is no Makefile yet, we rely on a make rule to execute
17988 # `config.status --recheck' to rerun these tests and create the
17989 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017990 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17991 if test -f "$ltmain_in"; then
17992 test -f Makefile && make "$ltmain"
17993 fi
John Criswell7a73b802003-06-30 21:59:07 +000017994fi
John Criswell7a73b802003-06-30 21:59:07 +000017995
17996
John Criswell47fdd832003-07-14 16:52:07 +000017997ac_ext=c
17998ac_cpp='$CPP $CPPFLAGS'
17999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18001ac_compiler_gnu=$ac_cv_c_compiler_gnu
18002
18003CC="$lt_save_CC"
18004
18005
Reid Spencera773bd52006-08-04 18:18:08 +000018006# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018007if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018008 withval=$with_tags; tagnames="$withval"
18009fi
18010
John Criswell47fdd832003-07-14 16:52:07 +000018011
18012if test -f "$ltmain" && test -n "$tagnames"; then
18013 if test ! -f "${ofile}"; then
18014 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18015echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18016 fi
18017
18018 if test -z "$LTCC"; then
18019 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18020 if test -z "$LTCC"; then
18021 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18022echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18023 else
18024 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18025echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18026 fi
18027 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018028 if test -z "$LTCFLAGS"; then
18029 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18030 fi
John Criswell47fdd832003-07-14 16:52:07 +000018031
18032 # Extract list of available tagged configurations in $ofile.
18033 # Note that this assumes the entire list is on one line.
18034 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18035
18036 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18037 for tagname in $tagnames; do
18038 IFS="$lt_save_ifs"
18039 # Check whether tagname contains only valid characters
18040 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18041 "") ;;
18042 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18043echo "$as_me: error: invalid tag name: $tagname" >&2;}
18044 { (exit 1); exit 1; }; }
18045 ;;
18046 esac
18047
18048 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18049 then
18050 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18051echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18052 { (exit 1); exit 1; }; }
18053 fi
18054
18055 # Update the list of available tags.
18056 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018057 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018058
18059 case $tagname in
18060 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018061 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18062 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18063 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018064 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018065ac_cpp='$CXXCPP $CPPFLAGS'
18066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18069
18070
18071
18072
18073archive_cmds_need_lc_CXX=no
18074allow_undefined_flag_CXX=
18075always_export_symbols_CXX=no
18076archive_expsym_cmds_CXX=
18077export_dynamic_flag_spec_CXX=
18078hardcode_direct_CXX=no
18079hardcode_libdir_flag_spec_CXX=
18080hardcode_libdir_flag_spec_ld_CXX=
18081hardcode_libdir_separator_CXX=
18082hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018083hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018084hardcode_automatic_CXX=no
18085module_cmds_CXX=
18086module_expsym_cmds_CXX=
18087link_all_deplibs_CXX=unknown
18088old_archive_cmds_CXX=$old_archive_cmds
18089no_undefined_flag_CXX=
18090whole_archive_flag_spec_CXX=
18091enable_shared_with_static_runtimes_CXX=no
18092
18093# Dependencies to place before and after the object being linked:
18094predep_objects_CXX=
18095postdep_objects_CXX=
18096predeps_CXX=
18097postdeps_CXX=
18098compiler_lib_search_path_CXX=
18099
18100# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018101ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018102
18103# Object file extension for compiled C++ test sources.
18104objext=o
18105objext_CXX=$objext
18106
18107# Code to be used in simple compile tests
18108lt_simple_compile_test_code="int some_variable = 0;\n"
18109
18110# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018111lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018112
18113# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18114
18115# If no C compiler was specified, use CC.
18116LTCC=${LTCC-"$CC"}
18117
Reid Spencera773bd52006-08-04 18:18:08 +000018118# If no C compiler flags were specified, use CFLAGS.
18119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18120
John Criswell47fdd832003-07-14 16:52:07 +000018121# Allow CC to be a program name with arguments.
18122compiler=$CC
18123
18124
Reid Spencera773bd52006-08-04 18:18:08 +000018125# save warnings/boilerplate of simple test code
18126ac_outfile=conftest.$ac_objext
18127printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18129_lt_compiler_boilerplate=`cat conftest.err`
18130$rm conftest*
18131
18132ac_outfile=conftest.$ac_objext
18133printf "$lt_simple_link_test_code" >conftest.$ac_ext
18134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18135_lt_linker_boilerplate=`cat conftest.err`
18136$rm conftest*
18137
18138
John Criswell47fdd832003-07-14 16:52:07 +000018139# Allow CC to be a program name with arguments.
18140lt_save_CC=$CC
18141lt_save_LD=$LD
18142lt_save_GCC=$GCC
18143GCC=$GXX
18144lt_save_with_gnu_ld=$with_gnu_ld
18145lt_save_path_LD=$lt_cv_path_LD
18146if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18147 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18148else
Reid Spencera773bd52006-08-04 18:18:08 +000018149 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018150fi
18151if test -n "${lt_cv_path_LDCXX+set}"; then
18152 lt_cv_path_LD=$lt_cv_path_LDCXX
18153else
Reid Spencera773bd52006-08-04 18:18:08 +000018154 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018155fi
18156test -z "${LDCXX+set}" || LD=$LDCXX
18157CC=${CXX-"c++"}
18158compiler=$CC
18159compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018160for cc_temp in $compiler""; do
18161 case $cc_temp in
18162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18164 \-*) ;;
18165 *) break;;
18166 esac
18167done
18168cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18169
John Criswell47fdd832003-07-14 16:52:07 +000018170
18171# We don't want -fno-exception wen compiling C++ code, so set the
18172# no_builtin_flag separately
18173if test "$GXX" = yes; then
18174 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18175else
18176 lt_prog_compiler_no_builtin_flag_CXX=
18177fi
18178
18179if test "$GXX" = yes; then
18180 # Set up default GNU C++ configuration
18181
18182
Reid Spencera773bd52006-08-04 18:18:08 +000018183# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018184if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018185 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018186else
18187 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018188fi
18189
John Criswell47fdd832003-07-14 16:52:07 +000018190ac_prog=ld
18191if test "$GCC" = yes; then
18192 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018193 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18194echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018195 case $host in
18196 *-*-mingw*)
18197 # gcc leaves a trailing carriage return which upsets mingw
18198 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18199 *)
18200 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18201 esac
18202 case $ac_prog in
18203 # Accept absolute paths.
18204 [\\/]* | ?:[\\/]*)
18205 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018206 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018207 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18208 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18209 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18210 done
18211 test -z "$LD" && LD="$ac_prog"
18212 ;;
18213 "")
18214 # If it fails, then pretend we aren't using GCC.
18215 ac_prog=ld
18216 ;;
18217 *)
18218 # If it is relative, then search for the first ld in PATH.
18219 with_gnu_ld=unknown
18220 ;;
18221 esac
18222elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018223 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18224echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018225else
Reid Spencera773bd52006-08-04 18:18:08 +000018226 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18227echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018228fi
18229if test "${lt_cv_path_LD+set}" = set; then
18230 echo $ECHO_N "(cached) $ECHO_C" >&6
18231else
18232 if test -z "$LD"; then
18233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18234 for ac_dir in $PATH; do
18235 IFS="$lt_save_ifs"
18236 test -z "$ac_dir" && ac_dir=.
18237 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18238 lt_cv_path_LD="$ac_dir/$ac_prog"
18239 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018240 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018241 # Break only if it was the GNU/non-GNU ld that we prefer.
18242 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18243 *GNU* | *'with BFD'*)
18244 test "$with_gnu_ld" != no && break
18245 ;;
18246 *)
18247 test "$with_gnu_ld" != yes && break
18248 ;;
18249 esac
18250 fi
18251 done
18252 IFS="$lt_save_ifs"
18253else
18254 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18255fi
18256fi
18257
18258LD="$lt_cv_path_LD"
18259if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018260 { echo "$as_me:$LINENO: result: $LD" >&5
18261echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018262else
Reid Spencera773bd52006-08-04 18:18:08 +000018263 { echo "$as_me:$LINENO: result: no" >&5
18264echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018265fi
18266test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18267echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18268 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018269{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18270echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018271if test "${lt_cv_prog_gnu_ld+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18273else
Reid Spencera773bd52006-08-04 18:18:08 +000018274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018275case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018276*GNU* | *'with BFD'*)
18277 lt_cv_prog_gnu_ld=yes
18278 ;;
18279*)
18280 lt_cv_prog_gnu_ld=no
18281 ;;
18282esac
18283fi
Reid Spencera773bd52006-08-04 18:18:08 +000018284{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18285echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018286with_gnu_ld=$lt_cv_prog_gnu_ld
18287
18288
18289
18290 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18291 # archiving commands below assume that GNU ld is being used.
18292 if test "$with_gnu_ld" = yes; then
18293 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18294 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'
18295
18296 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18297 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18298
18299 # If archive_cmds runs LD, not CC, wlarc should be empty
18300 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18301 # investigate it a little bit more. (MM)
18302 wlarc='${wl}'
18303
18304 # ancient GNU ld didn't support --whole-archive et. al.
18305 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18306 grep 'no-whole-archive' > /dev/null; then
18307 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18308 else
18309 whole_archive_flag_spec_CXX=
18310 fi
18311 else
18312 with_gnu_ld=no
18313 wlarc=
18314
18315 # A generic and very simple default shared library creation
18316 # command for GNU C++ for the case where it uses the native
18317 # linker, instead of GNU ld. If possible, this setting should
18318 # overridden to take advantage of the native linker features on
18319 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018320 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018321 fi
18322
18323 # Commands to make compiler produce verbose output that lists
18324 # what "hidden" libraries, object files and flags are used when
18325 # linking a shared library.
18326 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18327
18328else
18329 GXX=no
18330 with_gnu_ld=no
18331 wlarc=
18332fi
18333
18334# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018335{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18336echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018337ld_shlibs_CXX=yes
18338case $host_os in
18339 aix3*)
18340 # FIXME: insert proper C++ library support
18341 ld_shlibs_CXX=no
18342 ;;
18343 aix4* | aix5*)
18344 if test "$host_cpu" = ia64; then
18345 # On IA64, the linker does run time linking by default, so we don't
18346 # have to do anything special.
18347 aix_use_runtimelinking=no
18348 exp_sym_flag='-Bexport'
18349 no_entry_flag=""
18350 else
18351 aix_use_runtimelinking=no
18352
18353 # Test if we are trying to use run time linking or normal
18354 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18355 # need to do runtime linking.
18356 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18357 for ld_flag in $LDFLAGS; do
18358 case $ld_flag in
18359 *-brtl*)
18360 aix_use_runtimelinking=yes
18361 break
18362 ;;
18363 esac
18364 done
Reid Spencera773bd52006-08-04 18:18:08 +000018365 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018366 esac
18367
18368 exp_sym_flag='-bexport'
18369 no_entry_flag='-bnoentry'
18370 fi
18371
18372 # When large executables or shared objects are built, AIX ld can
18373 # have problems creating the table of contents. If linking a library
18374 # or program results in "error TOC overflow" add -mminimal-toc to
18375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18377
18378 archive_cmds_CXX=''
18379 hardcode_direct_CXX=yes
18380 hardcode_libdir_separator_CXX=':'
18381 link_all_deplibs_CXX=yes
18382
18383 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018384 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018385 # We only want to do this on AIX 4.2 and lower, the check
18386 # below for broken collect2 doesn't work under 4.3+
18387 collect2name=`${CC} -print-prog-name=collect2`
18388 if test -f "$collect2name" && \
18389 strings "$collect2name" | grep resolve_lib_name >/dev/null
18390 then
18391 # We have reworked collect2
18392 hardcode_direct_CXX=yes
18393 else
18394 # We have old collect2
18395 hardcode_direct_CXX=unsupported
18396 # It fails to find uninstalled libraries when the uninstalled
18397 # path is not listed in the libpath. Setting hardcode_minus_L
18398 # to unsupported forces relinking
18399 hardcode_minus_L_CXX=yes
18400 hardcode_libdir_flag_spec_CXX='-L$libdir'
18401 hardcode_libdir_separator_CXX=
18402 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018403 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018404 esac
18405 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018406 if test "$aix_use_runtimelinking" = yes; then
18407 shared_flag="$shared_flag "'${wl}-G'
18408 fi
John Criswell47fdd832003-07-14 16:52:07 +000018409 else
18410 # not using gcc
18411 if test "$host_cpu" = ia64; then
18412 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18413 # chokes on -Wl,-G. The following line is correct:
18414 shared_flag='-G'
18415 else
18416 if test "$aix_use_runtimelinking" = yes; then
18417 shared_flag='${wl}-G'
18418 else
18419 shared_flag='${wl}-bM:SRE'
18420 fi
18421 fi
18422 fi
18423
18424 # It seems that -bexpall does not export symbols beginning with
18425 # underscore (_), so it is better to generate a list of symbols to export.
18426 always_export_symbols_CXX=yes
18427 if test "$aix_use_runtimelinking" = yes; then
18428 # Warning - without using the other runtime loading flags (-brtl),
18429 # -berok will link without error, but may produce a broken library.
18430 allow_undefined_flag_CXX='-berok'
18431 # Determine the default libpath from the value encoded in an empty executable.
18432 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018438
John Criswell47fdd832003-07-14 16:52:07 +000018439int
18440main ()
18441{
18442
18443 ;
18444 return 0;
18445}
18446_ACEOF
18447rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018448if { (ac_try="$ac_link"
18449case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452esac
18453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018460 (exit $ac_status); } &&
18461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18462 { (case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465esac
18466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_try") 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest$ac_exeext'
18472 { (case "(($ac_try" in
18473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18474 *) ac_try_echo=$ac_try;;
18475esac
18476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18477 (eval "$ac_try") 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018481
18482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18483}'`
18484# Check for a 64-bit object if we didn't find anything.
18485if 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; }
18486}'`; fi
18487else
18488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018489sed 's/^/| /' conftest.$ac_ext >&5
18490
Reid Spencera773bd52006-08-04 18:18:08 +000018491
John Criswell47fdd832003-07-14 16:52:07 +000018492fi
Reid Spencera773bd52006-08-04 18:18:08 +000018493
Tanya Lattnercf067672008-01-17 05:57:22 +000018494rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018495 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18497
18498 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18499
Reid Spencera773bd52006-08-04 18:18:08 +000018500 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 +000018501 else
18502 if test "$host_cpu" = ia64; then
18503 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18504 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018505 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 +000018506 else
18507 # Determine the default libpath from the value encoded in an empty executable.
18508 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018514
John Criswell47fdd832003-07-14 16:52:07 +000018515int
18516main ()
18517{
18518
18519 ;
18520 return 0;
18521}
18522_ACEOF
18523rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018524if { (ac_try="$ac_link"
18525case "(($ac_try" in
18526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527 *) ac_try_echo=$ac_try;;
18528esac
18529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018531 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018532 grep -v '^ *+' conftest.er1 >conftest.err
18533 rm -f conftest.er1
18534 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000018536 (exit $ac_status); } &&
18537 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18538 { (case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541esac
18542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18543 (eval "$ac_try") 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); }; } &&
18547 { ac_try='test -s conftest$ac_exeext'
18548 { (case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551esac
18552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_try") 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018557
18558aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18559}'`
18560# Check for a 64-bit object if we didn't find anything.
18561if 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; }
18562}'`; fi
18563else
18564 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018565sed 's/^/| /' conftest.$ac_ext >&5
18566
Reid Spencera773bd52006-08-04 18:18:08 +000018567
John Criswell47fdd832003-07-14 16:52:07 +000018568fi
Reid Spencera773bd52006-08-04 18:18:08 +000018569
Tanya Lattnercf067672008-01-17 05:57:22 +000018570rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018571 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018572if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18573
18574 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18575 # Warning - without using the other run time loading flags,
18576 # -berok will link without error, but may produce a broken library.
18577 no_undefined_flag_CXX=' ${wl}-bernotok'
18578 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018579 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018580 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018581 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018582 # This is similar to how AIX traditionally builds its shared libraries.
18583 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 +000018584 fi
18585 fi
18586 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018587
18588 beos*)
18589 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18590 allow_undefined_flag_CXX=unsupported
18591 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18592 # support --undefined. This deserves some investigation. FIXME
18593 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18594 else
18595 ld_shlibs_CXX=no
18596 fi
18597 ;;
18598
John Criswell47fdd832003-07-14 16:52:07 +000018599 chorus*)
18600 case $cc_basename in
18601 *)
18602 # FIXME: insert proper C++ library support
18603 ld_shlibs_CXX=no
18604 ;;
18605 esac
18606 ;;
18607
18608 cygwin* | mingw* | pw32*)
18609 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18610 # as there is no search path for DLLs.
18611 hardcode_libdir_flag_spec_CXX='-L$libdir'
18612 allow_undefined_flag_CXX=unsupported
18613 always_export_symbols_CXX=no
18614 enable_shared_with_static_runtimes_CXX=yes
18615
18616 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018617 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 +000018618 # If the export-symbols file already is a .def file (1st line
18619 # is EXPORTS), use it as is; otherwise, prepend...
18620 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18621 cp $export_symbols $output_objdir/$soname.def;
18622 else
18623 echo EXPORTS > $output_objdir/$soname.def;
18624 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018625 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018626 $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 +000018627 else
18628 ld_shlibs_CXX=no
18629 fi
18630 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018631 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018632 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018633 rhapsody* | darwin1.[012])
18634 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18635 ;;
18636 *) # Darwin 1.3 on
18637 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18638 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18639 else
18640 case ${MACOSX_DEPLOYMENT_TARGET} in
18641 10.[012])
18642 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18643 ;;
18644 10.*)
18645 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18646 ;;
18647 esac
18648 fi
18649 ;;
18650 esac
18651 archive_cmds_need_lc_CXX=no
18652 hardcode_direct_CXX=no
18653 hardcode_automatic_CXX=yes
18654 hardcode_shlibpath_var_CXX=unsupported
18655 whole_archive_flag_spec_CXX=''
18656 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018657
Reid Spencer2706f8c2004-09-19 23:53:36 +000018658 if test "$GXX" = yes ; then
18659 lt_int_apple_cc_single_mod=no
18660 output_verbose_link_cmd='echo'
18661 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18662 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018663 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018664 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018665 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 +000018666 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018667 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 +000018668 fi
18669 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018670 # 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 +000018671 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018672 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 +000018673 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018674 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 +000018675 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018676 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 +000018677 else
Reid Spencera773bd52006-08-04 18:18:08 +000018678 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018679 xlc*)
18680 output_verbose_link_cmd='echo'
18681 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'
18682 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018683 # 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 +000018684 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}'
18685 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 +000018686 ;;
18687 *)
18688 ld_shlibs_CXX=no
18689 ;;
18690 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018691 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018692 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018693
18694 dgux*)
18695 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018696 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018697 # FIXME: insert proper C++ library support
18698 ld_shlibs_CXX=no
18699 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018700 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018701 # Green Hills C++ Compiler
18702 # FIXME: insert proper C++ library support
18703 ld_shlibs_CXX=no
18704 ;;
18705 *)
18706 # FIXME: insert proper C++ library support
18707 ld_shlibs_CXX=no
18708 ;;
18709 esac
18710 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018711 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018712 # C++ shared libraries reported to be fairly broken before switch to ELF
18713 ld_shlibs_CXX=no
18714 ;;
18715 freebsd-elf*)
18716 archive_cmds_need_lc_CXX=no
18717 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018718 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18720 # conventions
18721 ld_shlibs_CXX=yes
18722 ;;
18723 gnu*)
18724 ;;
18725 hpux9*)
18726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18727 hardcode_libdir_separator_CXX=:
18728 export_dynamic_flag_spec_CXX='${wl}-E'
18729 hardcode_direct_CXX=yes
18730 hardcode_minus_L_CXX=yes # Not in the search PATH,
18731 # but as the default
18732 # location of the library.
18733
18734 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018735 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018736 # FIXME: insert proper C++ library support
18737 ld_shlibs_CXX=no
18738 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018739 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018740 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 +000018741 # Commands to make compiler produce verbose output that lists
18742 # what "hidden" libraries, object files and flags are used when
18743 # linking a shared library.
18744 #
18745 # There doesn't appear to be a way to prevent this compiler from
18746 # explicitly linking system object files so we need to strip them
18747 # from the output so that they don't get included in the library
18748 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018749 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 +000018750 ;;
18751 *)
18752 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018753 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 +000018754 else
18755 # FIXME: insert proper C++ library support
18756 ld_shlibs_CXX=no
18757 fi
18758 ;;
18759 esac
18760 ;;
18761 hpux10*|hpux11*)
18762 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18764 hardcode_libdir_separator_CXX=:
18765
18766 case $host_cpu in
18767 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018769 ;;
18770 *)
John Criswell47fdd832003-07-14 16:52:07 +000018771 export_dynamic_flag_spec_CXX='${wl}-E'
18772 ;;
18773 esac
18774 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018775 case $host_cpu in
18776 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018777 hardcode_direct_CXX=no
18778 hardcode_shlibpath_var_CXX=no
18779 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018780 *)
18781 hardcode_direct_CXX=yes
18782 hardcode_minus_L_CXX=yes # Not in the search PATH,
18783 # but as the default
18784 # location of the library.
18785 ;;
18786 esac
18787
18788 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018789 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018790 # FIXME: insert proper C++ library support
18791 ld_shlibs_CXX=no
18792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018793 aCC*)
18794 case $host_cpu in
18795 hppa*64*)
18796 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18797 ;;
18798 ia64*)
18799 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 +000018800 ;;
18801 *)
18802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18803 ;;
18804 esac
18805 # Commands to make compiler produce verbose output that lists
18806 # what "hidden" libraries, object files and flags are used when
18807 # linking a shared library.
18808 #
18809 # There doesn't appear to be a way to prevent this compiler from
18810 # explicitly linking system object files so we need to strip them
18811 # from the output so that they don't get included in the library
18812 # dependencies.
18813 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'
18814 ;;
18815 *)
18816 if test "$GXX" = yes; then
18817 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018818 case $host_cpu in
18819 hppa*64*)
18820 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18821 ;;
18822 ia64*)
18823 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 +000018824 ;;
18825 *)
18826 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'
18827 ;;
18828 esac
18829 fi
18830 else
18831 # FIXME: insert proper C++ library support
18832 ld_shlibs_CXX=no
18833 fi
18834 ;;
18835 esac
18836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018837 interix3*)
18838 hardcode_direct_CXX=no
18839 hardcode_shlibpath_var_CXX=no
18840 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18841 export_dynamic_flag_spec_CXX='${wl}-E'
18842 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18843 # Instead, shared libraries are loaded at an image base (0x10000000 by
18844 # default) and relocated if they conflict, which is a slow very memory
18845 # consuming and fragmenting process. To avoid this, we pick a random,
18846 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18847 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18848 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'
18849 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'
18850 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018851 irix5* | irix6*)
18852 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018853 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018854 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018855 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 +000018856
18857 # Archives containing C++ object files must be created using
18858 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18859 # necessary to make sure instantiated templates are included
18860 # in the archive.
18861 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18862 ;;
18863 *)
18864 if test "$GXX" = yes; then
18865 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018866 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 +000018867 else
18868 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'
18869 fi
18870 fi
18871 link_all_deplibs_CXX=yes
18872 ;;
18873 esac
18874 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18875 hardcode_libdir_separator_CXX=:
18876 ;;
18877 linux*)
18878 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018879 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018880 # Kuck and Associates, Inc. (KAI) C++ Compiler
18881
18882 # KCC will only create a shared library if the output file
18883 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18884 # to its proper name (with version) after linking.
18885 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'
18886 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'
18887 # Commands to make compiler produce verbose output that lists
18888 # what "hidden" libraries, object files and flags are used when
18889 # linking a shared library.
18890 #
18891 # There doesn't appear to be a way to prevent this compiler from
18892 # explicitly linking system object files so we need to strip them
18893 # from the output so that they don't get included in the library
18894 # dependencies.
18895 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'
18896
18897 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18898 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18899
18900 # Archives containing C++ object files must be created using
18901 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18902 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018904 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018905 # Intel C++
18906 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018907 # version 8.0 and above of icpc choke on multiply defined symbols
18908 # if we add $predep_objects and $postdep_objects, however 7.1 and
18909 # earlier do not add the objects themselves.
18910 case `$CC -V 2>&1` in
18911 *"Version 7."*)
18912 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18913 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'
18914 ;;
18915 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018916 tmp_idyn=
18917 case $host_cpu in
18918 ia64*) tmp_idyn=' -i_dynamic';;
18919 esac
18920 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18921 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 +000018922 ;;
18923 esac
John Criswell47fdd832003-07-14 16:52:07 +000018924 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018925 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18926 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18927 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18928 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018929 pgCC*)
18930 # Portland Group C++ compiler
18931 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18932 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'
18933
18934 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18936 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'
18937 ;;
18938 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018939 # Compaq C++
18940 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18941 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'
18942
18943 runpath_var=LD_RUN_PATH
18944 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18945 hardcode_libdir_separator_CXX=:
18946
18947 # Commands to make compiler produce verbose output that lists
18948 # what "hidden" libraries, object files and flags are used when
18949 # linking a shared library.
18950 #
18951 # There doesn't appear to be a way to prevent this compiler from
18952 # explicitly linking system object files so we need to strip them
18953 # from the output so that they don't get included in the library
18954 # dependencies.
18955 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'
18956 ;;
18957 esac
18958 ;;
18959 lynxos*)
18960 # FIXME: insert proper C++ library support
18961 ld_shlibs_CXX=no
18962 ;;
18963 m88k*)
18964 # FIXME: insert proper C++ library support
18965 ld_shlibs_CXX=no
18966 ;;
18967 mvs*)
18968 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018969 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018970 # FIXME: insert proper C++ library support
18971 ld_shlibs_CXX=no
18972 ;;
18973 *)
18974 # FIXME: insert proper C++ library support
18975 ld_shlibs_CXX=no
18976 ;;
18977 esac
18978 ;;
18979 netbsd*)
18980 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18981 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18982 wlarc=
18983 hardcode_libdir_flag_spec_CXX='-R$libdir'
18984 hardcode_direct_CXX=yes
18985 hardcode_shlibpath_var_CXX=no
18986 fi
18987 # Workaround some broken pre-1.5 toolchains
18988 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18989 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018990 openbsd2*)
18991 # C++ shared libraries are fairly broken
18992 ld_shlibs_CXX=no
18993 ;;
18994 openbsd*)
18995 hardcode_direct_CXX=yes
18996 hardcode_shlibpath_var_CXX=no
18997 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18998 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19000 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19001 export_dynamic_flag_spec_CXX='${wl}-E'
19002 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19003 fi
19004 output_verbose_link_cmd='echo'
19005 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019006 osf3*)
19007 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019008 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019009 # Kuck and Associates, Inc. (KAI) C++ Compiler
19010
19011 # KCC will only create a shared library if the output file
19012 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19013 # to its proper name (with version) after linking.
19014 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'
19015
19016 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19017 hardcode_libdir_separator_CXX=:
19018
19019 # Archives containing C++ object files must be created using
19020 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19021 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19022
19023 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019024 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 # Rational C++ 2.4.1
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019029 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019030 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019031 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 +000019032
19033 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19034 hardcode_libdir_separator_CXX=:
19035
19036 # Commands to make compiler produce verbose output that lists
19037 # what "hidden" libraries, object files and flags are used when
19038 # linking a shared library.
19039 #
19040 # There doesn't appear to be a way to prevent this compiler from
19041 # explicitly linking system object files so we need to strip them
19042 # from the output so that they don't get included in the library
19043 # dependencies.
19044 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'
19045 ;;
19046 *)
19047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019049 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 +000019050
19051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19052 hardcode_libdir_separator_CXX=:
19053
19054 # Commands to make compiler produce verbose output that lists
19055 # what "hidden" libraries, object files and flags are used when
19056 # linking a shared library.
19057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19058
19059 else
19060 # FIXME: insert proper C++ library support
19061 ld_shlibs_CXX=no
19062 fi
19063 ;;
19064 esac
19065 ;;
19066 osf4* | osf5*)
19067 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019068 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019069 # Kuck and Associates, Inc. (KAI) C++ Compiler
19070
19071 # KCC will only create a shared library if the output file
19072 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19073 # to its proper name (with version) after linking.
19074 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'
19075
19076 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19077 hardcode_libdir_separator_CXX=:
19078
19079 # Archives containing C++ object files must be created using
19080 # the KAI C++ compiler.
19081 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19082 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019083 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019084 # Rational C++ 2.4.1
19085 # FIXME: insert proper C++ library support
19086 ld_shlibs_CXX=no
19087 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019088 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019089 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019090 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 +000019091 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19092 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019093 $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 +000019094 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019095
19096 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19097 hardcode_libdir_separator_CXX=:
19098
19099 # Commands to make compiler produce verbose output that lists
19100 # what "hidden" libraries, object files and flags are used when
19101 # linking a shared library.
19102 #
19103 # There doesn't appear to be a way to prevent this compiler from
19104 # explicitly linking system object files so we need to strip them
19105 # from the output so that they don't get included in the library
19106 # dependencies.
19107 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'
19108 ;;
19109 *)
19110 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19111 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019112 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 +000019113
19114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19121
19122 else
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 fi
19126 ;;
19127 esac
19128 ;;
19129 psos*)
19130 # FIXME: insert proper C++ library support
19131 ld_shlibs_CXX=no
19132 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019133 sunos4*)
19134 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019135 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019136 # Sun C++ 4.x
19137 # FIXME: insert proper C++ library support
19138 ld_shlibs_CXX=no
19139 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019140 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019141 # Lucid
19142 # FIXME: insert proper C++ library support
19143 ld_shlibs_CXX=no
19144 ;;
19145 *)
19146 # FIXME: insert proper C++ library support
19147 ld_shlibs_CXX=no
19148 ;;
19149 esac
19150 ;;
19151 solaris*)
19152 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019153 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019154 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019155 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019156 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019157 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 +000019158 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 +000019159 $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 +000019160
19161 hardcode_libdir_flag_spec_CXX='-R$libdir'
19162 hardcode_shlibpath_var_CXX=no
19163 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019164 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019165 *)
19166 # The C++ compiler is used as linker so we must use $wl
19167 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019168 # linker. We must also pass each convience library through
19169 # to the system linker between allextract/defaultextract.
19170 # The C++ compiler will combine linker options so we
19171 # cannot just pass the convience library names through
19172 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019173 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019174 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 +000019175 ;;
19176 esac
19177 link_all_deplibs_CXX=yes
19178
Reid Spencera773bd52006-08-04 18:18:08 +000019179 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019180
19181 # Archives containing C++ object files must be created using
19182 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19183 # necessary to make sure instantiated templates are included
19184 # in the archive.
19185 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19186 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019187 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019188 # Green Hills C++ Compiler
19189 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19190
19191 # The C++ compiler must be used to create the archive.
19192 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19193 ;;
19194 *)
19195 # GNU C++ compiler with Solaris linker
19196 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19197 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19198 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019199 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 +000019200 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19201 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19202
John Criswell47fdd832003-07-14 16:52:07 +000019203 # Commands to make compiler produce verbose output that lists
19204 # what "hidden" libraries, object files and flags are used when
19205 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019206 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019207 else
19208 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19209 # platform.
19210 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 +000019211 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19212 $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 +000019213
19214 # Commands to make compiler produce verbose output that lists
19215 # what "hidden" libraries, object files and flags are used when
19216 # linking a shared library.
19217 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19218 fi
19219
19220 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19221 fi
19222 ;;
19223 esac
19224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019225 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19226 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019227 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019228 hardcode_shlibpath_var_CXX=no
19229 runpath_var='LD_RUN_PATH'
19230
19231 case $cc_basename in
19232 CC*)
19233 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19234 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 ;;
19236 *)
19237 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239 ;;
19240 esac
19241 ;;
19242 sysv5* | sco3.2v5* | sco5v6*)
19243 # Note: We can NOT use -z defs as we might desire, because we do not
19244 # link with -lc, and that would cause any symbols used from libc to
19245 # always be unresolved, which means just about no library would
19246 # ever link correctly. If we're not using GNU ld we use -z text
19247 # though, which does catch some bad symbols but isn't as heavy-handed
19248 # as -z defs.
19249 # For security reasons, it is highly recommended that you always
19250 # use absolute paths for naming shared libraries, and exclude the
19251 # DT_RUNPATH tag from executables and libraries. But doing so
19252 # requires that you compile everything twice, which is a pain.
19253 # So that behaviour is only enabled if SCOABSPATH is set to a
19254 # non-empty value in the environment. Most likely only useful for
19255 # creating official distributions of packages.
19256 # This is a hack until libtool officially supports absolute path
19257 # names for shared libraries.
19258 no_undefined_flag_CXX='${wl}-z,text'
19259 allow_undefined_flag_CXX='${wl}-z,nodefs'
19260 archive_cmds_need_lc_CXX=no
19261 hardcode_shlibpath_var_CXX=no
19262 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19263 hardcode_libdir_separator_CXX=':'
19264 link_all_deplibs_CXX=yes
19265 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19266 runpath_var='LD_RUN_PATH'
19267
19268 case $cc_basename in
19269 CC*)
19270 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19271 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19272 ;;
19273 *)
19274 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19275 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19276 ;;
19277 esac
John Criswell47fdd832003-07-14 16:52:07 +000019278 ;;
19279 tandem*)
19280 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019281 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019282 # NonStop-UX NCC 3.20
19283 # FIXME: insert proper C++ library support
19284 ld_shlibs_CXX=no
19285 ;;
19286 *)
19287 # FIXME: insert proper C++ library support
19288 ld_shlibs_CXX=no
19289 ;;
19290 esac
19291 ;;
19292 vxworks*)
19293 # FIXME: insert proper C++ library support
19294 ld_shlibs_CXX=no
19295 ;;
19296 *)
19297 # FIXME: insert proper C++ library support
19298 ld_shlibs_CXX=no
19299 ;;
19300esac
Reid Spencera773bd52006-08-04 18:18:08 +000019301{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19302echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019303test "$ld_shlibs_CXX" = no && can_build_shared=no
19304
19305GCC_CXX="$GXX"
19306LD_CXX="$LD"
19307
John Criswell47fdd832003-07-14 16:52:07 +000019308
19309cat > conftest.$ac_ext <<EOF
19310class Foo
19311{
19312public:
19313 Foo (void) { a = 0; }
19314private:
19315 int a;
19316};
19317EOF
19318
19319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19320 (eval $ac_compile) 2>&5
19321 ac_status=$?
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); }; then
19324 # Parse the compiler output and extract the necessary
19325 # objects, libraries and library flags.
19326
19327 # Sentinel used to keep track of whether or not we are before
19328 # the conftest object file.
19329 pre_test_object_deps_done=no
19330
19331 # The `*' in the case matches for architectures that use `case' in
19332 # $output_verbose_cmd can trigger glob expansion during the loop
19333 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019334 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019335
19336 for p in `eval $output_verbose_link_cmd`; do
19337 case $p in
19338
19339 -L* | -R* | -l*)
19340 # Some compilers place space between "-{L,R}" and the path.
19341 # Remove the space.
19342 if test $p = "-L" \
19343 || test $p = "-R"; then
19344 prev=$p
19345 continue
19346 else
19347 prev=
19348 fi
19349
19350 if test "$pre_test_object_deps_done" = no; then
19351 case $p in
19352 -L* | -R*)
19353 # Internal compiler library paths should come after those
19354 # provided the user. The postdeps already come after the
19355 # user supplied libs so there is no need to process them.
19356 if test -z "$compiler_lib_search_path_CXX"; then
19357 compiler_lib_search_path_CXX="${prev}${p}"
19358 else
19359 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19360 fi
19361 ;;
19362 # The "-l" case would never come before the object being
19363 # linked, so don't bother handling this case.
19364 esac
19365 else
19366 if test -z "$postdeps_CXX"; then
19367 postdeps_CXX="${prev}${p}"
19368 else
19369 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19370 fi
19371 fi
19372 ;;
19373
19374 *.$objext)
19375 # This assumes that the test object file only shows up
19376 # once in the compiler output.
19377 if test "$p" = "conftest.$objext"; then
19378 pre_test_object_deps_done=yes
19379 continue
19380 fi
19381
19382 if test "$pre_test_object_deps_done" = no; then
19383 if test -z "$predep_objects_CXX"; then
19384 predep_objects_CXX="$p"
19385 else
19386 predep_objects_CXX="$predep_objects_CXX $p"
19387 fi
19388 else
19389 if test -z "$postdep_objects_CXX"; then
19390 postdep_objects_CXX="$p"
19391 else
19392 postdep_objects_CXX="$postdep_objects_CXX $p"
19393 fi
19394 fi
19395 ;;
19396
19397 *) ;; # Ignore the rest.
19398
19399 esac
19400 done
19401
19402 # Clean up.
19403 rm -f a.out a.exe
19404else
19405 echo "libtool.m4: error: problem compiling CXX test program"
19406fi
19407
19408$rm -f confest.$objext
19409
Reid Spencera773bd52006-08-04 18:18:08 +000019410# PORTME: override above test on systems where it is broken
19411case $host_os in
19412interix3*)
19413 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19414 # hack all around it, let's just trust "g++" to DTRT.
19415 predep_objects_CXX=
19416 postdep_objects_CXX=
19417 postdeps_CXX=
19418 ;;
19419
19420solaris*)
19421 case $cc_basename in
19422 CC*)
19423 # Adding this requires a known-good setup of shared libraries for
19424 # Sun compiler versions before 5.6, else PIC objects from an old
19425 # archive will be linked into the output, leading to subtle bugs.
19426 postdeps_CXX='-lCstd -lCrun'
19427 ;;
19428 esac
19429 ;;
19430esac
19431
19432
John Criswell47fdd832003-07-14 16:52:07 +000019433case " $postdeps_CXX " in
19434*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19435esac
19436
19437lt_prog_compiler_wl_CXX=
19438lt_prog_compiler_pic_CXX=
19439lt_prog_compiler_static_CXX=
19440
Reid Spencera773bd52006-08-04 18:18:08 +000019441{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19442echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019443
19444 # C++ specific cases for pic, static, wl, etc.
19445 if test "$GXX" = yes; then
19446 lt_prog_compiler_wl_CXX='-Wl,'
19447 lt_prog_compiler_static_CXX='-static'
19448
19449 case $host_os in
19450 aix*)
19451 # All AIX code is PIC.
19452 if test "$host_cpu" = ia64; then
19453 # AIX 5 now supports IA64 processor
19454 lt_prog_compiler_static_CXX='-Bstatic'
19455 fi
19456 ;;
19457 amigaos*)
19458 # FIXME: we need at least 68020 code to build shared libraries, but
19459 # adding the `-m68020' flag to GCC prevents building anything better,
19460 # like `-m68040'.
19461 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19462 ;;
19463 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19464 # PIC is the default for these OSes.
19465 ;;
19466 mingw* | os2* | pw32*)
19467 # This hack is so that the source file can tell whether it is being
19468 # built for inclusion in a dll (and should export symbols for example).
19469 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19470 ;;
19471 darwin* | rhapsody*)
19472 # PIC is the default on this platform
19473 # Common symbols not allowed in MH_DYLIB files
19474 lt_prog_compiler_pic_CXX='-fno-common'
19475 ;;
19476 *djgpp*)
19477 # DJGPP does not support shared libraries at all
19478 lt_prog_compiler_pic_CXX=
19479 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019480 interix3*)
19481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19482 # Instead, we relocate shared libraries at runtime.
19483 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019484 sysv4*MP*)
19485 if test -d /usr/nec; then
19486 lt_prog_compiler_pic_CXX=-Kconform_pic
19487 fi
19488 ;;
19489 hpux*)
19490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19491 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019492 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019493 hppa*64*|ia64*)
19494 ;;
19495 *)
19496 lt_prog_compiler_pic_CXX='-fPIC'
19497 ;;
19498 esac
19499 ;;
19500 *)
19501 lt_prog_compiler_pic_CXX='-fPIC'
19502 ;;
19503 esac
19504 else
19505 case $host_os in
19506 aix4* | aix5*)
19507 # All AIX code is PIC.
19508 if test "$host_cpu" = ia64; then
19509 # AIX 5 now supports IA64 processor
19510 lt_prog_compiler_static_CXX='-Bstatic'
19511 else
19512 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19513 fi
19514 ;;
19515 chorus*)
19516 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019517 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019518 # Green Hills C++ Compiler
19519 # _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"
19520 ;;
19521 esac
19522 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019523 darwin*)
19524 # PIC is the default on this platform
19525 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019526 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019527 xlc*)
19528 lt_prog_compiler_pic_CXX='-qnocommon'
19529 lt_prog_compiler_wl_CXX='-Wl,'
19530 ;;
19531 esac
19532 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019533 dgux*)
19534 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019535 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019536 lt_prog_compiler_pic_CXX='-KPIC'
19537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019538 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019539 # Green Hills C++ Compiler
19540 lt_prog_compiler_pic_CXX='-pic'
19541 ;;
19542 *)
19543 ;;
19544 esac
19545 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019546 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019547 # FreeBSD uses GNU C++
19548 ;;
19549 hpux9* | hpux10* | hpux11*)
19550 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019551 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019552 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019553 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019554 if test "$host_cpu" != ia64; then
19555 lt_prog_compiler_pic_CXX='+Z'
19556 fi
19557 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019558 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019559 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019560 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19561 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019562 hppa*64*|ia64*)
19563 # +Z the default
19564 ;;
19565 *)
19566 lt_prog_compiler_pic_CXX='+Z'
19567 ;;
19568 esac
19569 ;;
19570 *)
19571 ;;
19572 esac
19573 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019574 interix*)
19575 # This is c89, which is MS Visual C++ (no shared libs)
19576 # Anyone wants to do a port?
19577 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019578 irix5* | irix6* | nonstopux*)
19579 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019580 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019581 lt_prog_compiler_wl_CXX='-Wl,'
19582 lt_prog_compiler_static_CXX='-non_shared'
19583 # CC pic flag -KPIC is the default.
19584 ;;
19585 *)
19586 ;;
19587 esac
19588 ;;
19589 linux*)
19590 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019591 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019592 # KAI C++ Compiler
19593 lt_prog_compiler_wl_CXX='--backend -Wl,'
19594 lt_prog_compiler_pic_CXX='-fPIC'
19595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019596 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019597 # Intel C++
19598 lt_prog_compiler_wl_CXX='-Wl,'
19599 lt_prog_compiler_pic_CXX='-KPIC'
19600 lt_prog_compiler_static_CXX='-static'
19601 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019602 pgCC*)
19603 # Portland Group C++ compiler.
19604 lt_prog_compiler_wl_CXX='-Wl,'
19605 lt_prog_compiler_pic_CXX='-fpic'
19606 lt_prog_compiler_static_CXX='-Bstatic'
19607 ;;
19608 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019609 # Compaq C++
19610 # Make sure the PIC flag is empty. It appears that all Alpha
19611 # Linux and Compaq Tru64 Unix objects are PIC.
19612 lt_prog_compiler_pic_CXX=
19613 lt_prog_compiler_static_CXX='-non_shared'
19614 ;;
19615 *)
19616 ;;
19617 esac
19618 ;;
19619 lynxos*)
19620 ;;
19621 m88k*)
19622 ;;
19623 mvs*)
19624 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019625 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019626 lt_prog_compiler_pic_CXX='-W c,exportall'
19627 ;;
19628 *)
19629 ;;
19630 esac
19631 ;;
19632 netbsd*)
19633 ;;
19634 osf3* | osf4* | osf5*)
19635 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019636 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019637 lt_prog_compiler_wl_CXX='--backend -Wl,'
19638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019639 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019640 # Rational C++ 2.4.1
19641 lt_prog_compiler_pic_CXX='-pic'
19642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019643 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019644 # Digital/Compaq C++
19645 lt_prog_compiler_wl_CXX='-Wl,'
19646 # Make sure the PIC flag is empty. It appears that all Alpha
19647 # Linux and Compaq Tru64 Unix objects are PIC.
19648 lt_prog_compiler_pic_CXX=
19649 lt_prog_compiler_static_CXX='-non_shared'
19650 ;;
19651 *)
19652 ;;
19653 esac
19654 ;;
19655 psos*)
19656 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019657 solaris*)
19658 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019659 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019660 # Sun C++ 4.2, 5.x and Centerline C++
19661 lt_prog_compiler_pic_CXX='-KPIC'
19662 lt_prog_compiler_static_CXX='-Bstatic'
19663 lt_prog_compiler_wl_CXX='-Qoption ld '
19664 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019665 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019666 # Green Hills C++ Compiler
19667 lt_prog_compiler_pic_CXX='-PIC'
19668 ;;
19669 *)
19670 ;;
19671 esac
19672 ;;
19673 sunos4*)
19674 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019675 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019676 # Sun C++ 4.x
19677 lt_prog_compiler_pic_CXX='-pic'
19678 lt_prog_compiler_static_CXX='-Bstatic'
19679 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019680 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019681 # Lucid
19682 lt_prog_compiler_pic_CXX='-pic'
19683 ;;
19684 *)
19685 ;;
19686 esac
19687 ;;
19688 tandem*)
19689 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019690 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019691 # NonStop-UX NCC 3.20
19692 lt_prog_compiler_pic_CXX='-KPIC'
19693 ;;
19694 *)
19695 ;;
19696 esac
19697 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019698 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19699 case $cc_basename in
19700 CC*)
19701 lt_prog_compiler_wl_CXX='-Wl,'
19702 lt_prog_compiler_pic_CXX='-KPIC'
19703 lt_prog_compiler_static_CXX='-Bstatic'
19704 ;;
19705 esac
John Criswell47fdd832003-07-14 16:52:07 +000019706 ;;
19707 vxworks*)
19708 ;;
19709 *)
19710 lt_prog_compiler_can_build_shared_CXX=no
19711 ;;
19712 esac
19713 fi
19714
Reid Spencera773bd52006-08-04 18:18:08 +000019715{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19716echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019717
19718#
19719# Check to make sure the PIC flag actually works.
19720#
19721if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019722
Reid Spencera773bd52006-08-04 18:18:08 +000019723{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19724echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019725if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19727else
19728 lt_prog_compiler_pic_works_CXX=no
19729 ac_outfile=conftest.$ac_objext
19730 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19731 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19732 # Insert the option either (1) after the last *FLAGS variable, or
19733 # (2) before a word containing "conftest.", or (3) at the end.
19734 # Note that $ac_compile itself does not contain backslashes and begins
19735 # with a dollar sign (not a hyphen), so the echo should work correctly.
19736 # The option is referenced via a variable to avoid confusing sed.
19737 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19740 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000019741 (eval echo "\"\$as_me:19741: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019742 (eval "$lt_compile" 2>conftest.err)
19743 ac_status=$?
19744 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000019745 echo "$as_me:19745: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019746 if (exit $ac_status) && test -s "$ac_outfile"; then
19747 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019748 # So say no if there are warnings other than the usual output.
19749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019752 lt_prog_compiler_pic_works_CXX=yes
19753 fi
19754 fi
19755 $rm conftest*
19756
19757fi
Reid Spencera773bd52006-08-04 18:18:08 +000019758{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19759echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019760
19761if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19762 case $lt_prog_compiler_pic_CXX in
19763 "" | " "*) ;;
19764 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19765 esac
19766else
19767 lt_prog_compiler_pic_CXX=
19768 lt_prog_compiler_can_build_shared_CXX=no
19769fi
19770
19771fi
Reid Spencera773bd52006-08-04 18:18:08 +000019772case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019773 # For platforms which do not support PIC, -DPIC is meaningless:
19774 *djgpp*)
19775 lt_prog_compiler_pic_CXX=
19776 ;;
19777 *)
19778 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19779 ;;
19780esac
19781
Reid Spencera773bd52006-08-04 18:18:08 +000019782#
19783# Check to make sure the static flag actually works.
19784#
19785wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19786{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19787echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19788if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19789 echo $ECHO_N "(cached) $ECHO_C" >&6
19790else
19791 lt_prog_compiler_static_works_CXX=no
19792 save_LDFLAGS="$LDFLAGS"
19793 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19794 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19795 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19796 # The linker can only warn and ignore the option if not recognized
19797 # So say no if there are warnings
19798 if test -s conftest.err; then
19799 # Append any errors to the config.log.
19800 cat conftest.err 1>&5
19801 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19802 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19803 if diff conftest.exp conftest.er2 >/dev/null; then
19804 lt_prog_compiler_static_works_CXX=yes
19805 fi
19806 else
19807 lt_prog_compiler_static_works_CXX=yes
19808 fi
19809 fi
19810 $rm conftest*
19811 LDFLAGS="$save_LDFLAGS"
19812
19813fi
19814{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19815echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19816
19817if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19818 :
19819else
19820 lt_prog_compiler_static_CXX=
19821fi
19822
19823
19824{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19825echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019826if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19828else
19829 lt_cv_prog_compiler_c_o_CXX=no
19830 $rm -r conftest 2>/dev/null
19831 mkdir conftest
19832 cd conftest
19833 mkdir out
19834 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19835
John Criswell47fdd832003-07-14 16:52:07 +000019836 lt_compiler_flag="-o out/conftest2.$ac_objext"
19837 # Insert the option either (1) after the last *FLAGS variable, or
19838 # (2) before a word containing "conftest.", or (3) at the end.
19839 # Note that $ac_compile itself does not contain backslashes and begins
19840 # with a dollar sign (not a hyphen), so the echo should work correctly.
19841 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019842 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019843 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19844 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000019845 (eval echo "\"\$as_me:19845: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019846 (eval "$lt_compile" 2>out/conftest.err)
19847 ac_status=$?
19848 cat out/conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000019849 echo "$as_me:19849: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019850 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19851 then
19852 # The compiler can only warn and ignore the option if not recognized
19853 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019854 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19855 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19856 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019857 lt_cv_prog_compiler_c_o_CXX=yes
19858 fi
19859 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019860 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019861 $rm conftest*
19862 # SGI C++ compiler will create directory out/ii_files/ for
19863 # template instantiation
19864 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19865 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019866 cd ..
19867 rmdir conftest
19868 $rm conftest*
19869
19870fi
Reid Spencera773bd52006-08-04 18:18:08 +000019871{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19872echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019873
19874
19875hard_links="nottested"
19876if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19877 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019878 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19879echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019880 hard_links=yes
19881 $rm conftest*
19882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19883 touch conftest.a
19884 ln conftest.a conftest.b 2>&5 || hard_links=no
19885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019886 { echo "$as_me:$LINENO: result: $hard_links" >&5
19887echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019888 if test "$hard_links" = no; then
19889 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19890echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19891 need_locks=warn
19892 fi
19893else
19894 need_locks=no
19895fi
19896
Reid Spencera773bd52006-08-04 18:18:08 +000019897{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19898echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019899
19900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19901 case $host_os in
19902 aix4* | aix5*)
19903 # If we're using GNU nm, then we don't want the "-C" option.
19904 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19905 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19906 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'
19907 else
19908 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'
19909 fi
19910 ;;
19911 pw32*)
19912 export_symbols_cmds_CXX="$ltdll_cmds"
19913 ;;
19914 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019915 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 +000019916 ;;
19917 *)
19918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19919 ;;
19920 esac
19921
Reid Spencera773bd52006-08-04 18:18:08 +000019922{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19923echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019924test "$ld_shlibs_CXX" = no && can_build_shared=no
19925
John Criswell47fdd832003-07-14 16:52:07 +000019926#
19927# Do we need to explicitly link libc?
19928#
19929case "x$archive_cmds_need_lc_CXX" in
19930x|xyes)
19931 # Assume -lc should be added
19932 archive_cmds_need_lc_CXX=yes
19933
19934 if test "$enable_shared" = yes && test "$GCC" = yes; then
19935 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019936 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019937 # FIXME: we may have to deal with multi-command sequences.
19938 ;;
19939 '$CC '*)
19940 # Test whether the compiler implicitly links with -lc since on some
19941 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19942 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019943 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19944echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019945 $rm conftest*
19946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19947
19948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19949 (eval $ac_compile) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); } 2>conftest.err; then
19953 soname=conftest
19954 lib=conftest
19955 libobjs=conftest.$ac_objext
19956 deplibs=
19957 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019958 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019959 compiler_flags=-v
19960 linker_flags=-v
19961 verstring=
19962 output_objdir=.
19963 libname=conftest
19964 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19965 allow_undefined_flag_CXX=
19966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19967 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }
19971 then
19972 archive_cmds_need_lc_CXX=no
19973 else
19974 archive_cmds_need_lc_CXX=yes
19975 fi
19976 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19977 else
19978 cat conftest.err 1>&5
19979 fi
19980 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019981 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19982echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019983 ;;
19984 esac
19985 fi
19986 ;;
19987esac
19988
Reid Spencera773bd52006-08-04 18:18:08 +000019989{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19990echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019991library_names_spec=
19992libname_spec='lib$name'
19993soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019994shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019995postinstall_cmds=
19996postuninstall_cmds=
19997finish_cmds=
19998finish_eval=
19999shlibpath_var=
20000shlibpath_overrides_runpath=unknown
20001version_type=none
20002dynamic_linker="$host_os ld.so"
20003sys_lib_dlsearch_path_spec="/lib /usr/lib"
20004if test "$GCC" = yes; then
20005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20007 # if the path contains ";" then we assume it to be the separator
20008 # otherwise default to the standard path separator (i.e. ":") - it is
20009 # assumed that no part of a normal pathname contains ";" but that should
20010 # okay in the real world where ";" in dirpaths is itself problematic.
20011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20012 else
20013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20014 fi
20015else
20016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20017fi
20018need_lib_prefix=unknown
20019hardcode_into_libs=no
20020
20021# when you set need_version to no, make sure it does not cause -set_version
20022# flags to be left without arguments
20023need_version=unknown
20024
20025case $host_os in
20026aix3*)
20027 version_type=linux
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20029 shlibpath_var=LIBPATH
20030
20031 # AIX 3 has no versioning support, so we append a major version to the name.
20032 soname_spec='${libname}${release}${shared_ext}$major'
20033 ;;
20034
20035aix4* | aix5*)
20036 version_type=linux
20037 need_lib_prefix=no
20038 need_version=no
20039 hardcode_into_libs=yes
20040 if test "$host_cpu" = ia64; then
20041 # AIX 5 supports IA64
20042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20043 shlibpath_var=LD_LIBRARY_PATH
20044 else
20045 # With GCC up to 2.95.x, collect2 would create an import file
20046 # for dependence libraries. The import file would start with
20047 # the line `#! .'. This would cause the generated library to
20048 # depend on `.', always an invalid library. This was fixed in
20049 # development snapshots of GCC prior to 3.0.
20050 case $host_os in
20051 aix4 | aix4.[01] | aix4.[01].*)
20052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20053 echo ' yes '
20054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20055 :
20056 else
20057 can_build_shared=no
20058 fi
20059 ;;
20060 esac
20061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20062 # soname into executable. Probably we can add versioning support to
20063 # collect2, so additional links can be useful in future.
20064 if test "$aix_use_runtimelinking" = yes; then
20065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20066 # instead of lib<name>.a to let people know that these are not
20067 # typical AIX shared libraries.
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 else
20070 # We preserve .a as extension for shared libraries through AIX4.2
20071 # and later when we are not doing run time linking.
20072 library_names_spec='${libname}${release}.a $libname.a'
20073 soname_spec='${libname}${release}${shared_ext}$major'
20074 fi
20075 shlibpath_var=LIBPATH
20076 fi
20077 ;;
20078
20079amigaos*)
20080 library_names_spec='$libname.ixlibrary $libname.a'
20081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020082 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 +000020083 ;;
20084
20085beos*)
20086 library_names_spec='${libname}${shared_ext}'
20087 dynamic_linker="$host_os ld.so"
20088 shlibpath_var=LIBRARY_PATH
20089 ;;
20090
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020092 version_type=linux
20093 need_version=no
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20095 soname_spec='${libname}${release}${shared_ext}$major'
20096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20097 shlibpath_var=LD_LIBRARY_PATH
20098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20100 # the default ld.so.conf also contains /usr/contrib/lib and
20101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20102 # libtool to hard-code these into programs
20103 ;;
20104
20105cygwin* | mingw* | pw32*)
20106 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020107 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020108 need_version=no
20109 need_lib_prefix=no
20110
20111 case $GCC,$host_os in
20112 yes,cygwin* | yes,mingw* | yes,pw32*)
20113 library_names_spec='$libname.dll.a'
20114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020115 postinstall_cmds='base_file=`basename \${file}`~
20116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20117 dldir=$destdir/`dirname \$dlpath`~
20118 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020119 $install_prog $dir/$dlname \$dldir/$dlname~
20120 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020121 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20122 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020123 $rm \$dlpath'
20124 shlibpath_overrides_runpath=yes
20125
20126 case $host_os in
20127 cygwin*)
20128 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20129 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 +000020130 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020131 ;;
20132 mingw*)
20133 # MinGW DLLs use traditional 'lib' prefix
20134 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20135 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20136 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20137 # It is most probably a Windows format PATH printed by
20138 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20139 # path with ; separators, and with drive letters. We can handle the
20140 # drive letters (cygwin fileutils understands them), so leave them,
20141 # especially as we might pass files found there to a mingw objdump,
20142 # which wouldn't understand a cygwinified path. Ahh.
20143 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20144 else
20145 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20146 fi
20147 ;;
20148 pw32*)
20149 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020150 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 +000020151 ;;
20152 esac
20153 ;;
20154
20155 *)
20156 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20157 ;;
20158 esac
20159 dynamic_linker='Win32 ld.exe'
20160 # FIXME: first we should search . and the directory the executable is in
20161 shlibpath_var=PATH
20162 ;;
20163
20164darwin* | rhapsody*)
20165 dynamic_linker="$host_os dyld"
20166 version_type=darwin
20167 need_lib_prefix=no
20168 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020169 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020170 soname_spec='${libname}${release}${major}$shared_ext'
20171 shlibpath_overrides_runpath=yes
20172 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020173 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020174 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020175 if test "$GCC" = yes; then
20176 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"`
20177 else
20178 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020179 fi
20180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20181 ;;
20182
20183dgux*)
20184 version_type=linux
20185 need_lib_prefix=no
20186 need_version=no
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 shlibpath_var=LD_LIBRARY_PATH
20190 ;;
20191
20192freebsd1*)
20193 dynamic_linker=no
20194 ;;
20195
Reid Spencer2706f8c2004-09-19 23:53:36 +000020196kfreebsd*-gnu)
20197 version_type=linux
20198 need_lib_prefix=no
20199 need_version=no
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20201 soname_spec='${libname}${release}${shared_ext}$major'
20202 shlibpath_var=LD_LIBRARY_PATH
20203 shlibpath_overrides_runpath=no
20204 hardcode_into_libs=yes
20205 dynamic_linker='GNU ld.so'
20206 ;;
20207
Reid Spencera773bd52006-08-04 18:18:08 +000020208freebsd* | dragonfly*)
20209 # DragonFly does not have aout. When/if they implement a new
20210 # versioning mechanism, adjust this.
20211 if test -x /usr/bin/objformat; then
20212 objformat=`/usr/bin/objformat`
20213 else
20214 case $host_os in
20215 freebsd[123]*) objformat=aout ;;
20216 *) objformat=elf ;;
20217 esac
20218 fi
John Criswell47fdd832003-07-14 16:52:07 +000020219 version_type=freebsd-$objformat
20220 case $version_type in
20221 freebsd-elf*)
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20223 need_version=no
20224 need_lib_prefix=no
20225 ;;
20226 freebsd-*)
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20228 need_version=yes
20229 ;;
20230 esac
20231 shlibpath_var=LD_LIBRARY_PATH
20232 case $host_os in
20233 freebsd2*)
20234 shlibpath_overrides_runpath=yes
20235 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020236 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020237 shlibpath_overrides_runpath=yes
20238 hardcode_into_libs=yes
20239 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020242 shlibpath_overrides_runpath=no
20243 hardcode_into_libs=yes
20244 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020245 freebsd*) # from 4.6 on
20246 shlibpath_overrides_runpath=yes
20247 hardcode_into_libs=yes
20248 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020249 esac
20250 ;;
20251
20252gnu*)
20253 version_type=linux
20254 need_lib_prefix=no
20255 need_version=no
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 hardcode_into_libs=yes
20260 ;;
20261
20262hpux9* | hpux10* | hpux11*)
20263 # Give a soname corresponding to the major version so that dld.sl refuses to
20264 # link against other versions.
20265 version_type=sunos
20266 need_lib_prefix=no
20267 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020268 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020269 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020270 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020271 hardcode_into_libs=yes
20272 dynamic_linker="$host_os dld.so"
20273 shlibpath_var=LD_LIBRARY_PATH
20274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 if test "X$HPUX_IA64_MODE" = X32; then
20278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20279 else
20280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20281 fi
20282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20283 ;;
20284 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020285 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020286 hardcode_into_libs=yes
20287 dynamic_linker="$host_os dld.sl"
20288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20294 ;;
20295 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020296 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020297 dynamic_linker="$host_os dld.sl"
20298 shlibpath_var=SHLIB_PATH
20299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 ;;
20303 esac
20304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20305 postinstall_cmds='chmod 555 $lib'
20306 ;;
20307
Reid Spencera773bd52006-08-04 18:18:08 +000020308interix3*)
20309 version_type=linux
20310 need_lib_prefix=no
20311 need_version=no
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 shlibpath_overrides_runpath=no
20317 hardcode_into_libs=yes
20318 ;;
20319
John Criswell47fdd832003-07-14 16:52:07 +000020320irix5* | irix6* | nonstopux*)
20321 case $host_os in
20322 nonstopux*) version_type=nonstopux ;;
20323 *)
20324 if test "$lt_cv_prog_gnu_ld" = yes; then
20325 version_type=linux
20326 else
20327 version_type=irix
20328 fi ;;
20329 esac
20330 need_lib_prefix=no
20331 need_version=no
20332 soname_spec='${libname}${release}${shared_ext}$major'
20333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20334 case $host_os in
20335 irix5* | nonstopux*)
20336 libsuff= shlibsuff=
20337 ;;
20338 *)
20339 case $LD in # libtool.m4 will add one of these switches to LD
20340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20341 libsuff= shlibsuff= libmagic=32-bit;;
20342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20343 libsuff=32 shlibsuff=N32 libmagic=N32;;
20344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20346 *) libsuff= shlibsuff= libmagic=never-match;;
20347 esac
20348 ;;
20349 esac
20350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20351 shlibpath_overrides_runpath=no
20352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20354 hardcode_into_libs=yes
20355 ;;
20356
20357# No shared lib support for Linux oldld, aout, or coff.
20358linux*oldld* | linux*aout* | linux*coff*)
20359 dynamic_linker=no
20360 ;;
20361
20362# This must be Linux ELF.
20363linux*)
20364 version_type=linux
20365 need_lib_prefix=no
20366 need_version=no
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20370 shlibpath_var=LD_LIBRARY_PATH
20371 shlibpath_overrides_runpath=no
20372 # This implies no fast_install, which is unacceptable.
20373 # Some rework will be needed to allow for fast_install
20374 # before this can be enabled.
20375 hardcode_into_libs=yes
20376
Reid Spencer2706f8c2004-09-19 23:53:36 +000020377 # Append ld.so.conf contents to the search path
20378 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020379 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 +000020380 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20381 fi
20382
John Criswell47fdd832003-07-14 16:52:07 +000020383 # We used to test for /lib/ld.so.1 and disable shared libraries on
20384 # powerpc, because MkLinux only supported shared libraries with the
20385 # GNU dynamic linker. Since this was broken with cross compilers,
20386 # most powerpc-linux boxes support dynamic linking these days and
20387 # people can always --disable-shared, the test was removed, and we
20388 # assume the GNU/Linux dynamic linker is in use.
20389 dynamic_linker='GNU/Linux ld.so'
20390 ;;
20391
Reid Spencer2706f8c2004-09-19 23:53:36 +000020392knetbsd*-gnu)
20393 version_type=linux
20394 need_lib_prefix=no
20395 need_version=no
20396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20397 soname_spec='${libname}${release}${shared_ext}$major'
20398 shlibpath_var=LD_LIBRARY_PATH
20399 shlibpath_overrides_runpath=no
20400 hardcode_into_libs=yes
20401 dynamic_linker='GNU ld.so'
20402 ;;
20403
John Criswell47fdd832003-07-14 16:52:07 +000020404netbsd*)
20405 version_type=sunos
20406 need_lib_prefix=no
20407 need_version=no
20408 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 dynamic_linker='NetBSD (a.out) ld.so'
20412 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020414 soname_spec='${libname}${release}${shared_ext}$major'
20415 dynamic_linker='NetBSD ld.elf_so'
20416 fi
20417 shlibpath_var=LD_LIBRARY_PATH
20418 shlibpath_overrides_runpath=yes
20419 hardcode_into_libs=yes
20420 ;;
20421
20422newsos6)
20423 version_type=linux
20424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20425 shlibpath_var=LD_LIBRARY_PATH
20426 shlibpath_overrides_runpath=yes
20427 ;;
20428
Reid Spencer2706f8c2004-09-19 23:53:36 +000020429nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020430 version_type=linux
20431 need_lib_prefix=no
20432 need_version=no
20433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20434 soname_spec='${libname}${release}${shared_ext}$major'
20435 shlibpath_var=LD_LIBRARY_PATH
20436 shlibpath_overrides_runpath=yes
20437 ;;
20438
20439openbsd*)
20440 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020441 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020442 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020443 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20444 case $host_os in
20445 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20446 *) need_version=no ;;
20447 esac
John Criswell47fdd832003-07-14 16:52:07 +000020448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20452 case $host_os in
20453 openbsd2.[89] | openbsd2.[89].*)
20454 shlibpath_overrides_runpath=no
20455 ;;
20456 *)
20457 shlibpath_overrides_runpath=yes
20458 ;;
20459 esac
20460 else
20461 shlibpath_overrides_runpath=yes
20462 fi
20463 ;;
20464
20465os2*)
20466 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020467 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020468 need_lib_prefix=no
20469 library_names_spec='$libname${shared_ext} $libname.a'
20470 dynamic_linker='OS/2 ld.exe'
20471 shlibpath_var=LIBPATH
20472 ;;
20473
20474osf3* | osf4* | osf5*)
20475 version_type=osf
20476 need_lib_prefix=no
20477 need_version=no
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20480 shlibpath_var=LD_LIBRARY_PATH
20481 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20482 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20483 ;;
20484
John Criswell47fdd832003-07-14 16:52:07 +000020485solaris*)
20486 version_type=linux
20487 need_lib_prefix=no
20488 need_version=no
20489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20490 soname_spec='${libname}${release}${shared_ext}$major'
20491 shlibpath_var=LD_LIBRARY_PATH
20492 shlibpath_overrides_runpath=yes
20493 hardcode_into_libs=yes
20494 # ldd complains unless libraries are executable
20495 postinstall_cmds='chmod +x $lib'
20496 ;;
20497
20498sunos4*)
20499 version_type=sunos
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20501 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=yes
20504 if test "$with_gnu_ld" = yes; then
20505 need_lib_prefix=no
20506 fi
20507 need_version=yes
20508 ;;
20509
Reid Spencera773bd52006-08-04 18:18:08 +000020510sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020511 version_type=linux
20512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20513 soname_spec='${libname}${release}${shared_ext}$major'
20514 shlibpath_var=LD_LIBRARY_PATH
20515 case $host_vendor in
20516 sni)
20517 shlibpath_overrides_runpath=no
20518 need_lib_prefix=no
20519 export_dynamic_flag_spec='${wl}-Blargedynsym'
20520 runpath_var=LD_RUN_PATH
20521 ;;
20522 siemens)
20523 need_lib_prefix=no
20524 ;;
20525 motorola)
20526 need_lib_prefix=no
20527 need_version=no
20528 shlibpath_overrides_runpath=no
20529 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20530 ;;
20531 esac
20532 ;;
20533
20534sysv4*MP*)
20535 if test -d /usr/nec ;then
20536 version_type=linux
20537 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20538 soname_spec='$libname${shared_ext}.$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 fi
20541 ;;
20542
Reid Spencera773bd52006-08-04 18:18:08 +000020543sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20544 version_type=freebsd-elf
20545 need_lib_prefix=no
20546 need_version=no
20547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20548 soname_spec='${libname}${release}${shared_ext}$major'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 hardcode_into_libs=yes
20551 if test "$with_gnu_ld" = yes; then
20552 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20553 shlibpath_overrides_runpath=no
20554 else
20555 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20556 shlibpath_overrides_runpath=yes
20557 case $host_os in
20558 sco3.2v5*)
20559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20560 ;;
20561 esac
20562 fi
20563 sys_lib_dlsearch_path_spec='/usr/lib'
20564 ;;
20565
John Criswell47fdd832003-07-14 16:52:07 +000020566uts4*)
20567 version_type=linux
20568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20569 soname_spec='${libname}${release}${shared_ext}$major'
20570 shlibpath_var=LD_LIBRARY_PATH
20571 ;;
20572
20573*)
20574 dynamic_linker=no
20575 ;;
20576esac
Reid Spencera773bd52006-08-04 18:18:08 +000020577{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20578echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020579test "$dynamic_linker" = no && can_build_shared=no
20580
Reid Spencera773bd52006-08-04 18:18:08 +000020581variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20582if test "$GCC" = yes; then
20583 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20584fi
20585
20586{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20587echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020588hardcode_action_CXX=
20589if test -n "$hardcode_libdir_flag_spec_CXX" || \
20590 test -n "$runpath_var_CXX" || \
20591 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20592
20593 # We can hardcode non-existant directories.
20594 if test "$hardcode_direct_CXX" != no &&
20595 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20596 # have to relink, otherwise we might link with an installed library
20597 # when we should be linking with a yet-to-be-installed one
20598 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20599 test "$hardcode_minus_L_CXX" != no; then
20600 # Linking always hardcodes the temporary library directory.
20601 hardcode_action_CXX=relink
20602 else
20603 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20604 hardcode_action_CXX=immediate
20605 fi
20606else
20607 # We cannot hardcode anything, or else we can only hardcode existing
20608 # directories.
20609 hardcode_action_CXX=unsupported
20610fi
Reid Spencera773bd52006-08-04 18:18:08 +000020611{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20612echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020613
20614if test "$hardcode_action_CXX" = relink; then
20615 # Fast installation is not supported
20616 enable_fast_install=no
20617elif test "$shlibpath_overrides_runpath" = yes ||
20618 test "$enable_shared" = no; then
20619 # Fast installation is not necessary
20620 enable_fast_install=needless
20621fi
20622
John Criswell47fdd832003-07-14 16:52:07 +000020623
20624# The else clause should only fire when bootstrapping the
20625# libtool distribution, otherwise you forgot to ship ltmain.sh
20626# with your package, and you will get complaints that there are
20627# no rules to generate ltmain.sh.
20628if test -f "$ltmain"; then
20629 # See if we are running on zsh, and set the options which allow our commands through
20630 # without removal of \ escapes.
20631 if test -n "${ZSH_VERSION+set}" ; then
20632 setopt NO_GLOB_SUBST
20633 fi
20634 # Now quote all the things that may contain metacharacters while being
20635 # careful not to overquote the AC_SUBSTed values. We take copies of the
20636 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020637 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 +000020638 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020639 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20640 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20641 deplibs_check_method reload_flag reload_cmds need_locks \
20642 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20643 lt_cv_sys_global_symbol_to_c_name_address \
20644 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20645 old_postinstall_cmds old_postuninstall_cmds \
20646 compiler_CXX \
20647 CC_CXX \
20648 LD_CXX \
20649 lt_prog_compiler_wl_CXX \
20650 lt_prog_compiler_pic_CXX \
20651 lt_prog_compiler_static_CXX \
20652 lt_prog_compiler_no_builtin_flag_CXX \
20653 export_dynamic_flag_spec_CXX \
20654 thread_safe_flag_spec_CXX \
20655 whole_archive_flag_spec_CXX \
20656 enable_shared_with_static_runtimes_CXX \
20657 old_archive_cmds_CXX \
20658 old_archive_from_new_cmds_CXX \
20659 predep_objects_CXX \
20660 postdep_objects_CXX \
20661 predeps_CXX \
20662 postdeps_CXX \
20663 compiler_lib_search_path_CXX \
20664 archive_cmds_CXX \
20665 archive_expsym_cmds_CXX \
20666 postinstall_cmds_CXX \
20667 postuninstall_cmds_CXX \
20668 old_archive_from_expsyms_cmds_CXX \
20669 allow_undefined_flag_CXX \
20670 no_undefined_flag_CXX \
20671 export_symbols_cmds_CXX \
20672 hardcode_libdir_flag_spec_CXX \
20673 hardcode_libdir_flag_spec_ld_CXX \
20674 hardcode_libdir_separator_CXX \
20675 hardcode_automatic_CXX \
20676 module_cmds_CXX \
20677 module_expsym_cmds_CXX \
20678 lt_cv_prog_compiler_c_o_CXX \
20679 exclude_expsyms_CXX \
20680 include_expsyms_CXX; do
20681
20682 case $var in
20683 old_archive_cmds_CXX | \
20684 old_archive_from_new_cmds_CXX | \
20685 archive_cmds_CXX | \
20686 archive_expsym_cmds_CXX | \
20687 module_cmds_CXX | \
20688 module_expsym_cmds_CXX | \
20689 old_archive_from_expsyms_cmds_CXX | \
20690 export_symbols_cmds_CXX | \
20691 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20692 postinstall_cmds | postuninstall_cmds | \
20693 old_postinstall_cmds | old_postuninstall_cmds | \
20694 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20695 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020696 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 +000020697 ;;
20698 *)
20699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20700 ;;
20701 esac
20702 done
20703
20704 case $lt_echo in
20705 *'\$0 --fallback-echo"')
20706 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20707 ;;
20708 esac
20709
20710cfgfile="$ofile"
20711
20712 cat <<__EOF__ >> "$cfgfile"
20713# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20714
20715# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20716
20717# Shell to use when invoking shell scripts.
20718SHELL=$lt_SHELL
20719
20720# Whether or not to build shared libraries.
20721build_libtool_libs=$enable_shared
20722
20723# Whether or not to build static libraries.
20724build_old_libs=$enable_static
20725
20726# Whether or not to add -lc for building shared libraries.
20727build_libtool_need_lc=$archive_cmds_need_lc_CXX
20728
20729# Whether or not to disallow shared libs when runtime libs are static
20730allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20731
20732# Whether or not to optimize for fast installation.
20733fast_install=$enable_fast_install
20734
20735# The host system.
20736host_alias=$host_alias
20737host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020738host_os=$host_os
20739
20740# The build system.
20741build_alias=$build_alias
20742build=$build
20743build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020744
20745# An echo program that does not interpret backslashes.
20746echo=$lt_echo
20747
20748# The archiver.
20749AR=$lt_AR
20750AR_FLAGS=$lt_AR_FLAGS
20751
20752# A C compiler.
20753LTCC=$lt_LTCC
20754
Reid Spencera773bd52006-08-04 18:18:08 +000020755# LTCC compiler flags.
20756LTCFLAGS=$lt_LTCFLAGS
20757
John Criswell47fdd832003-07-14 16:52:07 +000020758# A language-specific compiler.
20759CC=$lt_compiler_CXX
20760
20761# Is the compiler the GNU C compiler?
20762with_gcc=$GCC_CXX
20763
20764# An ERE matcher.
20765EGREP=$lt_EGREP
20766
20767# The linker used to build libraries.
20768LD=$lt_LD_CXX
20769
20770# Whether we need hard or soft links.
20771LN_S=$lt_LN_S
20772
20773# A BSD-compatible nm program.
20774NM=$lt_NM
20775
20776# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020777STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020778
20779# Used to examine libraries when file_magic_cmd begins "file"
20780MAGIC_CMD=$MAGIC_CMD
20781
20782# Used on cygwin: DLL creation program.
20783DLLTOOL="$DLLTOOL"
20784
20785# Used on cygwin: object dumper.
20786OBJDUMP="$OBJDUMP"
20787
20788# Used on cygwin: assembler.
20789AS="$AS"
20790
20791# The name of the directory that contains temporary libtool files.
20792objdir=$objdir
20793
20794# How to create reloadable object files.
20795reload_flag=$lt_reload_flag
20796reload_cmds=$lt_reload_cmds
20797
20798# How to pass a linker flag through the compiler.
20799wl=$lt_lt_prog_compiler_wl_CXX
20800
20801# Object file suffix (normally "o").
20802objext="$ac_objext"
20803
20804# Old archive suffix (normally "a").
20805libext="$libext"
20806
20807# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020808shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020809
20810# Executable file suffix (normally "").
20811exeext="$exeext"
20812
20813# Additional compiler flags for building library objects.
20814pic_flag=$lt_lt_prog_compiler_pic_CXX
20815pic_mode=$pic_mode
20816
20817# What is the maximum length of a command?
20818max_cmd_len=$lt_cv_sys_max_cmd_len
20819
20820# Does compiler simultaneously support -c and -o options?
20821compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20822
Reid Spencera773bd52006-08-04 18:18:08 +000020823# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020824need_locks=$lt_need_locks
20825
20826# Do we need the lib prefix for modules?
20827need_lib_prefix=$need_lib_prefix
20828
20829# Do we need a version for libraries?
20830need_version=$need_version
20831
20832# Whether dlopen is supported.
20833dlopen_support=$enable_dlopen
20834
20835# Whether dlopen of programs is supported.
20836dlopen_self=$enable_dlopen_self
20837
20838# Whether dlopen of statically linked programs is supported.
20839dlopen_self_static=$enable_dlopen_self_static
20840
20841# Compiler flag to prevent dynamic linking.
20842link_static_flag=$lt_lt_prog_compiler_static_CXX
20843
20844# Compiler flag to turn off builtin functions.
20845no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20846
20847# Compiler flag to allow reflexive dlopens.
20848export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20849
20850# Compiler flag to generate shared objects directly from archives.
20851whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20852
20853# Compiler flag to generate thread-safe objects.
20854thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20855
20856# Library versioning type.
20857version_type=$version_type
20858
20859# Format of library name prefix.
20860libname_spec=$lt_libname_spec
20861
20862# List of archive names. First name is the real one, the rest are links.
20863# The last name is the one that the linker finds with -lNAME.
20864library_names_spec=$lt_library_names_spec
20865
20866# The coded name of the library, if different from the real name.
20867soname_spec=$lt_soname_spec
20868
20869# Commands used to build and install an old-style archive.
20870RANLIB=$lt_RANLIB
20871old_archive_cmds=$lt_old_archive_cmds_CXX
20872old_postinstall_cmds=$lt_old_postinstall_cmds
20873old_postuninstall_cmds=$lt_old_postuninstall_cmds
20874
20875# Create an old-style archive from a shared archive.
20876old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20877
20878# Create a temporary old-style archive to link instead of a shared archive.
20879old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20880
20881# Commands used to build and install a shared archive.
20882archive_cmds=$lt_archive_cmds_CXX
20883archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20884postinstall_cmds=$lt_postinstall_cmds
20885postuninstall_cmds=$lt_postuninstall_cmds
20886
20887# Commands used to build a loadable module (assumed same as above if empty)
20888module_cmds=$lt_module_cmds_CXX
20889module_expsym_cmds=$lt_module_expsym_cmds_CXX
20890
20891# Commands to strip libraries.
20892old_striplib=$lt_old_striplib
20893striplib=$lt_striplib
20894
20895# Dependencies to place before the objects being linked to create a
20896# shared library.
20897predep_objects=$lt_predep_objects_CXX
20898
20899# Dependencies to place after the objects being linked to create a
20900# shared library.
20901postdep_objects=$lt_postdep_objects_CXX
20902
20903# Dependencies to place before the objects being linked to create a
20904# shared library.
20905predeps=$lt_predeps_CXX
20906
20907# Dependencies to place after the objects being linked to create a
20908# shared library.
20909postdeps=$lt_postdeps_CXX
20910
20911# The library search path used internally by the compiler when linking
20912# a shared library.
20913compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20914
20915# Method to check whether dependent libraries are shared objects.
20916deplibs_check_method=$lt_deplibs_check_method
20917
20918# Command to use when deplibs_check_method == file_magic.
20919file_magic_cmd=$lt_file_magic_cmd
20920
20921# Flag that allows shared libraries with undefined symbols to be built.
20922allow_undefined_flag=$lt_allow_undefined_flag_CXX
20923
20924# Flag that forces no undefined symbols.
20925no_undefined_flag=$lt_no_undefined_flag_CXX
20926
20927# Commands used to finish a libtool library installation in a directory.
20928finish_cmds=$lt_finish_cmds
20929
20930# Same as above, but a single script fragment to be evaled but not shown.
20931finish_eval=$lt_finish_eval
20932
20933# Take the output of nm and produce a listing of raw symbols and C names.
20934global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20935
20936# Transform the output of nm in a proper C declaration
20937global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20938
20939# Transform the output of nm in a C name address pair
20940global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20941
20942# This is the shared library runtime path variable.
20943runpath_var=$runpath_var
20944
20945# This is the shared library path variable.
20946shlibpath_var=$shlibpath_var
20947
20948# Is shlibpath searched before the hard-coded library search path?
20949shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20950
20951# How to hardcode a shared library path into an executable.
20952hardcode_action=$hardcode_action_CXX
20953
20954# Whether we should hardcode library paths into libraries.
20955hardcode_into_libs=$hardcode_into_libs
20956
20957# Flag to hardcode \$libdir into a binary during linking.
20958# This must work even if \$libdir does not exist.
20959hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20960
20961# If ld is used when linking, flag to hardcode \$libdir into
20962# a binary during linking. This must work even if \$libdir does
20963# not exist.
20964hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20965
20966# Whether we need a single -rpath flag with a separated argument.
20967hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20968
20969# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20970# resulting binary.
20971hardcode_direct=$hardcode_direct_CXX
20972
20973# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20974# resulting binary.
20975hardcode_minus_L=$hardcode_minus_L_CXX
20976
20977# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20978# the resulting binary.
20979hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20980
20981# Set to yes if building a shared library automatically hardcodes DIR into the library
20982# and all subsequent libraries and executables linked against it.
20983hardcode_automatic=$hardcode_automatic_CXX
20984
20985# Variables whose values should be saved in libtool wrapper scripts and
20986# restored at relink time.
20987variables_saved_for_relink="$variables_saved_for_relink"
20988
20989# Whether libtool must link a program against all its dependency libraries.
20990link_all_deplibs=$link_all_deplibs_CXX
20991
20992# Compile-time system search path for libraries
20993sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20994
20995# Run-time system search path for libraries
20996sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20997
20998# Fix the shell variable \$srcfile for the compiler.
20999fix_srcfile_path="$fix_srcfile_path_CXX"
21000
21001# Set to yes if exported symbols are required.
21002always_export_symbols=$always_export_symbols_CXX
21003
21004# The commands to list exported symbols.
21005export_symbols_cmds=$lt_export_symbols_cmds_CXX
21006
21007# The commands to extract the exported symbol list from a shared archive.
21008extract_expsyms_cmds=$lt_extract_expsyms_cmds
21009
21010# Symbols that should not be listed in the preloaded symbols.
21011exclude_expsyms=$lt_exclude_expsyms_CXX
21012
21013# Symbols that must always be exported.
21014include_expsyms=$lt_include_expsyms_CXX
21015
21016# ### END LIBTOOL TAG CONFIG: $tagname
21017
21018__EOF__
21019
21020
21021else
21022 # If there is no Makefile yet, we rely on a make rule to execute
21023 # `config.status --recheck' to rerun these tests and create the
21024 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21026 if test -f "$ltmain_in"; then
21027 test -f Makefile && make "$ltmain"
21028 fi
John Criswell47fdd832003-07-14 16:52:07 +000021029fi
21030
21031
21032ac_ext=c
21033ac_cpp='$CPP $CPPFLAGS'
21034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038CC=$lt_save_CC
21039LDCXX=$LD
21040LD=$lt_save_LD
21041GCC=$lt_save_GCC
21042with_gnu_ldcxx=$with_gnu_ld
21043with_gnu_ld=$lt_save_with_gnu_ld
21044lt_cv_path_LDCXX=$lt_cv_path_LD
21045lt_cv_path_LD=$lt_save_path_LD
21046lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21047lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21048
21049 else
21050 tagname=""
21051 fi
21052 ;;
21053
21054 F77)
21055 if test -n "$F77" && test "X$F77" != "Xno"; then
21056
21057ac_ext=f
21058ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21059ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21060ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21061
21062
21063archive_cmds_need_lc_F77=no
21064allow_undefined_flag_F77=
21065always_export_symbols_F77=no
21066archive_expsym_cmds_F77=
21067export_dynamic_flag_spec_F77=
21068hardcode_direct_F77=no
21069hardcode_libdir_flag_spec_F77=
21070hardcode_libdir_flag_spec_ld_F77=
21071hardcode_libdir_separator_F77=
21072hardcode_minus_L_F77=no
21073hardcode_automatic_F77=no
21074module_cmds_F77=
21075module_expsym_cmds_F77=
21076link_all_deplibs_F77=unknown
21077old_archive_cmds_F77=$old_archive_cmds
21078no_undefined_flag_F77=
21079whole_archive_flag_spec_F77=
21080enable_shared_with_static_runtimes_F77=no
21081
21082# Source file extension for f77 test sources.
21083ac_ext=f
21084
21085# Object file extension for compiled f77 test sources.
21086objext=o
21087objext_F77=$objext
21088
21089# Code to be used in simple compile tests
21090lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21091
21092# Code to be used in simple link tests
21093lt_simple_link_test_code=" program t\n end\n"
21094
21095# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21096
21097# If no C compiler was specified, use CC.
21098LTCC=${LTCC-"$CC"}
21099
Reid Spencera773bd52006-08-04 18:18:08 +000021100# If no C compiler flags were specified, use CFLAGS.
21101LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21102
John Criswell47fdd832003-07-14 16:52:07 +000021103# Allow CC to be a program name with arguments.
21104compiler=$CC
21105
21106
Reid Spencera773bd52006-08-04 18:18:08 +000021107# save warnings/boilerplate of simple test code
21108ac_outfile=conftest.$ac_objext
21109printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21110eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21111_lt_compiler_boilerplate=`cat conftest.err`
21112$rm conftest*
21113
21114ac_outfile=conftest.$ac_objext
21115printf "$lt_simple_link_test_code" >conftest.$ac_ext
21116eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21117_lt_linker_boilerplate=`cat conftest.err`
21118$rm conftest*
21119
21120
John Criswell47fdd832003-07-14 16:52:07 +000021121# Allow CC to be a program name with arguments.
21122lt_save_CC="$CC"
21123CC=${F77-"f77"}
21124compiler=$CC
21125compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021126for cc_temp in $compiler""; do
21127 case $cc_temp in
21128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21130 \-*) ;;
21131 *) break;;
21132 esac
21133done
21134cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021135
John Criswell47fdd832003-07-14 16:52:07 +000021136
Reid Spencera773bd52006-08-04 18:18:08 +000021137{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21138echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21139{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21140echo "${ECHO_T}$can_build_shared" >&6; }
21141
21142{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21143echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021144test "$can_build_shared" = "no" && enable_shared=no
21145
21146# On AIX, shared libraries and static libraries use the same namespace, and
21147# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021148case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021149aix3*)
21150 test "$enable_shared" = yes && enable_static=no
21151 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021152 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021153 postinstall_cmds='$RANLIB $lib'
21154 fi
21155 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021156aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021157 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21158 test "$enable_shared" = yes && enable_static=no
21159 fi
John Criswell47fdd832003-07-14 16:52:07 +000021160 ;;
21161esac
Reid Spencera773bd52006-08-04 18:18:08 +000021162{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21163echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021164
Reid Spencera773bd52006-08-04 18:18:08 +000021165{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21166echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021167# Make sure either enable_shared or enable_static is yes.
21168test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021169{ echo "$as_me:$LINENO: result: $enable_static" >&5
21170echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021171
21172GCC_F77="$G77"
21173LD_F77="$LD"
21174
21175lt_prog_compiler_wl_F77=
21176lt_prog_compiler_pic_F77=
21177lt_prog_compiler_static_F77=
21178
Reid Spencera773bd52006-08-04 18:18:08 +000021179{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21180echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021181
21182 if test "$GCC" = yes; then
21183 lt_prog_compiler_wl_F77='-Wl,'
21184 lt_prog_compiler_static_F77='-static'
21185
21186 case $host_os in
21187 aix*)
21188 # All AIX code is PIC.
21189 if test "$host_cpu" = ia64; then
21190 # AIX 5 now supports IA64 processor
21191 lt_prog_compiler_static_F77='-Bstatic'
21192 fi
21193 ;;
21194
21195 amigaos*)
21196 # FIXME: we need at least 68020 code to build shared libraries, but
21197 # adding the `-m68020' flag to GCC prevents building anything better,
21198 # like `-m68040'.
21199 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21200 ;;
21201
21202 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21203 # PIC is the default for these OSes.
21204 ;;
21205
21206 mingw* | pw32* | os2*)
21207 # This hack is so that the source file can tell whether it is being
21208 # built for inclusion in a dll (and should export symbols for example).
21209 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21210 ;;
21211
21212 darwin* | rhapsody*)
21213 # PIC is the default on this platform
21214 # Common symbols not allowed in MH_DYLIB files
21215 lt_prog_compiler_pic_F77='-fno-common'
21216 ;;
21217
Reid Spencera773bd52006-08-04 18:18:08 +000021218 interix3*)
21219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21220 # Instead, we relocate shared libraries at runtime.
21221 ;;
21222
John Criswell47fdd832003-07-14 16:52:07 +000021223 msdosdjgpp*)
21224 # Just because we use GCC doesn't mean we suddenly get shared libraries
21225 # on systems that don't support them.
21226 lt_prog_compiler_can_build_shared_F77=no
21227 enable_shared=no
21228 ;;
21229
21230 sysv4*MP*)
21231 if test -d /usr/nec; then
21232 lt_prog_compiler_pic_F77=-Kconform_pic
21233 fi
21234 ;;
21235
21236 hpux*)
21237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21238 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021239 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021240 hppa*64*|ia64*)
21241 # +Z the default
21242 ;;
21243 *)
21244 lt_prog_compiler_pic_F77='-fPIC'
21245 ;;
21246 esac
21247 ;;
21248
21249 *)
21250 lt_prog_compiler_pic_F77='-fPIC'
21251 ;;
21252 esac
21253 else
21254 # PORTME Check for flag to pass linker flags through the system compiler.
21255 case $host_os in
21256 aix*)
21257 lt_prog_compiler_wl_F77='-Wl,'
21258 if test "$host_cpu" = ia64; then
21259 # AIX 5 now supports IA64 processor
21260 lt_prog_compiler_static_F77='-Bstatic'
21261 else
21262 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21263 fi
21264 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021265 darwin*)
21266 # PIC is the default on this platform
21267 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021268 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021269 xlc*)
21270 lt_prog_compiler_pic_F77='-qnocommon'
21271 lt_prog_compiler_wl_F77='-Wl,'
21272 ;;
21273 esac
21274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021275
21276 mingw* | pw32* | os2*)
21277 # This hack is so that the source file can tell whether it is being
21278 # built for inclusion in a dll (and should export symbols for example).
21279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21280 ;;
21281
21282 hpux9* | hpux10* | hpux11*)
21283 lt_prog_compiler_wl_F77='-Wl,'
21284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21285 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021286 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021287 hppa*64*|ia64*)
21288 # +Z the default
21289 ;;
21290 *)
21291 lt_prog_compiler_pic_F77='+Z'
21292 ;;
21293 esac
21294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21295 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21296 ;;
21297
21298 irix5* | irix6* | nonstopux*)
21299 lt_prog_compiler_wl_F77='-Wl,'
21300 # PIC (with -KPIC) is the default.
21301 lt_prog_compiler_static_F77='-non_shared'
21302 ;;
21303
21304 newsos6)
21305 lt_prog_compiler_pic_F77='-KPIC'
21306 lt_prog_compiler_static_F77='-Bstatic'
21307 ;;
21308
21309 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021310 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021311 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021312 lt_prog_compiler_wl_F77='-Wl,'
21313 lt_prog_compiler_pic_F77='-KPIC'
21314 lt_prog_compiler_static_F77='-static'
21315 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021316 pgcc* | pgf77* | pgf90* | pgf95*)
21317 # Portland Group compilers (*not* the Pentium gcc compiler,
21318 # which looks to be a dead project)
21319 lt_prog_compiler_wl_F77='-Wl,'
21320 lt_prog_compiler_pic_F77='-fpic'
21321 lt_prog_compiler_static_F77='-Bstatic'
21322 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021323 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021324 lt_prog_compiler_wl_F77='-Wl,'
21325 # All Alpha code is PIC.
21326 lt_prog_compiler_static_F77='-non_shared'
21327 ;;
21328 esac
21329 ;;
21330
21331 osf3* | osf4* | osf5*)
21332 lt_prog_compiler_wl_F77='-Wl,'
21333 # All OSF/1 code is PIC.
21334 lt_prog_compiler_static_F77='-non_shared'
21335 ;;
21336
John Criswell47fdd832003-07-14 16:52:07 +000021337 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021338 lt_prog_compiler_pic_F77='-KPIC'
21339 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021340 case $cc_basename in
21341 f77* | f90* | f95*)
21342 lt_prog_compiler_wl_F77='-Qoption ld ';;
21343 *)
21344 lt_prog_compiler_wl_F77='-Wl,';;
21345 esac
John Criswell47fdd832003-07-14 16:52:07 +000021346 ;;
21347
21348 sunos4*)
21349 lt_prog_compiler_wl_F77='-Qoption ld '
21350 lt_prog_compiler_pic_F77='-PIC'
21351 lt_prog_compiler_static_F77='-Bstatic'
21352 ;;
21353
Reid Spencera773bd52006-08-04 18:18:08 +000021354 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021355 lt_prog_compiler_wl_F77='-Wl,'
21356 lt_prog_compiler_pic_F77='-KPIC'
21357 lt_prog_compiler_static_F77='-Bstatic'
21358 ;;
21359
21360 sysv4*MP*)
21361 if test -d /usr/nec ;then
21362 lt_prog_compiler_pic_F77='-Kconform_pic'
21363 lt_prog_compiler_static_F77='-Bstatic'
21364 fi
21365 ;;
21366
Reid Spencera773bd52006-08-04 18:18:08 +000021367 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21368 lt_prog_compiler_wl_F77='-Wl,'
21369 lt_prog_compiler_pic_F77='-KPIC'
21370 lt_prog_compiler_static_F77='-Bstatic'
21371 ;;
21372
21373 unicos*)
21374 lt_prog_compiler_wl_F77='-Wl,'
21375 lt_prog_compiler_can_build_shared_F77=no
21376 ;;
21377
John Criswell47fdd832003-07-14 16:52:07 +000021378 uts4*)
21379 lt_prog_compiler_pic_F77='-pic'
21380 lt_prog_compiler_static_F77='-Bstatic'
21381 ;;
21382
21383 *)
21384 lt_prog_compiler_can_build_shared_F77=no
21385 ;;
21386 esac
21387 fi
21388
Reid Spencera773bd52006-08-04 18:18:08 +000021389{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21390echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021391
21392#
21393# Check to make sure the PIC flag actually works.
21394#
21395if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021396
Reid Spencera773bd52006-08-04 18:18:08 +000021397{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21398echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021399if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21401else
21402 lt_prog_compiler_pic_works_F77=no
21403 ac_outfile=conftest.$ac_objext
21404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21405 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21406 # Insert the option either (1) after the last *FLAGS variable, or
21407 # (2) before a word containing "conftest.", or (3) at the end.
21408 # Note that $ac_compile itself does not contain backslashes and begins
21409 # with a dollar sign (not a hyphen), so the echo should work correctly.
21410 # The option is referenced via a variable to avoid confusing sed.
21411 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21414 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000021415 (eval echo "\"\$as_me:21415: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021416 (eval "$lt_compile" 2>conftest.err)
21417 ac_status=$?
21418 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000021419 echo "$as_me:21419: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021420 if (exit $ac_status) && test -s "$ac_outfile"; then
21421 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021422 # So say no if there are warnings other than the usual output.
21423 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021426 lt_prog_compiler_pic_works_F77=yes
21427 fi
21428 fi
21429 $rm conftest*
21430
21431fi
Reid Spencera773bd52006-08-04 18:18:08 +000021432{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21433echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021434
21435if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21436 case $lt_prog_compiler_pic_F77 in
21437 "" | " "*) ;;
21438 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21439 esac
21440else
21441 lt_prog_compiler_pic_F77=
21442 lt_prog_compiler_can_build_shared_F77=no
21443fi
21444
21445fi
Reid Spencera773bd52006-08-04 18:18:08 +000021446case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021447 # For platforms which do not support PIC, -DPIC is meaningless:
21448 *djgpp*)
21449 lt_prog_compiler_pic_F77=
21450 ;;
21451 *)
21452 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21453 ;;
21454esac
21455
Reid Spencera773bd52006-08-04 18:18:08 +000021456#
21457# Check to make sure the static flag actually works.
21458#
21459wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21460{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21461echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21462if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464else
21465 lt_prog_compiler_static_works_F77=no
21466 save_LDFLAGS="$LDFLAGS"
21467 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21468 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21469 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21470 # The linker can only warn and ignore the option if not recognized
21471 # So say no if there are warnings
21472 if test -s conftest.err; then
21473 # Append any errors to the config.log.
21474 cat conftest.err 1>&5
21475 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21476 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21477 if diff conftest.exp conftest.er2 >/dev/null; then
21478 lt_prog_compiler_static_works_F77=yes
21479 fi
21480 else
21481 lt_prog_compiler_static_works_F77=yes
21482 fi
21483 fi
21484 $rm conftest*
21485 LDFLAGS="$save_LDFLAGS"
21486
21487fi
21488{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21489echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21490
21491if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21492 :
21493else
21494 lt_prog_compiler_static_F77=
21495fi
21496
21497
21498{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21499echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021500if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21502else
21503 lt_cv_prog_compiler_c_o_F77=no
21504 $rm -r conftest 2>/dev/null
21505 mkdir conftest
21506 cd conftest
21507 mkdir out
21508 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21509
John Criswell47fdd832003-07-14 16:52:07 +000021510 lt_compiler_flag="-o out/conftest2.$ac_objext"
21511 # Insert the option either (1) after the last *FLAGS variable, or
21512 # (2) before a word containing "conftest.", or (3) at the end.
21513 # Note that $ac_compile itself does not contain backslashes and begins
21514 # with a dollar sign (not a hyphen), so the echo should work correctly.
21515 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021516 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021517 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21518 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000021519 (eval echo "\"\$as_me:21519: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021520 (eval "$lt_compile" 2>out/conftest.err)
21521 ac_status=$?
21522 cat out/conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000021523 echo "$as_me:21523: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021524 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21525 then
21526 # The compiler can only warn and ignore the option if not recognized
21527 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021528 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21529 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21530 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021531 lt_cv_prog_compiler_c_o_F77=yes
21532 fi
21533 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021534 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021535 $rm conftest*
21536 # SGI C++ compiler will create directory out/ii_files/ for
21537 # template instantiation
21538 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21539 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021540 cd ..
21541 rmdir conftest
21542 $rm conftest*
21543
21544fi
Reid Spencera773bd52006-08-04 18:18:08 +000021545{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21546echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021547
21548
21549hard_links="nottested"
21550if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21551 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021552 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21553echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021554 hard_links=yes
21555 $rm conftest*
21556 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21557 touch conftest.a
21558 ln conftest.a conftest.b 2>&5 || hard_links=no
21559 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021560 { echo "$as_me:$LINENO: result: $hard_links" >&5
21561echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021562 if test "$hard_links" = no; then
21563 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21564echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21565 need_locks=warn
21566 fi
21567else
21568 need_locks=no
21569fi
21570
Reid Spencera773bd52006-08-04 18:18:08 +000021571{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21572echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021573
21574 runpath_var=
21575 allow_undefined_flag_F77=
21576 enable_shared_with_static_runtimes_F77=no
21577 archive_cmds_F77=
21578 archive_expsym_cmds_F77=
21579 old_archive_From_new_cmds_F77=
21580 old_archive_from_expsyms_cmds_F77=
21581 export_dynamic_flag_spec_F77=
21582 whole_archive_flag_spec_F77=
21583 thread_safe_flag_spec_F77=
21584 hardcode_libdir_flag_spec_F77=
21585 hardcode_libdir_flag_spec_ld_F77=
21586 hardcode_libdir_separator_F77=
21587 hardcode_direct_F77=no
21588 hardcode_minus_L_F77=no
21589 hardcode_shlibpath_var_F77=unsupported
21590 link_all_deplibs_F77=unknown
21591 hardcode_automatic_F77=no
21592 module_cmds_F77=
21593 module_expsym_cmds_F77=
21594 always_export_symbols_F77=no
21595 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21596 # include_expsyms should be a list of space-separated symbols to be *always*
21597 # included in the symbol list
21598 include_expsyms_F77=
21599 # exclude_expsyms can be an extended regexp of symbols to exclude
21600 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21601 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21602 # as well as any symbol that contains `d'.
21603 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21604 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21605 # platforms (ab)use it in PIC code, but their linkers get confused if
21606 # the symbol is explicitly referenced. Since portable code cannot
21607 # rely on this symbol name, it's probably fine to never include it in
21608 # preloaded symbol tables.
21609 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021610 # Just being paranoid about ensuring that cc_basename is set.
21611 for cc_temp in $compiler""; do
21612 case $cc_temp in
21613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21615 \-*) ;;
21616 *) break;;
21617 esac
21618done
21619cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021620
21621 case $host_os in
21622 cygwin* | mingw* | pw32*)
21623 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21624 # When not using gcc, we currently assume that we are using
21625 # Microsoft Visual C++.
21626 if test "$GCC" != yes; then
21627 with_gnu_ld=no
21628 fi
21629 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021630 interix*)
21631 # we just hope/assume this is gcc and not c89 (= MSVC++)
21632 with_gnu_ld=yes
21633 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021634 openbsd*)
21635 with_gnu_ld=no
21636 ;;
21637 esac
21638
21639 ld_shlibs_F77=yes
21640 if test "$with_gnu_ld" = yes; then
21641 # If archive_cmds runs LD, not CC, wlarc should be empty
21642 wlarc='${wl}'
21643
Reid Spencera773bd52006-08-04 18:18:08 +000021644 # Set some defaults for GNU ld with shared library support. These
21645 # are reset later if shared libraries are not supported. Putting them
21646 # here allows them to be overridden if necessary.
21647 runpath_var=LD_RUN_PATH
21648 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21649 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21650 # ancient GNU ld didn't support --whole-archive et. al.
21651 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21652 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21653 else
21654 whole_archive_flag_spec_F77=
21655 fi
21656 supports_anon_versioning=no
21657 case `$LD -v 2>/dev/null` in
21658 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21659 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21660 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21661 *\ 2.11.*) ;; # other 2.11 versions
21662 *) supports_anon_versioning=yes ;;
21663 esac
21664
John Criswell47fdd832003-07-14 16:52:07 +000021665 # See if GNU ld supports shared libraries.
21666 case $host_os in
21667 aix3* | aix4* | aix5*)
21668 # On AIX/PPC, the GNU linker is very broken
21669 if test "$host_cpu" != ia64; then
21670 ld_shlibs_F77=no
21671 cat <<EOF 1>&2
21672
21673*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21674*** to be unable to reliably create shared libraries on AIX.
21675*** Therefore, libtool is disabling shared libraries support. If you
21676*** really care for shared libraries, you may want to modify your PATH
21677*** so that a non-GNU linker is found, and then restart.
21678
21679EOF
21680 fi
21681 ;;
21682
21683 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021684 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 +000021685 hardcode_libdir_flag_spec_F77='-L$libdir'
21686 hardcode_minus_L_F77=yes
21687
21688 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21689 # that the semantics of dynamic libraries on AmigaOS, at least up
21690 # to version 4, is to share data among multiple programs linked
21691 # with the same dynamic library. Since this doesn't match the
21692 # behavior of shared libraries on other platforms, we can't use
21693 # them.
21694 ld_shlibs_F77=no
21695 ;;
21696
21697 beos*)
21698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21699 allow_undefined_flag_F77=unsupported
21700 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21701 # support --undefined. This deserves some investigation. FIXME
21702 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21703 else
21704 ld_shlibs_F77=no
21705 fi
21706 ;;
21707
21708 cygwin* | mingw* | pw32*)
21709 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21710 # as there is no search path for DLLs.
21711 hardcode_libdir_flag_spec_F77='-L$libdir'
21712 allow_undefined_flag_F77=unsupported
21713 always_export_symbols_F77=no
21714 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021715 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 +000021716
21717 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021718 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 +000021719 # If the export-symbols file already is a .def file (1st line
21720 # is EXPORTS), use it as is; otherwise, prepend...
21721 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21722 cp $export_symbols $output_objdir/$soname.def;
21723 else
21724 echo EXPORTS > $output_objdir/$soname.def;
21725 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021726 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021727 $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 +000021728 else
Reid Spencera773bd52006-08-04 18:18:08 +000021729 ld_shlibs_F77=no
21730 fi
21731 ;;
21732
21733 interix3*)
21734 hardcode_direct_F77=no
21735 hardcode_shlibpath_var_F77=no
21736 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21737 export_dynamic_flag_spec_F77='${wl}-E'
21738 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21739 # Instead, shared libraries are loaded at an image base (0x10000000 by
21740 # default) and relocated if they conflict, which is a slow very memory
21741 # consuming and fragmenting process. To avoid this, we pick a random,
21742 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21743 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21744 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'
21745 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'
21746 ;;
21747
21748 linux*)
21749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21750 tmp_addflag=
21751 case $cc_basename,$host_cpu in
21752 pgcc*) # Portland Group C compiler
21753 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'
21754 tmp_addflag=' $pic_flag'
21755 ;;
21756 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21757 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'
21758 tmp_addflag=' $pic_flag -Mnomain' ;;
21759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21760 tmp_addflag=' -i_dynamic' ;;
21761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21762 tmp_addflag=' -i_dynamic -nofor_main' ;;
21763 ifc* | ifort*) # Intel Fortran compiler
21764 tmp_addflag=' -nofor_main' ;;
21765 esac
21766 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21767
21768 if test $supports_anon_versioning = yes; then
21769 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21770 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21771 $echo "local: *; };" >> $output_objdir/$libname.ver~
21772 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21773 fi
21774 else
21775 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021776 fi
21777 ;;
21778
21779 netbsd*)
21780 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21781 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21782 wlarc=
21783 else
21784 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21785 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21786 fi
21787 ;;
21788
Reid Spencera773bd52006-08-04 18:18:08 +000021789 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021790 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21791 ld_shlibs_F77=no
21792 cat <<EOF 1>&2
21793
21794*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21795*** create shared libraries on Solaris systems. Therefore, libtool
21796*** is disabling shared libraries support. We urge you to upgrade GNU
21797*** binutils to release 2.9.1 or newer. Another option is to modify
21798*** your PATH or compiler configuration so that the native linker is
21799*** used, and then restart.
21800
21801EOF
21802 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21804 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21805 else
21806 ld_shlibs_F77=no
21807 fi
21808 ;;
21809
Reid Spencera773bd52006-08-04 18:18:08 +000021810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21811 case `$LD -v 2>&1` in
21812 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21813 ld_shlibs_F77=no
21814 cat <<_LT_EOF 1>&2
21815
21816*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21817*** reliably create shared libraries on SCO systems. Therefore, libtool
21818*** is disabling shared libraries support. We urge you to upgrade GNU
21819*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21820*** your PATH or compiler configuration so that the native linker is
21821*** used, and then restart.
21822
21823_LT_EOF
21824 ;;
21825 *)
21826 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21827 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21828 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21829 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21830 else
21831 ld_shlibs_F77=no
21832 fi
21833 ;;
21834 esac
21835 ;;
21836
John Criswell47fdd832003-07-14 16:52:07 +000021837 sunos4*)
21838 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21839 wlarc=
21840 hardcode_direct_F77=yes
21841 hardcode_shlibpath_var_F77=no
21842 ;;
21843
21844 *)
21845 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21846 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21847 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21848 else
21849 ld_shlibs_F77=no
21850 fi
21851 ;;
21852 esac
21853
Reid Spencera773bd52006-08-04 18:18:08 +000021854 if test "$ld_shlibs_F77" = no; then
21855 runpath_var=
21856 hardcode_libdir_flag_spec_F77=
21857 export_dynamic_flag_spec_F77=
21858 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021859 fi
21860 else
21861 # PORTME fill in a description of your system's linker (not GNU ld)
21862 case $host_os in
21863 aix3*)
21864 allow_undefined_flag_F77=unsupported
21865 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021866 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 +000021867 # Note: this linker hardcodes the directories in LIBPATH if there
21868 # are no directories specified by -L.
21869 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021870 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021871 # Neither direct hardcoding nor static linking is supported with a
21872 # broken collect2.
21873 hardcode_direct_F77=unsupported
21874 fi
21875 ;;
21876
21877 aix4* | aix5*)
21878 if test "$host_cpu" = ia64; then
21879 # On IA64, the linker does run time linking by default, so we don't
21880 # have to do anything special.
21881 aix_use_runtimelinking=no
21882 exp_sym_flag='-Bexport'
21883 no_entry_flag=""
21884 else
21885 # If we're using GNU nm, then we don't want the "-C" option.
21886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21887 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21888 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'
21889 else
21890 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'
21891 fi
21892 aix_use_runtimelinking=no
21893
21894 # Test if we are trying to use run time linking or normal
21895 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21896 # need to do runtime linking.
21897 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21898 for ld_flag in $LDFLAGS; do
21899 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21900 aix_use_runtimelinking=yes
21901 break
21902 fi
21903 done
Reid Spencera773bd52006-08-04 18:18:08 +000021904 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021905 esac
21906
21907 exp_sym_flag='-bexport'
21908 no_entry_flag='-bnoentry'
21909 fi
21910
21911 # When large executables or shared objects are built, AIX ld can
21912 # have problems creating the table of contents. If linking a library
21913 # or program results in "error TOC overflow" add -mminimal-toc to
21914 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21915 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21916
21917 archive_cmds_F77=''
21918 hardcode_direct_F77=yes
21919 hardcode_libdir_separator_F77=':'
21920 link_all_deplibs_F77=yes
21921
21922 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021923 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021924 # We only want to do this on AIX 4.2 and lower, the check
21925 # below for broken collect2 doesn't work under 4.3+
21926 collect2name=`${CC} -print-prog-name=collect2`
21927 if test -f "$collect2name" && \
21928 strings "$collect2name" | grep resolve_lib_name >/dev/null
21929 then
21930 # We have reworked collect2
21931 hardcode_direct_F77=yes
21932 else
21933 # We have old collect2
21934 hardcode_direct_F77=unsupported
21935 # It fails to find uninstalled libraries when the uninstalled
21936 # path is not listed in the libpath. Setting hardcode_minus_L
21937 # to unsupported forces relinking
21938 hardcode_minus_L_F77=yes
21939 hardcode_libdir_flag_spec_F77='-L$libdir'
21940 hardcode_libdir_separator_F77=
21941 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021942 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021943 esac
21944 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021945 if test "$aix_use_runtimelinking" = yes; then
21946 shared_flag="$shared_flag "'${wl}-G'
21947 fi
John Criswell47fdd832003-07-14 16:52:07 +000021948 else
21949 # not using gcc
21950 if test "$host_cpu" = ia64; then
21951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21952 # chokes on -Wl,-G. The following line is correct:
21953 shared_flag='-G'
21954 else
Reid Spencera773bd52006-08-04 18:18:08 +000021955 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021956 shared_flag='${wl}-G'
21957 else
21958 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021959 fi
John Criswell47fdd832003-07-14 16:52:07 +000021960 fi
21961 fi
21962
21963 # It seems that -bexpall does not export symbols beginning with
21964 # underscore (_), so it is better to generate a list of symbols to export.
21965 always_export_symbols_F77=yes
21966 if test "$aix_use_runtimelinking" = yes; then
21967 # Warning - without using the other runtime loading flags (-brtl),
21968 # -berok will link without error, but may produce a broken library.
21969 allow_undefined_flag_F77='-berok'
21970 # Determine the default libpath from the value encoded in an empty executable.
21971 cat >conftest.$ac_ext <<_ACEOF
21972 program main
21973
21974 end
21975_ACEOF
21976rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021977if { (ac_try="$ac_link"
21978case "(($ac_try" in
21979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21980 *) ac_try_echo=$ac_try;;
21981esac
21982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21983 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021985 grep -v '^ *+' conftest.er1 >conftest.err
21986 rm -f conftest.er1
21987 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000021989 (exit $ac_status); } &&
21990 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21991 { (case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21994esac
21995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_try") 2>&5
21997 ac_status=$?
21998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999 (exit $ac_status); }; } &&
22000 { ac_try='test -s conftest$ac_exeext'
22001 { (case "(($ac_try" in
22002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22003 *) ac_try_echo=$ac_try;;
22004esac
22005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22006 (eval "$ac_try") 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022010
22011aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22012}'`
22013# Check for a 64-bit object if we didn't find anything.
22014if 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; }
22015}'`; fi
22016else
22017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022018sed 's/^/| /' conftest.$ac_ext >&5
22019
Reid Spencera773bd52006-08-04 18:18:08 +000022020
John Criswell47fdd832003-07-14 16:52:07 +000022021fi
Reid Spencera773bd52006-08-04 18:18:08 +000022022
Tanya Lattnercf067672008-01-17 05:57:22 +000022023rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022024 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022025if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22026
22027 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022028 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 +000022029 else
22030 if test "$host_cpu" = ia64; then
22031 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22032 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022033 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 +000022034 else
22035 # Determine the default libpath from the value encoded in an empty executable.
22036 cat >conftest.$ac_ext <<_ACEOF
22037 program main
22038
22039 end
22040_ACEOF
22041rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022042if { (ac_try="$ac_link"
22043case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22046esac
22047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000022054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22056 { (case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059esac
22060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_try") 2>&5
22062 ac_status=$?
22063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); }; } &&
22065 { ac_try='test -s conftest$ac_exeext'
22066 { (case "(($ac_try" in
22067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22068 *) ac_try_echo=$ac_try;;
22069esac
22070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22071 (eval "$ac_try") 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022075
22076aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22077}'`
22078# Check for a 64-bit object if we didn't find anything.
22079if 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; }
22080}'`; fi
22081else
22082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022083sed 's/^/| /' conftest.$ac_ext >&5
22084
Reid Spencera773bd52006-08-04 18:18:08 +000022085
John Criswell47fdd832003-07-14 16:52:07 +000022086fi
Reid Spencera773bd52006-08-04 18:18:08 +000022087
Tanya Lattnercf067672008-01-17 05:57:22 +000022088rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022089 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022090if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22091
22092 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22093 # Warning - without using the other run time loading flags,
22094 # -berok will link without error, but may produce a broken library.
22095 no_undefined_flag_F77=' ${wl}-bernotok'
22096 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022097 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022098 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022099 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022100 # This is similar to how AIX traditionally builds its shared libraries.
22101 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 +000022102 fi
22103 fi
22104 ;;
22105
22106 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022107 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 +000022108 hardcode_libdir_flag_spec_F77='-L$libdir'
22109 hardcode_minus_L_F77=yes
22110 # see comment about different semantics on the GNU ld section
22111 ld_shlibs_F77=no
22112 ;;
22113
Reid Spencer2706f8c2004-09-19 23:53:36 +000022114 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022115 export_dynamic_flag_spec_F77=-rdynamic
22116 ;;
22117
22118 cygwin* | mingw* | pw32*)
22119 # When not using gcc, we currently assume that we are using
22120 # Microsoft Visual C++.
22121 # hardcode_libdir_flag_spec is actually meaningless, as there is
22122 # no search path for DLLs.
22123 hardcode_libdir_flag_spec_F77=' '
22124 allow_undefined_flag_F77=unsupported
22125 # Tell ltmain to make .lib files, not .a files.
22126 libext=lib
22127 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022128 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022129 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022130 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 +000022131 # The linker will automatically build a .lib file if we build a DLL.
22132 old_archive_From_new_cmds_F77='true'
22133 # FIXME: Should let the user specify the lib program.
22134 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022135 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022136 enable_shared_with_static_runtimes_F77=yes
22137 ;;
22138
22139 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022140 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022141 rhapsody* | darwin1.[012])
22142 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22143 ;;
22144 *) # Darwin 1.3 on
22145 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22146 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22147 else
22148 case ${MACOSX_DEPLOYMENT_TARGET} in
22149 10.[012])
22150 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22151 ;;
22152 10.*)
22153 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22154 ;;
22155 esac
22156 fi
22157 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022158 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022159 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022160 hardcode_direct_F77=no
22161 hardcode_automatic_F77=yes
22162 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022163 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022164 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022165 if test "$GCC" = yes ; then
22166 output_verbose_link_cmd='echo'
22167 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22168 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022169 # 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 +000022170 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}'
22171 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 +000022172 else
Reid Spencera773bd52006-08-04 18:18:08 +000022173 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022174 xlc*)
22175 output_verbose_link_cmd='echo'
22176 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22177 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022178 # 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 +000022179 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}'
22180 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 +000022181 ;;
22182 *)
22183 ld_shlibs_F77=no
22184 ;;
22185 esac
John Criswell47fdd832003-07-14 16:52:07 +000022186 fi
22187 ;;
22188
22189 dgux*)
22190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22191 hardcode_libdir_flag_spec_F77='-L$libdir'
22192 hardcode_shlibpath_var_F77=no
22193 ;;
22194
22195 freebsd1*)
22196 ld_shlibs_F77=no
22197 ;;
22198
22199 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22200 # support. Future versions do this automatically, but an explicit c++rt0.o
22201 # does not break anything, and helps significantly (at the cost of a little
22202 # extra space).
22203 freebsd2.2*)
22204 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22205 hardcode_libdir_flag_spec_F77='-R$libdir'
22206 hardcode_direct_F77=yes
22207 hardcode_shlibpath_var_F77=no
22208 ;;
22209
22210 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22211 freebsd2*)
22212 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_direct_F77=yes
22214 hardcode_minus_L_F77=yes
22215 hardcode_shlibpath_var_F77=no
22216 ;;
22217
22218 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022219 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022220 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22221 hardcode_libdir_flag_spec_F77='-R$libdir'
22222 hardcode_direct_F77=yes
22223 hardcode_shlibpath_var_F77=no
22224 ;;
22225
22226 hpux9*)
22227 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022228 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 +000022229 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022230 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 +000022231 fi
22232 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22233 hardcode_libdir_separator_F77=:
22234 hardcode_direct_F77=yes
22235
22236 # hardcode_minus_L: Not really in the search PATH,
22237 # but as the default location of the library.
22238 hardcode_minus_L_F77=yes
22239 export_dynamic_flag_spec_F77='${wl}-E'
22240 ;;
22241
Reid Spencera773bd52006-08-04 18:18:08 +000022242 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022243 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022244 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22245 else
22246 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22247 fi
22248 if test "$with_gnu_ld" = no; then
22249 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22250 hardcode_libdir_separator_F77=:
22251
22252 hardcode_direct_F77=yes
22253 export_dynamic_flag_spec_F77='${wl}-E'
22254
22255 # hardcode_minus_L: Not really in the search PATH,
22256 # but as the default location of the library.
22257 hardcode_minus_L_F77=yes
22258 fi
22259 ;;
22260
22261 hpux11*)
22262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22263 case $host_cpu in
22264 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022265 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022267 ia64*)
22268 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22269 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022270 *)
22271 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22272 ;;
22273 esac
22274 else
Reid Spencera773bd52006-08-04 18:18:08 +000022275 case $host_cpu in
22276 hppa*64*)
22277 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22278 ;;
22279 ia64*)
22280 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022281 ;;
22282 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022283 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 +000022284 ;;
22285 esac
22286 fi
22287 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022288 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22289 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022290
Reid Spencera773bd52006-08-04 18:18:08 +000022291 case $host_cpu in
22292 hppa*64*|ia64*)
22293 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22294 hardcode_direct_F77=no
22295 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022296 ;;
22297 *)
John Criswell47fdd832003-07-14 16:52:07 +000022298 hardcode_direct_F77=yes
22299 export_dynamic_flag_spec_F77='${wl}-E'
22300
22301 # hardcode_minus_L: Not really in the search PATH,
22302 # but as the default location of the library.
22303 hardcode_minus_L_F77=yes
22304 ;;
22305 esac
22306 fi
22307 ;;
22308
22309 irix5* | irix6* | nonstopux*)
22310 if test "$GCC" = yes; then
22311 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'
22312 else
22313 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'
22314 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22315 fi
22316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22317 hardcode_libdir_separator_F77=:
22318 link_all_deplibs_F77=yes
22319 ;;
22320
22321 netbsd*)
22322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22323 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22324 else
22325 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22326 fi
22327 hardcode_libdir_flag_spec_F77='-R$libdir'
22328 hardcode_direct_F77=yes
22329 hardcode_shlibpath_var_F77=no
22330 ;;
22331
22332 newsos6)
22333 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22334 hardcode_direct_F77=yes
22335 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22336 hardcode_libdir_separator_F77=:
22337 hardcode_shlibpath_var_F77=no
22338 ;;
22339
22340 openbsd*)
22341 hardcode_direct_F77=yes
22342 hardcode_shlibpath_var_F77=no
22343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22344 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022345 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 +000022346 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22347 export_dynamic_flag_spec_F77='${wl}-E'
22348 else
22349 case $host_os in
22350 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22351 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22352 hardcode_libdir_flag_spec_F77='-R$libdir'
22353 ;;
22354 *)
22355 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22356 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22357 ;;
22358 esac
22359 fi
22360 ;;
22361
22362 os2*)
22363 hardcode_libdir_flag_spec_F77='-L$libdir'
22364 hardcode_minus_L_F77=yes
22365 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022366 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 +000022367 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22368 ;;
22369
22370 osf3*)
22371 if test "$GCC" = yes; then
22372 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22373 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'
22374 else
22375 allow_undefined_flag_F77=' -expect_unresolved \*'
22376 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'
22377 fi
22378 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22379 hardcode_libdir_separator_F77=:
22380 ;;
22381
22382 osf4* | osf5*) # as osf3* with the addition of -msym flag
22383 if test "$GCC" = yes; then
22384 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22385 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'
22386 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22387 else
22388 allow_undefined_flag_F77=' -expect_unresolved \*'
22389 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 +000022390 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 +000022391 $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 +000022392
John Criswell47fdd832003-07-14 16:52:07 +000022393 # Both c and cxx compiler support -rpath directly
22394 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22395 fi
22396 hardcode_libdir_separator_F77=:
22397 ;;
22398
John Criswell47fdd832003-07-14 16:52:07 +000022399 solaris*)
22400 no_undefined_flag_F77=' -z text'
22401 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022402 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022403 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022404 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22405 $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 +000022406 else
Reid Spencera773bd52006-08-04 18:18:08 +000022407 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022408 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022409 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22410 $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 +000022411 fi
22412 hardcode_libdir_flag_spec_F77='-R$libdir'
22413 hardcode_shlibpath_var_F77=no
22414 case $host_os in
22415 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022416 *)
22417 # The compiler driver will combine linker options so we
22418 # cannot just pass the convience library names through
22419 # without $wl, iff we do not link with $LD.
22420 # Luckily, gcc supports the same syntax we need for Sun Studio.
22421 # Supported since Solaris 2.6 (maybe 2.5.1?)
22422 case $wlarc in
22423 '')
22424 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22425 *)
22426 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' ;;
22427 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022428 esac
22429 link_all_deplibs_F77=yes
22430 ;;
22431
22432 sunos4*)
22433 if test "x$host_vendor" = xsequent; then
22434 # Use $CC to link under sequent, because it throws in some extra .o
22435 # files that make .init and .fini sections work.
22436 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22437 else
22438 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22439 fi
22440 hardcode_libdir_flag_spec_F77='-L$libdir'
22441 hardcode_direct_F77=yes
22442 hardcode_minus_L_F77=yes
22443 hardcode_shlibpath_var_F77=no
22444 ;;
22445
22446 sysv4)
22447 case $host_vendor in
22448 sni)
22449 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22450 hardcode_direct_F77=yes # is this really true???
22451 ;;
22452 siemens)
22453 ## LD is ld it makes a PLAMLIB
22454 ## CC just makes a GrossModule.
22455 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22456 reload_cmds_F77='$CC -r -o $output$reload_objs'
22457 hardcode_direct_F77=no
22458 ;;
22459 motorola)
22460 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22462 ;;
22463 esac
22464 runpath_var='LD_RUN_PATH'
22465 hardcode_shlibpath_var_F77=no
22466 ;;
22467
22468 sysv4.3*)
22469 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22470 hardcode_shlibpath_var_F77=no
22471 export_dynamic_flag_spec_F77='-Bexport'
22472 ;;
22473
22474 sysv4*MP*)
22475 if test -d /usr/nec; then
22476 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22477 hardcode_shlibpath_var_F77=no
22478 runpath_var=LD_RUN_PATH
22479 hardcode_runpath_var=yes
22480 ld_shlibs_F77=yes
22481 fi
22482 ;;
22483
Reid Spencera773bd52006-08-04 18:18:08 +000022484 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22485 no_undefined_flag_F77='${wl}-z,text'
22486 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022487 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022488 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022489
John Criswell47fdd832003-07-14 16:52:07 +000022490 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022491 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22492 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 +000022493 else
Reid Spencera773bd52006-08-04 18:18:08 +000022494 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22495 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 +000022496 fi
John Criswell47fdd832003-07-14 16:52:07 +000022497 ;;
22498
Reid Spencera773bd52006-08-04 18:18:08 +000022499 sysv5* | sco3.2v5* | sco5v6*)
22500 # Note: We can NOT use -z defs as we might desire, because we do not
22501 # link with -lc, and that would cause any symbols used from libc to
22502 # always be unresolved, which means just about no library would
22503 # ever link correctly. If we're not using GNU ld we use -z text
22504 # though, which does catch some bad symbols but isn't as heavy-handed
22505 # as -z defs.
22506 no_undefined_flag_F77='${wl}-z,text'
22507 allow_undefined_flag_F77='${wl}-z,nodefs'
22508 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022509 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022510 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22511 hardcode_libdir_separator_F77=':'
22512 link_all_deplibs_F77=yes
22513 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022514 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022515
22516 if test "$GCC" = yes; then
22517 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22518 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22519 else
22520 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22521 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22522 fi
John Criswell47fdd832003-07-14 16:52:07 +000022523 ;;
22524
22525 uts4*)
22526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22527 hardcode_libdir_flag_spec_F77='-L$libdir'
22528 hardcode_shlibpath_var_F77=no
22529 ;;
22530
22531 *)
22532 ld_shlibs_F77=no
22533 ;;
22534 esac
22535 fi
22536
Reid Spencera773bd52006-08-04 18:18:08 +000022537{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22538echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022539test "$ld_shlibs_F77" = no && can_build_shared=no
22540
John Criswell47fdd832003-07-14 16:52:07 +000022541#
22542# Do we need to explicitly link libc?
22543#
22544case "x$archive_cmds_need_lc_F77" in
22545x|xyes)
22546 # Assume -lc should be added
22547 archive_cmds_need_lc_F77=yes
22548
22549 if test "$enable_shared" = yes && test "$GCC" = yes; then
22550 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022551 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022552 # FIXME: we may have to deal with multi-command sequences.
22553 ;;
22554 '$CC '*)
22555 # Test whether the compiler implicitly links with -lc since on some
22556 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22557 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022558 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22559echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022560 $rm conftest*
22561 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22562
22563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22564 (eval $ac_compile) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } 2>conftest.err; then
22568 soname=conftest
22569 lib=conftest
22570 libobjs=conftest.$ac_objext
22571 deplibs=
22572 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022573 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022574 compiler_flags=-v
22575 linker_flags=-v
22576 verstring=
22577 output_objdir=.
22578 libname=conftest
22579 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22580 allow_undefined_flag_F77=
22581 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22582 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }
22586 then
22587 archive_cmds_need_lc_F77=no
22588 else
22589 archive_cmds_need_lc_F77=yes
22590 fi
22591 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22592 else
22593 cat conftest.err 1>&5
22594 fi
22595 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022596 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22597echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022598 ;;
22599 esac
22600 fi
22601 ;;
22602esac
22603
Reid Spencera773bd52006-08-04 18:18:08 +000022604{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22605echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022606library_names_spec=
22607libname_spec='lib$name'
22608soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022609shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022610postinstall_cmds=
22611postuninstall_cmds=
22612finish_cmds=
22613finish_eval=
22614shlibpath_var=
22615shlibpath_overrides_runpath=unknown
22616version_type=none
22617dynamic_linker="$host_os ld.so"
22618sys_lib_dlsearch_path_spec="/lib /usr/lib"
22619if test "$GCC" = yes; then
22620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22621 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22622 # if the path contains ";" then we assume it to be the separator
22623 # otherwise default to the standard path separator (i.e. ":") - it is
22624 # assumed that no part of a normal pathname contains ";" but that should
22625 # okay in the real world where ";" in dirpaths is itself problematic.
22626 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22627 else
22628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22629 fi
22630else
22631 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22632fi
22633need_lib_prefix=unknown
22634hardcode_into_libs=no
22635
22636# when you set need_version to no, make sure it does not cause -set_version
22637# flags to be left without arguments
22638need_version=unknown
22639
22640case $host_os in
22641aix3*)
22642 version_type=linux
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22644 shlibpath_var=LIBPATH
22645
22646 # AIX 3 has no versioning support, so we append a major version to the name.
22647 soname_spec='${libname}${release}${shared_ext}$major'
22648 ;;
22649
22650aix4* | aix5*)
22651 version_type=linux
22652 need_lib_prefix=no
22653 need_version=no
22654 hardcode_into_libs=yes
22655 if test "$host_cpu" = ia64; then
22656 # AIX 5 supports IA64
22657 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22658 shlibpath_var=LD_LIBRARY_PATH
22659 else
22660 # With GCC up to 2.95.x, collect2 would create an import file
22661 # for dependence libraries. The import file would start with
22662 # the line `#! .'. This would cause the generated library to
22663 # depend on `.', always an invalid library. This was fixed in
22664 # development snapshots of GCC prior to 3.0.
22665 case $host_os in
22666 aix4 | aix4.[01] | aix4.[01].*)
22667 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22668 echo ' yes '
22669 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22670 :
22671 else
22672 can_build_shared=no
22673 fi
22674 ;;
22675 esac
22676 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22677 # soname into executable. Probably we can add versioning support to
22678 # collect2, so additional links can be useful in future.
22679 if test "$aix_use_runtimelinking" = yes; then
22680 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22681 # instead of lib<name>.a to let people know that these are not
22682 # typical AIX shared libraries.
22683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22684 else
22685 # We preserve .a as extension for shared libraries through AIX4.2
22686 # and later when we are not doing run time linking.
22687 library_names_spec='${libname}${release}.a $libname.a'
22688 soname_spec='${libname}${release}${shared_ext}$major'
22689 fi
22690 shlibpath_var=LIBPATH
22691 fi
22692 ;;
22693
22694amigaos*)
22695 library_names_spec='$libname.ixlibrary $libname.a'
22696 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022697 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 +000022698 ;;
22699
22700beos*)
22701 library_names_spec='${libname}${shared_ext}'
22702 dynamic_linker="$host_os ld.so"
22703 shlibpath_var=LIBRARY_PATH
22704 ;;
22705
Reid Spencer2706f8c2004-09-19 23:53:36 +000022706bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022707 version_type=linux
22708 need_version=no
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22710 soname_spec='${libname}${release}${shared_ext}$major'
22711 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22712 shlibpath_var=LD_LIBRARY_PATH
22713 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22714 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22715 # the default ld.so.conf also contains /usr/contrib/lib and
22716 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22717 # libtool to hard-code these into programs
22718 ;;
22719
22720cygwin* | mingw* | pw32*)
22721 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022723 need_version=no
22724 need_lib_prefix=no
22725
22726 case $GCC,$host_os in
22727 yes,cygwin* | yes,mingw* | yes,pw32*)
22728 library_names_spec='$libname.dll.a'
22729 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022730 postinstall_cmds='base_file=`basename \${file}`~
22731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22732 dldir=$destdir/`dirname \$dlpath`~
22733 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022734 $install_prog $dir/$dlname \$dldir/$dlname~
22735 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22737 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022738 $rm \$dlpath'
22739 shlibpath_overrides_runpath=yes
22740
22741 case $host_os in
22742 cygwin*)
22743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22744 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 +000022745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022746 ;;
22747 mingw*)
22748 # MinGW DLLs use traditional 'lib' prefix
22749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22751 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22752 # It is most probably a Windows format PATH printed by
22753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22754 # path with ; separators, and with drive letters. We can handle the
22755 # drive letters (cygwin fileutils understands them), so leave them,
22756 # especially as we might pass files found there to a mingw objdump,
22757 # which wouldn't understand a cygwinified path. Ahh.
22758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22759 else
22760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22761 fi
22762 ;;
22763 pw32*)
22764 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022765 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 +000022766 ;;
22767 esac
22768 ;;
22769
22770 *)
22771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22772 ;;
22773 esac
22774 dynamic_linker='Win32 ld.exe'
22775 # FIXME: first we should search . and the directory the executable is in
22776 shlibpath_var=PATH
22777 ;;
22778
22779darwin* | rhapsody*)
22780 dynamic_linker="$host_os dyld"
22781 version_type=darwin
22782 need_lib_prefix=no
22783 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022784 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022785 soname_spec='${libname}${release}${major}$shared_ext'
22786 shlibpath_overrides_runpath=yes
22787 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022788 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022789 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022790 if test "$GCC" = yes; then
22791 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"`
22792 else
22793 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022794 fi
22795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22796 ;;
22797
22798dgux*)
22799 version_type=linux
22800 need_lib_prefix=no
22801 need_version=no
22802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22803 soname_spec='${libname}${release}${shared_ext}$major'
22804 shlibpath_var=LD_LIBRARY_PATH
22805 ;;
22806
22807freebsd1*)
22808 dynamic_linker=no
22809 ;;
22810
Reid Spencer2706f8c2004-09-19 23:53:36 +000022811kfreebsd*-gnu)
22812 version_type=linux
22813 need_lib_prefix=no
22814 need_version=no
22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22816 soname_spec='${libname}${release}${shared_ext}$major'
22817 shlibpath_var=LD_LIBRARY_PATH
22818 shlibpath_overrides_runpath=no
22819 hardcode_into_libs=yes
22820 dynamic_linker='GNU ld.so'
22821 ;;
22822
Reid Spencera773bd52006-08-04 18:18:08 +000022823freebsd* | dragonfly*)
22824 # DragonFly does not have aout. When/if they implement a new
22825 # versioning mechanism, adjust this.
22826 if test -x /usr/bin/objformat; then
22827 objformat=`/usr/bin/objformat`
22828 else
22829 case $host_os in
22830 freebsd[123]*) objformat=aout ;;
22831 *) objformat=elf ;;
22832 esac
22833 fi
John Criswell47fdd832003-07-14 16:52:07 +000022834 version_type=freebsd-$objformat
22835 case $version_type in
22836 freebsd-elf*)
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22838 need_version=no
22839 need_lib_prefix=no
22840 ;;
22841 freebsd-*)
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22843 need_version=yes
22844 ;;
22845 esac
22846 shlibpath_var=LD_LIBRARY_PATH
22847 case $host_os in
22848 freebsd2*)
22849 shlibpath_overrides_runpath=yes
22850 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022851 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022855 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22856 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022857 shlibpath_overrides_runpath=no
22858 hardcode_into_libs=yes
22859 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022860 freebsd*) # from 4.6 on
22861 shlibpath_overrides_runpath=yes
22862 hardcode_into_libs=yes
22863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022864 esac
22865 ;;
22866
22867gnu*)
22868 version_type=linux
22869 need_lib_prefix=no
22870 need_version=no
22871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22872 soname_spec='${libname}${release}${shared_ext}$major'
22873 shlibpath_var=LD_LIBRARY_PATH
22874 hardcode_into_libs=yes
22875 ;;
22876
22877hpux9* | hpux10* | hpux11*)
22878 # Give a soname corresponding to the major version so that dld.sl refuses to
22879 # link against other versions.
22880 version_type=sunos
22881 need_lib_prefix=no
22882 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022883 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022884 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022885 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022886 hardcode_into_libs=yes
22887 dynamic_linker="$host_os dld.so"
22888 shlibpath_var=LD_LIBRARY_PATH
22889 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891 soname_spec='${libname}${release}${shared_ext}$major'
22892 if test "X$HPUX_IA64_MODE" = X32; then
22893 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22894 else
22895 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22896 fi
22897 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22898 ;;
22899 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022900 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022901 hardcode_into_libs=yes
22902 dynamic_linker="$host_os dld.sl"
22903 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22904 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22909 ;;
22910 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022911 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022912 dynamic_linker="$host_os dld.sl"
22913 shlibpath_var=SHLIB_PATH
22914 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 ;;
22918 esac
22919 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22920 postinstall_cmds='chmod 555 $lib'
22921 ;;
22922
Reid Spencera773bd52006-08-04 18:18:08 +000022923interix3*)
22924 version_type=linux
22925 need_lib_prefix=no
22926 need_version=no
22927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22928 soname_spec='${libname}${release}${shared_ext}$major'
22929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 shlibpath_overrides_runpath=no
22932 hardcode_into_libs=yes
22933 ;;
22934
John Criswell47fdd832003-07-14 16:52:07 +000022935irix5* | irix6* | nonstopux*)
22936 case $host_os in
22937 nonstopux*) version_type=nonstopux ;;
22938 *)
22939 if test "$lt_cv_prog_gnu_ld" = yes; then
22940 version_type=linux
22941 else
22942 version_type=irix
22943 fi ;;
22944 esac
22945 need_lib_prefix=no
22946 need_version=no
22947 soname_spec='${libname}${release}${shared_ext}$major'
22948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22949 case $host_os in
22950 irix5* | nonstopux*)
22951 libsuff= shlibsuff=
22952 ;;
22953 *)
22954 case $LD in # libtool.m4 will add one of these switches to LD
22955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22956 libsuff= shlibsuff= libmagic=32-bit;;
22957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22958 libsuff=32 shlibsuff=N32 libmagic=N32;;
22959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22961 *) libsuff= shlibsuff= libmagic=never-match;;
22962 esac
22963 ;;
22964 esac
22965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22966 shlibpath_overrides_runpath=no
22967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22969 hardcode_into_libs=yes
22970 ;;
22971
22972# No shared lib support for Linux oldld, aout, or coff.
22973linux*oldld* | linux*aout* | linux*coff*)
22974 dynamic_linker=no
22975 ;;
22976
22977# This must be Linux ELF.
22978linux*)
22979 version_type=linux
22980 need_lib_prefix=no
22981 need_version=no
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22983 soname_spec='${libname}${release}${shared_ext}$major'
22984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22985 shlibpath_var=LD_LIBRARY_PATH
22986 shlibpath_overrides_runpath=no
22987 # This implies no fast_install, which is unacceptable.
22988 # Some rework will be needed to allow for fast_install
22989 # before this can be enabled.
22990 hardcode_into_libs=yes
22991
Reid Spencer2706f8c2004-09-19 23:53:36 +000022992 # Append ld.so.conf contents to the search path
22993 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022994 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 +000022995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22996 fi
22997
John Criswell47fdd832003-07-14 16:52:07 +000022998 # We used to test for /lib/ld.so.1 and disable shared libraries on
22999 # powerpc, because MkLinux only supported shared libraries with the
23000 # GNU dynamic linker. Since this was broken with cross compilers,
23001 # most powerpc-linux boxes support dynamic linking these days and
23002 # people can always --disable-shared, the test was removed, and we
23003 # assume the GNU/Linux dynamic linker is in use.
23004 dynamic_linker='GNU/Linux ld.so'
23005 ;;
23006
Reid Spencer2706f8c2004-09-19 23:53:36 +000023007knetbsd*-gnu)
23008 version_type=linux
23009 need_lib_prefix=no
23010 need_version=no
23011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23012 soname_spec='${libname}${release}${shared_ext}$major'
23013 shlibpath_var=LD_LIBRARY_PATH
23014 shlibpath_overrides_runpath=no
23015 hardcode_into_libs=yes
23016 dynamic_linker='GNU ld.so'
23017 ;;
23018
John Criswell47fdd832003-07-14 16:52:07 +000023019netbsd*)
23020 version_type=sunos
23021 need_lib_prefix=no
23022 need_version=no
23023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23026 dynamic_linker='NetBSD (a.out) ld.so'
23027 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023029 soname_spec='${libname}${release}${shared_ext}$major'
23030 dynamic_linker='NetBSD ld.elf_so'
23031 fi
23032 shlibpath_var=LD_LIBRARY_PATH
23033 shlibpath_overrides_runpath=yes
23034 hardcode_into_libs=yes
23035 ;;
23036
23037newsos6)
23038 version_type=linux
23039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23040 shlibpath_var=LD_LIBRARY_PATH
23041 shlibpath_overrides_runpath=yes
23042 ;;
23043
Reid Spencer2706f8c2004-09-19 23:53:36 +000023044nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023045 version_type=linux
23046 need_lib_prefix=no
23047 need_version=no
23048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23049 soname_spec='${libname}${release}${shared_ext}$major'
23050 shlibpath_var=LD_LIBRARY_PATH
23051 shlibpath_overrides_runpath=yes
23052 ;;
23053
23054openbsd*)
23055 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023056 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023057 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023058 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23059 case $host_os in
23060 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23061 *) need_version=no ;;
23062 esac
John Criswell47fdd832003-07-14 16:52:07 +000023063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23064 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23067 case $host_os in
23068 openbsd2.[89] | openbsd2.[89].*)
23069 shlibpath_overrides_runpath=no
23070 ;;
23071 *)
23072 shlibpath_overrides_runpath=yes
23073 ;;
23074 esac
23075 else
23076 shlibpath_overrides_runpath=yes
23077 fi
23078 ;;
23079
23080os2*)
23081 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023082 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023083 need_lib_prefix=no
23084 library_names_spec='$libname${shared_ext} $libname.a'
23085 dynamic_linker='OS/2 ld.exe'
23086 shlibpath_var=LIBPATH
23087 ;;
23088
23089osf3* | osf4* | osf5*)
23090 version_type=osf
23091 need_lib_prefix=no
23092 need_version=no
23093 soname_spec='${libname}${release}${shared_ext}$major'
23094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23095 shlibpath_var=LD_LIBRARY_PATH
23096 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23097 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23098 ;;
23099
John Criswell47fdd832003-07-14 16:52:07 +000023100solaris*)
23101 version_type=linux
23102 need_lib_prefix=no
23103 need_version=no
23104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23105 soname_spec='${libname}${release}${shared_ext}$major'
23106 shlibpath_var=LD_LIBRARY_PATH
23107 shlibpath_overrides_runpath=yes
23108 hardcode_into_libs=yes
23109 # ldd complains unless libraries are executable
23110 postinstall_cmds='chmod +x $lib'
23111 ;;
23112
23113sunos4*)
23114 version_type=sunos
23115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23116 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23117 shlibpath_var=LD_LIBRARY_PATH
23118 shlibpath_overrides_runpath=yes
23119 if test "$with_gnu_ld" = yes; then
23120 need_lib_prefix=no
23121 fi
23122 need_version=yes
23123 ;;
23124
Reid Spencera773bd52006-08-04 18:18:08 +000023125sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023126 version_type=linux
23127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23128 soname_spec='${libname}${release}${shared_ext}$major'
23129 shlibpath_var=LD_LIBRARY_PATH
23130 case $host_vendor in
23131 sni)
23132 shlibpath_overrides_runpath=no
23133 need_lib_prefix=no
23134 export_dynamic_flag_spec='${wl}-Blargedynsym'
23135 runpath_var=LD_RUN_PATH
23136 ;;
23137 siemens)
23138 need_lib_prefix=no
23139 ;;
23140 motorola)
23141 need_lib_prefix=no
23142 need_version=no
23143 shlibpath_overrides_runpath=no
23144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23145 ;;
23146 esac
23147 ;;
23148
23149sysv4*MP*)
23150 if test -d /usr/nec ;then
23151 version_type=linux
23152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23153 soname_spec='$libname${shared_ext}.$major'
23154 shlibpath_var=LD_LIBRARY_PATH
23155 fi
23156 ;;
23157
Reid Spencera773bd52006-08-04 18:18:08 +000023158sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23159 version_type=freebsd-elf
23160 need_lib_prefix=no
23161 need_version=no
23162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23163 soname_spec='${libname}${release}${shared_ext}$major'
23164 shlibpath_var=LD_LIBRARY_PATH
23165 hardcode_into_libs=yes
23166 if test "$with_gnu_ld" = yes; then
23167 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23168 shlibpath_overrides_runpath=no
23169 else
23170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23171 shlibpath_overrides_runpath=yes
23172 case $host_os in
23173 sco3.2v5*)
23174 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23175 ;;
23176 esac
23177 fi
23178 sys_lib_dlsearch_path_spec='/usr/lib'
23179 ;;
23180
John Criswell47fdd832003-07-14 16:52:07 +000023181uts4*)
23182 version_type=linux
23183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23184 soname_spec='${libname}${release}${shared_ext}$major'
23185 shlibpath_var=LD_LIBRARY_PATH
23186 ;;
23187
23188*)
23189 dynamic_linker=no
23190 ;;
23191esac
Reid Spencera773bd52006-08-04 18:18:08 +000023192{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23193echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023194test "$dynamic_linker" = no && can_build_shared=no
23195
Reid Spencera773bd52006-08-04 18:18:08 +000023196variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23197if test "$GCC" = yes; then
23198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23199fi
23200
23201{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23202echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023203hardcode_action_F77=
23204if test -n "$hardcode_libdir_flag_spec_F77" || \
23205 test -n "$runpath_var_F77" || \
23206 test "X$hardcode_automatic_F77" = "Xyes" ; then
23207
23208 # We can hardcode non-existant directories.
23209 if test "$hardcode_direct_F77" != no &&
23210 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23211 # have to relink, otherwise we might link with an installed library
23212 # when we should be linking with a yet-to-be-installed one
23213 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23214 test "$hardcode_minus_L_F77" != no; then
23215 # Linking always hardcodes the temporary library directory.
23216 hardcode_action_F77=relink
23217 else
23218 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23219 hardcode_action_F77=immediate
23220 fi
23221else
23222 # We cannot hardcode anything, or else we can only hardcode existing
23223 # directories.
23224 hardcode_action_F77=unsupported
23225fi
Reid Spencera773bd52006-08-04 18:18:08 +000023226{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23227echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023228
23229if test "$hardcode_action_F77" = relink; then
23230 # Fast installation is not supported
23231 enable_fast_install=no
23232elif test "$shlibpath_overrides_runpath" = yes ||
23233 test "$enable_shared" = no; then
23234 # Fast installation is not necessary
23235 enable_fast_install=needless
23236fi
23237
John Criswell47fdd832003-07-14 16:52:07 +000023238
23239# The else clause should only fire when bootstrapping the
23240# libtool distribution, otherwise you forgot to ship ltmain.sh
23241# with your package, and you will get complaints that there are
23242# no rules to generate ltmain.sh.
23243if test -f "$ltmain"; then
23244 # See if we are running on zsh, and set the options which allow our commands through
23245 # without removal of \ escapes.
23246 if test -n "${ZSH_VERSION+set}" ; then
23247 setopt NO_GLOB_SUBST
23248 fi
23249 # Now quote all the things that may contain metacharacters while being
23250 # careful not to overquote the AC_SUBSTed values. We take copies of the
23251 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023252 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 +000023253 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023254 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23255 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23256 deplibs_check_method reload_flag reload_cmds need_locks \
23257 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23258 lt_cv_sys_global_symbol_to_c_name_address \
23259 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23260 old_postinstall_cmds old_postuninstall_cmds \
23261 compiler_F77 \
23262 CC_F77 \
23263 LD_F77 \
23264 lt_prog_compiler_wl_F77 \
23265 lt_prog_compiler_pic_F77 \
23266 lt_prog_compiler_static_F77 \
23267 lt_prog_compiler_no_builtin_flag_F77 \
23268 export_dynamic_flag_spec_F77 \
23269 thread_safe_flag_spec_F77 \
23270 whole_archive_flag_spec_F77 \
23271 enable_shared_with_static_runtimes_F77 \
23272 old_archive_cmds_F77 \
23273 old_archive_from_new_cmds_F77 \
23274 predep_objects_F77 \
23275 postdep_objects_F77 \
23276 predeps_F77 \
23277 postdeps_F77 \
23278 compiler_lib_search_path_F77 \
23279 archive_cmds_F77 \
23280 archive_expsym_cmds_F77 \
23281 postinstall_cmds_F77 \
23282 postuninstall_cmds_F77 \
23283 old_archive_from_expsyms_cmds_F77 \
23284 allow_undefined_flag_F77 \
23285 no_undefined_flag_F77 \
23286 export_symbols_cmds_F77 \
23287 hardcode_libdir_flag_spec_F77 \
23288 hardcode_libdir_flag_spec_ld_F77 \
23289 hardcode_libdir_separator_F77 \
23290 hardcode_automatic_F77 \
23291 module_cmds_F77 \
23292 module_expsym_cmds_F77 \
23293 lt_cv_prog_compiler_c_o_F77 \
23294 exclude_expsyms_F77 \
23295 include_expsyms_F77; do
23296
23297 case $var in
23298 old_archive_cmds_F77 | \
23299 old_archive_from_new_cmds_F77 | \
23300 archive_cmds_F77 | \
23301 archive_expsym_cmds_F77 | \
23302 module_cmds_F77 | \
23303 module_expsym_cmds_F77 | \
23304 old_archive_from_expsyms_cmds_F77 | \
23305 export_symbols_cmds_F77 | \
23306 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23307 postinstall_cmds | postuninstall_cmds | \
23308 old_postinstall_cmds | old_postuninstall_cmds | \
23309 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23310 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023311 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 +000023312 ;;
23313 *)
23314 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23315 ;;
23316 esac
23317 done
23318
23319 case $lt_echo in
23320 *'\$0 --fallback-echo"')
23321 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23322 ;;
23323 esac
23324
23325cfgfile="$ofile"
23326
23327 cat <<__EOF__ >> "$cfgfile"
23328# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23329
23330# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23331
23332# Shell to use when invoking shell scripts.
23333SHELL=$lt_SHELL
23334
23335# Whether or not to build shared libraries.
23336build_libtool_libs=$enable_shared
23337
23338# Whether or not to build static libraries.
23339build_old_libs=$enable_static
23340
23341# Whether or not to add -lc for building shared libraries.
23342build_libtool_need_lc=$archive_cmds_need_lc_F77
23343
23344# Whether or not to disallow shared libs when runtime libs are static
23345allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23346
23347# Whether or not to optimize for fast installation.
23348fast_install=$enable_fast_install
23349
23350# The host system.
23351host_alias=$host_alias
23352host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023353host_os=$host_os
23354
23355# The build system.
23356build_alias=$build_alias
23357build=$build
23358build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023359
23360# An echo program that does not interpret backslashes.
23361echo=$lt_echo
23362
23363# The archiver.
23364AR=$lt_AR
23365AR_FLAGS=$lt_AR_FLAGS
23366
23367# A C compiler.
23368LTCC=$lt_LTCC
23369
Reid Spencera773bd52006-08-04 18:18:08 +000023370# LTCC compiler flags.
23371LTCFLAGS=$lt_LTCFLAGS
23372
John Criswell47fdd832003-07-14 16:52:07 +000023373# A language-specific compiler.
23374CC=$lt_compiler_F77
23375
23376# Is the compiler the GNU C compiler?
23377with_gcc=$GCC_F77
23378
23379# An ERE matcher.
23380EGREP=$lt_EGREP
23381
23382# The linker used to build libraries.
23383LD=$lt_LD_F77
23384
23385# Whether we need hard or soft links.
23386LN_S=$lt_LN_S
23387
23388# A BSD-compatible nm program.
23389NM=$lt_NM
23390
23391# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023392STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023393
23394# Used to examine libraries when file_magic_cmd begins "file"
23395MAGIC_CMD=$MAGIC_CMD
23396
23397# Used on cygwin: DLL creation program.
23398DLLTOOL="$DLLTOOL"
23399
23400# Used on cygwin: object dumper.
23401OBJDUMP="$OBJDUMP"
23402
23403# Used on cygwin: assembler.
23404AS="$AS"
23405
23406# The name of the directory that contains temporary libtool files.
23407objdir=$objdir
23408
23409# How to create reloadable object files.
23410reload_flag=$lt_reload_flag
23411reload_cmds=$lt_reload_cmds
23412
23413# How to pass a linker flag through the compiler.
23414wl=$lt_lt_prog_compiler_wl_F77
23415
23416# Object file suffix (normally "o").
23417objext="$ac_objext"
23418
23419# Old archive suffix (normally "a").
23420libext="$libext"
23421
23422# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023423shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023424
23425# Executable file suffix (normally "").
23426exeext="$exeext"
23427
23428# Additional compiler flags for building library objects.
23429pic_flag=$lt_lt_prog_compiler_pic_F77
23430pic_mode=$pic_mode
23431
23432# What is the maximum length of a command?
23433max_cmd_len=$lt_cv_sys_max_cmd_len
23434
23435# Does compiler simultaneously support -c and -o options?
23436compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23437
Reid Spencera773bd52006-08-04 18:18:08 +000023438# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023439need_locks=$lt_need_locks
23440
23441# Do we need the lib prefix for modules?
23442need_lib_prefix=$need_lib_prefix
23443
23444# Do we need a version for libraries?
23445need_version=$need_version
23446
23447# Whether dlopen is supported.
23448dlopen_support=$enable_dlopen
23449
23450# Whether dlopen of programs is supported.
23451dlopen_self=$enable_dlopen_self
23452
23453# Whether dlopen of statically linked programs is supported.
23454dlopen_self_static=$enable_dlopen_self_static
23455
23456# Compiler flag to prevent dynamic linking.
23457link_static_flag=$lt_lt_prog_compiler_static_F77
23458
23459# Compiler flag to turn off builtin functions.
23460no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23461
23462# Compiler flag to allow reflexive dlopens.
23463export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23464
23465# Compiler flag to generate shared objects directly from archives.
23466whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23467
23468# Compiler flag to generate thread-safe objects.
23469thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23470
23471# Library versioning type.
23472version_type=$version_type
23473
23474# Format of library name prefix.
23475libname_spec=$lt_libname_spec
23476
23477# List of archive names. First name is the real one, the rest are links.
23478# The last name is the one that the linker finds with -lNAME.
23479library_names_spec=$lt_library_names_spec
23480
23481# The coded name of the library, if different from the real name.
23482soname_spec=$lt_soname_spec
23483
23484# Commands used to build and install an old-style archive.
23485RANLIB=$lt_RANLIB
23486old_archive_cmds=$lt_old_archive_cmds_F77
23487old_postinstall_cmds=$lt_old_postinstall_cmds
23488old_postuninstall_cmds=$lt_old_postuninstall_cmds
23489
23490# Create an old-style archive from a shared archive.
23491old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23492
23493# Create a temporary old-style archive to link instead of a shared archive.
23494old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23495
23496# Commands used to build and install a shared archive.
23497archive_cmds=$lt_archive_cmds_F77
23498archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23499postinstall_cmds=$lt_postinstall_cmds
23500postuninstall_cmds=$lt_postuninstall_cmds
23501
23502# Commands used to build a loadable module (assumed same as above if empty)
23503module_cmds=$lt_module_cmds_F77
23504module_expsym_cmds=$lt_module_expsym_cmds_F77
23505
23506# Commands to strip libraries.
23507old_striplib=$lt_old_striplib
23508striplib=$lt_striplib
23509
23510# Dependencies to place before the objects being linked to create a
23511# shared library.
23512predep_objects=$lt_predep_objects_F77
23513
23514# Dependencies to place after the objects being linked to create a
23515# shared library.
23516postdep_objects=$lt_postdep_objects_F77
23517
23518# Dependencies to place before the objects being linked to create a
23519# shared library.
23520predeps=$lt_predeps_F77
23521
23522# Dependencies to place after the objects being linked to create a
23523# shared library.
23524postdeps=$lt_postdeps_F77
23525
23526# The library search path used internally by the compiler when linking
23527# a shared library.
23528compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23529
23530# Method to check whether dependent libraries are shared objects.
23531deplibs_check_method=$lt_deplibs_check_method
23532
23533# Command to use when deplibs_check_method == file_magic.
23534file_magic_cmd=$lt_file_magic_cmd
23535
23536# Flag that allows shared libraries with undefined symbols to be built.
23537allow_undefined_flag=$lt_allow_undefined_flag_F77
23538
23539# Flag that forces no undefined symbols.
23540no_undefined_flag=$lt_no_undefined_flag_F77
23541
23542# Commands used to finish a libtool library installation in a directory.
23543finish_cmds=$lt_finish_cmds
23544
23545# Same as above, but a single script fragment to be evaled but not shown.
23546finish_eval=$lt_finish_eval
23547
23548# Take the output of nm and produce a listing of raw symbols and C names.
23549global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23550
23551# Transform the output of nm in a proper C declaration
23552global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23553
23554# Transform the output of nm in a C name address pair
23555global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23556
23557# This is the shared library runtime path variable.
23558runpath_var=$runpath_var
23559
23560# This is the shared library path variable.
23561shlibpath_var=$shlibpath_var
23562
23563# Is shlibpath searched before the hard-coded library search path?
23564shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23565
23566# How to hardcode a shared library path into an executable.
23567hardcode_action=$hardcode_action_F77
23568
23569# Whether we should hardcode library paths into libraries.
23570hardcode_into_libs=$hardcode_into_libs
23571
23572# Flag to hardcode \$libdir into a binary during linking.
23573# This must work even if \$libdir does not exist.
23574hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23575
23576# If ld is used when linking, flag to hardcode \$libdir into
23577# a binary during linking. This must work even if \$libdir does
23578# not exist.
23579hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23580
23581# Whether we need a single -rpath flag with a separated argument.
23582hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23583
23584# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23585# resulting binary.
23586hardcode_direct=$hardcode_direct_F77
23587
23588# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23589# resulting binary.
23590hardcode_minus_L=$hardcode_minus_L_F77
23591
23592# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23593# the resulting binary.
23594hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23595
23596# Set to yes if building a shared library automatically hardcodes DIR into the library
23597# and all subsequent libraries and executables linked against it.
23598hardcode_automatic=$hardcode_automatic_F77
23599
23600# Variables whose values should be saved in libtool wrapper scripts and
23601# restored at relink time.
23602variables_saved_for_relink="$variables_saved_for_relink"
23603
23604# Whether libtool must link a program against all its dependency libraries.
23605link_all_deplibs=$link_all_deplibs_F77
23606
23607# Compile-time system search path for libraries
23608sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23609
23610# Run-time system search path for libraries
23611sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23612
23613# Fix the shell variable \$srcfile for the compiler.
23614fix_srcfile_path="$fix_srcfile_path_F77"
23615
23616# Set to yes if exported symbols are required.
23617always_export_symbols=$always_export_symbols_F77
23618
23619# The commands to list exported symbols.
23620export_symbols_cmds=$lt_export_symbols_cmds_F77
23621
23622# The commands to extract the exported symbol list from a shared archive.
23623extract_expsyms_cmds=$lt_extract_expsyms_cmds
23624
23625# Symbols that should not be listed in the preloaded symbols.
23626exclude_expsyms=$lt_exclude_expsyms_F77
23627
23628# Symbols that must always be exported.
23629include_expsyms=$lt_include_expsyms_F77
23630
23631# ### END LIBTOOL TAG CONFIG: $tagname
23632
23633__EOF__
23634
23635
23636else
23637 # If there is no Makefile yet, we rely on a make rule to execute
23638 # `config.status --recheck' to rerun these tests and create the
23639 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023640 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23641 if test -f "$ltmain_in"; then
23642 test -f Makefile && make "$ltmain"
23643 fi
John Criswell47fdd832003-07-14 16:52:07 +000023644fi
23645
23646
23647ac_ext=c
23648ac_cpp='$CPP $CPPFLAGS'
23649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23651ac_compiler_gnu=$ac_cv_c_compiler_gnu
23652
23653CC="$lt_save_CC"
23654
23655 else
23656 tagname=""
23657 fi
23658 ;;
23659
23660 GCJ)
23661 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023662 ac_ext=c
23663ac_cpp='$CPP $CPPFLAGS'
23664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23666ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023667
23668
23669# Source file extension for Java test sources.
23670ac_ext=java
23671
23672# Object file extension for compiled Java test sources.
23673objext=o
23674objext_GCJ=$objext
23675
23676# Code to be used in simple compile tests
23677lt_simple_compile_test_code="class foo {}\n"
23678
23679# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023680lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023681
23682# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23683
23684# If no C compiler was specified, use CC.
23685LTCC=${LTCC-"$CC"}
23686
Reid Spencera773bd52006-08-04 18:18:08 +000023687# If no C compiler flags were specified, use CFLAGS.
23688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23689
John Criswell47fdd832003-07-14 16:52:07 +000023690# Allow CC to be a program name with arguments.
23691compiler=$CC
23692
23693
Reid Spencera773bd52006-08-04 18:18:08 +000023694# save warnings/boilerplate of simple test code
23695ac_outfile=conftest.$ac_objext
23696printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23698_lt_compiler_boilerplate=`cat conftest.err`
23699$rm conftest*
23700
23701ac_outfile=conftest.$ac_objext
23702printf "$lt_simple_link_test_code" >conftest.$ac_ext
23703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23704_lt_linker_boilerplate=`cat conftest.err`
23705$rm conftest*
23706
23707
John Criswell47fdd832003-07-14 16:52:07 +000023708# Allow CC to be a program name with arguments.
23709lt_save_CC="$CC"
23710CC=${GCJ-"gcj"}
23711compiler=$CC
23712compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023713for cc_temp in $compiler""; do
23714 case $cc_temp in
23715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23717 \-*) ;;
23718 *) break;;
23719 esac
23720done
23721cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23722
John Criswell47fdd832003-07-14 16:52:07 +000023723
23724# GCJ did not exist at the time GCC didn't implicitly link libc in.
23725archive_cmds_need_lc_GCJ=no
23726
Reid Spencera773bd52006-08-04 18:18:08 +000023727old_archive_cmds_GCJ=$old_archive_cmds
23728
John Criswell47fdd832003-07-14 16:52:07 +000023729
23730lt_prog_compiler_no_builtin_flag_GCJ=
23731
23732if test "$GCC" = yes; then
23733 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23734
Reid Spencer2706f8c2004-09-19 23:53:36 +000023735
Reid Spencera773bd52006-08-04 18:18:08 +000023736{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23737echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023738if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23740else
23741 lt_cv_prog_compiler_rtti_exceptions=no
23742 ac_outfile=conftest.$ac_objext
23743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23744 lt_compiler_flag="-fno-rtti -fno-exceptions"
23745 # Insert the option either (1) after the last *FLAGS variable, or
23746 # (2) before a word containing "conftest.", or (3) at the end.
23747 # Note that $ac_compile itself does not contain backslashes and begins
23748 # with a dollar sign (not a hyphen), so the echo should work correctly.
23749 # The option is referenced via a variable to avoid confusing sed.
23750 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23753 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000023754 (eval echo "\"\$as_me:23754: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023755 (eval "$lt_compile" 2>conftest.err)
23756 ac_status=$?
23757 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000023758 echo "$as_me:23758: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023759 if (exit $ac_status) && test -s "$ac_outfile"; then
23760 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023761 # So say no if there are warnings other than the usual output.
23762 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23764 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023765 lt_cv_prog_compiler_rtti_exceptions=yes
23766 fi
23767 fi
23768 $rm conftest*
23769
23770fi
Reid Spencera773bd52006-08-04 18:18:08 +000023771{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23772echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023773
23774if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23775 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23776else
23777 :
23778fi
23779
23780fi
23781
23782lt_prog_compiler_wl_GCJ=
23783lt_prog_compiler_pic_GCJ=
23784lt_prog_compiler_static_GCJ=
23785
Reid Spencera773bd52006-08-04 18:18:08 +000023786{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23787echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023788
23789 if test "$GCC" = yes; then
23790 lt_prog_compiler_wl_GCJ='-Wl,'
23791 lt_prog_compiler_static_GCJ='-static'
23792
23793 case $host_os in
23794 aix*)
23795 # All AIX code is PIC.
23796 if test "$host_cpu" = ia64; then
23797 # AIX 5 now supports IA64 processor
23798 lt_prog_compiler_static_GCJ='-Bstatic'
23799 fi
23800 ;;
23801
23802 amigaos*)
23803 # FIXME: we need at least 68020 code to build shared libraries, but
23804 # adding the `-m68020' flag to GCC prevents building anything better,
23805 # like `-m68040'.
23806 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23807 ;;
23808
23809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23810 # PIC is the default for these OSes.
23811 ;;
23812
23813 mingw* | pw32* | os2*)
23814 # This hack is so that the source file can tell whether it is being
23815 # built for inclusion in a dll (and should export symbols for example).
23816 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23817 ;;
23818
23819 darwin* | rhapsody*)
23820 # PIC is the default on this platform
23821 # Common symbols not allowed in MH_DYLIB files
23822 lt_prog_compiler_pic_GCJ='-fno-common'
23823 ;;
23824
Reid Spencera773bd52006-08-04 18:18:08 +000023825 interix3*)
23826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23827 # Instead, we relocate shared libraries at runtime.
23828 ;;
23829
John Criswell47fdd832003-07-14 16:52:07 +000023830 msdosdjgpp*)
23831 # Just because we use GCC doesn't mean we suddenly get shared libraries
23832 # on systems that don't support them.
23833 lt_prog_compiler_can_build_shared_GCJ=no
23834 enable_shared=no
23835 ;;
23836
23837 sysv4*MP*)
23838 if test -d /usr/nec; then
23839 lt_prog_compiler_pic_GCJ=-Kconform_pic
23840 fi
23841 ;;
23842
23843 hpux*)
23844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23845 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023846 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023847 hppa*64*|ia64*)
23848 # +Z the default
23849 ;;
23850 *)
23851 lt_prog_compiler_pic_GCJ='-fPIC'
23852 ;;
23853 esac
23854 ;;
23855
23856 *)
23857 lt_prog_compiler_pic_GCJ='-fPIC'
23858 ;;
23859 esac
23860 else
23861 # PORTME Check for flag to pass linker flags through the system compiler.
23862 case $host_os in
23863 aix*)
23864 lt_prog_compiler_wl_GCJ='-Wl,'
23865 if test "$host_cpu" = ia64; then
23866 # AIX 5 now supports IA64 processor
23867 lt_prog_compiler_static_GCJ='-Bstatic'
23868 else
23869 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23870 fi
23871 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023872 darwin*)
23873 # PIC is the default on this platform
23874 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023875 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023876 xlc*)
23877 lt_prog_compiler_pic_GCJ='-qnocommon'
23878 lt_prog_compiler_wl_GCJ='-Wl,'
23879 ;;
23880 esac
23881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023882
23883 mingw* | pw32* | os2*)
23884 # This hack is so that the source file can tell whether it is being
23885 # built for inclusion in a dll (and should export symbols for example).
23886 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23887 ;;
23888
23889 hpux9* | hpux10* | hpux11*)
23890 lt_prog_compiler_wl_GCJ='-Wl,'
23891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23892 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023893 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023894 hppa*64*|ia64*)
23895 # +Z the default
23896 ;;
23897 *)
23898 lt_prog_compiler_pic_GCJ='+Z'
23899 ;;
23900 esac
23901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23902 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23903 ;;
23904
23905 irix5* | irix6* | nonstopux*)
23906 lt_prog_compiler_wl_GCJ='-Wl,'
23907 # PIC (with -KPIC) is the default.
23908 lt_prog_compiler_static_GCJ='-non_shared'
23909 ;;
23910
23911 newsos6)
23912 lt_prog_compiler_pic_GCJ='-KPIC'
23913 lt_prog_compiler_static_GCJ='-Bstatic'
23914 ;;
23915
23916 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023917 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023918 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023919 lt_prog_compiler_wl_GCJ='-Wl,'
23920 lt_prog_compiler_pic_GCJ='-KPIC'
23921 lt_prog_compiler_static_GCJ='-static'
23922 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023923 pgcc* | pgf77* | pgf90* | pgf95*)
23924 # Portland Group compilers (*not* the Pentium gcc compiler,
23925 # which looks to be a dead project)
23926 lt_prog_compiler_wl_GCJ='-Wl,'
23927 lt_prog_compiler_pic_GCJ='-fpic'
23928 lt_prog_compiler_static_GCJ='-Bstatic'
23929 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023930 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023931 lt_prog_compiler_wl_GCJ='-Wl,'
23932 # All Alpha code is PIC.
23933 lt_prog_compiler_static_GCJ='-non_shared'
23934 ;;
23935 esac
23936 ;;
23937
23938 osf3* | osf4* | osf5*)
23939 lt_prog_compiler_wl_GCJ='-Wl,'
23940 # All OSF/1 code is PIC.
23941 lt_prog_compiler_static_GCJ='-non_shared'
23942 ;;
23943
John Criswell47fdd832003-07-14 16:52:07 +000023944 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023945 lt_prog_compiler_pic_GCJ='-KPIC'
23946 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023947 case $cc_basename in
23948 f77* | f90* | f95*)
23949 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23950 *)
23951 lt_prog_compiler_wl_GCJ='-Wl,';;
23952 esac
John Criswell47fdd832003-07-14 16:52:07 +000023953 ;;
23954
23955 sunos4*)
23956 lt_prog_compiler_wl_GCJ='-Qoption ld '
23957 lt_prog_compiler_pic_GCJ='-PIC'
23958 lt_prog_compiler_static_GCJ='-Bstatic'
23959 ;;
23960
Reid Spencera773bd52006-08-04 18:18:08 +000023961 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023962 lt_prog_compiler_wl_GCJ='-Wl,'
23963 lt_prog_compiler_pic_GCJ='-KPIC'
23964 lt_prog_compiler_static_GCJ='-Bstatic'
23965 ;;
23966
23967 sysv4*MP*)
23968 if test -d /usr/nec ;then
23969 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23970 lt_prog_compiler_static_GCJ='-Bstatic'
23971 fi
23972 ;;
23973
Reid Spencera773bd52006-08-04 18:18:08 +000023974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23975 lt_prog_compiler_wl_GCJ='-Wl,'
23976 lt_prog_compiler_pic_GCJ='-KPIC'
23977 lt_prog_compiler_static_GCJ='-Bstatic'
23978 ;;
23979
23980 unicos*)
23981 lt_prog_compiler_wl_GCJ='-Wl,'
23982 lt_prog_compiler_can_build_shared_GCJ=no
23983 ;;
23984
John Criswell47fdd832003-07-14 16:52:07 +000023985 uts4*)
23986 lt_prog_compiler_pic_GCJ='-pic'
23987 lt_prog_compiler_static_GCJ='-Bstatic'
23988 ;;
23989
23990 *)
23991 lt_prog_compiler_can_build_shared_GCJ=no
23992 ;;
23993 esac
23994 fi
23995
Reid Spencera773bd52006-08-04 18:18:08 +000023996{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23997echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023998
23999#
24000# Check to make sure the PIC flag actually works.
24001#
24002if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024003
Reid Spencera773bd52006-08-04 18:18:08 +000024004{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24005echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024006if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24007 echo $ECHO_N "(cached) $ECHO_C" >&6
24008else
24009 lt_prog_compiler_pic_works_GCJ=no
24010 ac_outfile=conftest.$ac_objext
24011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24012 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24013 # Insert the option either (1) after the last *FLAGS variable, or
24014 # (2) before a word containing "conftest.", or (3) at the end.
24015 # Note that $ac_compile itself does not contain backslashes and begins
24016 # with a dollar sign (not a hyphen), so the echo should work correctly.
24017 # The option is referenced via a variable to avoid confusing sed.
24018 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24021 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000024022 (eval echo "\"\$as_me:24022: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024023 (eval "$lt_compile" 2>conftest.err)
24024 ac_status=$?
24025 cat conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000024026 echo "$as_me:24026: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024027 if (exit $ac_status) && test -s "$ac_outfile"; then
24028 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024029 # So say no if there are warnings other than the usual output.
24030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024033 lt_prog_compiler_pic_works_GCJ=yes
24034 fi
24035 fi
24036 $rm conftest*
24037
24038fi
Reid Spencera773bd52006-08-04 18:18:08 +000024039{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24040echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024041
24042if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24043 case $lt_prog_compiler_pic_GCJ in
24044 "" | " "*) ;;
24045 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24046 esac
24047else
24048 lt_prog_compiler_pic_GCJ=
24049 lt_prog_compiler_can_build_shared_GCJ=no
24050fi
24051
24052fi
Reid Spencera773bd52006-08-04 18:18:08 +000024053case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024054 # For platforms which do not support PIC, -DPIC is meaningless:
24055 *djgpp*)
24056 lt_prog_compiler_pic_GCJ=
24057 ;;
24058 *)
24059 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24060 ;;
24061esac
24062
Reid Spencera773bd52006-08-04 18:18:08 +000024063#
24064# Check to make sure the static flag actually works.
24065#
24066wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24067{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24068echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24069if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24070 echo $ECHO_N "(cached) $ECHO_C" >&6
24071else
24072 lt_prog_compiler_static_works_GCJ=no
24073 save_LDFLAGS="$LDFLAGS"
24074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24075 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24077 # The linker can only warn and ignore the option if not recognized
24078 # So say no if there are warnings
24079 if test -s conftest.err; then
24080 # Append any errors to the config.log.
24081 cat conftest.err 1>&5
24082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24084 if diff conftest.exp conftest.er2 >/dev/null; then
24085 lt_prog_compiler_static_works_GCJ=yes
24086 fi
24087 else
24088 lt_prog_compiler_static_works_GCJ=yes
24089 fi
24090 fi
24091 $rm conftest*
24092 LDFLAGS="$save_LDFLAGS"
24093
24094fi
24095{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24096echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24097
24098if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24099 :
24100else
24101 lt_prog_compiler_static_GCJ=
24102fi
24103
24104
24105{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24106echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024107if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110 lt_cv_prog_compiler_c_o_GCJ=no
24111 $rm -r conftest 2>/dev/null
24112 mkdir conftest
24113 cd conftest
24114 mkdir out
24115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24116
John Criswell47fdd832003-07-14 16:52:07 +000024117 lt_compiler_flag="-o out/conftest2.$ac_objext"
24118 # Insert the option either (1) after the last *FLAGS variable, or
24119 # (2) before a word containing "conftest.", or (3) at the end.
24120 # Note that $ac_compile itself does not contain backslashes and begins
24121 # with a dollar sign (not a hyphen), so the echo should work correctly.
24122 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24125 -e 's:$: $lt_compiler_flag:'`
Gordon Henriksene7072162008-03-07 18:20:01 +000024126 (eval echo "\"\$as_me:24126: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024127 (eval "$lt_compile" 2>out/conftest.err)
24128 ac_status=$?
24129 cat out/conftest.err >&5
Gordon Henriksene7072162008-03-07 18:20:01 +000024130 echo "$as_me:24130: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24132 then
24133 # The compiler can only warn and ignore the option if not recognized
24134 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024138 lt_cv_prog_compiler_c_o_GCJ=yes
24139 fi
24140 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024141 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024142 $rm conftest*
24143 # SGI C++ compiler will create directory out/ii_files/ for
24144 # template instantiation
24145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24146 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024147 cd ..
24148 rmdir conftest
24149 $rm conftest*
24150
24151fi
Reid Spencera773bd52006-08-04 18:18:08 +000024152{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24153echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024154
24155
24156hard_links="nottested"
24157if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24158 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024159 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24160echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024161 hard_links=yes
24162 $rm conftest*
24163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24164 touch conftest.a
24165 ln conftest.a conftest.b 2>&5 || hard_links=no
24166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024167 { echo "$as_me:$LINENO: result: $hard_links" >&5
24168echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024169 if test "$hard_links" = no; then
24170 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24171echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24172 need_locks=warn
24173 fi
24174else
24175 need_locks=no
24176fi
24177
Reid Spencera773bd52006-08-04 18:18:08 +000024178{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24179echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024180
24181 runpath_var=
24182 allow_undefined_flag_GCJ=
24183 enable_shared_with_static_runtimes_GCJ=no
24184 archive_cmds_GCJ=
24185 archive_expsym_cmds_GCJ=
24186 old_archive_From_new_cmds_GCJ=
24187 old_archive_from_expsyms_cmds_GCJ=
24188 export_dynamic_flag_spec_GCJ=
24189 whole_archive_flag_spec_GCJ=
24190 thread_safe_flag_spec_GCJ=
24191 hardcode_libdir_flag_spec_GCJ=
24192 hardcode_libdir_flag_spec_ld_GCJ=
24193 hardcode_libdir_separator_GCJ=
24194 hardcode_direct_GCJ=no
24195 hardcode_minus_L_GCJ=no
24196 hardcode_shlibpath_var_GCJ=unsupported
24197 link_all_deplibs_GCJ=unknown
24198 hardcode_automatic_GCJ=no
24199 module_cmds_GCJ=
24200 module_expsym_cmds_GCJ=
24201 always_export_symbols_GCJ=no
24202 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24203 # include_expsyms should be a list of space-separated symbols to be *always*
24204 # included in the symbol list
24205 include_expsyms_GCJ=
24206 # exclude_expsyms can be an extended regexp of symbols to exclude
24207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24209 # as well as any symbol that contains `d'.
24210 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24212 # platforms (ab)use it in PIC code, but their linkers get confused if
24213 # the symbol is explicitly referenced. Since portable code cannot
24214 # rely on this symbol name, it's probably fine to never include it in
24215 # preloaded symbol tables.
24216 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024217 # Just being paranoid about ensuring that cc_basename is set.
24218 for cc_temp in $compiler""; do
24219 case $cc_temp in
24220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24222 \-*) ;;
24223 *) break;;
24224 esac
24225done
24226cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024227
24228 case $host_os in
24229 cygwin* | mingw* | pw32*)
24230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24231 # When not using gcc, we currently assume that we are using
24232 # Microsoft Visual C++.
24233 if test "$GCC" != yes; then
24234 with_gnu_ld=no
24235 fi
24236 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024237 interix*)
24238 # we just hope/assume this is gcc and not c89 (= MSVC++)
24239 with_gnu_ld=yes
24240 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024241 openbsd*)
24242 with_gnu_ld=no
24243 ;;
24244 esac
24245
24246 ld_shlibs_GCJ=yes
24247 if test "$with_gnu_ld" = yes; then
24248 # If archive_cmds runs LD, not CC, wlarc should be empty
24249 wlarc='${wl}'
24250
Reid Spencera773bd52006-08-04 18:18:08 +000024251 # Set some defaults for GNU ld with shared library support. These
24252 # are reset later if shared libraries are not supported. Putting them
24253 # here allows them to be overridden if necessary.
24254 runpath_var=LD_RUN_PATH
24255 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24256 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24257 # ancient GNU ld didn't support --whole-archive et. al.
24258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24259 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24260 else
24261 whole_archive_flag_spec_GCJ=
24262 fi
24263 supports_anon_versioning=no
24264 case `$LD -v 2>/dev/null` in
24265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24268 *\ 2.11.*) ;; # other 2.11 versions
24269 *) supports_anon_versioning=yes ;;
24270 esac
24271
John Criswell47fdd832003-07-14 16:52:07 +000024272 # See if GNU ld supports shared libraries.
24273 case $host_os in
24274 aix3* | aix4* | aix5*)
24275 # On AIX/PPC, the GNU linker is very broken
24276 if test "$host_cpu" != ia64; then
24277 ld_shlibs_GCJ=no
24278 cat <<EOF 1>&2
24279
24280*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24281*** to be unable to reliably create shared libraries on AIX.
24282*** Therefore, libtool is disabling shared libraries support. If you
24283*** really care for shared libraries, you may want to modify your PATH
24284*** so that a non-GNU linker is found, and then restart.
24285
24286EOF
24287 fi
24288 ;;
24289
24290 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024291 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 +000024292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24293 hardcode_minus_L_GCJ=yes
24294
24295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24296 # that the semantics of dynamic libraries on AmigaOS, at least up
24297 # to version 4, is to share data among multiple programs linked
24298 # with the same dynamic library. Since this doesn't match the
24299 # behavior of shared libraries on other platforms, we can't use
24300 # them.
24301 ld_shlibs_GCJ=no
24302 ;;
24303
24304 beos*)
24305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24306 allow_undefined_flag_GCJ=unsupported
24307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24308 # support --undefined. This deserves some investigation. FIXME
24309 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24310 else
24311 ld_shlibs_GCJ=no
24312 fi
24313 ;;
24314
24315 cygwin* | mingw* | pw32*)
24316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24317 # as there is no search path for DLLs.
24318 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24319 allow_undefined_flag_GCJ=unsupported
24320 always_export_symbols_GCJ=no
24321 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024322 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 +000024323
24324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024325 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 +000024326 # If the export-symbols file already is a .def file (1st line
24327 # is EXPORTS), use it as is; otherwise, prepend...
24328 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24329 cp $export_symbols $output_objdir/$soname.def;
24330 else
24331 echo EXPORTS > $output_objdir/$soname.def;
24332 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024333 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024334 $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 +000024335 else
Reid Spencera773bd52006-08-04 18:18:08 +000024336 ld_shlibs_GCJ=no
24337 fi
24338 ;;
24339
24340 interix3*)
24341 hardcode_direct_GCJ=no
24342 hardcode_shlibpath_var_GCJ=no
24343 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24344 export_dynamic_flag_spec_GCJ='${wl}-E'
24345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24346 # Instead, shared libraries are loaded at an image base (0x10000000 by
24347 # default) and relocated if they conflict, which is a slow very memory
24348 # consuming and fragmenting process. To avoid this, we pick a random,
24349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24351 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'
24352 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'
24353 ;;
24354
24355 linux*)
24356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24357 tmp_addflag=
24358 case $cc_basename,$host_cpu in
24359 pgcc*) # Portland Group C compiler
24360 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'
24361 tmp_addflag=' $pic_flag'
24362 ;;
24363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24364 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'
24365 tmp_addflag=' $pic_flag -Mnomain' ;;
24366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24367 tmp_addflag=' -i_dynamic' ;;
24368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24369 tmp_addflag=' -i_dynamic -nofor_main' ;;
24370 ifc* | ifort*) # Intel Fortran compiler
24371 tmp_addflag=' -nofor_main' ;;
24372 esac
24373 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24374
24375 if test $supports_anon_versioning = yes; then
24376 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24378 $echo "local: *; };" >> $output_objdir/$libname.ver~
24379 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24380 fi
24381 else
24382 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024383 fi
24384 ;;
24385
24386 netbsd*)
24387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24388 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24389 wlarc=
24390 else
24391 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24392 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24393 fi
24394 ;;
24395
Reid Spencera773bd52006-08-04 18:18:08 +000024396 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24398 ld_shlibs_GCJ=no
24399 cat <<EOF 1>&2
24400
24401*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24402*** create shared libraries on Solaris systems. Therefore, libtool
24403*** is disabling shared libraries support. We urge you to upgrade GNU
24404*** binutils to release 2.9.1 or newer. Another option is to modify
24405*** your PATH or compiler configuration so that the native linker is
24406*** used, and then restart.
24407
24408EOF
24409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24410 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24411 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24412 else
24413 ld_shlibs_GCJ=no
24414 fi
24415 ;;
24416
Reid Spencera773bd52006-08-04 18:18:08 +000024417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24418 case `$LD -v 2>&1` in
24419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24420 ld_shlibs_GCJ=no
24421 cat <<_LT_EOF 1>&2
24422
24423*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24424*** reliably create shared libraries on SCO systems. Therefore, libtool
24425*** is disabling shared libraries support. We urge you to upgrade GNU
24426*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24427*** your PATH or compiler configuration so that the native linker is
24428*** used, and then restart.
24429
24430_LT_EOF
24431 ;;
24432 *)
24433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24434 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24435 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24436 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24437 else
24438 ld_shlibs_GCJ=no
24439 fi
24440 ;;
24441 esac
24442 ;;
24443
John Criswell47fdd832003-07-14 16:52:07 +000024444 sunos4*)
24445 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24446 wlarc=
24447 hardcode_direct_GCJ=yes
24448 hardcode_shlibpath_var_GCJ=no
24449 ;;
24450
24451 *)
24452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24454 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24455 else
24456 ld_shlibs_GCJ=no
24457 fi
24458 ;;
24459 esac
24460
Reid Spencera773bd52006-08-04 18:18:08 +000024461 if test "$ld_shlibs_GCJ" = no; then
24462 runpath_var=
24463 hardcode_libdir_flag_spec_GCJ=
24464 export_dynamic_flag_spec_GCJ=
24465 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024466 fi
24467 else
24468 # PORTME fill in a description of your system's linker (not GNU ld)
24469 case $host_os in
24470 aix3*)
24471 allow_undefined_flag_GCJ=unsupported
24472 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024473 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 +000024474 # Note: this linker hardcodes the directories in LIBPATH if there
24475 # are no directories specified by -L.
24476 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024478 # Neither direct hardcoding nor static linking is supported with a
24479 # broken collect2.
24480 hardcode_direct_GCJ=unsupported
24481 fi
24482 ;;
24483
24484 aix4* | aix5*)
24485 if test "$host_cpu" = ia64; then
24486 # On IA64, the linker does run time linking by default, so we don't
24487 # have to do anything special.
24488 aix_use_runtimelinking=no
24489 exp_sym_flag='-Bexport'
24490 no_entry_flag=""
24491 else
24492 # If we're using GNU nm, then we don't want the "-C" option.
24493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24495 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'
24496 else
24497 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'
24498 fi
24499 aix_use_runtimelinking=no
24500
24501 # Test if we are trying to use run time linking or normal
24502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24503 # need to do runtime linking.
24504 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24505 for ld_flag in $LDFLAGS; do
24506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24507 aix_use_runtimelinking=yes
24508 break
24509 fi
24510 done
Reid Spencera773bd52006-08-04 18:18:08 +000024511 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024512 esac
24513
24514 exp_sym_flag='-bexport'
24515 no_entry_flag='-bnoentry'
24516 fi
24517
24518 # When large executables or shared objects are built, AIX ld can
24519 # have problems creating the table of contents. If linking a library
24520 # or program results in "error TOC overflow" add -mminimal-toc to
24521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24523
24524 archive_cmds_GCJ=''
24525 hardcode_direct_GCJ=yes
24526 hardcode_libdir_separator_GCJ=':'
24527 link_all_deplibs_GCJ=yes
24528
24529 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024530 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024531 # We only want to do this on AIX 4.2 and lower, the check
24532 # below for broken collect2 doesn't work under 4.3+
24533 collect2name=`${CC} -print-prog-name=collect2`
24534 if test -f "$collect2name" && \
24535 strings "$collect2name" | grep resolve_lib_name >/dev/null
24536 then
24537 # We have reworked collect2
24538 hardcode_direct_GCJ=yes
24539 else
24540 # We have old collect2
24541 hardcode_direct_GCJ=unsupported
24542 # It fails to find uninstalled libraries when the uninstalled
24543 # path is not listed in the libpath. Setting hardcode_minus_L
24544 # to unsupported forces relinking
24545 hardcode_minus_L_GCJ=yes
24546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24547 hardcode_libdir_separator_GCJ=
24548 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024549 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024550 esac
24551 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024552 if test "$aix_use_runtimelinking" = yes; then
24553 shared_flag="$shared_flag "'${wl}-G'
24554 fi
John Criswell47fdd832003-07-14 16:52:07 +000024555 else
24556 # not using gcc
24557 if test "$host_cpu" = ia64; then
24558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24559 # chokes on -Wl,-G. The following line is correct:
24560 shared_flag='-G'
24561 else
Reid Spencera773bd52006-08-04 18:18:08 +000024562 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024563 shared_flag='${wl}-G'
24564 else
24565 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024566 fi
John Criswell47fdd832003-07-14 16:52:07 +000024567 fi
24568 fi
24569
24570 # It seems that -bexpall does not export symbols beginning with
24571 # underscore (_), so it is better to generate a list of symbols to export.
24572 always_export_symbols_GCJ=yes
24573 if test "$aix_use_runtimelinking" = yes; then
24574 # Warning - without using the other runtime loading flags (-brtl),
24575 # -berok will link without error, but may produce a broken library.
24576 allow_undefined_flag_GCJ='-berok'
24577 # Determine the default libpath from the value encoded in an empty executable.
24578 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024584
John Criswell47fdd832003-07-14 16:52:07 +000024585int
24586main ()
24587{
24588
24589 ;
24590 return 0;
24591}
24592_ACEOF
24593rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024594if { (ac_try="$ac_link"
24595case "(($ac_try" in
24596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597 *) ac_try_echo=$ac_try;;
24598esac
24599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24608 { (case "(($ac_try" in
24609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24610 *) ac_try_echo=$ac_try;;
24611esac
24612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24613 (eval "$ac_try") 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; } &&
24617 { ac_try='test -s conftest$ac_exeext'
24618 { (case "(($ac_try" in
24619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620 *) ac_try_echo=$ac_try;;
24621esac
24622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623 (eval "$ac_try") 2>&5
24624 ac_status=$?
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024627
24628aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24629}'`
24630# Check for a 64-bit object if we didn't find anything.
24631if 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; }
24632}'`; fi
24633else
24634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024635sed 's/^/| /' conftest.$ac_ext >&5
24636
Reid Spencera773bd52006-08-04 18:18:08 +000024637
John Criswell47fdd832003-07-14 16:52:07 +000024638fi
Reid Spencera773bd52006-08-04 18:18:08 +000024639
Tanya Lattnercf067672008-01-17 05:57:22 +000024640rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024641 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024642if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24643
24644 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024645 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 +000024646 else
24647 if test "$host_cpu" = ia64; then
24648 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24649 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024650 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 +000024651 else
24652 # Determine the default libpath from the value encoded in an empty executable.
24653 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024654/* confdefs.h. */
24655_ACEOF
24656cat confdefs.h >>conftest.$ac_ext
24657cat >>conftest.$ac_ext <<_ACEOF
24658/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024659
John Criswell47fdd832003-07-14 16:52:07 +000024660int
24661main ()
24662{
24663
24664 ;
24665 return 0;
24666}
24667_ACEOF
24668rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024669if { (ac_try="$ac_link"
24670case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24673esac
24674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024677 grep -v '^ *+' conftest.er1 >conftest.err
24678 rm -f conftest.er1
24679 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000024681 (exit $ac_status); } &&
24682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24683 { (case "(($ac_try" in
24684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685 *) ac_try_echo=$ac_try;;
24686esac
24687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688 (eval "$ac_try") 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest$ac_exeext'
24693 { (case "(($ac_try" in
24694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695 *) ac_try_echo=$ac_try;;
24696esac
24697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698 (eval "$ac_try") 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024702
24703aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24704}'`
24705# Check for a 64-bit object if we didn't find anything.
24706if 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; }
24707}'`; fi
24708else
24709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024710sed 's/^/| /' conftest.$ac_ext >&5
24711
Reid Spencera773bd52006-08-04 18:18:08 +000024712
John Criswell47fdd832003-07-14 16:52:07 +000024713fi
Reid Spencera773bd52006-08-04 18:18:08 +000024714
Tanya Lattnercf067672008-01-17 05:57:22 +000024715rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024716 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24718
24719 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24720 # Warning - without using the other run time loading flags,
24721 # -berok will link without error, but may produce a broken library.
24722 no_undefined_flag_GCJ=' ${wl}-bernotok'
24723 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024724 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024725 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024726 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024727 # This is similar to how AIX traditionally builds its shared libraries.
24728 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 +000024729 fi
24730 fi
24731 ;;
24732
24733 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024734 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 +000024735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 hardcode_minus_L_GCJ=yes
24737 # see comment about different semantics on the GNU ld section
24738 ld_shlibs_GCJ=no
24739 ;;
24740
Reid Spencer2706f8c2004-09-19 23:53:36 +000024741 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024742 export_dynamic_flag_spec_GCJ=-rdynamic
24743 ;;
24744
24745 cygwin* | mingw* | pw32*)
24746 # When not using gcc, we currently assume that we are using
24747 # Microsoft Visual C++.
24748 # hardcode_libdir_flag_spec is actually meaningless, as there is
24749 # no search path for DLLs.
24750 hardcode_libdir_flag_spec_GCJ=' '
24751 allow_undefined_flag_GCJ=unsupported
24752 # Tell ltmain to make .lib files, not .a files.
24753 libext=lib
24754 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024755 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024756 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024757 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 +000024758 # The linker will automatically build a .lib file if we build a DLL.
24759 old_archive_From_new_cmds_GCJ='true'
24760 # FIXME: Should let the user specify the lib program.
24761 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024762 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024763 enable_shared_with_static_runtimes_GCJ=yes
24764 ;;
24765
24766 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024767 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024768 rhapsody* | darwin1.[012])
24769 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24770 ;;
24771 *) # Darwin 1.3 on
24772 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24773 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24774 else
24775 case ${MACOSX_DEPLOYMENT_TARGET} in
24776 10.[012])
24777 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24778 ;;
24779 10.*)
24780 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24781 ;;
24782 esac
24783 fi
24784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024785 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024786 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024787 hardcode_direct_GCJ=no
24788 hardcode_automatic_GCJ=yes
24789 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024790 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024791 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024792 if test "$GCC" = yes ; then
24793 output_verbose_link_cmd='echo'
24794 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24795 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024796 # 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 +000024797 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}'
24798 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 +000024799 else
Reid Spencera773bd52006-08-04 18:18:08 +000024800 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024801 xlc*)
24802 output_verbose_link_cmd='echo'
24803 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24804 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024805 # 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 +000024806 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}'
24807 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 +000024808 ;;
24809 *)
24810 ld_shlibs_GCJ=no
24811 ;;
24812 esac
John Criswell47fdd832003-07-14 16:52:07 +000024813 fi
24814 ;;
24815
24816 dgux*)
24817 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24818 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24819 hardcode_shlibpath_var_GCJ=no
24820 ;;
24821
24822 freebsd1*)
24823 ld_shlibs_GCJ=no
24824 ;;
24825
24826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24827 # support. Future versions do this automatically, but an explicit c++rt0.o
24828 # does not break anything, and helps significantly (at the cost of a little
24829 # extra space).
24830 freebsd2.2*)
24831 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24832 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24833 hardcode_direct_GCJ=yes
24834 hardcode_shlibpath_var_GCJ=no
24835 ;;
24836
24837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24838 freebsd2*)
24839 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24840 hardcode_direct_GCJ=yes
24841 hardcode_minus_L_GCJ=yes
24842 hardcode_shlibpath_var_GCJ=no
24843 ;;
24844
24845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024846 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024847 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24848 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24849 hardcode_direct_GCJ=yes
24850 hardcode_shlibpath_var_GCJ=no
24851 ;;
24852
24853 hpux9*)
24854 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024855 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 +000024856 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024857 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 +000024858 fi
24859 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24860 hardcode_libdir_separator_GCJ=:
24861 hardcode_direct_GCJ=yes
24862
24863 # hardcode_minus_L: Not really in the search PATH,
24864 # but as the default location of the library.
24865 hardcode_minus_L_GCJ=yes
24866 export_dynamic_flag_spec_GCJ='${wl}-E'
24867 ;;
24868
Reid Spencera773bd52006-08-04 18:18:08 +000024869 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024871 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24872 else
24873 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24874 fi
24875 if test "$with_gnu_ld" = no; then
24876 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24877 hardcode_libdir_separator_GCJ=:
24878
24879 hardcode_direct_GCJ=yes
24880 export_dynamic_flag_spec_GCJ='${wl}-E'
24881
24882 # hardcode_minus_L: Not really in the search PATH,
24883 # but as the default location of the library.
24884 hardcode_minus_L_GCJ=yes
24885 fi
24886 ;;
24887
24888 hpux11*)
24889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24890 case $host_cpu in
24891 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024892 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24893 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024894 ia64*)
24895 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24896 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024897 *)
24898 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24899 ;;
24900 esac
24901 else
Reid Spencera773bd52006-08-04 18:18:08 +000024902 case $host_cpu in
24903 hppa*64*)
24904 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24905 ;;
24906 ia64*)
24907 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024908 ;;
24909 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024910 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 +000024911 ;;
24912 esac
24913 fi
24914 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24916 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024917
Reid Spencera773bd52006-08-04 18:18:08 +000024918 case $host_cpu in
24919 hppa*64*|ia64*)
24920 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24921 hardcode_direct_GCJ=no
24922 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024923 ;;
24924 *)
John Criswell47fdd832003-07-14 16:52:07 +000024925 hardcode_direct_GCJ=yes
24926 export_dynamic_flag_spec_GCJ='${wl}-E'
24927
24928 # hardcode_minus_L: Not really in the search PATH,
24929 # but as the default location of the library.
24930 hardcode_minus_L_GCJ=yes
24931 ;;
24932 esac
24933 fi
24934 ;;
24935
24936 irix5* | irix6* | nonstopux*)
24937 if test "$GCC" = yes; then
24938 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'
24939 else
24940 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'
24941 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24942 fi
24943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24944 hardcode_libdir_separator_GCJ=:
24945 link_all_deplibs_GCJ=yes
24946 ;;
24947
24948 netbsd*)
24949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24950 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24951 else
24952 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24953 fi
24954 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24955 hardcode_direct_GCJ=yes
24956 hardcode_shlibpath_var_GCJ=no
24957 ;;
24958
24959 newsos6)
24960 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24961 hardcode_direct_GCJ=yes
24962 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24963 hardcode_libdir_separator_GCJ=:
24964 hardcode_shlibpath_var_GCJ=no
24965 ;;
24966
24967 openbsd*)
24968 hardcode_direct_GCJ=yes
24969 hardcode_shlibpath_var_GCJ=no
24970 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24971 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024972 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 +000024973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24974 export_dynamic_flag_spec_GCJ='${wl}-E'
24975 else
24976 case $host_os in
24977 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24978 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24979 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24980 ;;
24981 *)
24982 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24983 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24984 ;;
24985 esac
24986 fi
24987 ;;
24988
24989 os2*)
24990 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24991 hardcode_minus_L_GCJ=yes
24992 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024993 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 +000024994 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24995 ;;
24996
24997 osf3*)
24998 if test "$GCC" = yes; then
24999 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25000 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'
25001 else
25002 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25003 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'
25004 fi
25005 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25006 hardcode_libdir_separator_GCJ=:
25007 ;;
25008
25009 osf4* | osf5*) # as osf3* with the addition of -msym flag
25010 if test "$GCC" = yes; then
25011 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25012 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'
25013 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25014 else
25015 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25016 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 +000025017 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 +000025018 $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 +000025019
John Criswell47fdd832003-07-14 16:52:07 +000025020 # Both c and cxx compiler support -rpath directly
25021 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25022 fi
25023 hardcode_libdir_separator_GCJ=:
25024 ;;
25025
John Criswell47fdd832003-07-14 16:52:07 +000025026 solaris*)
25027 no_undefined_flag_GCJ=' -z text'
25028 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025029 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025030 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025031 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25032 $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 +000025033 else
Reid Spencera773bd52006-08-04 18:18:08 +000025034 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025035 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025036 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25037 $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 +000025038 fi
25039 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25040 hardcode_shlibpath_var_GCJ=no
25041 case $host_os in
25042 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025043 *)
25044 # The compiler driver will combine linker options so we
25045 # cannot just pass the convience library names through
25046 # without $wl, iff we do not link with $LD.
25047 # Luckily, gcc supports the same syntax we need for Sun Studio.
25048 # Supported since Solaris 2.6 (maybe 2.5.1?)
25049 case $wlarc in
25050 '')
25051 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25052 *)
25053 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' ;;
25054 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025055 esac
25056 link_all_deplibs_GCJ=yes
25057 ;;
25058
25059 sunos4*)
25060 if test "x$host_vendor" = xsequent; then
25061 # Use $CC to link under sequent, because it throws in some extra .o
25062 # files that make .init and .fini sections work.
25063 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25064 else
25065 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25066 fi
25067 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25068 hardcode_direct_GCJ=yes
25069 hardcode_minus_L_GCJ=yes
25070 hardcode_shlibpath_var_GCJ=no
25071 ;;
25072
25073 sysv4)
25074 case $host_vendor in
25075 sni)
25076 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25077 hardcode_direct_GCJ=yes # is this really true???
25078 ;;
25079 siemens)
25080 ## LD is ld it makes a PLAMLIB
25081 ## CC just makes a GrossModule.
25082 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25083 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25084 hardcode_direct_GCJ=no
25085 ;;
25086 motorola)
25087 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25089 ;;
25090 esac
25091 runpath_var='LD_RUN_PATH'
25092 hardcode_shlibpath_var_GCJ=no
25093 ;;
25094
25095 sysv4.3*)
25096 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25097 hardcode_shlibpath_var_GCJ=no
25098 export_dynamic_flag_spec_GCJ='-Bexport'
25099 ;;
25100
25101 sysv4*MP*)
25102 if test -d /usr/nec; then
25103 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25104 hardcode_shlibpath_var_GCJ=no
25105 runpath_var=LD_RUN_PATH
25106 hardcode_runpath_var=yes
25107 ld_shlibs_GCJ=yes
25108 fi
25109 ;;
25110
Reid Spencera773bd52006-08-04 18:18:08 +000025111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25112 no_undefined_flag_GCJ='${wl}-z,text'
25113 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025114 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025115 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025116
John Criswell47fdd832003-07-14 16:52:07 +000025117 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025118 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25119 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 +000025120 else
Reid Spencera773bd52006-08-04 18:18:08 +000025121 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25122 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 +000025123 fi
John Criswell47fdd832003-07-14 16:52:07 +000025124 ;;
25125
Reid Spencera773bd52006-08-04 18:18:08 +000025126 sysv5* | sco3.2v5* | sco5v6*)
25127 # Note: We can NOT use -z defs as we might desire, because we do not
25128 # link with -lc, and that would cause any symbols used from libc to
25129 # always be unresolved, which means just about no library would
25130 # ever link correctly. If we're not using GNU ld we use -z text
25131 # though, which does catch some bad symbols but isn't as heavy-handed
25132 # as -z defs.
25133 no_undefined_flag_GCJ='${wl}-z,text'
25134 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25135 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025136 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025137 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25138 hardcode_libdir_separator_GCJ=':'
25139 link_all_deplibs_GCJ=yes
25140 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025141 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025142
25143 if test "$GCC" = yes; then
25144 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25145 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25146 else
25147 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25148 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25149 fi
John Criswell47fdd832003-07-14 16:52:07 +000025150 ;;
25151
25152 uts4*)
25153 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25154 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25155 hardcode_shlibpath_var_GCJ=no
25156 ;;
25157
25158 *)
25159 ld_shlibs_GCJ=no
25160 ;;
25161 esac
25162 fi
25163
Reid Spencera773bd52006-08-04 18:18:08 +000025164{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25165echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025166test "$ld_shlibs_GCJ" = no && can_build_shared=no
25167
John Criswell47fdd832003-07-14 16:52:07 +000025168#
25169# Do we need to explicitly link libc?
25170#
25171case "x$archive_cmds_need_lc_GCJ" in
25172x|xyes)
25173 # Assume -lc should be added
25174 archive_cmds_need_lc_GCJ=yes
25175
25176 if test "$enable_shared" = yes && test "$GCC" = yes; then
25177 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025179 # FIXME: we may have to deal with multi-command sequences.
25180 ;;
25181 '$CC '*)
25182 # Test whether the compiler implicitly links with -lc since on some
25183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25184 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025185 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25186echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025187 $rm conftest*
25188 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25189
25190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191 (eval $ac_compile) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } 2>conftest.err; then
25195 soname=conftest
25196 lib=conftest
25197 libobjs=conftest.$ac_objext
25198 deplibs=
25199 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025200 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025201 compiler_flags=-v
25202 linker_flags=-v
25203 verstring=
25204 output_objdir=.
25205 libname=conftest
25206 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25207 allow_undefined_flag_GCJ=
25208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25209 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25210 ac_status=$?
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); }
25213 then
25214 archive_cmds_need_lc_GCJ=no
25215 else
25216 archive_cmds_need_lc_GCJ=yes
25217 fi
25218 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25219 else
25220 cat conftest.err 1>&5
25221 fi
25222 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025223 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25224echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025225 ;;
25226 esac
25227 fi
25228 ;;
25229esac
25230
Reid Spencera773bd52006-08-04 18:18:08 +000025231{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25232echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025233library_names_spec=
25234libname_spec='lib$name'
25235soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025236shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025237postinstall_cmds=
25238postuninstall_cmds=
25239finish_cmds=
25240finish_eval=
25241shlibpath_var=
25242shlibpath_overrides_runpath=unknown
25243version_type=none
25244dynamic_linker="$host_os ld.so"
25245sys_lib_dlsearch_path_spec="/lib /usr/lib"
25246if test "$GCC" = yes; then
25247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25248 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25249 # if the path contains ";" then we assume it to be the separator
25250 # otherwise default to the standard path separator (i.e. ":") - it is
25251 # assumed that no part of a normal pathname contains ";" but that should
25252 # okay in the real world where ";" in dirpaths is itself problematic.
25253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25254 else
25255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25256 fi
25257else
25258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25259fi
25260need_lib_prefix=unknown
25261hardcode_into_libs=no
25262
25263# when you set need_version to no, make sure it does not cause -set_version
25264# flags to be left without arguments
25265need_version=unknown
25266
25267case $host_os in
25268aix3*)
25269 version_type=linux
25270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25271 shlibpath_var=LIBPATH
25272
25273 # AIX 3 has no versioning support, so we append a major version to the name.
25274 soname_spec='${libname}${release}${shared_ext}$major'
25275 ;;
25276
25277aix4* | aix5*)
25278 version_type=linux
25279 need_lib_prefix=no
25280 need_version=no
25281 hardcode_into_libs=yes
25282 if test "$host_cpu" = ia64; then
25283 # AIX 5 supports IA64
25284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25285 shlibpath_var=LD_LIBRARY_PATH
25286 else
25287 # With GCC up to 2.95.x, collect2 would create an import file
25288 # for dependence libraries. The import file would start with
25289 # the line `#! .'. This would cause the generated library to
25290 # depend on `.', always an invalid library. This was fixed in
25291 # development snapshots of GCC prior to 3.0.
25292 case $host_os in
25293 aix4 | aix4.[01] | aix4.[01].*)
25294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25295 echo ' yes '
25296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25297 :
25298 else
25299 can_build_shared=no
25300 fi
25301 ;;
25302 esac
25303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25304 # soname into executable. Probably we can add versioning support to
25305 # collect2, so additional links can be useful in future.
25306 if test "$aix_use_runtimelinking" = yes; then
25307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25308 # instead of lib<name>.a to let people know that these are not
25309 # typical AIX shared libraries.
25310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25311 else
25312 # We preserve .a as extension for shared libraries through AIX4.2
25313 # and later when we are not doing run time linking.
25314 library_names_spec='${libname}${release}.a $libname.a'
25315 soname_spec='${libname}${release}${shared_ext}$major'
25316 fi
25317 shlibpath_var=LIBPATH
25318 fi
25319 ;;
25320
25321amigaos*)
25322 library_names_spec='$libname.ixlibrary $libname.a'
25323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025324 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 +000025325 ;;
25326
25327beos*)
25328 library_names_spec='${libname}${shared_ext}'
25329 dynamic_linker="$host_os ld.so"
25330 shlibpath_var=LIBRARY_PATH
25331 ;;
25332
Reid Spencer2706f8c2004-09-19 23:53:36 +000025333bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025334 version_type=linux
25335 need_version=no
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25337 soname_spec='${libname}${release}${shared_ext}$major'
25338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25339 shlibpath_var=LD_LIBRARY_PATH
25340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25342 # the default ld.so.conf also contains /usr/contrib/lib and
25343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25344 # libtool to hard-code these into programs
25345 ;;
25346
25347cygwin* | mingw* | pw32*)
25348 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025349 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025350 need_version=no
25351 need_lib_prefix=no
25352
25353 case $GCC,$host_os in
25354 yes,cygwin* | yes,mingw* | yes,pw32*)
25355 library_names_spec='$libname.dll.a'
25356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025357 postinstall_cmds='base_file=`basename \${file}`~
25358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25359 dldir=$destdir/`dirname \$dlpath`~
25360 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025361 $install_prog $dir/$dlname \$dldir/$dlname~
25362 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025363 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25364 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025365 $rm \$dlpath'
25366 shlibpath_overrides_runpath=yes
25367
25368 case $host_os in
25369 cygwin*)
25370 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25371 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 +000025372 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025373 ;;
25374 mingw*)
25375 # MinGW DLLs use traditional 'lib' prefix
25376 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25377 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25378 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25379 # It is most probably a Windows format PATH printed by
25380 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25381 # path with ; separators, and with drive letters. We can handle the
25382 # drive letters (cygwin fileutils understands them), so leave them,
25383 # especially as we might pass files found there to a mingw objdump,
25384 # which wouldn't understand a cygwinified path. Ahh.
25385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25386 else
25387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25388 fi
25389 ;;
25390 pw32*)
25391 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025392 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 +000025393 ;;
25394 esac
25395 ;;
25396
25397 *)
25398 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25399 ;;
25400 esac
25401 dynamic_linker='Win32 ld.exe'
25402 # FIXME: first we should search . and the directory the executable is in
25403 shlibpath_var=PATH
25404 ;;
25405
25406darwin* | rhapsody*)
25407 dynamic_linker="$host_os dyld"
25408 version_type=darwin
25409 need_lib_prefix=no
25410 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025411 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025412 soname_spec='${libname}${release}${major}$shared_ext'
25413 shlibpath_overrides_runpath=yes
25414 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025415 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025416 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025417 if test "$GCC" = yes; then
25418 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"`
25419 else
25420 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025421 fi
25422 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25423 ;;
25424
25425dgux*)
25426 version_type=linux
25427 need_lib_prefix=no
25428 need_version=no
25429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25430 soname_spec='${libname}${release}${shared_ext}$major'
25431 shlibpath_var=LD_LIBRARY_PATH
25432 ;;
25433
25434freebsd1*)
25435 dynamic_linker=no
25436 ;;
25437
Reid Spencer2706f8c2004-09-19 23:53:36 +000025438kfreebsd*-gnu)
25439 version_type=linux
25440 need_lib_prefix=no
25441 need_version=no
25442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25443 soname_spec='${libname}${release}${shared_ext}$major'
25444 shlibpath_var=LD_LIBRARY_PATH
25445 shlibpath_overrides_runpath=no
25446 hardcode_into_libs=yes
25447 dynamic_linker='GNU ld.so'
25448 ;;
25449
Reid Spencera773bd52006-08-04 18:18:08 +000025450freebsd* | dragonfly*)
25451 # DragonFly does not have aout. When/if they implement a new
25452 # versioning mechanism, adjust this.
25453 if test -x /usr/bin/objformat; then
25454 objformat=`/usr/bin/objformat`
25455 else
25456 case $host_os in
25457 freebsd[123]*) objformat=aout ;;
25458 *) objformat=elf ;;
25459 esac
25460 fi
John Criswell47fdd832003-07-14 16:52:07 +000025461 version_type=freebsd-$objformat
25462 case $version_type in
25463 freebsd-elf*)
25464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25465 need_version=no
25466 need_lib_prefix=no
25467 ;;
25468 freebsd-*)
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25470 need_version=yes
25471 ;;
25472 esac
25473 shlibpath_var=LD_LIBRARY_PATH
25474 case $host_os in
25475 freebsd2*)
25476 shlibpath_overrides_runpath=yes
25477 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025478 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025479 shlibpath_overrides_runpath=yes
25480 hardcode_into_libs=yes
25481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025482 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25483 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025484 shlibpath_overrides_runpath=no
25485 hardcode_into_libs=yes
25486 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025487 freebsd*) # from 4.6 on
25488 shlibpath_overrides_runpath=yes
25489 hardcode_into_libs=yes
25490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025491 esac
25492 ;;
25493
25494gnu*)
25495 version_type=linux
25496 need_lib_prefix=no
25497 need_version=no
25498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25499 soname_spec='${libname}${release}${shared_ext}$major'
25500 shlibpath_var=LD_LIBRARY_PATH
25501 hardcode_into_libs=yes
25502 ;;
25503
25504hpux9* | hpux10* | hpux11*)
25505 # Give a soname corresponding to the major version so that dld.sl refuses to
25506 # link against other versions.
25507 version_type=sunos
25508 need_lib_prefix=no
25509 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025510 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025511 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025512 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025513 hardcode_into_libs=yes
25514 dynamic_linker="$host_os dld.so"
25515 shlibpath_var=LD_LIBRARY_PATH
25516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25518 soname_spec='${libname}${release}${shared_ext}$major'
25519 if test "X$HPUX_IA64_MODE" = X32; then
25520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25521 else
25522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25523 fi
25524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25525 ;;
25526 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025527 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025528 hardcode_into_libs=yes
25529 dynamic_linker="$host_os dld.sl"
25530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25536 ;;
25537 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025538 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025539 dynamic_linker="$host_os dld.sl"
25540 shlibpath_var=SHLIB_PATH
25541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 ;;
25545 esac
25546 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25547 postinstall_cmds='chmod 555 $lib'
25548 ;;
25549
Reid Spencera773bd52006-08-04 18:18:08 +000025550interix3*)
25551 version_type=linux
25552 need_lib_prefix=no
25553 need_version=no
25554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25555 soname_spec='${libname}${release}${shared_ext}$major'
25556 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25557 shlibpath_var=LD_LIBRARY_PATH
25558 shlibpath_overrides_runpath=no
25559 hardcode_into_libs=yes
25560 ;;
25561
John Criswell47fdd832003-07-14 16:52:07 +000025562irix5* | irix6* | nonstopux*)
25563 case $host_os in
25564 nonstopux*) version_type=nonstopux ;;
25565 *)
25566 if test "$lt_cv_prog_gnu_ld" = yes; then
25567 version_type=linux
25568 else
25569 version_type=irix
25570 fi ;;
25571 esac
25572 need_lib_prefix=no
25573 need_version=no
25574 soname_spec='${libname}${release}${shared_ext}$major'
25575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25576 case $host_os in
25577 irix5* | nonstopux*)
25578 libsuff= shlibsuff=
25579 ;;
25580 *)
25581 case $LD in # libtool.m4 will add one of these switches to LD
25582 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25583 libsuff= shlibsuff= libmagic=32-bit;;
25584 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25585 libsuff=32 shlibsuff=N32 libmagic=N32;;
25586 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25587 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25588 *) libsuff= shlibsuff= libmagic=never-match;;
25589 esac
25590 ;;
25591 esac
25592 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25593 shlibpath_overrides_runpath=no
25594 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25595 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25596 hardcode_into_libs=yes
25597 ;;
25598
25599# No shared lib support for Linux oldld, aout, or coff.
25600linux*oldld* | linux*aout* | linux*coff*)
25601 dynamic_linker=no
25602 ;;
25603
25604# This must be Linux ELF.
25605linux*)
25606 version_type=linux
25607 need_lib_prefix=no
25608 need_version=no
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25610 soname_spec='${libname}${release}${shared_ext}$major'
25611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25612 shlibpath_var=LD_LIBRARY_PATH
25613 shlibpath_overrides_runpath=no
25614 # This implies no fast_install, which is unacceptable.
25615 # Some rework will be needed to allow for fast_install
25616 # before this can be enabled.
25617 hardcode_into_libs=yes
25618
Reid Spencer2706f8c2004-09-19 23:53:36 +000025619 # Append ld.so.conf contents to the search path
25620 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025621 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 +000025622 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25623 fi
25624
John Criswell47fdd832003-07-14 16:52:07 +000025625 # We used to test for /lib/ld.so.1 and disable shared libraries on
25626 # powerpc, because MkLinux only supported shared libraries with the
25627 # GNU dynamic linker. Since this was broken with cross compilers,
25628 # most powerpc-linux boxes support dynamic linking these days and
25629 # people can always --disable-shared, the test was removed, and we
25630 # assume the GNU/Linux dynamic linker is in use.
25631 dynamic_linker='GNU/Linux ld.so'
25632 ;;
25633
Reid Spencer2706f8c2004-09-19 23:53:36 +000025634knetbsd*-gnu)
25635 version_type=linux
25636 need_lib_prefix=no
25637 need_version=no
25638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25639 soname_spec='${libname}${release}${shared_ext}$major'
25640 shlibpath_var=LD_LIBRARY_PATH
25641 shlibpath_overrides_runpath=no
25642 hardcode_into_libs=yes
25643 dynamic_linker='GNU ld.so'
25644 ;;
25645
John Criswell47fdd832003-07-14 16:52:07 +000025646netbsd*)
25647 version_type=sunos
25648 need_lib_prefix=no
25649 need_version=no
25650 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25653 dynamic_linker='NetBSD (a.out) ld.so'
25654 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025656 soname_spec='${libname}${release}${shared_ext}$major'
25657 dynamic_linker='NetBSD ld.elf_so'
25658 fi
25659 shlibpath_var=LD_LIBRARY_PATH
25660 shlibpath_overrides_runpath=yes
25661 hardcode_into_libs=yes
25662 ;;
25663
25664newsos6)
25665 version_type=linux
25666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25667 shlibpath_var=LD_LIBRARY_PATH
25668 shlibpath_overrides_runpath=yes
25669 ;;
25670
Reid Spencer2706f8c2004-09-19 23:53:36 +000025671nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025672 version_type=linux
25673 need_lib_prefix=no
25674 need_version=no
25675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25676 soname_spec='${libname}${release}${shared_ext}$major'
25677 shlibpath_var=LD_LIBRARY_PATH
25678 shlibpath_overrides_runpath=yes
25679 ;;
25680
25681openbsd*)
25682 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025683 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025684 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025685 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25686 case $host_os in
25687 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25688 *) need_version=no ;;
25689 esac
John Criswell47fdd832003-07-14 16:52:07 +000025690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25694 case $host_os in
25695 openbsd2.[89] | openbsd2.[89].*)
25696 shlibpath_overrides_runpath=no
25697 ;;
25698 *)
25699 shlibpath_overrides_runpath=yes
25700 ;;
25701 esac
25702 else
25703 shlibpath_overrides_runpath=yes
25704 fi
25705 ;;
25706
25707os2*)
25708 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025709 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025710 need_lib_prefix=no
25711 library_names_spec='$libname${shared_ext} $libname.a'
25712 dynamic_linker='OS/2 ld.exe'
25713 shlibpath_var=LIBPATH
25714 ;;
25715
25716osf3* | osf4* | osf5*)
25717 version_type=osf
25718 need_lib_prefix=no
25719 need_version=no
25720 soname_spec='${libname}${release}${shared_ext}$major'
25721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25722 shlibpath_var=LD_LIBRARY_PATH
25723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25724 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25725 ;;
25726
John Criswell47fdd832003-07-14 16:52:07 +000025727solaris*)
25728 version_type=linux
25729 need_lib_prefix=no
25730 need_version=no
25731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25732 soname_spec='${libname}${release}${shared_ext}$major'
25733 shlibpath_var=LD_LIBRARY_PATH
25734 shlibpath_overrides_runpath=yes
25735 hardcode_into_libs=yes
25736 # ldd complains unless libraries are executable
25737 postinstall_cmds='chmod +x $lib'
25738 ;;
25739
25740sunos4*)
25741 version_type=sunos
25742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25743 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25744 shlibpath_var=LD_LIBRARY_PATH
25745 shlibpath_overrides_runpath=yes
25746 if test "$with_gnu_ld" = yes; then
25747 need_lib_prefix=no
25748 fi
25749 need_version=yes
25750 ;;
25751
Reid Spencera773bd52006-08-04 18:18:08 +000025752sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025753 version_type=linux
25754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25755 soname_spec='${libname}${release}${shared_ext}$major'
25756 shlibpath_var=LD_LIBRARY_PATH
25757 case $host_vendor in
25758 sni)
25759 shlibpath_overrides_runpath=no
25760 need_lib_prefix=no
25761 export_dynamic_flag_spec='${wl}-Blargedynsym'
25762 runpath_var=LD_RUN_PATH
25763 ;;
25764 siemens)
25765 need_lib_prefix=no
25766 ;;
25767 motorola)
25768 need_lib_prefix=no
25769 need_version=no
25770 shlibpath_overrides_runpath=no
25771 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25772 ;;
25773 esac
25774 ;;
25775
25776sysv4*MP*)
25777 if test -d /usr/nec ;then
25778 version_type=linux
25779 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25780 soname_spec='$libname${shared_ext}.$major'
25781 shlibpath_var=LD_LIBRARY_PATH
25782 fi
25783 ;;
25784
Reid Spencera773bd52006-08-04 18:18:08 +000025785sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25786 version_type=freebsd-elf
25787 need_lib_prefix=no
25788 need_version=no
25789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25790 soname_spec='${libname}${release}${shared_ext}$major'
25791 shlibpath_var=LD_LIBRARY_PATH
25792 hardcode_into_libs=yes
25793 if test "$with_gnu_ld" = yes; then
25794 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25795 shlibpath_overrides_runpath=no
25796 else
25797 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25798 shlibpath_overrides_runpath=yes
25799 case $host_os in
25800 sco3.2v5*)
25801 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25802 ;;
25803 esac
25804 fi
25805 sys_lib_dlsearch_path_spec='/usr/lib'
25806 ;;
25807
John Criswell47fdd832003-07-14 16:52:07 +000025808uts4*)
25809 version_type=linux
25810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25811 soname_spec='${libname}${release}${shared_ext}$major'
25812 shlibpath_var=LD_LIBRARY_PATH
25813 ;;
25814
25815*)
25816 dynamic_linker=no
25817 ;;
25818esac
Reid Spencera773bd52006-08-04 18:18:08 +000025819{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25820echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025821test "$dynamic_linker" = no && can_build_shared=no
25822
Reid Spencera773bd52006-08-04 18:18:08 +000025823variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25824if test "$GCC" = yes; then
25825 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25826fi
25827
25828{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25829echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025830hardcode_action_GCJ=
25831if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25832 test -n "$runpath_var_GCJ" || \
25833 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25834
25835 # We can hardcode non-existant directories.
25836 if test "$hardcode_direct_GCJ" != no &&
25837 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25838 # have to relink, otherwise we might link with an installed library
25839 # when we should be linking with a yet-to-be-installed one
25840 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25841 test "$hardcode_minus_L_GCJ" != no; then
25842 # Linking always hardcodes the temporary library directory.
25843 hardcode_action_GCJ=relink
25844 else
25845 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25846 hardcode_action_GCJ=immediate
25847 fi
25848else
25849 # We cannot hardcode anything, or else we can only hardcode existing
25850 # directories.
25851 hardcode_action_GCJ=unsupported
25852fi
Reid Spencera773bd52006-08-04 18:18:08 +000025853{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25854echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025855
25856if test "$hardcode_action_GCJ" = relink; then
25857 # Fast installation is not supported
25858 enable_fast_install=no
25859elif test "$shlibpath_overrides_runpath" = yes ||
25860 test "$enable_shared" = no; then
25861 # Fast installation is not necessary
25862 enable_fast_install=needless
25863fi
25864
John Criswell47fdd832003-07-14 16:52:07 +000025865
25866# The else clause should only fire when bootstrapping the
25867# libtool distribution, otherwise you forgot to ship ltmain.sh
25868# with your package, and you will get complaints that there are
25869# no rules to generate ltmain.sh.
25870if test -f "$ltmain"; then
25871 # See if we are running on zsh, and set the options which allow our commands through
25872 # without removal of \ escapes.
25873 if test -n "${ZSH_VERSION+set}" ; then
25874 setopt NO_GLOB_SUBST
25875 fi
25876 # Now quote all the things that may contain metacharacters while being
25877 # careful not to overquote the AC_SUBSTed values. We take copies of the
25878 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025879 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 +000025880 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025881 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25882 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25883 deplibs_check_method reload_flag reload_cmds need_locks \
25884 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25885 lt_cv_sys_global_symbol_to_c_name_address \
25886 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25887 old_postinstall_cmds old_postuninstall_cmds \
25888 compiler_GCJ \
25889 CC_GCJ \
25890 LD_GCJ \
25891 lt_prog_compiler_wl_GCJ \
25892 lt_prog_compiler_pic_GCJ \
25893 lt_prog_compiler_static_GCJ \
25894 lt_prog_compiler_no_builtin_flag_GCJ \
25895 export_dynamic_flag_spec_GCJ \
25896 thread_safe_flag_spec_GCJ \
25897 whole_archive_flag_spec_GCJ \
25898 enable_shared_with_static_runtimes_GCJ \
25899 old_archive_cmds_GCJ \
25900 old_archive_from_new_cmds_GCJ \
25901 predep_objects_GCJ \
25902 postdep_objects_GCJ \
25903 predeps_GCJ \
25904 postdeps_GCJ \
25905 compiler_lib_search_path_GCJ \
25906 archive_cmds_GCJ \
25907 archive_expsym_cmds_GCJ \
25908 postinstall_cmds_GCJ \
25909 postuninstall_cmds_GCJ \
25910 old_archive_from_expsyms_cmds_GCJ \
25911 allow_undefined_flag_GCJ \
25912 no_undefined_flag_GCJ \
25913 export_symbols_cmds_GCJ \
25914 hardcode_libdir_flag_spec_GCJ \
25915 hardcode_libdir_flag_spec_ld_GCJ \
25916 hardcode_libdir_separator_GCJ \
25917 hardcode_automatic_GCJ \
25918 module_cmds_GCJ \
25919 module_expsym_cmds_GCJ \
25920 lt_cv_prog_compiler_c_o_GCJ \
25921 exclude_expsyms_GCJ \
25922 include_expsyms_GCJ; do
25923
25924 case $var in
25925 old_archive_cmds_GCJ | \
25926 old_archive_from_new_cmds_GCJ | \
25927 archive_cmds_GCJ | \
25928 archive_expsym_cmds_GCJ | \
25929 module_cmds_GCJ | \
25930 module_expsym_cmds_GCJ | \
25931 old_archive_from_expsyms_cmds_GCJ | \
25932 export_symbols_cmds_GCJ | \
25933 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25934 postinstall_cmds | postuninstall_cmds | \
25935 old_postinstall_cmds | old_postuninstall_cmds | \
25936 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25937 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025938 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 +000025939 ;;
25940 *)
25941 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25942 ;;
25943 esac
25944 done
25945
25946 case $lt_echo in
25947 *'\$0 --fallback-echo"')
25948 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25949 ;;
25950 esac
25951
25952cfgfile="$ofile"
25953
25954 cat <<__EOF__ >> "$cfgfile"
25955# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25956
25957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25958
25959# Shell to use when invoking shell scripts.
25960SHELL=$lt_SHELL
25961
25962# Whether or not to build shared libraries.
25963build_libtool_libs=$enable_shared
25964
25965# Whether or not to build static libraries.
25966build_old_libs=$enable_static
25967
25968# Whether or not to add -lc for building shared libraries.
25969build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25970
25971# Whether or not to disallow shared libs when runtime libs are static
25972allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25973
25974# Whether or not to optimize for fast installation.
25975fast_install=$enable_fast_install
25976
25977# The host system.
25978host_alias=$host_alias
25979host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025980host_os=$host_os
25981
25982# The build system.
25983build_alias=$build_alias
25984build=$build
25985build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025986
25987# An echo program that does not interpret backslashes.
25988echo=$lt_echo
25989
25990# The archiver.
25991AR=$lt_AR
25992AR_FLAGS=$lt_AR_FLAGS
25993
25994# A C compiler.
25995LTCC=$lt_LTCC
25996
Reid Spencera773bd52006-08-04 18:18:08 +000025997# LTCC compiler flags.
25998LTCFLAGS=$lt_LTCFLAGS
25999
John Criswell47fdd832003-07-14 16:52:07 +000026000# A language-specific compiler.
26001CC=$lt_compiler_GCJ
26002
26003# Is the compiler the GNU C compiler?
26004with_gcc=$GCC_GCJ
26005
26006# An ERE matcher.
26007EGREP=$lt_EGREP
26008
26009# The linker used to build libraries.
26010LD=$lt_LD_GCJ
26011
26012# Whether we need hard or soft links.
26013LN_S=$lt_LN_S
26014
26015# A BSD-compatible nm program.
26016NM=$lt_NM
26017
26018# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026019STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026020
26021# Used to examine libraries when file_magic_cmd begins "file"
26022MAGIC_CMD=$MAGIC_CMD
26023
26024# Used on cygwin: DLL creation program.
26025DLLTOOL="$DLLTOOL"
26026
26027# Used on cygwin: object dumper.
26028OBJDUMP="$OBJDUMP"
26029
26030# Used on cygwin: assembler.
26031AS="$AS"
26032
26033# The name of the directory that contains temporary libtool files.
26034objdir=$objdir
26035
26036# How to create reloadable object files.
26037reload_flag=$lt_reload_flag
26038reload_cmds=$lt_reload_cmds
26039
26040# How to pass a linker flag through the compiler.
26041wl=$lt_lt_prog_compiler_wl_GCJ
26042
26043# Object file suffix (normally "o").
26044objext="$ac_objext"
26045
26046# Old archive suffix (normally "a").
26047libext="$libext"
26048
26049# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026050shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026051
26052# Executable file suffix (normally "").
26053exeext="$exeext"
26054
26055# Additional compiler flags for building library objects.
26056pic_flag=$lt_lt_prog_compiler_pic_GCJ
26057pic_mode=$pic_mode
26058
26059# What is the maximum length of a command?
26060max_cmd_len=$lt_cv_sys_max_cmd_len
26061
26062# Does compiler simultaneously support -c and -o options?
26063compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26064
Reid Spencera773bd52006-08-04 18:18:08 +000026065# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026066need_locks=$lt_need_locks
26067
26068# Do we need the lib prefix for modules?
26069need_lib_prefix=$need_lib_prefix
26070
26071# Do we need a version for libraries?
26072need_version=$need_version
26073
26074# Whether dlopen is supported.
26075dlopen_support=$enable_dlopen
26076
26077# Whether dlopen of programs is supported.
26078dlopen_self=$enable_dlopen_self
26079
26080# Whether dlopen of statically linked programs is supported.
26081dlopen_self_static=$enable_dlopen_self_static
26082
26083# Compiler flag to prevent dynamic linking.
26084link_static_flag=$lt_lt_prog_compiler_static_GCJ
26085
26086# Compiler flag to turn off builtin functions.
26087no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26088
26089# Compiler flag to allow reflexive dlopens.
26090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26091
26092# Compiler flag to generate shared objects directly from archives.
26093whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26094
26095# Compiler flag to generate thread-safe objects.
26096thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26097
26098# Library versioning type.
26099version_type=$version_type
26100
26101# Format of library name prefix.
26102libname_spec=$lt_libname_spec
26103
26104# List of archive names. First name is the real one, the rest are links.
26105# The last name is the one that the linker finds with -lNAME.
26106library_names_spec=$lt_library_names_spec
26107
26108# The coded name of the library, if different from the real name.
26109soname_spec=$lt_soname_spec
26110
26111# Commands used to build and install an old-style archive.
26112RANLIB=$lt_RANLIB
26113old_archive_cmds=$lt_old_archive_cmds_GCJ
26114old_postinstall_cmds=$lt_old_postinstall_cmds
26115old_postuninstall_cmds=$lt_old_postuninstall_cmds
26116
26117# Create an old-style archive from a shared archive.
26118old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26119
26120# Create a temporary old-style archive to link instead of a shared archive.
26121old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26122
26123# Commands used to build and install a shared archive.
26124archive_cmds=$lt_archive_cmds_GCJ
26125archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26126postinstall_cmds=$lt_postinstall_cmds
26127postuninstall_cmds=$lt_postuninstall_cmds
26128
26129# Commands used to build a loadable module (assumed same as above if empty)
26130module_cmds=$lt_module_cmds_GCJ
26131module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26132
26133# Commands to strip libraries.
26134old_striplib=$lt_old_striplib
26135striplib=$lt_striplib
26136
26137# Dependencies to place before the objects being linked to create a
26138# shared library.
26139predep_objects=$lt_predep_objects_GCJ
26140
26141# Dependencies to place after the objects being linked to create a
26142# shared library.
26143postdep_objects=$lt_postdep_objects_GCJ
26144
26145# Dependencies to place before the objects being linked to create a
26146# shared library.
26147predeps=$lt_predeps_GCJ
26148
26149# Dependencies to place after the objects being linked to create a
26150# shared library.
26151postdeps=$lt_postdeps_GCJ
26152
26153# The library search path used internally by the compiler when linking
26154# a shared library.
26155compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26156
26157# Method to check whether dependent libraries are shared objects.
26158deplibs_check_method=$lt_deplibs_check_method
26159
26160# Command to use when deplibs_check_method == file_magic.
26161file_magic_cmd=$lt_file_magic_cmd
26162
26163# Flag that allows shared libraries with undefined symbols to be built.
26164allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26165
26166# Flag that forces no undefined symbols.
26167no_undefined_flag=$lt_no_undefined_flag_GCJ
26168
26169# Commands used to finish a libtool library installation in a directory.
26170finish_cmds=$lt_finish_cmds
26171
26172# Same as above, but a single script fragment to be evaled but not shown.
26173finish_eval=$lt_finish_eval
26174
26175# Take the output of nm and produce a listing of raw symbols and C names.
26176global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26177
26178# Transform the output of nm in a proper C declaration
26179global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26180
26181# Transform the output of nm in a C name address pair
26182global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26183
26184# This is the shared library runtime path variable.
26185runpath_var=$runpath_var
26186
26187# This is the shared library path variable.
26188shlibpath_var=$shlibpath_var
26189
26190# Is shlibpath searched before the hard-coded library search path?
26191shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26192
26193# How to hardcode a shared library path into an executable.
26194hardcode_action=$hardcode_action_GCJ
26195
26196# Whether we should hardcode library paths into libraries.
26197hardcode_into_libs=$hardcode_into_libs
26198
26199# Flag to hardcode \$libdir into a binary during linking.
26200# This must work even if \$libdir does not exist.
26201hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26202
26203# If ld is used when linking, flag to hardcode \$libdir into
26204# a binary during linking. This must work even if \$libdir does
26205# not exist.
26206hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26207
26208# Whether we need a single -rpath flag with a separated argument.
26209hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26210
26211# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26212# resulting binary.
26213hardcode_direct=$hardcode_direct_GCJ
26214
26215# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26216# resulting binary.
26217hardcode_minus_L=$hardcode_minus_L_GCJ
26218
26219# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26220# the resulting binary.
26221hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26222
26223# Set to yes if building a shared library automatically hardcodes DIR into the library
26224# and all subsequent libraries and executables linked against it.
26225hardcode_automatic=$hardcode_automatic_GCJ
26226
26227# Variables whose values should be saved in libtool wrapper scripts and
26228# restored at relink time.
26229variables_saved_for_relink="$variables_saved_for_relink"
26230
26231# Whether libtool must link a program against all its dependency libraries.
26232link_all_deplibs=$link_all_deplibs_GCJ
26233
26234# Compile-time system search path for libraries
26235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26236
26237# Run-time system search path for libraries
26238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26239
26240# Fix the shell variable \$srcfile for the compiler.
26241fix_srcfile_path="$fix_srcfile_path_GCJ"
26242
26243# Set to yes if exported symbols are required.
26244always_export_symbols=$always_export_symbols_GCJ
26245
26246# The commands to list exported symbols.
26247export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26248
26249# The commands to extract the exported symbol list from a shared archive.
26250extract_expsyms_cmds=$lt_extract_expsyms_cmds
26251
26252# Symbols that should not be listed in the preloaded symbols.
26253exclude_expsyms=$lt_exclude_expsyms_GCJ
26254
26255# Symbols that must always be exported.
26256include_expsyms=$lt_include_expsyms_GCJ
26257
26258# ### END LIBTOOL TAG CONFIG: $tagname
26259
26260__EOF__
26261
26262
26263else
26264 # If there is no Makefile yet, we rely on a make rule to execute
26265 # `config.status --recheck' to rerun these tests and create the
26266 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026267 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26268 if test -f "$ltmain_in"; then
26269 test -f Makefile && make "$ltmain"
26270 fi
John Criswell47fdd832003-07-14 16:52:07 +000026271fi
26272
26273
26274ac_ext=c
26275ac_cpp='$CPP $CPPFLAGS'
26276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26278ac_compiler_gnu=$ac_cv_c_compiler_gnu
26279
26280CC="$lt_save_CC"
26281
26282 else
26283 tagname=""
26284 fi
26285 ;;
26286
26287 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026288 ac_ext=c
26289ac_cpp='$CPP $CPPFLAGS'
26290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026293
26294
26295# Source file extension for RC test sources.
26296ac_ext=rc
26297
26298# Object file extension for compiled RC test sources.
26299objext=o
26300objext_RC=$objext
26301
26302# Code to be used in simple compile tests
26303lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26304
26305# Code to be used in simple link tests
26306lt_simple_link_test_code="$lt_simple_compile_test_code"
26307
26308# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26309
26310# If no C compiler was specified, use CC.
26311LTCC=${LTCC-"$CC"}
26312
Reid Spencera773bd52006-08-04 18:18:08 +000026313# If no C compiler flags were specified, use CFLAGS.
26314LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26315
John Criswell47fdd832003-07-14 16:52:07 +000026316# Allow CC to be a program name with arguments.
26317compiler=$CC
26318
26319
Reid Spencera773bd52006-08-04 18:18:08 +000026320# save warnings/boilerplate of simple test code
26321ac_outfile=conftest.$ac_objext
26322printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26323eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26324_lt_compiler_boilerplate=`cat conftest.err`
26325$rm conftest*
26326
26327ac_outfile=conftest.$ac_objext
26328printf "$lt_simple_link_test_code" >conftest.$ac_ext
26329eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26330_lt_linker_boilerplate=`cat conftest.err`
26331$rm conftest*
26332
26333
John Criswell47fdd832003-07-14 16:52:07 +000026334# Allow CC to be a program name with arguments.
26335lt_save_CC="$CC"
26336CC=${RC-"windres"}
26337compiler=$CC
26338compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026339for cc_temp in $compiler""; do
26340 case $cc_temp in
26341 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26342 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26343 \-*) ;;
26344 *) break;;
26345 esac
26346done
26347cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26348
John Criswell47fdd832003-07-14 16:52:07 +000026349lt_cv_prog_compiler_c_o_RC=yes
26350
26351# The else clause should only fire when bootstrapping the
26352# libtool distribution, otherwise you forgot to ship ltmain.sh
26353# with your package, and you will get complaints that there are
26354# no rules to generate ltmain.sh.
26355if test -f "$ltmain"; then
26356 # See if we are running on zsh, and set the options which allow our commands through
26357 # without removal of \ escapes.
26358 if test -n "${ZSH_VERSION+set}" ; then
26359 setopt NO_GLOB_SUBST
26360 fi
26361 # Now quote all the things that may contain metacharacters while being
26362 # careful not to overquote the AC_SUBSTed values. We take copies of the
26363 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026364 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 +000026365 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026366 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26367 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26368 deplibs_check_method reload_flag reload_cmds need_locks \
26369 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26370 lt_cv_sys_global_symbol_to_c_name_address \
26371 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26372 old_postinstall_cmds old_postuninstall_cmds \
26373 compiler_RC \
26374 CC_RC \
26375 LD_RC \
26376 lt_prog_compiler_wl_RC \
26377 lt_prog_compiler_pic_RC \
26378 lt_prog_compiler_static_RC \
26379 lt_prog_compiler_no_builtin_flag_RC \
26380 export_dynamic_flag_spec_RC \
26381 thread_safe_flag_spec_RC \
26382 whole_archive_flag_spec_RC \
26383 enable_shared_with_static_runtimes_RC \
26384 old_archive_cmds_RC \
26385 old_archive_from_new_cmds_RC \
26386 predep_objects_RC \
26387 postdep_objects_RC \
26388 predeps_RC \
26389 postdeps_RC \
26390 compiler_lib_search_path_RC \
26391 archive_cmds_RC \
26392 archive_expsym_cmds_RC \
26393 postinstall_cmds_RC \
26394 postuninstall_cmds_RC \
26395 old_archive_from_expsyms_cmds_RC \
26396 allow_undefined_flag_RC \
26397 no_undefined_flag_RC \
26398 export_symbols_cmds_RC \
26399 hardcode_libdir_flag_spec_RC \
26400 hardcode_libdir_flag_spec_ld_RC \
26401 hardcode_libdir_separator_RC \
26402 hardcode_automatic_RC \
26403 module_cmds_RC \
26404 module_expsym_cmds_RC \
26405 lt_cv_prog_compiler_c_o_RC \
26406 exclude_expsyms_RC \
26407 include_expsyms_RC; do
26408
26409 case $var in
26410 old_archive_cmds_RC | \
26411 old_archive_from_new_cmds_RC | \
26412 archive_cmds_RC | \
26413 archive_expsym_cmds_RC | \
26414 module_cmds_RC | \
26415 module_expsym_cmds_RC | \
26416 old_archive_from_expsyms_cmds_RC | \
26417 export_symbols_cmds_RC | \
26418 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26419 postinstall_cmds | postuninstall_cmds | \
26420 old_postinstall_cmds | old_postuninstall_cmds | \
26421 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26422 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026423 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 +000026424 ;;
26425 *)
26426 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26427 ;;
26428 esac
26429 done
26430
26431 case $lt_echo in
26432 *'\$0 --fallback-echo"')
26433 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26434 ;;
26435 esac
26436
26437cfgfile="$ofile"
26438
26439 cat <<__EOF__ >> "$cfgfile"
26440# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26441
26442# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26443
26444# Shell to use when invoking shell scripts.
26445SHELL=$lt_SHELL
26446
26447# Whether or not to build shared libraries.
26448build_libtool_libs=$enable_shared
26449
26450# Whether or not to build static libraries.
26451build_old_libs=$enable_static
26452
26453# Whether or not to add -lc for building shared libraries.
26454build_libtool_need_lc=$archive_cmds_need_lc_RC
26455
26456# Whether or not to disallow shared libs when runtime libs are static
26457allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26458
26459# Whether or not to optimize for fast installation.
26460fast_install=$enable_fast_install
26461
26462# The host system.
26463host_alias=$host_alias
26464host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026465host_os=$host_os
26466
26467# The build system.
26468build_alias=$build_alias
26469build=$build
26470build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026471
26472# An echo program that does not interpret backslashes.
26473echo=$lt_echo
26474
26475# The archiver.
26476AR=$lt_AR
26477AR_FLAGS=$lt_AR_FLAGS
26478
26479# A C compiler.
26480LTCC=$lt_LTCC
26481
Reid Spencera773bd52006-08-04 18:18:08 +000026482# LTCC compiler flags.
26483LTCFLAGS=$lt_LTCFLAGS
26484
John Criswell47fdd832003-07-14 16:52:07 +000026485# A language-specific compiler.
26486CC=$lt_compiler_RC
26487
26488# Is the compiler the GNU C compiler?
26489with_gcc=$GCC_RC
26490
26491# An ERE matcher.
26492EGREP=$lt_EGREP
26493
26494# The linker used to build libraries.
26495LD=$lt_LD_RC
26496
26497# Whether we need hard or soft links.
26498LN_S=$lt_LN_S
26499
26500# A BSD-compatible nm program.
26501NM=$lt_NM
26502
26503# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026504STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026505
26506# Used to examine libraries when file_magic_cmd begins "file"
26507MAGIC_CMD=$MAGIC_CMD
26508
26509# Used on cygwin: DLL creation program.
26510DLLTOOL="$DLLTOOL"
26511
26512# Used on cygwin: object dumper.
26513OBJDUMP="$OBJDUMP"
26514
26515# Used on cygwin: assembler.
26516AS="$AS"
26517
26518# The name of the directory that contains temporary libtool files.
26519objdir=$objdir
26520
26521# How to create reloadable object files.
26522reload_flag=$lt_reload_flag
26523reload_cmds=$lt_reload_cmds
26524
26525# How to pass a linker flag through the compiler.
26526wl=$lt_lt_prog_compiler_wl_RC
26527
26528# Object file suffix (normally "o").
26529objext="$ac_objext"
26530
26531# Old archive suffix (normally "a").
26532libext="$libext"
26533
26534# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026535shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026536
26537# Executable file suffix (normally "").
26538exeext="$exeext"
26539
26540# Additional compiler flags for building library objects.
26541pic_flag=$lt_lt_prog_compiler_pic_RC
26542pic_mode=$pic_mode
26543
26544# What is the maximum length of a command?
26545max_cmd_len=$lt_cv_sys_max_cmd_len
26546
26547# Does compiler simultaneously support -c and -o options?
26548compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26549
Reid Spencera773bd52006-08-04 18:18:08 +000026550# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026551need_locks=$lt_need_locks
26552
26553# Do we need the lib prefix for modules?
26554need_lib_prefix=$need_lib_prefix
26555
26556# Do we need a version for libraries?
26557need_version=$need_version
26558
26559# Whether dlopen is supported.
26560dlopen_support=$enable_dlopen
26561
26562# Whether dlopen of programs is supported.
26563dlopen_self=$enable_dlopen_self
26564
26565# Whether dlopen of statically linked programs is supported.
26566dlopen_self_static=$enable_dlopen_self_static
26567
26568# Compiler flag to prevent dynamic linking.
26569link_static_flag=$lt_lt_prog_compiler_static_RC
26570
26571# Compiler flag to turn off builtin functions.
26572no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26573
26574# Compiler flag to allow reflexive dlopens.
26575export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26576
26577# Compiler flag to generate shared objects directly from archives.
26578whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26579
26580# Compiler flag to generate thread-safe objects.
26581thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26582
26583# Library versioning type.
26584version_type=$version_type
26585
26586# Format of library name prefix.
26587libname_spec=$lt_libname_spec
26588
26589# List of archive names. First name is the real one, the rest are links.
26590# The last name is the one that the linker finds with -lNAME.
26591library_names_spec=$lt_library_names_spec
26592
26593# The coded name of the library, if different from the real name.
26594soname_spec=$lt_soname_spec
26595
26596# Commands used to build and install an old-style archive.
26597RANLIB=$lt_RANLIB
26598old_archive_cmds=$lt_old_archive_cmds_RC
26599old_postinstall_cmds=$lt_old_postinstall_cmds
26600old_postuninstall_cmds=$lt_old_postuninstall_cmds
26601
26602# Create an old-style archive from a shared archive.
26603old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26604
26605# Create a temporary old-style archive to link instead of a shared archive.
26606old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26607
26608# Commands used to build and install a shared archive.
26609archive_cmds=$lt_archive_cmds_RC
26610archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26611postinstall_cmds=$lt_postinstall_cmds
26612postuninstall_cmds=$lt_postuninstall_cmds
26613
26614# Commands used to build a loadable module (assumed same as above if empty)
26615module_cmds=$lt_module_cmds_RC
26616module_expsym_cmds=$lt_module_expsym_cmds_RC
26617
26618# Commands to strip libraries.
26619old_striplib=$lt_old_striplib
26620striplib=$lt_striplib
26621
26622# Dependencies to place before the objects being linked to create a
26623# shared library.
26624predep_objects=$lt_predep_objects_RC
26625
26626# Dependencies to place after the objects being linked to create a
26627# shared library.
26628postdep_objects=$lt_postdep_objects_RC
26629
26630# Dependencies to place before the objects being linked to create a
26631# shared library.
26632predeps=$lt_predeps_RC
26633
26634# Dependencies to place after the objects being linked to create a
26635# shared library.
26636postdeps=$lt_postdeps_RC
26637
26638# The library search path used internally by the compiler when linking
26639# a shared library.
26640compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26641
26642# Method to check whether dependent libraries are shared objects.
26643deplibs_check_method=$lt_deplibs_check_method
26644
26645# Command to use when deplibs_check_method == file_magic.
26646file_magic_cmd=$lt_file_magic_cmd
26647
26648# Flag that allows shared libraries with undefined symbols to be built.
26649allow_undefined_flag=$lt_allow_undefined_flag_RC
26650
26651# Flag that forces no undefined symbols.
26652no_undefined_flag=$lt_no_undefined_flag_RC
26653
26654# Commands used to finish a libtool library installation in a directory.
26655finish_cmds=$lt_finish_cmds
26656
26657# Same as above, but a single script fragment to be evaled but not shown.
26658finish_eval=$lt_finish_eval
26659
26660# Take the output of nm and produce a listing of raw symbols and C names.
26661global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26662
26663# Transform the output of nm in a proper C declaration
26664global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26665
26666# Transform the output of nm in a C name address pair
26667global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26668
26669# This is the shared library runtime path variable.
26670runpath_var=$runpath_var
26671
26672# This is the shared library path variable.
26673shlibpath_var=$shlibpath_var
26674
26675# Is shlibpath searched before the hard-coded library search path?
26676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26677
26678# How to hardcode a shared library path into an executable.
26679hardcode_action=$hardcode_action_RC
26680
26681# Whether we should hardcode library paths into libraries.
26682hardcode_into_libs=$hardcode_into_libs
26683
26684# Flag to hardcode \$libdir into a binary during linking.
26685# This must work even if \$libdir does not exist.
26686hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26687
26688# If ld is used when linking, flag to hardcode \$libdir into
26689# a binary during linking. This must work even if \$libdir does
26690# not exist.
26691hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26692
26693# Whether we need a single -rpath flag with a separated argument.
26694hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26695
26696# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26697# resulting binary.
26698hardcode_direct=$hardcode_direct_RC
26699
26700# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26701# resulting binary.
26702hardcode_minus_L=$hardcode_minus_L_RC
26703
26704# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26705# the resulting binary.
26706hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26707
26708# Set to yes if building a shared library automatically hardcodes DIR into the library
26709# and all subsequent libraries and executables linked against it.
26710hardcode_automatic=$hardcode_automatic_RC
26711
26712# Variables whose values should be saved in libtool wrapper scripts and
26713# restored at relink time.
26714variables_saved_for_relink="$variables_saved_for_relink"
26715
26716# Whether libtool must link a program against all its dependency libraries.
26717link_all_deplibs=$link_all_deplibs_RC
26718
26719# Compile-time system search path for libraries
26720sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26721
26722# Run-time system search path for libraries
26723sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26724
26725# Fix the shell variable \$srcfile for the compiler.
26726fix_srcfile_path="$fix_srcfile_path_RC"
26727
26728# Set to yes if exported symbols are required.
26729always_export_symbols=$always_export_symbols_RC
26730
26731# The commands to list exported symbols.
26732export_symbols_cmds=$lt_export_symbols_cmds_RC
26733
26734# The commands to extract the exported symbol list from a shared archive.
26735extract_expsyms_cmds=$lt_extract_expsyms_cmds
26736
26737# Symbols that should not be listed in the preloaded symbols.
26738exclude_expsyms=$lt_exclude_expsyms_RC
26739
26740# Symbols that must always be exported.
26741include_expsyms=$lt_include_expsyms_RC
26742
26743# ### END LIBTOOL TAG CONFIG: $tagname
26744
26745__EOF__
26746
26747
26748else
26749 # If there is no Makefile yet, we rely on a make rule to execute
26750 # `config.status --recheck' to rerun these tests and create the
26751 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026752 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26753 if test -f "$ltmain_in"; then
26754 test -f Makefile && make "$ltmain"
26755 fi
John Criswell47fdd832003-07-14 16:52:07 +000026756fi
26757
26758
26759ac_ext=c
26760ac_cpp='$CPP $CPPFLAGS'
26761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26763ac_compiler_gnu=$ac_cv_c_compiler_gnu
26764
26765CC="$lt_save_CC"
26766
26767 ;;
26768
26769 *)
26770 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26771echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26772 { (exit 1); exit 1; }; }
26773 ;;
26774 esac
26775
26776 # Append the new tag name to the list of available tags.
26777 if test -n "$tagname" ; then
26778 available_tags="$available_tags $tagname"
26779 fi
26780 fi
26781 done
26782 IFS="$lt_save_ifs"
26783
26784 # Now substitute the updated list of available tags.
26785 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26786 mv "${ofile}T" "$ofile"
26787 chmod +x "$ofile"
26788 else
26789 rm -f "${ofile}T"
26790 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26791echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26792 { (exit 1); exit 1; }; }
26793 fi
26794fi
John Criswell7a73b802003-06-30 21:59:07 +000026795
26796
26797
26798# This can be used to rebuild libtool when needed
26799LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26800
26801# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026802LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026803
26804# Prevent multiple expansion
26805
26806
26807
John Criswell47fdd832003-07-14 16:52:07 +000026808
26809
26810
26811
26812
26813
26814
26815
26816
26817
26818
26819
26820
26821
26822
26823
26824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026825
Reid Spencer582a23c2004-12-29 07:07:57 +000026826if test "$lt_cv_dlopen_self" = "yes" ; then
26827
26828cat >>confdefs.h <<\_ACEOF
26829#define CAN_DLOPEN_SELF 1
26830_ACEOF
26831
26832fi
26833
Reid Spencer7931a782004-12-27 06:15:02 +000026834if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026835 LLVMGCC="llvm-gcc${EXEEXT}"
26836 LLVMGXX="llvm-g++${EXEEXT}"
26837 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26838set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026841if test "${ac_cv_path_LLVMGCC+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26843else
26844 case $LLVMGCC in
26845 [\\/]* | ?:[\\/]*)
26846 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26847 ;;
26848 *)
26849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26850for as_dir in $PATH
26851do
26852 IFS=$as_save_IFS
26853 test -z "$as_dir" && as_dir=.
26854 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026855 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 +000026856 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26858 break 2
26859 fi
26860done
26861done
Reid Spencera773bd52006-08-04 18:18:08 +000026862IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026863
Reid Spencer59473af2004-12-25 07:31:29 +000026864 ;;
26865esac
26866fi
26867LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026868if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026869 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26870echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026871else
Reid Spencera773bd52006-08-04 18:18:08 +000026872 { echo "$as_me:$LINENO: result: no" >&5
26873echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026874fi
26875
Reid Spencera773bd52006-08-04 18:18:08 +000026876
Reid Spencerc84492c2005-06-02 22:34:49 +000026877 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26878set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026879{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026881if test "${ac_cv_path_LLVMGXX+set}" = set; then
26882 echo $ECHO_N "(cached) $ECHO_C" >&6
26883else
26884 case $LLVMGXX in
26885 [\\/]* | ?:[\\/]*)
26886 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26887 ;;
26888 *)
26889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26890for as_dir in $PATH
26891do
26892 IFS=$as_save_IFS
26893 test -z "$as_dir" && as_dir=.
26894 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnercf067672008-01-17 05:57:22 +000026895 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 +000026896 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26898 break 2
26899 fi
26900done
26901done
Reid Spencera773bd52006-08-04 18:18:08 +000026902IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026903
Reid Spencer59473af2004-12-25 07:31:29 +000026904 ;;
26905esac
26906fi
26907LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026908if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026909 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26910echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026911else
Reid Spencera773bd52006-08-04 18:18:08 +000026912 { echo "$as_me:$LINENO: result: no" >&5
26913echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026914fi
26915
Reid Spencera773bd52006-08-04 18:18:08 +000026916
Reid Spencer59473af2004-12-25 07:31:29 +000026917else
Devang Patel5d28b882007-12-04 22:54:47 +000026918 if test -z "$LLVMGCC"; then
26919 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26920 fi
26921 if test -z "$LLVMGXX"; then
26922 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26923 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026924 LLVMGCC=$LLVMGCC
26925
26926 LLVMGXX=$LLVMGXX
26927
26928fi
26929
Reid Spencera773bd52006-08-04 18:18:08 +000026930{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26931echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026932
Reid Spencer86901802004-12-08 23:07:27 +000026933ICC=no
26934IXX=no
26935case $CC in
26936 icc*|icpc*)
26937 ICC=yes
26938 IXX=yes
26939 ;;
26940 *)
26941 ;;
26942esac
26943
Duraid Madina937c60a2006-02-15 07:57:42 +000026944if test "$GCC" != "yes" && test "$ICC" != "yes"
26945then
26946 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26947echo "$as_me: error: gcc|icc required but not found" >&2;}
26948 { (exit 1); exit 1; }; }
26949fi
26950
26951if test "$GXX" != "yes" && test "$IXX" != "yes"
26952then
26953 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26954echo "$as_me: error: g++|icc required but not found" >&2;}
26955 { (exit 1); exit 1; }; }
26956fi
26957
Reid Spencer86901802004-12-08 23:07:27 +000026958if test "$GCC" = "yes"
26959then
Chris Lattner399c7c72008-02-05 19:43:53 +000026960 cat >conftest.$ac_ext <<_ACEOF
26961#if !defined(__GNUC__) || __GNUC__ < 3
26962#error Unsupported GCC version
26963#endif
26964
26965_ACEOF
26966rm -f conftest.$ac_objext
26967if { (ac_try="$ac_compile"
26968case "(($ac_try" in
26969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970 *) ac_try_echo=$ac_try;;
26971esac
26972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973 (eval "$ac_compile") 2>conftest.er1
26974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981 { (case "(($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_try") 2>&5
26987 ac_status=$?
26988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989 (exit $ac_status); }; } &&
26990 { ac_try='test -s conftest.$ac_objext'
26991 { (case "(($ac_try" in
26992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993 *) ac_try_echo=$ac_try;;
26994esac
26995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996 (eval "$ac_try") 2>&5
26997 ac_status=$?
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); }; }; then
27000 :
27001else
27002 echo "$as_me: failed program was:" >&5
27003sed 's/^/| /' conftest.$ac_ext >&5
27004
27005 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027006echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27007 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027008fi
27009
27010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027011fi
27012
27013if test -z "$llvm_cv_gnu_make_command"
27014then
27015 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27016echo "$as_me: error: GNU Make required but not found" >&2;}
27017 { (exit 1); exit 1; }; }
27018fi
27019
Reid Spencera773bd52006-08-04 18:18:08 +000027020{ echo "$as_me:$LINENO: result: ok" >&5
27021echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027022
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027023
John Criswell7a73b802003-06-30 21:59:07 +000027024
Reid Spencera773bd52006-08-04 18:18:08 +000027025{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27026echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027027if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27028 echo $ECHO_N "(cached) $ECHO_C" >&6
27029else
27030 ac_check_lib_save_LIBS=$LIBS
27031LIBS="-lelf $LIBS"
27032cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027033/* confdefs.h. */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027038
Reid Spencera773bd52006-08-04 18:18:08 +000027039/* Override any GCC internal prototype to avoid an error.
27040 Use char because int might match the return type of a GCC
27041 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027042#ifdef __cplusplus
27043extern "C"
27044#endif
John Criswell7a73b802003-06-30 21:59:07 +000027045char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027046int
27047main ()
27048{
Reid Spencera773bd52006-08-04 18:18:08 +000027049return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027050 ;
27051 return 0;
27052}
27053_ACEOF
27054rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027055if { (ac_try="$ac_link"
27056case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27059esac
27060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027063 grep -v '^ *+' conftest.er1 >conftest.err
27064 rm -f conftest.er1
27065 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027067 (exit $ac_status); } &&
27068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27069 { (case "(($ac_try" in
27070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27071 *) ac_try_echo=$ac_try;;
27072esac
27073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27074 (eval "$ac_try") 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
27078 { ac_try='test -s conftest$ac_exeext'
27079 { (case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27082esac
27083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_try") 2>&5
27085 ac_status=$?
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027088 ac_cv_lib_elf_elf_begin=yes
27089else
27090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027091sed 's/^/| /' conftest.$ac_ext >&5
27092
Reid Spencera773bd52006-08-04 18:18:08 +000027093 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027094fi
Reid Spencera773bd52006-08-04 18:18:08 +000027095
Tanya Lattnercf067672008-01-17 05:57:22 +000027096rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027097 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027098LIBS=$ac_check_lib_save_LIBS
27099fi
Reid Spencera773bd52006-08-04 18:18:08 +000027100{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27101echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027102if test $ac_cv_lib_elf_elf_begin = yes; then
27103 cat >>confdefs.h <<_ACEOF
27104#define HAVE_LIBELF 1
27105_ACEOF
27106
27107 LIBS="-lelf $LIBS"
27108
27109fi
27110
27111
Reid Spencera773bd52006-08-04 18:18:08 +000027112{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27113echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027114if test "${ac_cv_lib_m_sin+set}" = set; then
27115 echo $ECHO_N "(cached) $ECHO_C" >&6
27116else
27117 ac_check_lib_save_LIBS=$LIBS
27118LIBS="-lm $LIBS"
27119cat >conftest.$ac_ext <<_ACEOF
27120/* confdefs.h. */
27121_ACEOF
27122cat confdefs.h >>conftest.$ac_ext
27123cat >>conftest.$ac_ext <<_ACEOF
27124/* end confdefs.h. */
27125
Reid Spencera773bd52006-08-04 18:18:08 +000027126/* Override any GCC internal prototype to avoid an error.
27127 Use char because int might match the return type of a GCC
27128 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027129#ifdef __cplusplus
27130extern "C"
27131#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027132char sin ();
27133int
27134main ()
27135{
Reid Spencera773bd52006-08-04 18:18:08 +000027136return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027137 ;
27138 return 0;
27139}
27140_ACEOF
27141rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027142if { (ac_try="$ac_link"
27143case "(($ac_try" in
27144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27145 *) ac_try_echo=$ac_try;;
27146esac
27147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27148 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027149 ac_status=$?
27150 grep -v '^ *+' conftest.er1 >conftest.err
27151 rm -f conftest.er1
27152 cat conftest.err >&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027154 (exit $ac_status); } &&
27155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27156 { (case "(($ac_try" in
27157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27158 *) ac_try_echo=$ac_try;;
27159esac
27160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27161 (eval "$ac_try") 2>&5
27162 ac_status=$?
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); }; } &&
27165 { ac_try='test -s conftest$ac_exeext'
27166 { (case "(($ac_try" in
27167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168 *) ac_try_echo=$ac_try;;
27169esac
27170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171 (eval "$ac_try") 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027175 ac_cv_lib_m_sin=yes
27176else
27177 echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
Reid Spencera773bd52006-08-04 18:18:08 +000027180 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027181fi
Reid Spencera773bd52006-08-04 18:18:08 +000027182
Tanya Lattnercf067672008-01-17 05:57:22 +000027183rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027184 conftest$ac_exeext conftest.$ac_ext
27185LIBS=$ac_check_lib_save_LIBS
27186fi
Reid Spencera773bd52006-08-04 18:18:08 +000027187{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27188echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027189if test $ac_cv_lib_m_sin = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191#define HAVE_LIBM 1
27192_ACEOF
27193
27194 LIBS="-lm $LIBS"
27195
27196fi
27197
Jeff Cohen28783c32007-01-12 18:22:38 +000027198if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027199
Reid Spencera773bd52006-08-04 18:18:08 +000027200{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27201echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027202if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027203 echo $ECHO_N "(cached) $ECHO_C" >&6
27204else
27205 ac_check_lib_save_LIBS=$LIBS
27206LIBS="-limagehlp $LIBS"
27207cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213
Reid Spencer48fdf912006-06-01 19:03:21 +000027214
Reid Spencer484fc8e2006-06-01 16:55:59 +000027215int
27216main ()
27217{
Reid Spencera773bd52006-08-04 18:18:08 +000027218return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027219 ;
27220 return 0;
27221}
27222_ACEOF
27223rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027224if { (ac_try="$ac_link"
27225case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228esac
27229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027231 ac_status=$?
27232 grep -v '^ *+' conftest.er1 >conftest.err
27233 rm -f conftest.er1
27234 cat conftest.err >&5
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027236 (exit $ac_status); } &&
27237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27241esac
27242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
27244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; } &&
27247 { ac_try='test -s conftest$ac_exeext'
27248 { (case "(($ac_try" in
27249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27250 *) ac_try_echo=$ac_try;;
27251esac
27252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27253 (eval "$ac_try") 2>&5
27254 ac_status=$?
27255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27256 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027257 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027258else
27259 echo "$as_me: failed program was:" >&5
27260sed 's/^/| /' conftest.$ac_ext >&5
27261
Reid Spencera773bd52006-08-04 18:18:08 +000027262 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027263fi
Reid Spencera773bd52006-08-04 18:18:08 +000027264
Tanya Lattnercf067672008-01-17 05:57:22 +000027265rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027266 conftest$ac_exeext conftest.$ac_ext
27267LIBS=$ac_check_lib_save_LIBS
27268fi
Reid Spencera773bd52006-08-04 18:18:08 +000027269{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27270echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027271if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027272 cat >>confdefs.h <<_ACEOF
27273#define HAVE_LIBIMAGEHLP 1
27274_ACEOF
27275
27276 LIBS="-limagehlp $LIBS"
27277
27278fi
27279
27280
Reid Spencera773bd52006-08-04 18:18:08 +000027281{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27282echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027283if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027284 echo $ECHO_N "(cached) $ECHO_C" >&6
27285else
27286 ac_check_lib_save_LIBS=$LIBS
27287LIBS="-lpsapi $LIBS"
27288cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
27294
Reid Spencer48fdf912006-06-01 19:03:21 +000027295
Reid Spencer484fc8e2006-06-01 16:55:59 +000027296int
27297main ()
27298{
Reid Spencera773bd52006-08-04 18:18:08 +000027299return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027300 ;
27301 return 0;
27302}
27303_ACEOF
27304rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027305if { (ac_try="$ac_link"
27306case "(($ac_try" in
27307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27308 *) ac_try_echo=$ac_try;;
27309esac
27310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27311 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027312 ac_status=$?
27313 grep -v '^ *+' conftest.er1 >conftest.err
27314 rm -f conftest.er1
27315 cat conftest.err >&5
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027317 (exit $ac_status); } &&
27318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27319 { (case "(($ac_try" in
27320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321 *) ac_try_echo=$ac_try;;
27322esac
27323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324 (eval "$ac_try") 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; } &&
27328 { ac_try='test -s conftest$ac_exeext'
27329 { (case "(($ac_try" in
27330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27331 *) ac_try_echo=$ac_try;;
27332esac
27333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27334 (eval "$ac_try") 2>&5
27335 ac_status=$?
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027338 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027339else
27340 echo "$as_me: failed program was:" >&5
27341sed 's/^/| /' conftest.$ac_ext >&5
27342
Reid Spencera773bd52006-08-04 18:18:08 +000027343 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027344fi
Reid Spencera773bd52006-08-04 18:18:08 +000027345
Tanya Lattnercf067672008-01-17 05:57:22 +000027346rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027347 conftest$ac_exeext conftest.$ac_ext
27348LIBS=$ac_check_lib_save_LIBS
27349fi
Reid Spencera773bd52006-08-04 18:18:08 +000027350{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27351echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027352if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027353 cat >>confdefs.h <<_ACEOF
27354#define HAVE_LIBPSAPI 1
27355_ACEOF
27356
27357 LIBS="-lpsapi $LIBS"
27358
27359fi
27360
27361fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027362
Reid Spencera773bd52006-08-04 18:18:08 +000027363{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27364echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027365if test "${ac_cv_search_dlopen+set}" = set; then
27366 echo $ECHO_N "(cached) $ECHO_C" >&6
27367else
27368 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027369cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027370/* confdefs.h. */
27371_ACEOF
27372cat confdefs.h >>conftest.$ac_ext
27373cat >>conftest.$ac_ext <<_ACEOF
27374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027375
Reid Spencera773bd52006-08-04 18:18:08 +000027376/* Override any GCC internal prototype to avoid an error.
27377 Use char because int might match the return type of a GCC
27378 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027379#ifdef __cplusplus
27380extern "C"
27381#endif
John Criswell7a73b802003-06-30 21:59:07 +000027382char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027383int
27384main ()
27385{
Reid Spencera773bd52006-08-04 18:18:08 +000027386return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027387 ;
27388 return 0;
27389}
27390_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027391for ac_lib in '' dl; do
27392 if test -z "$ac_lib"; then
27393 ac_res="none required"
27394 else
27395 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027397 fi
27398 rm -f conftest.$ac_objext conftest$ac_exeext
27399if { (ac_try="$ac_link"
27400case "(($ac_try" in
27401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27402 *) ac_try_echo=$ac_try;;
27403esac
27404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27405 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027406 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027407 grep -v '^ *+' conftest.er1 >conftest.err
27408 rm -f conftest.er1
27409 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027411 (exit $ac_status); } &&
27412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27413 { (case "(($ac_try" in
27414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415 *) ac_try_echo=$ac_try;;
27416esac
27417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418 (eval "$ac_try") 2>&5
27419 ac_status=$?
27420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421 (exit $ac_status); }; } &&
27422 { ac_try='test -s conftest$ac_exeext'
27423 { (case "(($ac_try" in
27424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27425 *) ac_try_echo=$ac_try;;
27426esac
27427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27428 (eval "$ac_try") 2>&5
27429 ac_status=$?
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027432 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027433else
27434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027435sed 's/^/| /' conftest.$ac_ext >&5
27436
Reid Spencera773bd52006-08-04 18:18:08 +000027437
John Criswell7a73b802003-06-30 21:59:07 +000027438fi
Reid Spencera773bd52006-08-04 18:18:08 +000027439
Tanya Lattnercf067672008-01-17 05:57:22 +000027440rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027441 conftest$ac_exeext
27442 if test "${ac_cv_search_dlopen+set}" = set; then
27443 break
John Criswell7a73b802003-06-30 21:59:07 +000027444fi
Reid Spencera773bd52006-08-04 18:18:08 +000027445done
27446if test "${ac_cv_search_dlopen+set}" = set; then
27447 :
27448else
27449 ac_cv_search_dlopen=no
27450fi
27451rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027452LIBS=$ac_func_search_save_LIBS
27453fi
Reid Spencera773bd52006-08-04 18:18:08 +000027454{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27455echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27456ac_res=$ac_cv_search_dlopen
27457if test "$ac_res" != no; then
27458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027459
27460cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027461#define HAVE_DLOPEN 1
27462_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027463
27464else
Brian Gaekec45be042003-10-07 06:01:34 +000027465 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27466echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027467fi
27468
27469
Reid Spencera773bd52006-08-04 18:18:08 +000027470{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27471echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027472if test "${ac_cv_search_mallinfo+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027476cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027477/* confdefs.h. */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027482
Reid Spencera773bd52006-08-04 18:18:08 +000027483/* Override any GCC internal prototype to avoid an error.
27484 Use char because int might match the return type of a GCC
27485 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027486#ifdef __cplusplus
27487extern "C"
27488#endif
John Criswell7a73b802003-06-30 21:59:07 +000027489char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027490int
27491main ()
27492{
Reid Spencera773bd52006-08-04 18:18:08 +000027493return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027494 ;
27495 return 0;
27496}
27497_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027498for ac_lib in '' malloc; do
27499 if test -z "$ac_lib"; then
27500 ac_res="none required"
27501 else
27502 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027504 fi
27505 rm -f conftest.$ac_objext conftest$ac_exeext
27506if { (ac_try="$ac_link"
27507case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27510esac
27511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027514 grep -v '^ *+' conftest.er1 >conftest.err
27515 rm -f conftest.er1
27516 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027518 (exit $ac_status); } &&
27519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27520 { (case "(($ac_try" in
27521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522 *) ac_try_echo=$ac_try;;
27523esac
27524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27525 (eval "$ac_try") 2>&5
27526 ac_status=$?
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); }; } &&
27529 { ac_try='test -s conftest$ac_exeext'
27530 { (case "(($ac_try" in
27531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27532 *) ac_try_echo=$ac_try;;
27533esac
27534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27535 (eval "$ac_try") 2>&5
27536 ac_status=$?
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027539 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027540else
27541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027542sed 's/^/| /' conftest.$ac_ext >&5
27543
Reid Spencera773bd52006-08-04 18:18:08 +000027544
John Criswell7a73b802003-06-30 21:59:07 +000027545fi
Reid Spencera773bd52006-08-04 18:18:08 +000027546
Tanya Lattnercf067672008-01-17 05:57:22 +000027547rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027548 conftest$ac_exeext
27549 if test "${ac_cv_search_mallinfo+set}" = set; then
27550 break
John Criswell7a73b802003-06-30 21:59:07 +000027551fi
Reid Spencera773bd52006-08-04 18:18:08 +000027552done
27553if test "${ac_cv_search_mallinfo+set}" = set; then
27554 :
27555else
27556 ac_cv_search_mallinfo=no
27557fi
27558rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027559LIBS=$ac_func_search_save_LIBS
27560fi
Reid Spencera773bd52006-08-04 18:18:08 +000027561{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27562echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27563ac_res=$ac_cv_search_mallinfo
27564if test "$ac_res" != no; then
27565 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027566
27567cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027568#define HAVE_MALLINFO 1
27569_ACEOF
27570
27571fi
27572
27573
Reid Spencer0a262ba2005-08-24 10:07:20 +000027574if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027575
Reid Spencera773bd52006-08-04 18:18:08 +000027576{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27577echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027578if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27579 echo $ECHO_N "(cached) $ECHO_C" >&6
27580else
27581 ac_check_lib_save_LIBS=$LIBS
27582LIBS="-lpthread $LIBS"
27583cat >conftest.$ac_ext <<_ACEOF
27584/* confdefs.h. */
27585_ACEOF
27586cat confdefs.h >>conftest.$ac_ext
27587cat >>conftest.$ac_ext <<_ACEOF
27588/* end confdefs.h. */
27589
Reid Spencera773bd52006-08-04 18:18:08 +000027590/* Override any GCC internal prototype to avoid an error.
27591 Use char because int might match the return type of a GCC
27592 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027593#ifdef __cplusplus
27594extern "C"
27595#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027596char pthread_mutex_init ();
27597int
27598main ()
27599{
Reid Spencera773bd52006-08-04 18:18:08 +000027600return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027601 ;
27602 return 0;
27603}
27604_ACEOF
27605rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027606if { (ac_try="$ac_link"
27607case "(($ac_try" in
27608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27609 *) ac_try_echo=$ac_try;;
27610esac
27611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27612 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027613 ac_status=$?
27614 grep -v '^ *+' conftest.er1 >conftest.err
27615 rm -f conftest.er1
27616 cat conftest.err >&5
27617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027618 (exit $ac_status); } &&
27619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27620 { (case "(($ac_try" in
27621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27622 *) ac_try_echo=$ac_try;;
27623esac
27624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27625 (eval "$ac_try") 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; } &&
27629 { ac_try='test -s conftest$ac_exeext'
27630 { (case "(($ac_try" in
27631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632 *) ac_try_echo=$ac_try;;
27633esac
27634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635 (eval "$ac_try") 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027639 ac_cv_lib_pthread_pthread_mutex_init=yes
27640else
27641 echo "$as_me: failed program was:" >&5
27642sed 's/^/| /' conftest.$ac_ext >&5
27643
Reid Spencera773bd52006-08-04 18:18:08 +000027644 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027645fi
Reid Spencera773bd52006-08-04 18:18:08 +000027646
Tanya Lattnercf067672008-01-17 05:57:22 +000027647rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027648 conftest$ac_exeext conftest.$ac_ext
27649LIBS=$ac_check_lib_save_LIBS
27650fi
Reid Spencera773bd52006-08-04 18:18:08 +000027651{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27652echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027653if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27654 cat >>confdefs.h <<_ACEOF
27655#define HAVE_LIBPTHREAD 1
27656_ACEOF
27657
27658 LIBS="-lpthread $LIBS"
27659
27660fi
27661
Reid Spencera773bd52006-08-04 18:18:08 +000027662 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27663echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027664if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27665 echo $ECHO_N "(cached) $ECHO_C" >&6
27666else
27667 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027668cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027669/* confdefs.h. */
27670_ACEOF
27671cat confdefs.h >>conftest.$ac_ext
27672cat >>conftest.$ac_ext <<_ACEOF
27673/* end confdefs.h. */
27674
Reid Spencera773bd52006-08-04 18:18:08 +000027675/* Override any GCC internal prototype to avoid an error.
27676 Use char because int might match the return type of a GCC
27677 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027678#ifdef __cplusplus
27679extern "C"
27680#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027681char pthread_mutex_lock ();
27682int
27683main ()
27684{
Reid Spencera773bd52006-08-04 18:18:08 +000027685return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027686 ;
27687 return 0;
27688}
27689_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027690for ac_lib in '' pthread; do
27691 if test -z "$ac_lib"; then
27692 ac_res="none required"
27693 else
27694 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027696 fi
27697 rm -f conftest.$ac_objext conftest$ac_exeext
27698if { (ac_try="$ac_link"
27699case "(($ac_try" in
27700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701 *) ac_try_echo=$ac_try;;
27702esac
27703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027706 grep -v '^ *+' conftest.er1 >conftest.err
27707 rm -f conftest.er1
27708 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27712 { (case "(($ac_try" in
27713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27714 *) ac_try_echo=$ac_try;;
27715esac
27716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27717 (eval "$ac_try") 2>&5
27718 ac_status=$?
27719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27720 (exit $ac_status); }; } &&
27721 { ac_try='test -s conftest$ac_exeext'
27722 { (case "(($ac_try" in
27723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27724 *) ac_try_echo=$ac_try;;
27725esac
27726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27727 (eval "$ac_try") 2>&5
27728 ac_status=$?
27729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27730 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027731 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027732else
27733 echo "$as_me: failed program was:" >&5
27734sed 's/^/| /' conftest.$ac_ext >&5
27735
Reid Spencera773bd52006-08-04 18:18:08 +000027736
Brian Gaeke5f268f72003-12-05 19:29:01 +000027737fi
Reid Spencera773bd52006-08-04 18:18:08 +000027738
Tanya Lattnercf067672008-01-17 05:57:22 +000027739rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027740 conftest$ac_exeext
27741 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27742 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027743fi
Reid Spencera773bd52006-08-04 18:18:08 +000027744done
27745if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27746 :
27747else
27748 ac_cv_search_pthread_mutex_lock=no
27749fi
27750rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027751LIBS=$ac_func_search_save_LIBS
27752fi
Reid Spencera773bd52006-08-04 18:18:08 +000027753{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27754echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27755ac_res=$ac_cv_search_pthread_mutex_lock
27756if test "$ac_res" != no; then
27757 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027758
John Criswell40468462004-09-24 21:19:06 +000027759cat >>confdefs.h <<\_ACEOF
27760#define HAVE_PTHREAD_MUTEX_LOCK 1
27761_ACEOF
27762
27763fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027764
Reid Spencer0a262ba2005-08-24 10:07:20 +000027765fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027766
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027767
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027768# Check whether --with-udis86 was given.
27769if test "${with_udis86+set}" = set; then
27770 withval=$with_udis86;
27771 USE_UDIS86=1
27772
27773 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027774 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027775 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27776 esac
27777
27778{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27779echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27780if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27781 echo $ECHO_N "(cached) $ECHO_C" >&6
27782else
27783 ac_check_lib_save_LIBS=$LIBS
27784LIBS="-ludis86 $LIBS"
27785cat >conftest.$ac_ext <<_ACEOF
27786/* confdefs.h. */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h. */
27791
27792/* Override any GCC internal prototype to avoid an error.
27793 Use char because int might match the return type of a GCC
27794 builtin and then its argument prototype would still apply. */
27795#ifdef __cplusplus
27796extern "C"
27797#endif
27798char ud_init ();
27799int
27800main ()
27801{
27802return ud_init ();
27803 ;
27804 return 0;
27805}
27806_ACEOF
27807rm -f conftest.$ac_objext conftest$ac_exeext
27808if { (ac_try="$ac_link"
27809case "(($ac_try" in
27810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811 *) ac_try_echo=$ac_try;;
27812esac
27813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814 (eval "$ac_link") 2>conftest.er1
27815 ac_status=$?
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027820 (exit $ac_status); } &&
27821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27822 { (case "(($ac_try" in
27823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27824 *) ac_try_echo=$ac_try;;
27825esac
27826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27827 (eval "$ac_try") 2>&5
27828 ac_status=$?
27829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27830 (exit $ac_status); }; } &&
27831 { ac_try='test -s conftest$ac_exeext'
27832 { (case "(($ac_try" in
27833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27834 *) ac_try_echo=$ac_try;;
27835esac
27836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27837 (eval "$ac_try") 2>&5
27838 ac_status=$?
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027841 ac_cv_lib_udis86_ud_init=yes
27842else
27843 echo "$as_me: failed program was:" >&5
27844sed 's/^/| /' conftest.$ac_ext >&5
27845
27846 ac_cv_lib_udis86_ud_init=no
27847fi
27848
Tanya Lattnercf067672008-01-17 05:57:22 +000027849rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027850 conftest$ac_exeext conftest.$ac_ext
27851LIBS=$ac_check_lib_save_LIBS
27852fi
27853{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27854echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27855if test $ac_cv_lib_udis86_ud_init = yes; then
27856 cat >>confdefs.h <<_ACEOF
27857#define HAVE_LIBUDIS86 1
27858_ACEOF
27859
27860 LIBS="-ludis86 $LIBS"
27861
27862else
27863
27864 echo "Error! You need to have libudis86 around."
27865 exit -1
27866
27867fi
27868
27869
27870else
27871 USE_UDIS86=0
27872
27873fi
27874
27875
27876cat >>confdefs.h <<_ACEOF
27877#define USE_UDIS86 $USE_UDIS86
27878_ACEOF
27879
27880
27881
Reid Spencer59473af2004-12-25 07:31:29 +000027882
27883
27884
27885
27886
27887ac_header_dirent=no
27888for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27889 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027890{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27891echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27892if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027893 echo $ECHO_N "(cached) $ECHO_C" >&6
27894else
27895 cat >conftest.$ac_ext <<_ACEOF
27896/* confdefs.h. */
27897_ACEOF
27898cat confdefs.h >>conftest.$ac_ext
27899cat >>conftest.$ac_ext <<_ACEOF
27900/* end confdefs.h. */
27901#include <sys/types.h>
27902#include <$ac_hdr>
27903
27904int
27905main ()
27906{
27907if ((DIR *) 0)
27908return 0;
27909 ;
27910 return 0;
27911}
27912_ACEOF
27913rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027914if { (ac_try="$ac_compile"
27915case "(($ac_try" in
27916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27917 *) ac_try_echo=$ac_try;;
27918esac
27919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27920 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027921 ac_status=$?
27922 grep -v '^ *+' conftest.er1 >conftest.err
27923 rm -f conftest.er1
27924 cat conftest.err >&5
27925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000027926 (exit $ac_status); } &&
27927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27928 { (case "(($ac_try" in
27929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27930 *) ac_try_echo=$ac_try;;
27931esac
27932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27933 (eval "$ac_try") 2>&5
27934 ac_status=$?
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; } &&
27937 { ac_try='test -s conftest.$ac_objext'
27938 { (case "(($ac_try" in
27939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27940 *) ac_try_echo=$ac_try;;
27941esac
27942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27943 (eval "$ac_try") 2>&5
27944 ac_status=$?
27945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027947 eval "$as_ac_Header=yes"
27948else
27949 echo "$as_me: failed program was:" >&5
27950sed 's/^/| /' conftest.$ac_ext >&5
27951
Reid Spencera773bd52006-08-04 18:18:08 +000027952 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027953fi
Reid Spencera773bd52006-08-04 18:18:08 +000027954
27955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027956fi
Reid Spencera773bd52006-08-04 18:18:08 +000027957ac_res=`eval echo '${'$as_ac_Header'}'`
27958 { echo "$as_me:$LINENO: result: $ac_res" >&5
27959echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027960if test `eval echo '${'$as_ac_Header'}'` = yes; then
27961 cat >>confdefs.h <<_ACEOF
27962#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27963_ACEOF
27964
27965ac_header_dirent=$ac_hdr; break
27966fi
27967
27968done
27969# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27970if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027971 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27972echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027973if test "${ac_cv_search_opendir+set}" = set; then
27974 echo $ECHO_N "(cached) $ECHO_C" >&6
27975else
27976 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027977cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
27983
Reid Spencera773bd52006-08-04 18:18:08 +000027984/* Override any GCC internal prototype to avoid an error.
27985 Use char because int might match the return type of a GCC
27986 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027987#ifdef __cplusplus
27988extern "C"
27989#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027990char opendir ();
27991int
27992main ()
27993{
Reid Spencera773bd52006-08-04 18:18:08 +000027994return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027995 ;
27996 return 0;
27997}
27998_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027999for ac_lib in '' dir; do
28000 if test -z "$ac_lib"; then
28001 ac_res="none required"
28002 else
28003 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028004 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028005 fi
28006 rm -f conftest.$ac_objext conftest$ac_exeext
28007if { (ac_try="$ac_link"
28008case "(($ac_try" in
28009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010 *) ac_try_echo=$ac_try;;
28011esac
28012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28013 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028014 ac_status=$?
28015 grep -v '^ *+' conftest.er1 >conftest.err
28016 rm -f conftest.er1
28017 cat conftest.err >&5
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028019 (exit $ac_status); } &&
28020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28024esac
28025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
28027 ac_status=$?
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; } &&
28030 { ac_try='test -s conftest$ac_exeext'
28031 { (case "(($ac_try" in
28032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033 *) ac_try_echo=$ac_try;;
28034esac
28035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036 (eval "$ac_try") 2>&5
28037 ac_status=$?
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028040 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028041else
28042 echo "$as_me: failed program was:" >&5
28043sed 's/^/| /' conftest.$ac_ext >&5
28044
Reid Spencera773bd52006-08-04 18:18:08 +000028045
Reid Spencer59473af2004-12-25 07:31:29 +000028046fi
Reid Spencera773bd52006-08-04 18:18:08 +000028047
Tanya Lattnercf067672008-01-17 05:57:22 +000028048rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028049 conftest$ac_exeext
28050 if test "${ac_cv_search_opendir+set}" = set; then
28051 break
Reid Spencer59473af2004-12-25 07:31:29 +000028052fi
Reid Spencera773bd52006-08-04 18:18:08 +000028053done
28054if test "${ac_cv_search_opendir+set}" = set; then
28055 :
28056else
28057 ac_cv_search_opendir=no
28058fi
28059rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028060LIBS=$ac_func_search_save_LIBS
28061fi
Reid Spencera773bd52006-08-04 18:18:08 +000028062{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28063echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28064ac_res=$ac_cv_search_opendir
28065if test "$ac_res" != no; then
28066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028067
28068fi
28069
28070else
Reid Spencera773bd52006-08-04 18:18:08 +000028071 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28072echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028073if test "${ac_cv_search_opendir+set}" = set; then
28074 echo $ECHO_N "(cached) $ECHO_C" >&6
28075else
28076 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028077cat >conftest.$ac_ext <<_ACEOF
28078/* confdefs.h. */
28079_ACEOF
28080cat confdefs.h >>conftest.$ac_ext
28081cat >>conftest.$ac_ext <<_ACEOF
28082/* end confdefs.h. */
28083
Reid Spencera773bd52006-08-04 18:18:08 +000028084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028087#ifdef __cplusplus
28088extern "C"
28089#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028090char opendir ();
28091int
28092main ()
28093{
Reid Spencera773bd52006-08-04 18:18:08 +000028094return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028095 ;
28096 return 0;
28097}
28098_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028099for ac_lib in '' x; do
28100 if test -z "$ac_lib"; then
28101 ac_res="none required"
28102 else
28103 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028105 fi
28106 rm -f conftest.$ac_objext conftest$ac_exeext
28107if { (ac_try="$ac_link"
28108case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28111esac
28112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28113 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028114 ac_status=$?
28115 grep -v '^ *+' conftest.er1 >conftest.err
28116 rm -f conftest.er1
28117 cat conftest.err >&5
28118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028119 (exit $ac_status); } &&
28120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28121 { (case "(($ac_try" in
28122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123 *) ac_try_echo=$ac_try;;
28124esac
28125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126 (eval "$ac_try") 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest$ac_exeext'
28131 { (case "(($ac_try" in
28132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28133 *) ac_try_echo=$ac_try;;
28134esac
28135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28136 (eval "$ac_try") 2>&5
28137 ac_status=$?
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028140 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
Reid Spencera773bd52006-08-04 18:18:08 +000028145
Reid Spencer59473af2004-12-25 07:31:29 +000028146fi
Reid Spencera773bd52006-08-04 18:18:08 +000028147
Tanya Lattnercf067672008-01-17 05:57:22 +000028148rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028149 conftest$ac_exeext
28150 if test "${ac_cv_search_opendir+set}" = set; then
28151 break
Reid Spencer59473af2004-12-25 07:31:29 +000028152fi
Reid Spencera773bd52006-08-04 18:18:08 +000028153done
28154if test "${ac_cv_search_opendir+set}" = set; then
28155 :
28156else
28157 ac_cv_search_opendir=no
28158fi
28159rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028160LIBS=$ac_func_search_save_LIBS
28161fi
Reid Spencera773bd52006-08-04 18:18:08 +000028162{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28163echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28164ac_res=$ac_cv_search_opendir
28165if test "$ac_res" != no; then
28166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028167
28168fi
28169
28170fi
28171
Reid Spencera773bd52006-08-04 18:18:08 +000028172{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28173echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028174if test "${ac_cv_header_mmap_anon+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176else
28177 ac_ext=c
28178ac_cpp='$CPP $CPPFLAGS'
28179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181ac_compiler_gnu=$ac_cv_c_compiler_gnu
28182
28183 cat >conftest.$ac_ext <<_ACEOF
28184/* confdefs.h. */
28185_ACEOF
28186cat confdefs.h >>conftest.$ac_ext
28187cat >>conftest.$ac_ext <<_ACEOF
28188/* end confdefs.h. */
28189#include <sys/mman.h>
28190#include <unistd.h>
28191#include <fcntl.h>
28192int
28193main ()
28194{
28195mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28196 ;
28197 return 0;
28198}
28199_ACEOF
28200rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028201if { (ac_try="$ac_compile"
28202case "(($ac_try" in
28203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28204 *) ac_try_echo=$ac_try;;
28205esac
28206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28207 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028208 ac_status=$?
28209 grep -v '^ *+' conftest.er1 >conftest.err
28210 rm -f conftest.er1
28211 cat conftest.err >&5
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028213 (exit $ac_status); } &&
28214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28215 { (case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28218esac
28219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_try") 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; } &&
28224 { ac_try='test -s conftest.$ac_objext'
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
28231 ac_status=$?
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028234 ac_cv_header_mmap_anon=yes
28235else
28236 echo "$as_me: failed program was:" >&5
28237sed 's/^/| /' conftest.$ac_ext >&5
28238
Reid Spencera773bd52006-08-04 18:18:08 +000028239 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028240fi
Reid Spencera773bd52006-08-04 18:18:08 +000028241
28242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028243 ac_ext=c
28244ac_cpp='$CPP $CPPFLAGS'
28245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28247ac_compiler_gnu=$ac_cv_c_compiler_gnu
28248
28249
28250fi
Reid Spencera773bd52006-08-04 18:18:08 +000028251{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28252echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028253if test "$ac_cv_header_mmap_anon" = yes; then
28254
28255cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028256#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028257_ACEOF
28258
28259fi
28260
Reid Spencera773bd52006-08-04 18:18:08 +000028261{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28262echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028263if test "${ac_cv_header_stat_broken+set}" = set; then
28264 echo $ECHO_N "(cached) $ECHO_C" >&6
28265else
28266 cat >conftest.$ac_ext <<_ACEOF
28267/* confdefs.h. */
28268_ACEOF
28269cat confdefs.h >>conftest.$ac_ext
28270cat >>conftest.$ac_ext <<_ACEOF
28271/* end confdefs.h. */
28272#include <sys/types.h>
28273#include <sys/stat.h>
28274
Reid Spencera773bd52006-08-04 18:18:08 +000028275#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnercf067672008-01-17 05:57:22 +000028276# if S_ISBLK (S_IFDIR)
28277You lose.
28278# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028279#endif
28280
Reid Spencera773bd52006-08-04 18:18:08 +000028281#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnercf067672008-01-17 05:57:22 +000028282# if S_ISBLK (S_IFCHR)
28283You lose.
28284# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028285#endif
28286
Reid Spencera773bd52006-08-04 18:18:08 +000028287#if defined S_ISLNK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028288# if S_ISLNK (S_IFREG)
28289You lose.
28290# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028291#endif
28292
Reid Spencera773bd52006-08-04 18:18:08 +000028293#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnercf067672008-01-17 05:57:22 +000028294# if S_ISSOCK (S_IFREG)
28295You lose.
28296# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028297#endif
28298
28299_ACEOF
Tanya Lattnercf067672008-01-17 05:57:22 +000028300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28301 $EGREP "You lose" >/dev/null 2>&1; then
28302 ac_cv_header_stat_broken=yes
Scott Michel96dcd2b2007-12-05 21:24:02 +000028303else
Tanya Lattnercf067672008-01-17 05:57:22 +000028304 ac_cv_header_stat_broken=no
Scott Michel96dcd2b2007-12-05 21:24:02 +000028305fi
Tanya Lattnercf067672008-01-17 05:57:22 +000028306rm -f conftest*
Scott Michel96dcd2b2007-12-05 21:24:02 +000028307
Reid Spencer59473af2004-12-25 07:31:29 +000028308fi
Reid Spencera773bd52006-08-04 18:18:08 +000028309{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28310echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028311if test $ac_cv_header_stat_broken = yes; then
28312
28313cat >>confdefs.h <<\_ACEOF
28314#define STAT_MACROS_BROKEN 1
28315_ACEOF
28316
28317fi
28318
Reid Spencera773bd52006-08-04 18:18:08 +000028319{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28320echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028321if test "${ac_cv_header_stdc+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28323else
28324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028325/* confdefs.h. */
28326_ACEOF
28327cat confdefs.h >>conftest.$ac_ext
28328cat >>conftest.$ac_ext <<_ACEOF
28329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028330#include <stdlib.h>
28331#include <stdarg.h>
28332#include <string.h>
28333#include <float.h>
28334
John Criswell0c38eaf2003-09-10 15:17:25 +000028335int
28336main ()
28337{
28338
28339 ;
28340 return 0;
28341}
John Criswell7a73b802003-06-30 21:59:07 +000028342_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028343rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028344if { (ac_try="$ac_compile"
28345case "(($ac_try" in
28346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28347 *) ac_try_echo=$ac_try;;
28348esac
28349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28350 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028352 grep -v '^ *+' conftest.er1 >conftest.err
28353 rm -f conftest.er1
28354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028356 (exit $ac_status); } &&
28357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28358 { (case "(($ac_try" in
28359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28360 *) ac_try_echo=$ac_try;;
28361esac
28362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28363 (eval "$ac_try") 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; } &&
28367 { ac_try='test -s conftest.$ac_objext'
28368 { (case "(($ac_try" in
28369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370 *) ac_try_echo=$ac_try;;
28371esac
28372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28373 (eval "$ac_try") 2>&5
28374 ac_status=$?
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028377 ac_cv_header_stdc=yes
28378else
28379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028380sed 's/^/| /' conftest.$ac_ext >&5
28381
Reid Spencera773bd52006-08-04 18:18:08 +000028382 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028383fi
Reid Spencera773bd52006-08-04 18:18:08 +000028384
28385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028386
28387if test $ac_cv_header_stdc = yes; then
28388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28389 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028395#include <string.h>
28396
28397_ACEOF
28398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028399 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028400 :
28401else
28402 ac_cv_header_stdc=no
28403fi
28404rm -f conftest*
28405
28406fi
28407
28408if test $ac_cv_header_stdc = yes; then
28409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028411/* confdefs.h. */
28412_ACEOF
28413cat confdefs.h >>conftest.$ac_ext
28414cat >>conftest.$ac_ext <<_ACEOF
28415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028416#include <stdlib.h>
28417
28418_ACEOF
28419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028420 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028421 :
28422else
28423 ac_cv_header_stdc=no
28424fi
28425rm -f conftest*
28426
28427fi
28428
28429if test $ac_cv_header_stdc = yes; then
28430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28431 if test "$cross_compiling" = yes; then
28432 :
28433else
28434 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028435/* confdefs.h. */
28436_ACEOF
28437cat confdefs.h >>conftest.$ac_ext
28438cat >>conftest.$ac_ext <<_ACEOF
28439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028440#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028441#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028442#if ((' ' & 0x0FF) == 0x020)
28443# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28444# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28445#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028446# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028447 (('a' <= (c) && (c) <= 'i') \
28448 || ('j' <= (c) && (c) <= 'r') \
28449 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028450# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28451#endif
28452
28453#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28454int
28455main ()
28456{
28457 int i;
28458 for (i = 0; i < 256; i++)
28459 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028460 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028461 return 2;
28462 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028463}
28464_ACEOF
28465rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028466if { (ac_try="$ac_link"
28467case "(($ac_try" in
28468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469 *) ac_try_echo=$ac_try;;
28470esac
28471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028473 ac_status=$?
28474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028476 { (case "(($ac_try" in
28477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28478 *) ac_try_echo=$ac_try;;
28479esac
28480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28481 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028482 ac_status=$?
28483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); }; }; then
28485 :
28486else
28487 echo "$as_me: program exited with status $ac_status" >&5
28488echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028489sed 's/^/| /' conftest.$ac_ext >&5
28490
John Criswell7a73b802003-06-30 21:59:07 +000028491( exit $ac_status )
28492ac_cv_header_stdc=no
28493fi
Reid Spencera773bd52006-08-04 18:18:08 +000028494rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28495fi
28496
28497
John Criswell7a73b802003-06-30 21:59:07 +000028498fi
28499fi
Reid Spencera773bd52006-08-04 18:18:08 +000028500{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28501echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028502if test $ac_cv_header_stdc = yes; then
28503
28504cat >>confdefs.h <<\_ACEOF
28505#define STDC_HEADERS 1
28506_ACEOF
28507
28508fi
28509
Reid Spencera773bd52006-08-04 18:18:08 +000028510{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28511echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028512if test "${ac_cv_header_sys_wait_h+set}" = set; then
28513 echo $ECHO_N "(cached) $ECHO_C" >&6
28514else
28515 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028516/* confdefs.h. */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028521#include <sys/types.h>
28522#include <sys/wait.h>
28523#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028524# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028525#endif
28526#ifndef WIFEXITED
28527# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28528#endif
28529
John Criswell7a73b802003-06-30 21:59:07 +000028530int
28531main ()
28532{
28533 int s;
28534 wait (&s);
28535 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28536 ;
28537 return 0;
28538}
28539_ACEOF
28540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028541if { (ac_try="$ac_compile"
28542case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28547 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028549 grep -v '^ *+' conftest.er1 >conftest.err
28550 rm -f conftest.er1
28551 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028553 (exit $ac_status); } &&
28554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28555 { (case "(($ac_try" in
28556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28557 *) ac_try_echo=$ac_try;;
28558esac
28559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28560 (eval "$ac_try") 2>&5
28561 ac_status=$?
28562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563 (exit $ac_status); }; } &&
28564 { ac_try='test -s conftest.$ac_objext'
28565 { (case "(($ac_try" in
28566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28567 *) ac_try_echo=$ac_try;;
28568esac
28569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28570 (eval "$ac_try") 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028574 ac_cv_header_sys_wait_h=yes
28575else
28576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028577sed 's/^/| /' conftest.$ac_ext >&5
28578
Reid Spencera773bd52006-08-04 18:18:08 +000028579 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028580fi
Reid Spencera773bd52006-08-04 18:18:08 +000028581
28582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028583fi
Reid Spencera773bd52006-08-04 18:18:08 +000028584{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28585echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028586if test $ac_cv_header_sys_wait_h = yes; then
28587
28588cat >>confdefs.h <<\_ACEOF
28589#define HAVE_SYS_WAIT_H 1
28590_ACEOF
28591
28592fi
28593
Reid Spencera773bd52006-08-04 18:18:08 +000028594{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28595echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028596if test "${ac_cv_header_time+set}" = set; then
28597 echo $ECHO_N "(cached) $ECHO_C" >&6
28598else
28599 cat >conftest.$ac_ext <<_ACEOF
28600/* confdefs.h. */
28601_ACEOF
28602cat confdefs.h >>conftest.$ac_ext
28603cat >>conftest.$ac_ext <<_ACEOF
28604/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028605#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028606#include <sys/time.h>
28607#include <time.h>
28608
28609int
28610main ()
28611{
28612if ((struct tm *) 0)
28613return 0;
28614 ;
28615 return 0;
28616}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028617_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028618rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028619if { (ac_try="$ac_compile"
28620case "(($ac_try" in
28621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28622 *) ac_try_echo=$ac_try;;
28623esac
28624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28625 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028626 ac_status=$?
28627 grep -v '^ *+' conftest.er1 >conftest.err
28628 rm -f conftest.er1
28629 cat conftest.err >&5
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028631 (exit $ac_status); } &&
28632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28633 { (case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28636esac
28637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28638 (eval "$ac_try") 2>&5
28639 ac_status=$?
28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28641 (exit $ac_status); }; } &&
28642 { ac_try='test -s conftest.$ac_objext'
28643 { (case "(($ac_try" in
28644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28645 *) ac_try_echo=$ac_try;;
28646esac
28647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28648 (eval "$ac_try") 2>&5
28649 ac_status=$?
28650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028652 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028653else
28654 echo "$as_me: failed program was:" >&5
28655sed 's/^/| /' conftest.$ac_ext >&5
28656
Reid Spencera773bd52006-08-04 18:18:08 +000028657 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028658fi
Reid Spencera773bd52006-08-04 18:18:08 +000028659
28660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028661fi
Reid Spencera773bd52006-08-04 18:18:08 +000028662{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28663echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028665
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028666cat >>confdefs.h <<\_ACEOF
28667#define TIME_WITH_SYS_TIME 1
28668_ACEOF
28669
28670fi
28671
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028672
Reid Spencer59473af2004-12-25 07:31:29 +000028673
28674
28675
28676
28677
28678
28679for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28680do
28681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687fi
Reid Spencera773bd52006-08-04 18:18:08 +000028688ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028691else
28692 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028695cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028696/* confdefs.h. */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028701$ac_includes_default
28702#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028703_ACEOF
28704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028705if { (ac_try="$ac_compile"
28706case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028712 ac_status=$?
28713 grep -v '^ *+' conftest.er1 >conftest.err
28714 rm -f conftest.er1
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028717 (exit $ac_status); } &&
28718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
28729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
28735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028738 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028739else
28740 echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
Reid Spencera773bd52006-08-04 18:18:08 +000028743 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028744fi
Reid Spencera773bd52006-08-04 18:18:08 +000028745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028749
Reid Spencer59473af2004-12-25 07:31:29 +000028750# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028753cat >conftest.$ac_ext <<_ACEOF
28754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
28759#include <$ac_header>
28760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028761if { (ac_try="$ac_cpp conftest.$ac_ext"
28762case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
28776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28777 else
28778 ac_cpp_err=
28779 fi
28780else
28781 ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028784 ac_header_preproc=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 ac_header_preproc=no
28790fi
Reid Spencera773bd52006-08-04 18:18:08 +000028791
Reid Spencer59473af2004-12-25 07:31:29 +000028792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028795
28796# So? What about this header?
28797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 yes:no: )
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28803 ac_header_preproc=yes
28804 ;;
28805 no:yes:* )
28806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028818 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028819## ----------------------------------- ##
28820## Report this to llvmbugs@cs.uiuc.edu ##
28821## ----------------------------------- ##
28822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028823 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028824 ;;
28825esac
Reid Spencera773bd52006-08-04 18:18:08 +000028826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
28831 eval "$as_ac_Header=\$ac_header_preproc"
28832fi
Reid Spencera773bd52006-08-04 18:18:08 +000028833ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028836
28837fi
Reid Spencer59473af2004-12-25 07:31:29 +000028838if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028841_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028842
28843fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028844
Reid Spencer59473af2004-12-25 07:31:29 +000028845done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028846
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028847
28848
Reid Spencer59473af2004-12-25 07:31:29 +000028849
28850
28851
28852
Reid Spencercdb08a32006-06-05 16:11:07 +000028853for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028854do
28855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028860 echo $ECHO_N "(cached) $ECHO_C" >&6
28861fi
Reid Spencera773bd52006-08-04 18:18:08 +000028862ac_res=`eval echo '${'$as_ac_Header'}'`
28863 { echo "$as_me:$LINENO: result: $ac_res" >&5
28864echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028865else
28866 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028869cat >conftest.$ac_ext <<_ACEOF
28870/* confdefs.h. */
28871_ACEOF
28872cat confdefs.h >>conftest.$ac_ext
28873cat >>conftest.$ac_ext <<_ACEOF
28874/* end confdefs.h. */
28875$ac_includes_default
28876#include <$ac_header>
28877_ACEOF
28878rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028879if { (ac_try="$ac_compile"
28880case "(($ac_try" in
28881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28882 *) ac_try_echo=$ac_try;;
28883esac
28884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28885 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028886 ac_status=$?
28887 grep -v '^ *+' conftest.er1 >conftest.err
28888 rm -f conftest.er1
28889 cat conftest.err >&5
28890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028891 (exit $ac_status); } &&
28892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28893 { (case "(($ac_try" in
28894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28895 *) ac_try_echo=$ac_try;;
28896esac
28897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28898 (eval "$ac_try") 2>&5
28899 ac_status=$?
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; } &&
28902 { ac_try='test -s conftest.$ac_objext'
28903 { (case "(($ac_try" in
28904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28905 *) ac_try_echo=$ac_try;;
28906esac
28907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28908 (eval "$ac_try") 2>&5
28909 ac_status=$?
28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28911 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028912 ac_header_compiler=yes
28913else
28914 echo "$as_me: failed program was:" >&5
28915sed 's/^/| /' conftest.$ac_ext >&5
28916
Reid Spencera773bd52006-08-04 18:18:08 +000028917 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028918fi
Reid Spencera773bd52006-08-04 18:18:08 +000028919
28920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28921{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28922echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028923
28924# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028925{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028927cat >conftest.$ac_ext <<_ACEOF
28928/* confdefs.h. */
28929_ACEOF
28930cat confdefs.h >>conftest.$ac_ext
28931cat >>conftest.$ac_ext <<_ACEOF
28932/* end confdefs.h. */
28933#include <$ac_header>
28934_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028935if { (ac_try="$ac_cpp conftest.$ac_ext"
28936case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28939esac
28940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028942 ac_status=$?
28943 grep -v '^ *+' conftest.er1 >conftest.err
28944 rm -f conftest.er1
28945 cat conftest.err >&5
28946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000028947 (exit $ac_status); } >/dev/null; then
28948 if test -s conftest.err; then
28949 ac_cpp_err=$ac_c_preproc_warn_flag
28950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28951 else
28952 ac_cpp_err=
28953 fi
28954else
28955 ac_cpp_err=yes
28956fi
28957if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028958 ac_header_preproc=yes
28959else
28960 echo "$as_me: failed program was:" >&5
28961sed 's/^/| /' conftest.$ac_ext >&5
28962
28963 ac_header_preproc=no
28964fi
Reid Spencera773bd52006-08-04 18:18:08 +000028965
Reid Spencer59473af2004-12-25 07:31:29 +000028966rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028967{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28968echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028969
28970# So? What about this header?
28971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28972 yes:no: )
28973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28977 ac_header_preproc=yes
28978 ;;
28979 no:yes:* )
28980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028992 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028993## ----------------------------------- ##
28994## Report this to llvmbugs@cs.uiuc.edu ##
28995## ----------------------------------- ##
28996_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028997 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028998 ;;
28999esac
Reid Spencera773bd52006-08-04 18:18:08 +000029000{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29002if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029003 echo $ECHO_N "(cached) $ECHO_C" >&6
29004else
29005 eval "$as_ac_Header=\$ac_header_preproc"
29006fi
Reid Spencera773bd52006-08-04 18:18:08 +000029007ac_res=`eval echo '${'$as_ac_Header'}'`
29008 { echo "$as_me:$LINENO: result: $ac_res" >&5
29009echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029010
29011fi
29012if test `eval echo '${'$as_ac_Header'}'` = yes; then
29013 cat >>confdefs.h <<_ACEOF
29014#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29015_ACEOF
29016
29017fi
29018
29019done
29020
29021
Reid Spencerbe3e4192007-08-17 05:45:26 +000029022for ac_header in windows.h
29023do
29024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29025if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29029 echo $ECHO_N "(cached) $ECHO_C" >&6
29030fi
29031ac_res=`eval echo '${'$as_ac_Header'}'`
29032 { echo "$as_me:$LINENO: result: $ac_res" >&5
29033echo "${ECHO_T}$ac_res" >&6; }
29034else
29035 # Is the header compilable?
29036{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29037echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29038cat >conftest.$ac_ext <<_ACEOF
29039/* confdefs.h. */
29040_ACEOF
29041cat confdefs.h >>conftest.$ac_ext
29042cat >>conftest.$ac_ext <<_ACEOF
29043/* end confdefs.h. */
29044$ac_includes_default
29045#include <$ac_header>
29046_ACEOF
29047rm -f conftest.$ac_objext
29048if { (ac_try="$ac_compile"
29049case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052esac
29053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054 (eval "$ac_compile") 2>conftest.er1
29055 ac_status=$?
29056 grep -v '^ *+' conftest.er1 >conftest.err
29057 rm -f conftest.er1
29058 cat conftest.err >&5
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029060 (exit $ac_status); } &&
29061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29065esac
29066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067 (eval "$ac_try") 2>&5
29068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; } &&
29071 { ac_try='test -s conftest.$ac_objext'
29072 { (case "(($ac_try" in
29073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29074 *) ac_try_echo=$ac_try;;
29075esac
29076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29077 (eval "$ac_try") 2>&5
29078 ac_status=$?
29079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029081 ac_header_compiler=yes
29082else
29083 echo "$as_me: failed program was:" >&5
29084sed 's/^/| /' conftest.$ac_ext >&5
29085
29086 ac_header_compiler=no
29087fi
29088
29089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29090{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29091echo "${ECHO_T}$ac_header_compiler" >&6; }
29092
29093# Is the header present?
29094{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29096cat >conftest.$ac_ext <<_ACEOF
29097/* confdefs.h. */
29098_ACEOF
29099cat confdefs.h >>conftest.$ac_ext
29100cat >>conftest.$ac_ext <<_ACEOF
29101/* end confdefs.h. */
29102#include <$ac_header>
29103_ACEOF
29104if { (ac_try="$ac_cpp conftest.$ac_ext"
29105case "(($ac_try" in
29106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107 *) ac_try_echo=$ac_try;;
29108esac
29109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29111 ac_status=$?
29112 grep -v '^ *+' conftest.er1 >conftest.err
29113 rm -f conftest.er1
29114 cat conftest.err >&5
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029116 (exit $ac_status); } >/dev/null; then
29117 if test -s conftest.err; then
29118 ac_cpp_err=$ac_c_preproc_warn_flag
29119 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29120 else
29121 ac_cpp_err=
29122 fi
29123else
29124 ac_cpp_err=yes
29125fi
29126if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029127 ac_header_preproc=yes
29128else
29129 echo "$as_me: failed program was:" >&5
29130sed 's/^/| /' conftest.$ac_ext >&5
29131
29132 ac_header_preproc=no
29133fi
29134
29135rm -f conftest.err conftest.$ac_ext
29136{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29137echo "${ECHO_T}$ac_header_preproc" >&6; }
29138
29139# So? What about this header?
29140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29141 yes:no: )
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29146 ac_header_preproc=yes
29147 ;;
29148 no:yes:* )
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29161 ( cat <<\_ASBOX
29162## ----------------------------------- ##
29163## Report this to llvmbugs@cs.uiuc.edu ##
29164## ----------------------------------- ##
29165_ASBOX
29166 ) | sed "s/^/$as_me: WARNING: /" >&2
29167 ;;
29168esac
29169{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29170echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29172 echo $ECHO_N "(cached) $ECHO_C" >&6
29173else
29174 eval "$as_ac_Header=\$ac_header_preproc"
29175fi
29176ac_res=`eval echo '${'$as_ac_Header'}'`
29177 { echo "$as_me:$LINENO: result: $ac_res" >&5
29178echo "${ECHO_T}$ac_res" >&6; }
29179
29180fi
29181if test `eval echo '${'$as_ac_Header'}'` = yes; then
29182 cat >>confdefs.h <<_ACEOF
29183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29184_ACEOF
29185
29186fi
29187
29188done
Reid Spencer59473af2004-12-25 07:31:29 +000029189
29190
29191
29192
Reid Spencerbe3e4192007-08-17 05:45:26 +000029193
29194for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029195do
29196as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029197if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29200if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029201 echo $ECHO_N "(cached) $ECHO_C" >&6
29202fi
Reid Spencera773bd52006-08-04 18:18:08 +000029203ac_res=`eval echo '${'$as_ac_Header'}'`
29204 { echo "$as_me:$LINENO: result: $ac_res" >&5
29205echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029206else
29207 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029208{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29209echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029210cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029211/* confdefs.h. */
29212_ACEOF
29213cat confdefs.h >>conftest.$ac_ext
29214cat >>conftest.$ac_ext <<_ACEOF
29215/* end confdefs.h. */
29216$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029217#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029218_ACEOF
29219rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029220if { (ac_try="$ac_compile"
29221case "(($ac_try" in
29222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29223 *) ac_try_echo=$ac_try;;
29224esac
29225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29226 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228 grep -v '^ *+' conftest.er1 >conftest.err
29229 rm -f conftest.er1
29230 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029232 (exit $ac_status); } &&
29233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29234 { (case "(($ac_try" in
29235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236 *) ac_try_echo=$ac_try;;
29237esac
29238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239 (eval "$ac_try") 2>&5
29240 ac_status=$?
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; } &&
29243 { ac_try='test -s conftest.$ac_objext'
29244 { (case "(($ac_try" in
29245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29246 *) ac_try_echo=$ac_try;;
29247esac
29248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29249 (eval "$ac_try") 2>&5
29250 ac_status=$?
29251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29252 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029253 ac_header_compiler=yes
29254else
29255 echo "$as_me: failed program was:" >&5
29256sed 's/^/| /' conftest.$ac_ext >&5
29257
Reid Spencera773bd52006-08-04 18:18:08 +000029258 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029259fi
Reid Spencera773bd52006-08-04 18:18:08 +000029260
29261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29262{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29263echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029264
29265# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029266{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029268cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029269/* confdefs.h. */
29270_ACEOF
29271cat confdefs.h >>conftest.$ac_ext
29272cat >>conftest.$ac_ext <<_ACEOF
29273/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029274#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029275_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029276if { (ac_try="$ac_cpp conftest.$ac_ext"
29277case "(($ac_try" in
29278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279 *) ac_try_echo=$ac_try;;
29280esac
29281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029283 ac_status=$?
29284 grep -v '^ *+' conftest.er1 >conftest.err
29285 rm -f conftest.er1
29286 cat conftest.err >&5
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029288 (exit $ac_status); } >/dev/null; then
29289 if test -s conftest.err; then
29290 ac_cpp_err=$ac_c_preproc_warn_flag
29291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29292 else
29293 ac_cpp_err=
29294 fi
29295else
29296 ac_cpp_err=yes
29297fi
29298if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029299 ac_header_preproc=yes
29300else
29301 echo "$as_me: failed program was:" >&5
29302sed 's/^/| /' conftest.$ac_ext >&5
29303
29304 ac_header_preproc=no
29305fi
Reid Spencera773bd52006-08-04 18:18:08 +000029306
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029307rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029308{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29309echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029310
29311# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29313 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029318 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029319 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029320 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029333 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029334## ----------------------------------- ##
29335## Report this to llvmbugs@cs.uiuc.edu ##
29336## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029337_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029338 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029339 ;;
29340esac
Reid Spencera773bd52006-08-04 18:18:08 +000029341{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029344 echo $ECHO_N "(cached) $ECHO_C" >&6
29345else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029346 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029347fi
Reid Spencera773bd52006-08-04 18:18:08 +000029348ac_res=`eval echo '${'$as_ac_Header'}'`
29349 { echo "$as_me:$LINENO: result: $ac_res" >&5
29350echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029351
29352fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029353if test `eval echo '${'$as_ac_Header'}'` = yes; then
29354 cat >>confdefs.h <<_ACEOF
29355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029356_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029357
29358fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029359
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029360done
29361
John Criswell7ed43ad2004-07-19 16:12:29 +000029362
Reid Spencercdb08a32006-06-05 16:11:07 +000029363
Reid Spencera6d990a2006-09-14 06:17:21 +000029364
29365for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029366do
29367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029368if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029372 echo $ECHO_N "(cached) $ECHO_C" >&6
29373fi
Reid Spencera773bd52006-08-04 18:18:08 +000029374ac_res=`eval echo '${'$as_ac_Header'}'`
29375 { echo "$as_me:$LINENO: result: $ac_res" >&5
29376echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029377else
29378 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029379{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29380echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029381cat >conftest.$ac_ext <<_ACEOF
29382/* confdefs.h. */
29383_ACEOF
29384cat confdefs.h >>conftest.$ac_ext
29385cat >>conftest.$ac_ext <<_ACEOF
29386/* end confdefs.h. */
29387$ac_includes_default
29388#include <$ac_header>
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
Chris Lattner0b142592005-11-14 06:57:34 +000029398 ac_status=$?
29399 grep -v '^ *+' conftest.er1 >conftest.err
29400 rm -f conftest.er1
29401 cat conftest.err >&5
29402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029403 (exit $ac_status); } &&
29404 { 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
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
29415 { (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
29421 ac_status=$?
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029424 ac_header_compiler=yes
29425else
29426 echo "$as_me: failed program was:" >&5
29427sed 's/^/| /' conftest.$ac_ext >&5
29428
Reid Spencera773bd52006-08-04 18:18:08 +000029429 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029430fi
Reid Spencera773bd52006-08-04 18:18:08 +000029431
29432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29433{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29434echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029435
29436# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029437{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29438echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029439cat >conftest.$ac_ext <<_ACEOF
29440/* confdefs.h. */
29441_ACEOF
29442cat confdefs.h >>conftest.$ac_ext
29443cat >>conftest.$ac_ext <<_ACEOF
29444/* end confdefs.h. */
29445#include <$ac_header>
29446_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029447if { (ac_try="$ac_cpp conftest.$ac_ext"
29448case "(($ac_try" in
29449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29450 *) ac_try_echo=$ac_try;;
29451esac
29452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029454 ac_status=$?
29455 grep -v '^ *+' conftest.er1 >conftest.err
29456 rm -f conftest.er1
29457 cat conftest.err >&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029459 (exit $ac_status); } >/dev/null; then
29460 if test -s conftest.err; then
29461 ac_cpp_err=$ac_c_preproc_warn_flag
29462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29463 else
29464 ac_cpp_err=
29465 fi
29466else
29467 ac_cpp_err=yes
29468fi
29469if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029470 ac_header_preproc=yes
29471else
29472 echo "$as_me: failed program was:" >&5
29473sed 's/^/| /' conftest.$ac_ext >&5
29474
29475 ac_header_preproc=no
29476fi
Reid Spencera773bd52006-08-04 18:18:08 +000029477
Chris Lattner0b142592005-11-14 06:57:34 +000029478rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029479{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29480echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029481
29482# So? What about this header?
29483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29484 yes:no: )
29485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29489 ac_header_preproc=yes
29490 ;;
29491 no:yes:* )
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029504 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029505## ----------------------------------- ##
29506## Report this to llvmbugs@cs.uiuc.edu ##
29507## ----------------------------------- ##
29508_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029509 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029510 ;;
29511esac
Reid Spencera773bd52006-08-04 18:18:08 +000029512{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29513echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29514if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029515 echo $ECHO_N "(cached) $ECHO_C" >&6
29516else
29517 eval "$as_ac_Header=\$ac_header_preproc"
29518fi
Reid Spencera773bd52006-08-04 18:18:08 +000029519ac_res=`eval echo '${'$as_ac_Header'}'`
29520 { echo "$as_me:$LINENO: result: $ac_res" >&5
29521echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029522
29523fi
29524if test `eval echo '${'$as_ac_Header'}'` = yes; then
29525 cat >>confdefs.h <<_ACEOF
29526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29527_ACEOF
29528
29529fi
29530
29531done
29532
Reid Spencer0a262ba2005-08-24 10:07:20 +000029533if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029534
29535for ac_header in pthread.h
29536do
29537as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29541if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029542 echo $ECHO_N "(cached) $ECHO_C" >&6
29543fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029544ac_res=`eval echo '${'$as_ac_Header'}'`
29545 { echo "$as_me:$LINENO: result: $ac_res" >&5
29546echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029547else
29548 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029549{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29550echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029551cat >conftest.$ac_ext <<_ACEOF
29552/* confdefs.h. */
29553_ACEOF
29554cat confdefs.h >>conftest.$ac_ext
29555cat >>conftest.$ac_ext <<_ACEOF
29556/* end confdefs.h. */
29557$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029558#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029559_ACEOF
29560rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029561if { (ac_try="$ac_compile"
29562case "(($ac_try" in
29563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29564 *) ac_try_echo=$ac_try;;
29565esac
29566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29567 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029568 ac_status=$?
29569 grep -v '^ *+' conftest.er1 >conftest.err
29570 rm -f conftest.er1
29571 cat conftest.err >&5
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029573 (exit $ac_status); } &&
29574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29575 { (case "(($ac_try" in
29576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577 *) ac_try_echo=$ac_try;;
29578esac
29579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580 (eval "$ac_try") 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; } &&
29584 { ac_try='test -s conftest.$ac_objext'
29585 { (case "(($ac_try" in
29586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29587 *) ac_try_echo=$ac_try;;
29588esac
29589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29590 (eval "$ac_try") 2>&5
29591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029594 ac_header_compiler=yes
29595else
29596 echo "$as_me: failed program was:" >&5
29597sed 's/^/| /' conftest.$ac_ext >&5
29598
Reid Spencera773bd52006-08-04 18:18:08 +000029599 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029600fi
Reid Spencera773bd52006-08-04 18:18:08 +000029601
29602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29603{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29604echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029605
29606# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029607{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029609cat >conftest.$ac_ext <<_ACEOF
29610/* confdefs.h. */
29611_ACEOF
29612cat confdefs.h >>conftest.$ac_ext
29613cat >>conftest.$ac_ext <<_ACEOF
29614/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029615#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029616_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029617if { (ac_try="$ac_cpp conftest.$ac_ext"
29618case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621esac
29622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029624 ac_status=$?
29625 grep -v '^ *+' conftest.er1 >conftest.err
29626 rm -f conftest.er1
29627 cat conftest.err >&5
29628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029629 (exit $ac_status); } >/dev/null; then
29630 if test -s conftest.err; then
29631 ac_cpp_err=$ac_c_preproc_warn_flag
29632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29633 else
29634 ac_cpp_err=
29635 fi
29636else
29637 ac_cpp_err=yes
29638fi
29639if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029640 ac_header_preproc=yes
29641else
29642 echo "$as_me: failed program was:" >&5
29643sed 's/^/| /' conftest.$ac_ext >&5
29644
29645 ac_header_preproc=no
29646fi
Reid Spencera773bd52006-08-04 18:18:08 +000029647
Reid Spencer0a262ba2005-08-24 10:07:20 +000029648rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029649{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29650echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029651
29652# So? What about this header?
29653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29654 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029659 ac_header_preproc=yes
29660 ;;
29661 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029674 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029675## ----------------------------------- ##
29676## Report this to llvmbugs@cs.uiuc.edu ##
29677## ----------------------------------- ##
29678_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029679 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029680 ;;
29681esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029682{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029685 echo $ECHO_N "(cached) $ECHO_C" >&6
29686else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029687 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029688fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029689ac_res=`eval echo '${'$as_ac_Header'}'`
29690 { echo "$as_me:$LINENO: result: $ac_res" >&5
29691echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029692
29693fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029694if test `eval echo '${'$as_ac_Header'}'` = yes; then
29695 cat >>confdefs.h <<_ACEOF
29696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29697_ACEOF
29698 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029699
29700else
29701 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029702
29703fi
29704
Reid Spencerbe3e4192007-08-17 05:45:26 +000029705done
Reid Spencer1000b732006-12-01 00:37:14 +000029706
29707else
29708 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029709
29710fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029711
29712
Reid Spencerb2ed05262006-11-03 18:04:08 +000029713
29714 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29715echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29716if test "${ac_cv_huge_val_sanity+set}" = set; then
29717 echo $ECHO_N "(cached) $ECHO_C" >&6
29718else
29719
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029720 ac_ext=cpp
29721ac_cpp='$CXXCPP $CPPFLAGS'
29722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029725
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029726 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029727 if test "$cross_compiling" = yes; then
29728 ac_cv_huge_val_sanity=yes
29729else
29730 cat >conftest.$ac_ext <<_ACEOF
29731/* confdefs.h. */
29732_ACEOF
29733cat confdefs.h >>conftest.$ac_ext
29734cat >>conftest.$ac_ext <<_ACEOF
29735/* end confdefs.h. */
29736#include <math.h>
29737int
29738main ()
29739{
29740double x = HUGE_VAL; return x != x;
29741 ;
29742 return 0;
29743}
29744_ACEOF
29745rm -f conftest$ac_exeext
29746if { (ac_try="$ac_link"
29747case "(($ac_try" in
29748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29749 *) ac_try_echo=$ac_try;;
29750esac
29751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29752 (eval "$ac_link") 2>&5
29753 ac_status=$?
29754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29756 { (case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29759esac
29760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_try") 2>&5
29762 ac_status=$?
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 ac_cv_huge_val_sanity=yes
29766else
29767 echo "$as_me: program exited with status $ac_status" >&5
29768echo "$as_me: failed program was:" >&5
29769sed 's/^/| /' conftest.$ac_ext >&5
29770
29771( exit $ac_status )
29772ac_cv_huge_val_sanity=no
29773fi
29774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29775fi
29776
29777
29778 ac_ext=c
29779ac_cpp='$CPP $CPPFLAGS'
29780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29782ac_compiler_gnu=$ac_cv_c_compiler_gnu
29783
29784
29785fi
29786{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29787echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29788 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29789
29790
Reid Spencera773bd52006-08-04 18:18:08 +000029791{ echo "$as_me:$LINENO: checking for pid_t" >&5
29792echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029793if test "${ac_cv_type_pid_t+set}" = set; then
29794 echo $ECHO_N "(cached) $ECHO_C" >&6
29795else
29796 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029797/* confdefs.h. */
29798_ACEOF
29799cat confdefs.h >>conftest.$ac_ext
29800cat >>conftest.$ac_ext <<_ACEOF
29801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029802$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029803typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029804int
29805main ()
29806{
Reid Spencera773bd52006-08-04 18:18:08 +000029807if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029808 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029809if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029810 return 0;
29811 ;
29812 return 0;
29813}
29814_ACEOF
29815rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029816if { (ac_try="$ac_compile"
29817case "(($ac_try" in
29818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29819 *) ac_try_echo=$ac_try;;
29820esac
29821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29822 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029823 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029824 grep -v '^ *+' conftest.er1 >conftest.err
29825 rm -f conftest.er1
29826 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029828 (exit $ac_status); } &&
29829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29830 { (case "(($ac_try" in
29831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29832 *) ac_try_echo=$ac_try;;
29833esac
29834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29835 (eval "$ac_try") 2>&5
29836 ac_status=$?
29837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29838 (exit $ac_status); }; } &&
29839 { ac_try='test -s conftest.$ac_objext'
29840 { (case "(($ac_try" in
29841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29842 *) ac_try_echo=$ac_try;;
29843esac
29844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29845 (eval "$ac_try") 2>&5
29846 ac_status=$?
29847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29848 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029849 ac_cv_type_pid_t=yes
29850else
29851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029852sed 's/^/| /' conftest.$ac_ext >&5
29853
Reid Spencera773bd52006-08-04 18:18:08 +000029854 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029855fi
Reid Spencera773bd52006-08-04 18:18:08 +000029856
29857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029858fi
Reid Spencera773bd52006-08-04 18:18:08 +000029859{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29860echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029861if test $ac_cv_type_pid_t = yes; then
29862 :
29863else
29864
29865cat >>confdefs.h <<_ACEOF
29866#define pid_t int
29867_ACEOF
29868
29869fi
29870
Reid Spencera773bd52006-08-04 18:18:08 +000029871{ echo "$as_me:$LINENO: checking for size_t" >&5
29872echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029873if test "${ac_cv_type_size_t+set}" = set; then
29874 echo $ECHO_N "(cached) $ECHO_C" >&6
29875else
29876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029877/* confdefs.h. */
29878_ACEOF
29879cat confdefs.h >>conftest.$ac_ext
29880cat >>conftest.$ac_ext <<_ACEOF
29881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029882$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029883typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029884int
29885main ()
29886{
Reid Spencera773bd52006-08-04 18:18:08 +000029887if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029888 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029889if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029890 return 0;
29891 ;
29892 return 0;
29893}
29894_ACEOF
29895rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029896if { (ac_try="$ac_compile"
29897case "(($ac_try" in
29898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29899 *) ac_try_echo=$ac_try;;
29900esac
29901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29902 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029904 grep -v '^ *+' conftest.er1 >conftest.err
29905 rm -f conftest.er1
29906 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029908 (exit $ac_status); } &&
29909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29910 { (case "(($ac_try" in
29911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29912 *) ac_try_echo=$ac_try;;
29913esac
29914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29915 (eval "$ac_try") 2>&5
29916 ac_status=$?
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); }; } &&
29919 { ac_try='test -s conftest.$ac_objext'
29920 { (case "(($ac_try" in
29921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29922 *) ac_try_echo=$ac_try;;
29923esac
29924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29925 (eval "$ac_try") 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029929 ac_cv_type_size_t=yes
29930else
29931 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029932sed 's/^/| /' conftest.$ac_ext >&5
29933
Reid Spencera773bd52006-08-04 18:18:08 +000029934 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029935fi
Reid Spencera773bd52006-08-04 18:18:08 +000029936
29937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029938fi
Reid Spencera773bd52006-08-04 18:18:08 +000029939{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29940echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029941if test $ac_cv_type_size_t = yes; then
29942 :
29943else
29944
29945cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029946#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029947_ACEOF
29948
29949fi
29950
Reid Spencera773bd52006-08-04 18:18:08 +000029951{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29952echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029953if test "${ac_cv_type_signal+set}" = set; then
29954 echo $ECHO_N "(cached) $ECHO_C" >&6
29955else
29956 cat >conftest.$ac_ext <<_ACEOF
29957/* confdefs.h. */
29958_ACEOF
29959cat confdefs.h >>conftest.$ac_ext
29960cat >>conftest.$ac_ext <<_ACEOF
29961/* end confdefs.h. */
29962#include <sys/types.h>
29963#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029964
29965int
29966main ()
29967{
Reid Spencera773bd52006-08-04 18:18:08 +000029968return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029969 ;
29970 return 0;
29971}
29972_ACEOF
29973rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029974if { (ac_try="$ac_compile"
29975case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29978esac
29979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029981 ac_status=$?
29982 grep -v '^ *+' conftest.er1 >conftest.err
29983 rm -f conftest.er1
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000029986 (exit $ac_status); } &&
29987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29988 { (case "(($ac_try" in
29989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29990 *) ac_try_echo=$ac_try;;
29991esac
29992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29993 (eval "$ac_try") 2>&5
29994 ac_status=$?
29995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29996 (exit $ac_status); }; } &&
29997 { ac_try='test -s conftest.$ac_objext'
29998 { (case "(($ac_try" in
29999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30000 *) ac_try_echo=$ac_try;;
30001esac
30002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30003 (eval "$ac_try") 2>&5
30004 ac_status=$?
30005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030007 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030008else
30009 echo "$as_me: failed program was:" >&5
30010sed 's/^/| /' conftest.$ac_ext >&5
30011
Reid Spencera773bd52006-08-04 18:18:08 +000030012 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030013fi
Reid Spencera773bd52006-08-04 18:18:08 +000030014
30015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016fi
Reid Spencera773bd52006-08-04 18:18:08 +000030017{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30018echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030019
30020cat >>confdefs.h <<_ACEOF
30021#define RETSIGTYPE $ac_cv_type_signal
30022_ACEOF
30023
30024
Reid Spencera773bd52006-08-04 18:18:08 +000030025{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30026echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027if test "${ac_cv_struct_tm+set}" = set; then
30028 echo $ECHO_N "(cached) $ECHO_C" >&6
30029else
30030 cat >conftest.$ac_ext <<_ACEOF
30031/* confdefs.h. */
30032_ACEOF
30033cat confdefs.h >>conftest.$ac_ext
30034cat >>conftest.$ac_ext <<_ACEOF
30035/* end confdefs.h. */
30036#include <sys/types.h>
30037#include <time.h>
30038
30039int
30040main ()
30041{
Tanya Lattnercf067672008-01-17 05:57:22 +000030042struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030043 ;
30044 return 0;
30045}
30046_ACEOF
30047rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030048if { (ac_try="$ac_compile"
30049case "(($ac_try" in
30050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30051 *) ac_try_echo=$ac_try;;
30052esac
30053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30054 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030055 ac_status=$?
30056 grep -v '^ *+' conftest.er1 >conftest.err
30057 rm -f conftest.er1
30058 cat conftest.err >&5
30059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030060 (exit $ac_status); } &&
30061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30062 { (case "(($ac_try" in
30063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064 *) ac_try_echo=$ac_try;;
30065esac
30066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067 (eval "$ac_try") 2>&5
30068 ac_status=$?
30069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; } &&
30071 { ac_try='test -s conftest.$ac_objext'
30072 { (case "(($ac_try" in
30073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30074 *) ac_try_echo=$ac_try;;
30075esac
30076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30077 (eval "$ac_try") 2>&5
30078 ac_status=$?
30079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30080 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030081 ac_cv_struct_tm=time.h
30082else
30083 echo "$as_me: failed program was:" >&5
30084sed 's/^/| /' conftest.$ac_ext >&5
30085
Reid Spencera773bd52006-08-04 18:18:08 +000030086 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030087fi
Reid Spencera773bd52006-08-04 18:18:08 +000030088
30089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090fi
Reid Spencera773bd52006-08-04 18:18:08 +000030091{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30092echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030093if test $ac_cv_struct_tm = sys/time.h; then
30094
30095cat >>confdefs.h <<\_ACEOF
30096#define TM_IN_SYS_TIME 1
30097_ACEOF
30098
30099fi
30100
Reid Spencera773bd52006-08-04 18:18:08 +000030101{ echo "$as_me:$LINENO: checking for int64_t" >&5
30102echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030103if test "${ac_cv_type_int64_t+set}" = set; then
30104 echo $ECHO_N "(cached) $ECHO_C" >&6
30105else
30106 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030107/* confdefs.h. */
30108_ACEOF
30109cat confdefs.h >>conftest.$ac_ext
30110cat >>conftest.$ac_ext <<_ACEOF
30111/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030112$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030113typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030114int
30115main ()
30116{
Reid Spencera773bd52006-08-04 18:18:08 +000030117if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030118 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030119if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030120 return 0;
30121 ;
30122 return 0;
30123}
30124_ACEOF
30125rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030126if { (ac_try="$ac_compile"
30127case "(($ac_try" in
30128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30129 *) ac_try_echo=$ac_try;;
30130esac
30131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30132 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030133 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030134 grep -v '^ *+' conftest.er1 >conftest.err
30135 rm -f conftest.er1
30136 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030138 (exit $ac_status); } &&
30139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30140 { (case "(($ac_try" in
30141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30142 *) ac_try_echo=$ac_try;;
30143esac
30144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30145 (eval "$ac_try") 2>&5
30146 ac_status=$?
30147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148 (exit $ac_status); }; } &&
30149 { ac_try='test -s conftest.$ac_objext'
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
30156 ac_status=$?
30157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30158 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030159 ac_cv_type_int64_t=yes
30160else
30161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030162sed 's/^/| /' conftest.$ac_ext >&5
30163
Reid Spencera773bd52006-08-04 18:18:08 +000030164 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030165fi
Reid Spencera773bd52006-08-04 18:18:08 +000030166
30167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030168fi
Reid Spencera773bd52006-08-04 18:18:08 +000030169{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30170echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030171if test $ac_cv_type_int64_t = yes; then
30172
30173cat >>confdefs.h <<_ACEOF
30174#define HAVE_INT64_T 1
30175_ACEOF
30176
30177
30178else
30179 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30180echo "$as_me: error: Type int64_t required but not found" >&2;}
30181 { (exit 1); exit 1; }; }
30182fi
30183
Reid Spencera773bd52006-08-04 18:18:08 +000030184{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30185echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030186if test "${ac_cv_type_uint64_t+set}" = set; then
30187 echo $ECHO_N "(cached) $ECHO_C" >&6
30188else
30189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030195$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030196typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030197int
30198main ()
30199{
Reid Spencera773bd52006-08-04 18:18:08 +000030200if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030201 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030202if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030203 return 0;
30204 ;
30205 return 0;
30206}
30207_ACEOF
30208rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030209if { (ac_try="$ac_compile"
30210case "(($ac_try" in
30211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30212 *) ac_try_echo=$ac_try;;
30213esac
30214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30215 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030217 grep -v '^ *+' conftest.er1 >conftest.err
30218 rm -f conftest.er1
30219 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030221 (exit $ac_status); } &&
30222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30223 { (case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30226esac
30227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_try") 2>&5
30229 ac_status=$?
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); }; } &&
30232 { ac_try='test -s conftest.$ac_objext'
30233 { (case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30236esac
30237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_try") 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030242 ac_cv_type_uint64_t=yes
30243else
30244 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030245sed 's/^/| /' conftest.$ac_ext >&5
30246
Reid Spencera773bd52006-08-04 18:18:08 +000030247 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030248fi
Reid Spencera773bd52006-08-04 18:18:08 +000030249
30250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030251fi
Reid Spencera773bd52006-08-04 18:18:08 +000030252{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30253echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030254if test $ac_cv_type_uint64_t = yes; then
30255
30256cat >>confdefs.h <<_ACEOF
30257#define HAVE_UINT64_T 1
30258_ACEOF
30259
30260
30261else
Reid Spencera773bd52006-08-04 18:18:08 +000030262 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30263echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030264if test "${ac_cv_type_u_int64_t+set}" = set; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030274typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030275int
30276main ()
30277{
Reid Spencera773bd52006-08-04 18:18:08 +000030278if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030279 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030280if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030281 return 0;
30282 ;
30283 return 0;
30284}
30285_ACEOF
30286rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030287if { (ac_try="$ac_compile"
30288case "(($ac_try" in
30289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290 *) ac_try_echo=$ac_try;;
30291esac
30292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030295 grep -v '^ *+' conftest.er1 >conftest.err
30296 rm -f conftest.er1
30297 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030299 (exit $ac_status); } &&
30300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30301 { (case "(($ac_try" in
30302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30303 *) ac_try_echo=$ac_try;;
30304esac
30305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30306 (eval "$ac_try") 2>&5
30307 ac_status=$?
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); }; } &&
30310 { ac_try='test -s conftest.$ac_objext'
30311 { (case "(($ac_try" in
30312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30313 *) ac_try_echo=$ac_try;;
30314esac
30315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30316 (eval "$ac_try") 2>&5
30317 ac_status=$?
30318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030320 ac_cv_type_u_int64_t=yes
30321else
30322 echo "$as_me: failed program was:" >&5
30323sed 's/^/| /' conftest.$ac_ext >&5
30324
Reid Spencera773bd52006-08-04 18:18:08 +000030325 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030326fi
Reid Spencera773bd52006-08-04 18:18:08 +000030327
30328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030329fi
Reid Spencera773bd52006-08-04 18:18:08 +000030330{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30331echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030332if test $ac_cv_type_u_int64_t = yes; then
30333
30334cat >>confdefs.h <<_ACEOF
30335#define HAVE_U_INT64_T 1
30336_ACEOF
30337
30338
Misha Brukmanceca9042004-09-02 23:02:30 +000030339else
30340 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30341echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30342 { (exit 1); exit 1; }; }
30343fi
30344
John Criswell679ff312004-09-02 18:44:44 +000030345fi
30346
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030347
30348
30349
30350
30351
30352
30353
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030354
30355
Reid Spencerdf3be822006-01-23 08:15:53 +000030356for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030357do
30358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030359{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30361if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030362 echo $ECHO_N "(cached) $ECHO_C" >&6
30363else
30364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030365/* confdefs.h. */
30366_ACEOF
30367cat confdefs.h >>conftest.$ac_ext
30368cat >>conftest.$ac_ext <<_ACEOF
30369/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30372#define $ac_func innocuous_$ac_func
30373
30374/* System header to define __stub macros and hopefully few prototypes,
30375 which can conflict with char $ac_func (); below.
30376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30377 <limits.h> exists even on freestanding compilers. */
30378
30379#ifdef __STDC__
30380# include <limits.h>
30381#else
30382# include <assert.h>
30383#endif
30384
30385#undef $ac_func
30386
Reid Spencera773bd52006-08-04 18:18:08 +000030387/* Override any GCC internal prototype to avoid an error.
30388 Use char because int might match the return type of a GCC
30389 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030390#ifdef __cplusplus
30391extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030392#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030393char $ac_func ();
30394/* The GNU C library defines this for functions which it implements
30395 to always fail with ENOSYS. Some functions are actually named
30396 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030397#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030398choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030399#endif
John Criswell7a73b802003-06-30 21:59:07 +000030400
John Criswell7a73b802003-06-30 21:59:07 +000030401int
30402main ()
30403{
Reid Spencera773bd52006-08-04 18:18:08 +000030404return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030405 ;
30406 return 0;
30407}
30408_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030409rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030410if { (ac_try="$ac_link"
30411case "(($ac_try" in
30412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30413 *) ac_try_echo=$ac_try;;
30414esac
30415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30416 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030417 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030418 grep -v '^ *+' conftest.er1 >conftest.err
30419 rm -f conftest.er1
30420 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030422 (exit $ac_status); } &&
30423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30424 { (case "(($ac_try" in
30425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30426 *) ac_try_echo=$ac_try;;
30427esac
30428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30429 (eval "$ac_try") 2>&5
30430 ac_status=$?
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); }; } &&
30433 { ac_try='test -s conftest$ac_exeext'
30434 { (case "(($ac_try" in
30435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30436 *) ac_try_echo=$ac_try;;
30437esac
30438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30439 (eval "$ac_try") 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030443 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030444else
30445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030446sed 's/^/| /' conftest.$ac_ext >&5
30447
Reid Spencera773bd52006-08-04 18:18:08 +000030448 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030449fi
Reid Spencera773bd52006-08-04 18:18:08 +000030450
Tanya Lattnercf067672008-01-17 05:57:22 +000030451rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030452 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030453fi
Reid Spencera773bd52006-08-04 18:18:08 +000030454ac_res=`eval echo '${'$as_ac_var'}'`
30455 { echo "$as_me:$LINENO: result: $ac_res" >&5
30456echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030457if test `eval echo '${'$as_ac_var'}'` = yes; then
30458 cat >>confdefs.h <<_ACEOF
30459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030460_ACEOF
30461
30462fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030463done
John Criswell7a73b802003-06-30 21:59:07 +000030464
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030465
30466
30467
Reid Spencer6af3d262004-12-15 04:01:48 +000030468
Reid Spencer96cf5872007-07-13 10:05:30 +000030469for ac_func in powf fmodf strtof round
30470do
30471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30475 echo $ECHO_N "(cached) $ECHO_C" >&6
30476else
30477 cat >conftest.$ac_ext <<_ACEOF
30478/* confdefs.h. */
30479_ACEOF
30480cat confdefs.h >>conftest.$ac_ext
30481cat >>conftest.$ac_ext <<_ACEOF
30482/* end confdefs.h. */
30483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30485#define $ac_func innocuous_$ac_func
30486
30487/* System header to define __stub macros and hopefully few prototypes,
30488 which can conflict with char $ac_func (); below.
30489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30490 <limits.h> exists even on freestanding compilers. */
30491
30492#ifdef __STDC__
30493# include <limits.h>
30494#else
30495# include <assert.h>
30496#endif
30497
30498#undef $ac_func
30499
30500/* Override any GCC internal prototype to avoid an error.
30501 Use char because int might match the return type of a GCC
30502 builtin and then its argument prototype would still apply. */
30503#ifdef __cplusplus
30504extern "C"
30505#endif
30506char $ac_func ();
30507/* The GNU C library defines this for functions which it implements
30508 to always fail with ENOSYS. Some functions are actually named
30509 something starting with __ and the normal name is an alias. */
30510#if defined __stub_$ac_func || defined __stub___$ac_func
30511choke me
30512#endif
30513
30514int
30515main ()
30516{
30517return $ac_func ();
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522rm -f conftest.$ac_objext conftest$ac_exeext
30523if { (ac_try="$ac_link"
30524case "(($ac_try" in
30525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30526 *) ac_try_echo=$ac_try;;
30527esac
30528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30529 (eval "$ac_link") 2>conftest.er1
30530 ac_status=$?
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030535 (exit $ac_status); } &&
30536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30537 { (case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540esac
30541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_try") 2>&5
30543 ac_status=$?
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; } &&
30546 { ac_try='test -s conftest$ac_exeext'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30550esac
30551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
30553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030556 eval "$as_ac_var=yes"
30557else
30558 echo "$as_me: failed program was:" >&5
30559sed 's/^/| /' conftest.$ac_ext >&5
30560
30561 eval "$as_ac_var=no"
30562fi
30563
Tanya Lattnercf067672008-01-17 05:57:22 +000030564rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030565 conftest$ac_exeext conftest.$ac_ext
30566fi
30567ac_res=`eval echo '${'$as_ac_var'}'`
30568 { echo "$as_me:$LINENO: result: $ac_res" >&5
30569echo "${ECHO_T}$ac_res" >&6; }
30570if test `eval echo '${'$as_ac_var'}'` = yes; then
30571 cat >>confdefs.h <<_ACEOF
30572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30573_ACEOF
30574
30575fi
30576done
30577
30578
30579
30580
30581
Reid Spencer6af3d262004-12-15 04:01:48 +000030582
Reid Spencerb90645c2007-02-16 19:17:20 +000030583for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30584do
30585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30586{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30588if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30589 echo $ECHO_N "(cached) $ECHO_C" >&6
30590else
30591 cat >conftest.$ac_ext <<_ACEOF
30592/* confdefs.h. */
30593_ACEOF
30594cat confdefs.h >>conftest.$ac_ext
30595cat >>conftest.$ac_ext <<_ACEOF
30596/* end confdefs.h. */
30597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30599#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030600
Reid Spencerb90645c2007-02-16 19:17:20 +000030601/* System header to define __stub macros and hopefully few prototypes,
30602 which can conflict with char $ac_func (); below.
30603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30604 <limits.h> exists even on freestanding compilers. */
30605
30606#ifdef __STDC__
30607# include <limits.h>
30608#else
30609# include <assert.h>
30610#endif
30611
30612#undef $ac_func
30613
30614/* Override any GCC internal prototype to avoid an error.
30615 Use char because int might match the return type of a GCC
30616 builtin and then its argument prototype would still apply. */
30617#ifdef __cplusplus
30618extern "C"
30619#endif
30620char $ac_func ();
30621/* The GNU C library defines this for functions which it implements
30622 to always fail with ENOSYS. Some functions are actually named
30623 something starting with __ and the normal name is an alias. */
30624#if defined __stub_$ac_func || defined __stub___$ac_func
30625choke me
30626#endif
30627
30628int
30629main ()
30630{
30631return $ac_func ();
30632 ;
30633 return 0;
30634}
30635_ACEOF
30636rm -f conftest.$ac_objext conftest$ac_exeext
30637if { (ac_try="$ac_link"
30638case "(($ac_try" in
30639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30640 *) ac_try_echo=$ac_try;;
30641esac
30642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30643 (eval "$ac_link") 2>conftest.er1
30644 ac_status=$?
30645 grep -v '^ *+' conftest.er1 >conftest.err
30646 rm -f conftest.er1
30647 cat conftest.err >&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030649 (exit $ac_status); } &&
30650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30651 { (case "(($ac_try" in
30652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30653 *) ac_try_echo=$ac_try;;
30654esac
30655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30656 (eval "$ac_try") 2>&5
30657 ac_status=$?
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; } &&
30660 { ac_try='test -s conftest$ac_exeext'
30661 { (case "(($ac_try" in
30662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30663 *) ac_try_echo=$ac_try;;
30664esac
30665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30666 (eval "$ac_try") 2>&5
30667 ac_status=$?
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030670 eval "$as_ac_var=yes"
30671else
30672 echo "$as_me: failed program was:" >&5
30673sed 's/^/| /' conftest.$ac_ext >&5
30674
30675 eval "$as_ac_var=no"
30676fi
30677
Tanya Lattnercf067672008-01-17 05:57:22 +000030678rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030679 conftest$ac_exeext conftest.$ac_ext
30680fi
30681ac_res=`eval echo '${'$as_ac_var'}'`
30682 { echo "$as_me:$LINENO: result: $ac_res" >&5
30683echo "${ECHO_T}$ac_res" >&6; }
30684if test `eval echo '${'$as_ac_var'}'` = yes; then
30685 cat >>confdefs.h <<_ACEOF
30686#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30687_ACEOF
30688
30689fi
30690done
30691
30692
30693
30694
30695for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030696do
30697as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030698{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30699echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30700if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030701 echo $ECHO_N "(cached) $ECHO_C" >&6
30702else
30703 cat >conftest.$ac_ext <<_ACEOF
30704/* confdefs.h. */
30705_ACEOF
30706cat confdefs.h >>conftest.$ac_ext
30707cat >>conftest.$ac_ext <<_ACEOF
30708/* end confdefs.h. */
30709/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30711#define $ac_func innocuous_$ac_func
30712
30713/* System header to define __stub macros and hopefully few prototypes,
30714 which can conflict with char $ac_func (); below.
30715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30716 <limits.h> exists even on freestanding compilers. */
30717
30718#ifdef __STDC__
30719# include <limits.h>
30720#else
30721# include <assert.h>
30722#endif
30723
30724#undef $ac_func
30725
Reid Spencera773bd52006-08-04 18:18:08 +000030726/* Override any GCC internal prototype to avoid an error.
30727 Use char because int might match the return type of a GCC
30728 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030729#ifdef __cplusplus
30730extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030731#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030732char $ac_func ();
30733/* The GNU C library defines this for functions which it implements
30734 to always fail with ENOSYS. Some functions are actually named
30735 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030736#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030737choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030738#endif
30739
30740int
30741main ()
30742{
Reid Spencera773bd52006-08-04 18:18:08 +000030743return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030744 ;
30745 return 0;
30746}
30747_ACEOF
30748rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030749if { (ac_try="$ac_link"
30750case "(($ac_try" in
30751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30752 *) ac_try_echo=$ac_try;;
30753esac
30754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30755 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030756 ac_status=$?
30757 grep -v '^ *+' conftest.er1 >conftest.err
30758 rm -f conftest.er1
30759 cat conftest.err >&5
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030761 (exit $ac_status); } &&
30762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30763 { (case "(($ac_try" in
30764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30765 *) ac_try_echo=$ac_try;;
30766esac
30767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30768 (eval "$ac_try") 2>&5
30769 ac_status=$?
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; } &&
30772 { ac_try='test -s conftest$ac_exeext'
30773 { (case "(($ac_try" in
30774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30775 *) ac_try_echo=$ac_try;;
30776esac
30777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30778 (eval "$ac_try") 2>&5
30779 ac_status=$?
30780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30781 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030782 eval "$as_ac_var=yes"
30783else
30784 echo "$as_me: failed program was:" >&5
30785sed 's/^/| /' conftest.$ac_ext >&5
30786
Reid Spencera773bd52006-08-04 18:18:08 +000030787 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030788fi
Reid Spencera773bd52006-08-04 18:18:08 +000030789
Tanya Lattnercf067672008-01-17 05:57:22 +000030790rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030791 conftest$ac_exeext conftest.$ac_ext
30792fi
Reid Spencera773bd52006-08-04 18:18:08 +000030793ac_res=`eval echo '${'$as_ac_var'}'`
30794 { echo "$as_me:$LINENO: result: $ac_res" >&5
30795echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030796if test `eval echo '${'$as_ac_var'}'` = yes; then
30797 cat >>confdefs.h <<_ACEOF
30798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30799_ACEOF
30800
30801fi
30802done
30803
30804
30805
30806
30807
30808
30809
30810
30811for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030812do
30813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030814{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030817 echo $ECHO_N "(cached) $ECHO_C" >&6
30818else
30819 cat >conftest.$ac_ext <<_ACEOF
30820/* confdefs.h. */
30821_ACEOF
30822cat confdefs.h >>conftest.$ac_ext
30823cat >>conftest.$ac_ext <<_ACEOF
30824/* end confdefs.h. */
30825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30827#define $ac_func innocuous_$ac_func
30828
30829/* System header to define __stub macros and hopefully few prototypes,
30830 which can conflict with char $ac_func (); below.
30831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832 <limits.h> exists even on freestanding compilers. */
30833
30834#ifdef __STDC__
30835# include <limits.h>
30836#else
30837# include <assert.h>
30838#endif
30839
30840#undef $ac_func
30841
Reid Spencera773bd52006-08-04 18:18:08 +000030842/* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030845#ifdef __cplusplus
30846extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030847#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030848char $ac_func ();
30849/* The GNU C library defines this for functions which it implements
30850 to always fail with ENOSYS. Some functions are actually named
30851 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030852#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030853choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030854#endif
30855
30856int
30857main ()
30858{
Reid Spencera773bd52006-08-04 18:18:08 +000030859return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030860 ;
30861 return 0;
30862}
30863_ACEOF
30864rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030865if { (ac_try="$ac_link"
30866case "(($ac_try" in
30867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30869esac
30870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30871 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030872 ac_status=$?
30873 grep -v '^ *+' conftest.er1 >conftest.err
30874 rm -f conftest.er1
30875 cat conftest.err >&5
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030877 (exit $ac_status); } &&
30878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30879 { (case "(($ac_try" in
30880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30881 *) ac_try_echo=$ac_try;;
30882esac
30883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30884 (eval "$ac_try") 2>&5
30885 ac_status=$?
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); }; } &&
30888 { ac_try='test -s conftest$ac_exeext'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30892esac
30893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030898 eval "$as_ac_var=yes"
30899else
30900 echo "$as_me: failed program was:" >&5
30901sed 's/^/| /' conftest.$ac_ext >&5
30902
Reid Spencera773bd52006-08-04 18:18:08 +000030903 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030904fi
Reid Spencera773bd52006-08-04 18:18:08 +000030905
Tanya Lattnercf067672008-01-17 05:57:22 +000030906rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030907 conftest$ac_exeext conftest.$ac_ext
30908fi
Reid Spencera773bd52006-08-04 18:18:08 +000030909ac_res=`eval echo '${'$as_ac_var'}'`
30910 { echo "$as_me:$LINENO: result: $ac_res" >&5
30911echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030912if test `eval echo '${'$as_ac_var'}'` = yes; then
30913 cat >>confdefs.h <<_ACEOF
30914#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30915_ACEOF
30916
30917fi
30918done
30919
30920
Reid Spencerba46ca32004-12-31 05:49:15 +000030921
30922
Chris Lattner0b142592005-11-14 06:57:34 +000030923
Chris Lattner511f11d2005-11-14 07:25:50 +000030924for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030925do
30926as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030927{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30928echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30929if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030930 echo $ECHO_N "(cached) $ECHO_C" >&6
30931else
30932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030933/* confdefs.h. */
30934_ACEOF
30935cat confdefs.h >>conftest.$ac_ext
30936cat >>conftest.$ac_ext <<_ACEOF
30937/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030938/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30940#define $ac_func innocuous_$ac_func
30941
30942/* System header to define __stub macros and hopefully few prototypes,
30943 which can conflict with char $ac_func (); below.
30944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30945 <limits.h> exists even on freestanding compilers. */
30946
30947#ifdef __STDC__
30948# include <limits.h>
30949#else
30950# include <assert.h>
30951#endif
30952
30953#undef $ac_func
30954
Reid Spencera773bd52006-08-04 18:18:08 +000030955/* Override any GCC internal prototype to avoid an error.
30956 Use char because int might match the return type of a GCC
30957 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030958#ifdef __cplusplus
30959extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030960#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030961char $ac_func ();
30962/* The GNU C library defines this for functions which it implements
30963 to always fail with ENOSYS. Some functions are actually named
30964 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030965#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030966choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030967#endif
John Criswell7a73b802003-06-30 21:59:07 +000030968
John Criswell7a73b802003-06-30 21:59:07 +000030969int
30970main ()
30971{
Reid Spencera773bd52006-08-04 18:18:08 +000030972return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030973 ;
30974 return 0;
30975}
30976_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030977rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030978if { (ac_try="$ac_link"
30979case "(($ac_try" in
30980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30981 *) ac_try_echo=$ac_try;;
30982esac
30983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30984 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030986 grep -v '^ *+' conftest.er1 >conftest.err
30987 rm -f conftest.er1
30988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000030990 (exit $ac_status); } &&
30991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30992 { (case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30995esac
30996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997 (eval "$ac_try") 2>&5
30998 ac_status=$?
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); }; } &&
31001 { ac_try='test -s conftest$ac_exeext'
31002 { (case "(($ac_try" in
31003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31004 *) ac_try_echo=$ac_try;;
31005esac
31006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31007 (eval "$ac_try") 2>&5
31008 ac_status=$?
31009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31010 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031011 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031012else
31013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031014sed 's/^/| /' conftest.$ac_ext >&5
31015
Reid Spencera773bd52006-08-04 18:18:08 +000031016 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031017fi
Reid Spencera773bd52006-08-04 18:18:08 +000031018
Tanya Lattnercf067672008-01-17 05:57:22 +000031019rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031020 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031021fi
Reid Spencera773bd52006-08-04 18:18:08 +000031022ac_res=`eval echo '${'$as_ac_var'}'`
31023 { echo "$as_me:$LINENO: result: $ac_res" >&5
31024echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031025if test `eval echo '${'$as_ac_var'}'` = yes; then
31026 cat >>confdefs.h <<_ACEOF
31027#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031028_ACEOF
31029
31030fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031031done
John Criswell7a73b802003-06-30 21:59:07 +000031032
Reid Spencercdb08a32006-06-05 16:11:07 +000031033
31034
31035
31036
Reid Spencerafa22e22006-12-10 23:29:19 +000031037for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031038do
31039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031040{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31042if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 cat >conftest.$ac_ext <<_ACEOF
31046/* confdefs.h. */
31047_ACEOF
31048cat confdefs.h >>conftest.$ac_ext
31049cat >>conftest.$ac_ext <<_ACEOF
31050/* end confdefs.h. */
31051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31053#define $ac_func innocuous_$ac_func
31054
31055/* System header to define __stub macros and hopefully few prototypes,
31056 which can conflict with char $ac_func (); below.
31057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31058 <limits.h> exists even on freestanding compilers. */
31059
31060#ifdef __STDC__
31061# include <limits.h>
31062#else
31063# include <assert.h>
31064#endif
31065
31066#undef $ac_func
31067
Reid Spencera773bd52006-08-04 18:18:08 +000031068/* Override any GCC internal prototype to avoid an error.
31069 Use char because int might match the return type of a GCC
31070 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031071#ifdef __cplusplus
31072extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031073#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031074char $ac_func ();
31075/* The GNU C library defines this for functions which it implements
31076 to always fail with ENOSYS. Some functions are actually named
31077 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031078#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031079choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031080#endif
31081
31082int
31083main ()
31084{
Reid Spencera773bd52006-08-04 18:18:08 +000031085return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031086 ;
31087 return 0;
31088}
31089_ACEOF
31090rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031091if { (ac_try="$ac_link"
31092case "(($ac_try" in
31093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31094 *) ac_try_echo=$ac_try;;
31095esac
31096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31097 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031098 ac_status=$?
31099 grep -v '^ *+' conftest.er1 >conftest.err
31100 rm -f conftest.er1
31101 cat conftest.err >&5
31102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031103 (exit $ac_status); } &&
31104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31105 { (case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31108esac
31109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_try") 2>&5
31111 ac_status=$?
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
31115 { (case "(($ac_try" in
31116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31117 *) ac_try_echo=$ac_try;;
31118esac
31119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31120 (eval "$ac_try") 2>&5
31121 ac_status=$?
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031124 eval "$as_ac_var=yes"
31125else
31126 echo "$as_me: failed program was:" >&5
31127sed 's/^/| /' conftest.$ac_ext >&5
31128
Reid Spencera773bd52006-08-04 18:18:08 +000031129 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031130fi
Reid Spencera773bd52006-08-04 18:18:08 +000031131
Tanya Lattnercf067672008-01-17 05:57:22 +000031132rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031133 conftest$ac_exeext conftest.$ac_ext
31134fi
Reid Spencera773bd52006-08-04 18:18:08 +000031135ac_res=`eval echo '${'$as_ac_var'}'`
31136 { echo "$as_me:$LINENO: result: $ac_res" >&5
31137echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031138if test `eval echo '${'$as_ac_var'}'` = yes; then
31139 cat >>confdefs.h <<_ACEOF
31140#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31141_ACEOF
31142
31143fi
31144done
31145
Reid Spencera773bd52006-08-04 18:18:08 +000031146{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31147echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031148if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031151 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031152ac_cpp='$CPP $CPPFLAGS'
31153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31155ac_compiler_gnu=$ac_cv_c_compiler_gnu
31156
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031158 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031159else
31160 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031161
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031162 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031163_ACEOF
31164cat confdefs.h >>conftest.$ac_ext
31165cat >>conftest.$ac_ext <<_ACEOF
31166/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031167
John Criswella0137d32003-10-13 16:22:01 +000031168#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031169#include <stdlib.h>
31170
John Criswella0137d32003-10-13 16:22:01 +000031171int
31172main ()
31173{
31174
Reid Spencer2706f8c2004-09-19 23:53:36 +000031175volatile double A, B;
31176char Buffer[100];
31177A = 1;
31178A /= 10.0;
31179sprintf(Buffer, "%a", A);
31180B = atof(Buffer);
31181if (A != B)
31182 return (1);
31183if (A != 0x1.999999999999ap-4)
31184 return (1);
31185return (0);
John Criswella0137d32003-10-13 16:22:01 +000031186 ;
31187 return 0;
31188}
31189_ACEOF
31190rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031191if { (ac_try="$ac_link"
31192case "(($ac_try" in
31193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194 *) ac_try_echo=$ac_try;;
31195esac
31196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031198 ac_status=$?
31199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031201 { (case "(($ac_try" in
31202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31203 *) ac_try_echo=$ac_try;;
31204esac
31205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31206 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031207 ac_status=$?
31208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031210 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031211else
31212 echo "$as_me: program exited with status $ac_status" >&5
31213echo "$as_me: failed program was:" >&5
31214sed 's/^/| /' conftest.$ac_ext >&5
31215
31216( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031217llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031218fi
Reid Spencera773bd52006-08-04 18:18:08 +000031219rm -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 +000031220fi
Reid Spencera773bd52006-08-04 18:18:08 +000031221
31222
Reid Spencer2706f8c2004-09-19 23:53:36 +000031223 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031224ac_cpp='$CPP $CPPFLAGS'
31225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227ac_compiler_gnu=$ac_cv_c_compiler_gnu
31228
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031229fi
Reid Spencera773bd52006-08-04 18:18:08 +000031230{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31231echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031232 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031233
31234cat >>confdefs.h <<\_ACEOF
31235#define HAVE_PRINTF_A 1
31236_ACEOF
31237
Reid Spencer2706f8c2004-09-19 23:53:36 +000031238 fi
John Criswella0137d32003-10-13 16:22:01 +000031239
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031240# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31241# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031242{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31243echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031244if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031245 echo $ECHO_N "(cached) $ECHO_C" >&6
31246else
John Criswell0021c312004-02-13 21:57:29 +000031247 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031248/* confdefs.h. */
31249_ACEOF
31250cat confdefs.h >>conftest.$ac_ext
31251cat >>conftest.$ac_ext <<_ACEOF
31252/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031253#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031254int
31255main ()
31256{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031257char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031258 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031259 ;
31260 return 0;
31261}
31262_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031264if { (ac_try="$ac_link"
31265case "(($ac_try" in
31266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31267 *) ac_try_echo=$ac_try;;
31268esac
31269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31270 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031272 grep -v '^ *+' conftest.er1 >conftest.err
31273 rm -f conftest.er1
31274 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031276 (exit $ac_status); } &&
31277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31278 { (case "(($ac_try" in
31279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31280 *) ac_try_echo=$ac_try;;
31281esac
31282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31283 (eval "$ac_try") 2>&5
31284 ac_status=$?
31285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31286 (exit $ac_status); }; } &&
31287 { ac_try='test -s conftest$ac_exeext'
31288 { (case "(($ac_try" in
31289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31290 *) ac_try_echo=$ac_try;;
31291esac
31292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31293 (eval "$ac_try") 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031297 ac_cv_working_alloca_h=yes
31298else
31299 echo "$as_me: failed program was:" >&5
31300sed 's/^/| /' conftest.$ac_ext >&5
31301
Reid Spencera773bd52006-08-04 18:18:08 +000031302 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031303fi
Reid Spencera773bd52006-08-04 18:18:08 +000031304
Tanya Lattnercf067672008-01-17 05:57:22 +000031305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031306 conftest$ac_exeext conftest.$ac_ext
31307fi
Reid Spencera773bd52006-08-04 18:18:08 +000031308{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31309echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031310if test $ac_cv_working_alloca_h = yes; then
31311
31312cat >>confdefs.h <<\_ACEOF
31313#define HAVE_ALLOCA_H 1
31314_ACEOF
31315
31316fi
31317
Reid Spencera773bd52006-08-04 18:18:08 +000031318{ echo "$as_me:$LINENO: checking for alloca" >&5
31319echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031320if test "${ac_cv_func_alloca_works+set}" = set; then
31321 echo $ECHO_N "(cached) $ECHO_C" >&6
31322else
31323 cat >conftest.$ac_ext <<_ACEOF
31324/* confdefs.h. */
31325_ACEOF
31326cat confdefs.h >>conftest.$ac_ext
31327cat >>conftest.$ac_ext <<_ACEOF
31328/* end confdefs.h. */
31329#ifdef __GNUC__
31330# define alloca __builtin_alloca
31331#else
31332# ifdef _MSC_VER
31333# include <malloc.h>
31334# define alloca _alloca
31335# else
Tanya Lattnercf067672008-01-17 05:57:22 +000031336# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031337# include <alloca.h>
31338# else
31339# ifdef _AIX
31340 #pragma alloca
31341# else
31342# ifndef alloca /* predefined by HP cc +Olibcalls */
31343char *alloca ();
31344# endif
31345# endif
31346# endif
31347# endif
31348#endif
31349
31350int
31351main ()
31352{
31353char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031354 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355 ;
31356 return 0;
31357}
31358_ACEOF
31359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031360if { (ac_try="$ac_link"
31361case "(($ac_try" in
31362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31363 *) ac_try_echo=$ac_try;;
31364esac
31365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31366 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031367 ac_status=$?
31368 grep -v '^ *+' conftest.er1 >conftest.err
31369 rm -f conftest.er1
31370 cat conftest.err >&5
31371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031372 (exit $ac_status); } &&
31373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31374 { (case "(($ac_try" in
31375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31376 *) ac_try_echo=$ac_try;;
31377esac
31378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31379 (eval "$ac_try") 2>&5
31380 ac_status=$?
31381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31382 (exit $ac_status); }; } &&
31383 { ac_try='test -s conftest$ac_exeext'
31384 { (case "(($ac_try" in
31385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31386 *) ac_try_echo=$ac_try;;
31387esac
31388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31389 (eval "$ac_try") 2>&5
31390 ac_status=$?
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031393 ac_cv_func_alloca_works=yes
31394else
31395 echo "$as_me: failed program was:" >&5
31396sed 's/^/| /' conftest.$ac_ext >&5
31397
Reid Spencera773bd52006-08-04 18:18:08 +000031398 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031399fi
Reid Spencera773bd52006-08-04 18:18:08 +000031400
Tanya Lattnercf067672008-01-17 05:57:22 +000031401rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031402 conftest$ac_exeext conftest.$ac_ext
31403fi
Reid Spencera773bd52006-08-04 18:18:08 +000031404{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31405echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031406
31407if test $ac_cv_func_alloca_works = yes; then
31408
31409cat >>confdefs.h <<\_ACEOF
31410#define HAVE_ALLOCA 1
31411_ACEOF
31412
31413else
31414 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31415# that cause trouble. Some versions do not even contain alloca or
31416# contain a buggy version. If you still want to use their alloca,
31417# use ar to extract alloca.o from them instead of compiling alloca.c.
31418
Reid Spencera773bd52006-08-04 18:18:08 +000031419ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031420
31421cat >>confdefs.h <<\_ACEOF
31422#define C_ALLOCA 1
31423_ACEOF
31424
31425
Reid Spencera773bd52006-08-04 18:18:08 +000031426{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31427echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031428if test "${ac_cv_os_cray+set}" = set; then
31429 echo $ECHO_N "(cached) $ECHO_C" >&6
31430else
31431 cat >conftest.$ac_ext <<_ACEOF
31432/* confdefs.h. */
31433_ACEOF
31434cat confdefs.h >>conftest.$ac_ext
31435cat >>conftest.$ac_ext <<_ACEOF
31436/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031437#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031438webecray
31439#else
31440wenotbecray
31441#endif
31442
31443_ACEOF
31444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31445 $EGREP "webecray" >/dev/null 2>&1; then
31446 ac_cv_os_cray=yes
31447else
31448 ac_cv_os_cray=no
31449fi
31450rm -f conftest*
31451
31452fi
Reid Spencera773bd52006-08-04 18:18:08 +000031453{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31454echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031455if test $ac_cv_os_cray = yes; then
31456 for ac_func in _getb67 GETB67 getb67; do
31457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031458{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31459echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31460if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031461 echo $ECHO_N "(cached) $ECHO_C" >&6
31462else
31463 cat >conftest.$ac_ext <<_ACEOF
31464/* confdefs.h. */
31465_ACEOF
31466cat confdefs.h >>conftest.$ac_ext
31467cat >>conftest.$ac_ext <<_ACEOF
31468/* end confdefs.h. */
31469/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31471#define $ac_func innocuous_$ac_func
31472
31473/* System header to define __stub macros and hopefully few prototypes,
31474 which can conflict with char $ac_func (); below.
31475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31476 <limits.h> exists even on freestanding compilers. */
31477
31478#ifdef __STDC__
31479# include <limits.h>
31480#else
31481# include <assert.h>
31482#endif
31483
31484#undef $ac_func
31485
Reid Spencera773bd52006-08-04 18:18:08 +000031486/* Override any GCC internal prototype to avoid an error.
31487 Use char because int might match the return type of a GCC
31488 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031489#ifdef __cplusplus
31490extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031491#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031492char $ac_func ();
31493/* The GNU C library defines this for functions which it implements
31494 to always fail with ENOSYS. Some functions are actually named
31495 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031496#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031497choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031498#endif
31499
31500int
31501main ()
31502{
Reid Spencera773bd52006-08-04 18:18:08 +000031503return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031504 ;
31505 return 0;
31506}
31507_ACEOF
31508rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031509if { (ac_try="$ac_link"
31510case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31513esac
31514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031516 ac_status=$?
31517 grep -v '^ *+' conftest.er1 >conftest.err
31518 rm -f conftest.er1
31519 cat conftest.err >&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031521 (exit $ac_status); } &&
31522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31523 { (case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31526esac
31527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_try") 2>&5
31529 ac_status=$?
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); }; } &&
31532 { ac_try='test -s conftest$ac_exeext'
31533 { (case "(($ac_try" in
31534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31535 *) ac_try_echo=$ac_try;;
31536esac
31537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31538 (eval "$ac_try") 2>&5
31539 ac_status=$?
31540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31541 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031542 eval "$as_ac_var=yes"
31543else
31544 echo "$as_me: failed program was:" >&5
31545sed 's/^/| /' conftest.$ac_ext >&5
31546
Reid Spencera773bd52006-08-04 18:18:08 +000031547 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031548fi
Reid Spencera773bd52006-08-04 18:18:08 +000031549
Tanya Lattnercf067672008-01-17 05:57:22 +000031550rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031551 conftest$ac_exeext conftest.$ac_ext
31552fi
Reid Spencera773bd52006-08-04 18:18:08 +000031553ac_res=`eval echo '${'$as_ac_var'}'`
31554 { echo "$as_me:$LINENO: result: $ac_res" >&5
31555echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556if test `eval echo '${'$as_ac_var'}'` = yes; then
31557
31558cat >>confdefs.h <<_ACEOF
31559#define CRAY_STACKSEG_END $ac_func
31560_ACEOF
31561
31562 break
31563fi
31564
31565 done
31566fi
31567
Reid Spencera773bd52006-08-04 18:18:08 +000031568{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31569echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031570if test "${ac_cv_c_stack_direction+set}" = set; then
31571 echo $ECHO_N "(cached) $ECHO_C" >&6
31572else
31573 if test "$cross_compiling" = yes; then
31574 ac_cv_c_stack_direction=0
31575else
31576 cat >conftest.$ac_ext <<_ACEOF
31577/* confdefs.h. */
31578_ACEOF
31579cat confdefs.h >>conftest.$ac_ext
31580cat >>conftest.$ac_ext <<_ACEOF
31581/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031582$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031583int
31584find_stack_direction ()
31585{
31586 static char *addr = 0;
31587 auto char dummy;
31588 if (addr == 0)
31589 {
31590 addr = &dummy;
31591 return find_stack_direction ();
31592 }
John Criswell0021c312004-02-13 21:57:29 +000031593 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031594 return (&dummy > addr) ? 1 : -1;
31595}
John Criswell0021c312004-02-13 21:57:29 +000031596
John Criswell0021c312004-02-13 21:57:29 +000031597int
31598main ()
31599{
Reid Spencera773bd52006-08-04 18:18:08 +000031600 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031601}
31602_ACEOF
31603rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031604if { (ac_try="$ac_link"
31605case "(($ac_try" in
31606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607 *) ac_try_echo=$ac_try;;
31608esac
31609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031611 ac_status=$?
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031614 { (case "(($ac_try" in
31615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31616 *) ac_try_echo=$ac_try;;
31617esac
31618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31619 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031620 ac_status=$?
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031623 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031624else
31625 echo "$as_me: program exited with status $ac_status" >&5
31626echo "$as_me: failed program was:" >&5
31627sed 's/^/| /' conftest.$ac_ext >&5
31628
31629( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031630ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031631fi
Reid Spencera773bd52006-08-04 18:18:08 +000031632rm -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 +000031633fi
Reid Spencera773bd52006-08-04 18:18:08 +000031634
31635
John Criswell0021c312004-02-13 21:57:29 +000031636fi
Reid Spencera773bd52006-08-04 18:18:08 +000031637{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31638echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031639
31640cat >>confdefs.h <<_ACEOF
31641#define STACK_DIRECTION $ac_cv_c_stack_direction
31642_ACEOF
31643
31644
John Criswell0021c312004-02-13 21:57:29 +000031645fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031646
31647
Reid Spencera773bd52006-08-04 18:18:08 +000031648{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31649echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031650if test "${ac_cv_func_rand48+set}" = set; then
31651 echo $ECHO_N "(cached) $ECHO_C" >&6
31652else
Reid Spencera773bd52006-08-04 18:18:08 +000031653 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031654ac_cpp='$CXXCPP $CPPFLAGS'
31655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31658
31659 cat >conftest.$ac_ext <<_ACEOF
31660/* confdefs.h. */
31661_ACEOF
31662cat confdefs.h >>conftest.$ac_ext
31663cat >>conftest.$ac_ext <<_ACEOF
31664/* end confdefs.h. */
31665#include <stdlib.h>
31666int
31667main ()
31668{
31669srand48(0);lrand48();drand48();
31670 ;
31671 return 0;
31672}
31673_ACEOF
31674rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031675if { (ac_try="$ac_compile"
31676case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31679esac
31680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031682 ac_status=$?
31683 grep -v '^ *+' conftest.er1 >conftest.err
31684 rm -f conftest.er1
31685 cat conftest.err >&5
31686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031687 (exit $ac_status); } &&
31688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31689 { (case "(($ac_try" in
31690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691 *) ac_try_echo=$ac_try;;
31692esac
31693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694 (eval "$ac_try") 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; } &&
31698 { ac_try='test -s conftest.$ac_objext'
31699 { (case "(($ac_try" in
31700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701 *) ac_try_echo=$ac_try;;
31702esac
31703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704 (eval "$ac_try") 2>&5
31705 ac_status=$?
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708 ac_cv_func_rand48=yes
31709else
31710 echo "$as_me: failed program was:" >&5
31711sed 's/^/| /' conftest.$ac_ext >&5
31712
Reid Spencera773bd52006-08-04 18:18:08 +000031713 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031714fi
Reid Spencera773bd52006-08-04 18:18:08 +000031715
31716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717 ac_ext=c
31718ac_cpp='$CPP $CPPFLAGS'
31719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31721ac_compiler_gnu=$ac_cv_c_compiler_gnu
31722
31723fi
Reid Spencera773bd52006-08-04 18:18:08 +000031724{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31725echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031726
31727if test "$ac_cv_func_rand48" = "yes" ; then
31728
31729cat >>confdefs.h <<\_ACEOF
31730#define HAVE_RAND48 1
31731_ACEOF
31732
31733fi
John Criswell0021c312004-02-13 21:57:29 +000031734
31735
Reid Spencera773bd52006-08-04 18:18:08 +000031736{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31737echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031738if test "${ac_cv_cxx_namespaces+set}" = set; then
31739 echo $ECHO_N "(cached) $ECHO_C" >&6
31740else
Reid Spencera773bd52006-08-04 18:18:08 +000031741 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031742ac_cpp='$CXXCPP $CPPFLAGS'
31743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31746
31747 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031748/* confdefs.h. */
31749_ACEOF
31750cat confdefs.h >>conftest.$ac_ext
31751cat >>conftest.$ac_ext <<_ACEOF
31752/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031753namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031754int
31755main ()
31756{
31757using namespace Outer::Inner; return i;
31758 ;
31759 return 0;
31760}
31761_ACEOF
31762rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031763if { (ac_try="$ac_compile"
31764case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31767esac
31768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031771 grep -v '^ *+' conftest.er1 >conftest.err
31772 rm -f conftest.er1
31773 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031775 (exit $ac_status); } &&
31776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31777 { (case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31780esac
31781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_try") 2>&5
31783 ac_status=$?
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; } &&
31786 { ac_try='test -s conftest.$ac_objext'
31787 { (case "(($ac_try" in
31788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789 *) ac_try_echo=$ac_try;;
31790esac
31791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792 (eval "$ac_try") 2>&5
31793 ac_status=$?
31794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031796 ac_cv_cxx_namespaces=yes
31797else
31798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031799sed 's/^/| /' conftest.$ac_ext >&5
31800
Reid Spencera773bd52006-08-04 18:18:08 +000031801 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031802fi
Reid Spencera773bd52006-08-04 18:18:08 +000031803
31804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031805 ac_ext=c
31806ac_cpp='$CPP $CPPFLAGS'
31807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31809ac_compiler_gnu=$ac_cv_c_compiler_gnu
31810
31811
31812fi
Reid Spencera773bd52006-08-04 18:18:08 +000031813{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31814echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031815if test "$ac_cv_cxx_namespaces" = yes; then
31816
31817cat >>confdefs.h <<\_ACEOF
31818#define HAVE_NAMESPACES
31819_ACEOF
31820
31821fi
31822
Reid Spencera773bd52006-08-04 18:18:08 +000031823{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31824echo $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 +000031825if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031826 echo $ECHO_N "(cached) $ECHO_C" >&6
31827else
31828
Reid Spencera773bd52006-08-04 18:18:08 +000031829 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031830ac_cpp='$CXXCPP $CPPFLAGS'
31831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31834
31835 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031836/* confdefs.h. */
31837_ACEOF
31838cat confdefs.h >>conftest.$ac_ext
31839cat >>conftest.$ac_ext <<_ACEOF
31840/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031841#include <ext/hash_map>
31842#ifdef HAVE_NAMESPACES
31843using namespace std;
31844#endif
John Criswell7a73b802003-06-30 21:59:07 +000031845int
31846main ()
31847{
Brian Gaeke90583492003-11-10 03:06:28 +000031848hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031849 ;
31850 return 0;
31851}
31852_ACEOF
31853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031854if { (ac_try="$ac_compile"
31855case "(($ac_try" in
31856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31857 *) ac_try_echo=$ac_try;;
31858esac
31859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31860 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031862 grep -v '^ *+' conftest.er1 >conftest.err
31863 rm -f conftest.er1
31864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031866 (exit $ac_status); } &&
31867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31868 { (case "(($ac_try" in
31869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31870 *) ac_try_echo=$ac_try;;
31871esac
31872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31873 (eval "$ac_try") 2>&5
31874 ac_status=$?
31875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876 (exit $ac_status); }; } &&
31877 { ac_try='test -s conftest.$ac_objext'
31878 { (case "(($ac_try" in
31879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880 *) ac_try_echo=$ac_try;;
31881esac
31882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883 (eval "$ac_try") 2>&5
31884 ac_status=$?
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031887 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031888else
31889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031890sed 's/^/| /' conftest.$ac_ext >&5
31891
Reid Spencera773bd52006-08-04 18:18:08 +000031892 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031893fi
Reid Spencera773bd52006-08-04 18:18:08 +000031894
31895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031896 ac_ext=c
31897ac_cpp='$CPP $CPPFLAGS'
31898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31900ac_compiler_gnu=$ac_cv_c_compiler_gnu
31901
John Criswell7a73b802003-06-30 21:59:07 +000031902fi
Reid Spencera773bd52006-08-04 18:18:08 +000031903{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31904echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031905 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31906 then
John Criswell9f011862004-09-24 18:28:00 +000031907
31908cat >>confdefs.h <<\_ACEOF
31909#define HAVE_STD_EXT_HASH_MAP 1
31910_ACEOF
31911
31912 else
31913
31914cat >>confdefs.h <<\_ACEOF
31915#define HAVE_STD_EXT_HASH_MAP 0
31916_ACEOF
31917
Brian Gaeke90583492003-11-10 03:06:28 +000031918 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031919
Reid Spencera773bd52006-08-04 18:18:08 +000031920 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31921echo $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 +000031922if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31923 echo $ECHO_N "(cached) $ECHO_C" >&6
31924else
31925
Reid Spencera773bd52006-08-04 18:18:08 +000031926 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031927ac_cpp='$CXXCPP $CPPFLAGS'
31928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31931
31932 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031933/* confdefs.h. */
31934_ACEOF
31935cat confdefs.h >>conftest.$ac_ext
31936cat >>conftest.$ac_ext <<_ACEOF
31937/* end confdefs.h. */
31938#include <ext/hash_map>
31939#ifdef HAVE_NAMESPACES
31940using namespace __gnu_cxx;
31941#endif
31942int
31943main ()
31944{
31945hash_map<int,int> t;
31946 ;
31947 return 0;
31948}
31949_ACEOF
31950rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031951if { (ac_try="$ac_compile"
31952case "(($ac_try" in
31953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31954 *) ac_try_echo=$ac_try;;
31955esac
31956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31957 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031959 grep -v '^ *+' conftest.er1 >conftest.err
31960 rm -f conftest.er1
31961 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000031963 (exit $ac_status); } &&
31964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31965 { (case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31968esac
31969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_try") 2>&5
31971 ac_status=$?
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; } &&
31974 { ac_try='test -s conftest.$ac_objext'
31975 { (case "(($ac_try" in
31976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977 *) ac_try_echo=$ac_try;;
31978esac
31979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980 (eval "$ac_try") 2>&5
31981 ac_status=$?
31982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31983 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031984 ac_cv_cxx_have_gnu_ext_hash_map=yes
31985else
31986 echo "$as_me: failed program was:" >&5
31987sed 's/^/| /' conftest.$ac_ext >&5
31988
Reid Spencera773bd52006-08-04 18:18:08 +000031989 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031990fi
Reid Spencera773bd52006-08-04 18:18:08 +000031991
31992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031993 ac_ext=c
31994ac_cpp='$CPP $CPPFLAGS'
31995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31997ac_compiler_gnu=$ac_cv_c_compiler_gnu
31998
31999fi
Reid Spencera773bd52006-08-04 18:18:08 +000032000{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32001echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032002 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32003 then
John Criswell9f011862004-09-24 18:28:00 +000032004
32005cat >>confdefs.h <<\_ACEOF
32006#define HAVE_GNU_EXT_HASH_MAP 1
32007_ACEOF
32008
32009 else
32010
32011cat >>confdefs.h <<\_ACEOF
32012#define HAVE_GNU_EXT_HASH_MAP 0
32013_ACEOF
32014
Brian Gaeke90583492003-11-10 03:06:28 +000032015 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032016
Reid Spencera773bd52006-08-04 18:18:08 +000032017 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32018echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032019if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32020 echo $ECHO_N "(cached) $ECHO_C" >&6
32021else
John Criswell7a73b802003-06-30 21:59:07 +000032022
Reid Spencera773bd52006-08-04 18:18:08 +000032023 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032024ac_cpp='$CXXCPP $CPPFLAGS'
32025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32028
32029 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032030/* confdefs.h. */
32031_ACEOF
32032cat confdefs.h >>conftest.$ac_ext
32033cat >>conftest.$ac_ext <<_ACEOF
32034/* end confdefs.h. */
32035#include <hash_map>
32036int
32037main ()
32038{
32039hash_map<int,int> t;
32040 ;
32041 return 0;
32042}
32043_ACEOF
32044rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032045if { (ac_try="$ac_compile"
32046case "(($ac_try" in
32047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32048 *) ac_try_echo=$ac_try;;
32049esac
32050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32051 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032053 grep -v '^ *+' conftest.er1 >conftest.err
32054 rm -f conftest.er1
32055 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032057 (exit $ac_status); } &&
32058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32059 { (case "(($ac_try" in
32060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32061 *) ac_try_echo=$ac_try;;
32062esac
32063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32064 (eval "$ac_try") 2>&5
32065 ac_status=$?
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); }; } &&
32068 { ac_try='test -s conftest.$ac_objext'
32069 { (case "(($ac_try" in
32070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32071 *) ac_try_echo=$ac_try;;
32072esac
32073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32074 (eval "$ac_try") 2>&5
32075 ac_status=$?
32076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032078 ac_cv_cxx_have_global_hash_map=yes
32079else
32080 echo "$as_me: failed program was:" >&5
32081sed 's/^/| /' conftest.$ac_ext >&5
32082
Reid Spencera773bd52006-08-04 18:18:08 +000032083 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032084fi
Reid Spencera773bd52006-08-04 18:18:08 +000032085
32086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032087 ac_ext=c
32088ac_cpp='$CPP $CPPFLAGS'
32089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32091ac_compiler_gnu=$ac_cv_c_compiler_gnu
32092
32093fi
Reid Spencera773bd52006-08-04 18:18:08 +000032094{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32095echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032096 if test "$ac_cv_cxx_have_global_hash_map" = yes
32097 then
John Criswell9f011862004-09-24 18:28:00 +000032098
32099cat >>confdefs.h <<\_ACEOF
32100#define HAVE_GLOBAL_HASH_MAP 1
32101_ACEOF
32102
32103 else
32104
32105cat >>confdefs.h <<\_ACEOF
32106#define HAVE_GLOBAL_HASH_MAP 0
32107_ACEOF
32108
Brian Gaeke90583492003-11-10 03:06:28 +000032109 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032110
Reid Spencera773bd52006-08-04 18:18:08 +000032111{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32112echo $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 +000032113if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032114 echo $ECHO_N "(cached) $ECHO_C" >&6
32115else
32116
Reid Spencera773bd52006-08-04 18:18:08 +000032117 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032118ac_cpp='$CXXCPP $CPPFLAGS'
32119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32122
32123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032124/* confdefs.h. */
32125_ACEOF
32126cat confdefs.h >>conftest.$ac_ext
32127cat >>conftest.$ac_ext <<_ACEOF
32128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032129#include <ext/hash_set>
32130#ifdef HAVE_NAMESPACES
32131using namespace std;
32132#endif
John Criswell7a73b802003-06-30 21:59:07 +000032133int
32134main ()
32135{
Brian Gaeke90583492003-11-10 03:06:28 +000032136hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032137 ;
32138 return 0;
32139}
32140_ACEOF
32141rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032142if { (ac_try="$ac_compile"
32143case "(($ac_try" in
32144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32145 *) ac_try_echo=$ac_try;;
32146esac
32147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32148 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032150 grep -v '^ *+' conftest.er1 >conftest.err
32151 rm -f conftest.er1
32152 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032154 (exit $ac_status); } &&
32155 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32156 { (case "(($ac_try" in
32157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32158 *) ac_try_echo=$ac_try;;
32159esac
32160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32161 (eval "$ac_try") 2>&5
32162 ac_status=$?
32163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); }; } &&
32165 { ac_try='test -s conftest.$ac_objext'
32166 { (case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32169esac
32170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_try") 2>&5
32172 ac_status=$?
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032175 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032176else
32177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032178sed 's/^/| /' conftest.$ac_ext >&5
32179
Reid Spencera773bd52006-08-04 18:18:08 +000032180 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032181fi
Reid Spencera773bd52006-08-04 18:18:08 +000032182
32183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032184 ac_ext=c
32185ac_cpp='$CPP $CPPFLAGS'
32186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32188ac_compiler_gnu=$ac_cv_c_compiler_gnu
32189
32190fi
Reid Spencera773bd52006-08-04 18:18:08 +000032191{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32192echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032193 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32194 then
John Criswell9f011862004-09-24 18:28:00 +000032195
32196cat >>confdefs.h <<\_ACEOF
32197#define HAVE_STD_EXT_HASH_SET 1
32198_ACEOF
32199
32200 else
32201
32202cat >>confdefs.h <<\_ACEOF
32203#define HAVE_STD_EXT_HASH_SET 0
32204_ACEOF
32205
Brian Gaeke90583492003-11-10 03:06:28 +000032206 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032207
Reid Spencera773bd52006-08-04 18:18:08 +000032208 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32209echo $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 +000032210if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32211 echo $ECHO_N "(cached) $ECHO_C" >&6
32212else
32213
Reid Spencera773bd52006-08-04 18:18:08 +000032214 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032215ac_cpp='$CXXCPP $CPPFLAGS'
32216ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32217ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32218ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32219
John Criswell7a73b802003-06-30 21:59:07 +000032220 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032221/* confdefs.h. */
32222_ACEOF
32223cat confdefs.h >>conftest.$ac_ext
32224cat >>conftest.$ac_ext <<_ACEOF
32225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032226#include <ext/hash_set>
32227#ifdef HAVE_NAMESPACES
32228using namespace __gnu_cxx;
32229#endif
John Criswell7a73b802003-06-30 21:59:07 +000032230int
32231main ()
32232{
Brian Gaeke90583492003-11-10 03:06:28 +000032233hash_set<int> t;
32234 ;
32235 return 0;
32236}
32237_ACEOF
32238rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032239if { (ac_try="$ac_compile"
32240case "(($ac_try" in
32241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32242 *) ac_try_echo=$ac_try;;
32243esac
32244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32245 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032247 grep -v '^ *+' conftest.er1 >conftest.err
32248 rm -f conftest.er1
32249 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032251 (exit $ac_status); } &&
32252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32253 { (case "(($ac_try" in
32254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32255 *) ac_try_echo=$ac_try;;
32256esac
32257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32258 (eval "$ac_try") 2>&5
32259 ac_status=$?
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; } &&
32262 { ac_try='test -s conftest.$ac_objext'
32263 { (case "(($ac_try" in
32264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32265 *) ac_try_echo=$ac_try;;
32266esac
32267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32268 (eval "$ac_try") 2>&5
32269 ac_status=$?
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032272 ac_cv_cxx_have_gnu_ext_hash_set=yes
32273else
32274 echo "$as_me: failed program was:" >&5
32275sed 's/^/| /' conftest.$ac_ext >&5
32276
Reid Spencera773bd52006-08-04 18:18:08 +000032277 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032278fi
Reid Spencera773bd52006-08-04 18:18:08 +000032279
32280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032281 ac_ext=c
32282ac_cpp='$CPP $CPPFLAGS'
32283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32285ac_compiler_gnu=$ac_cv_c_compiler_gnu
32286
32287fi
Reid Spencera773bd52006-08-04 18:18:08 +000032288{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32289echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032290 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32291 then
John Criswell9f011862004-09-24 18:28:00 +000032292
32293cat >>confdefs.h <<\_ACEOF
32294#define HAVE_GNU_EXT_HASH_SET 1
32295_ACEOF
32296
32297 else
32298
32299cat >>confdefs.h <<\_ACEOF
32300#define HAVE_GNU_EXT_HASH_SET 0
32301_ACEOF
32302
Brian Gaeke90583492003-11-10 03:06:28 +000032303 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032304
Reid Spencera773bd52006-08-04 18:18:08 +000032305 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32306echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032307if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32308 echo $ECHO_N "(cached) $ECHO_C" >&6
32309else
32310
Reid Spencera773bd52006-08-04 18:18:08 +000032311 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032312ac_cpp='$CXXCPP $CPPFLAGS'
32313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32316
32317 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032318/* confdefs.h. */
32319_ACEOF
32320cat confdefs.h >>conftest.$ac_ext
32321cat >>conftest.$ac_ext <<_ACEOF
32322/* end confdefs.h. */
32323#include <hash_set>
32324int
32325main ()
32326{
John Criswell7a73b802003-06-30 21:59:07 +000032327hash_set<int> t; return 0;
32328 ;
32329 return 0;
32330}
32331_ACEOF
32332rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032333if { (ac_try="$ac_compile"
32334case "(($ac_try" in
32335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336 *) ac_try_echo=$ac_try;;
32337esac
32338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32339 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032340 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032341 grep -v '^ *+' conftest.er1 >conftest.err
32342 rm -f conftest.er1
32343 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032345 (exit $ac_status); } &&
32346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32347 { (case "(($ac_try" in
32348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32349 *) ac_try_echo=$ac_try;;
32350esac
32351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32352 (eval "$ac_try") 2>&5
32353 ac_status=$?
32354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355 (exit $ac_status); }; } &&
32356 { ac_try='test -s conftest.$ac_objext'
32357 { (case "(($ac_try" in
32358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32359 *) ac_try_echo=$ac_try;;
32360esac
32361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32362 (eval "$ac_try") 2>&5
32363 ac_status=$?
32364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32365 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032366 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032367else
32368 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032369sed 's/^/| /' conftest.$ac_ext >&5
32370
Reid Spencera773bd52006-08-04 18:18:08 +000032371 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032372fi
Reid Spencera773bd52006-08-04 18:18:08 +000032373
32374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032375 ac_ext=c
32376ac_cpp='$CPP $CPPFLAGS'
32377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379ac_compiler_gnu=$ac_cv_c_compiler_gnu
32380
John Criswell7a73b802003-06-30 21:59:07 +000032381fi
Reid Spencera773bd52006-08-04 18:18:08 +000032382{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32383echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032384 if test "$ac_cv_cxx_have_global_hash_set" = yes
32385 then
John Criswell9f011862004-09-24 18:28:00 +000032386
32387cat >>confdefs.h <<\_ACEOF
32388#define HAVE_GLOBAL_HASH_SET 1
32389_ACEOF
32390
32391 else
32392
32393cat >>confdefs.h <<\_ACEOF
32394#define HAVE_GLOBAL_HASH_SET 0
32395_ACEOF
32396
Brian Gaeke90583492003-11-10 03:06:28 +000032397 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032398
Reid Spencera773bd52006-08-04 18:18:08 +000032399{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32400echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032401if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
32403else
32404
Reid Spencera773bd52006-08-04 18:18:08 +000032405 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032406ac_cpp='$CXXCPP $CPPFLAGS'
32407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32410
32411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032412/* confdefs.h. */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032417#include <iterator>
32418#ifdef HAVE_NAMESPACES
32419using namespace std;
32420#endif
John Criswell7a73b802003-06-30 21:59:07 +000032421int
32422main ()
32423{
32424iterator<int,int,int> t; return 0;
32425 ;
32426 return 0;
32427}
32428_ACEOF
32429rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032430if { (ac_try="$ac_compile"
32431case "(($ac_try" in
32432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32433 *) ac_try_echo=$ac_try;;
32434esac
32435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32436 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032437 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032438 grep -v '^ *+' conftest.er1 >conftest.err
32439 rm -f conftest.er1
32440 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032442 (exit $ac_status); } &&
32443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32444 { (case "(($ac_try" in
32445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446 *) ac_try_echo=$ac_try;;
32447esac
32448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449 (eval "$ac_try") 2>&5
32450 ac_status=$?
32451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32452 (exit $ac_status); }; } &&
32453 { ac_try='test -s conftest.$ac_objext'
32454 { (case "(($ac_try" in
32455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32456 *) ac_try_echo=$ac_try;;
32457esac
32458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32459 (eval "$ac_try") 2>&5
32460 ac_status=$?
32461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032463 ac_cv_cxx_have_std_iterator=yes
32464else
32465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032466sed 's/^/| /' conftest.$ac_ext >&5
32467
Reid Spencera773bd52006-08-04 18:18:08 +000032468 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032469fi
Reid Spencera773bd52006-08-04 18:18:08 +000032470
32471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032472 ac_ext=c
32473ac_cpp='$CPP $CPPFLAGS'
32474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32476ac_compiler_gnu=$ac_cv_c_compiler_gnu
32477
32478
32479fi
Reid Spencera773bd52006-08-04 18:18:08 +000032480{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32481echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032482if test "$ac_cv_cxx_have_std_iterator" = yes
32483then
John Criswell40468462004-09-24 21:19:06 +000032484
32485cat >>confdefs.h <<\_ACEOF
32486#define HAVE_STD_ITERATOR 1
32487_ACEOF
32488
32489else
32490
32491cat >>confdefs.h <<\_ACEOF
32492#define HAVE_STD_ITERATOR 0
32493_ACEOF
32494
John Criswell7a73b802003-06-30 21:59:07 +000032495fi
32496
Reid Spencera773bd52006-08-04 18:18:08 +000032497{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32498echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032499if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32500 echo $ECHO_N "(cached) $ECHO_C" >&6
32501else
32502
Reid Spencera773bd52006-08-04 18:18:08 +000032503 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032504ac_cpp='$CXXCPP $CPPFLAGS'
32505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32508
32509 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032510/* confdefs.h. */
32511_ACEOF
32512cat confdefs.h >>conftest.$ac_ext
32513cat >>conftest.$ac_ext <<_ACEOF
32514/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032515#include <iterator>
32516#ifdef HAVE_NAMESPACES
32517using namespace std;
32518#endif
John Criswell7a73b802003-06-30 21:59:07 +000032519int
32520main ()
32521{
John Criswellc78022e2003-07-29 19:11:58 +000032522bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032523 ;
32524 return 0;
32525}
32526_ACEOF
32527rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032528if { (ac_try="$ac_compile"
32529case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32532esac
32533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32534 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032535 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032536 grep -v '^ *+' conftest.er1 >conftest.err
32537 rm -f conftest.er1
32538 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032540 (exit $ac_status); } &&
32541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32542 { (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
32548 ac_status=$?
32549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 (exit $ac_status); }; } &&
32551 { ac_try='test -s conftest.$ac_objext'
32552 { (case "(($ac_try" in
32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554 *) ac_try_echo=$ac_try;;
32555esac
32556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557 (eval "$ac_try") 2>&5
32558 ac_status=$?
32559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32560 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032561 ac_cv_cxx_have_bi_iterator=yes
32562else
32563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032564sed 's/^/| /' conftest.$ac_ext >&5
32565
Reid Spencera773bd52006-08-04 18:18:08 +000032566 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032567fi
Reid Spencera773bd52006-08-04 18:18:08 +000032568
32569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032570 ac_ext=c
32571ac_cpp='$CPP $CPPFLAGS'
32572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32574ac_compiler_gnu=$ac_cv_c_compiler_gnu
32575
32576
32577fi
Reid Spencera773bd52006-08-04 18:18:08 +000032578{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32579echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032580if test "$ac_cv_cxx_have_bi_iterator" = yes
32581then
John Criswell40468462004-09-24 21:19:06 +000032582
32583cat >>confdefs.h <<\_ACEOF
32584#define HAVE_BI_ITERATOR 1
32585_ACEOF
32586
32587else
32588
32589cat >>confdefs.h <<\_ACEOF
32590#define HAVE_BI_ITERATOR 0
32591_ACEOF
32592
John Criswell7a73b802003-06-30 21:59:07 +000032593fi
32594
Reid Spencera773bd52006-08-04 18:18:08 +000032595{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32596echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032597if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32598 echo $ECHO_N "(cached) $ECHO_C" >&6
32599else
32600
Reid Spencera773bd52006-08-04 18:18:08 +000032601 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032602ac_cpp='$CXXCPP $CPPFLAGS'
32603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32606
32607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032608/* confdefs.h. */
32609_ACEOF
32610cat confdefs.h >>conftest.$ac_ext
32611cat >>conftest.$ac_ext <<_ACEOF
32612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032613#include <iterator>
32614#ifdef HAVE_NAMESPACES
32615using namespace std;
32616#endif
John Criswell7a73b802003-06-30 21:59:07 +000032617int
32618main ()
32619{
John Criswellc78022e2003-07-29 19:11:58 +000032620forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032621 ;
32622 return 0;
32623}
32624_ACEOF
32625rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032626if { (ac_try="$ac_compile"
32627case "(($ac_try" in
32628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32629 *) ac_try_echo=$ac_try;;
32630esac
32631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32632 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032634 grep -v '^ *+' conftest.er1 >conftest.err
32635 rm -f conftest.er1
32636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032638 (exit $ac_status); } &&
32639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32640 { (case "(($ac_try" in
32641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32642 *) ac_try_echo=$ac_try;;
32643esac
32644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32645 (eval "$ac_try") 2>&5
32646 ac_status=$?
32647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); }; } &&
32649 { ac_try='test -s conftest.$ac_objext'
32650 { (case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32653esac
32654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_try") 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032659 ac_cv_cxx_have_fwd_iterator=yes
32660else
32661 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032662sed 's/^/| /' conftest.$ac_ext >&5
32663
Reid Spencera773bd52006-08-04 18:18:08 +000032664 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032665fi
Reid Spencera773bd52006-08-04 18:18:08 +000032666
32667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032668 ac_ext=c
32669ac_cpp='$CPP $CPPFLAGS'
32670ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32671ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32672ac_compiler_gnu=$ac_cv_c_compiler_gnu
32673
32674
32675fi
Reid Spencera773bd52006-08-04 18:18:08 +000032676{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32677echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032678if test "$ac_cv_cxx_have_fwd_iterator" = yes
32679then
John Criswell40468462004-09-24 21:19:06 +000032680
32681cat >>confdefs.h <<\_ACEOF
32682#define HAVE_FWD_ITERATOR 1
32683_ACEOF
32684
32685else
32686
32687cat >>confdefs.h <<\_ACEOF
32688#define HAVE_FWD_ITERATOR 0
32689_ACEOF
32690
John Criswell7a73b802003-06-30 21:59:07 +000032691fi
32692
32693
Reid Spencera773bd52006-08-04 18:18:08 +000032694{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32695echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032696if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32697 echo $ECHO_N "(cached) $ECHO_C" >&6
32698else
Reid Spencera773bd52006-08-04 18:18:08 +000032699 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032700ac_cpp='$CXXCPP $CPPFLAGS'
32701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32704
Reid Spencerabec8f92004-10-27 23:03:44 +000032705 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032706/* confdefs.h. */
32707_ACEOF
32708cat confdefs.h >>conftest.$ac_ext
32709cat >>conftest.$ac_ext <<_ACEOF
32710/* end confdefs.h. */
32711#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032712int
32713main ()
32714{
32715float f; isnan(f);
32716 ;
32717 return 0;
32718}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032719_ACEOF
32720rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032721if { (ac_try="$ac_compile"
32722case "(($ac_try" in
32723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724 *) ac_try_echo=$ac_try;;
32725esac
32726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032729 grep -v '^ *+' conftest.er1 >conftest.err
32730 rm -f conftest.er1
32731 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032733 (exit $ac_status); } &&
32734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32735 { (case "(($ac_try" in
32736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32737 *) ac_try_echo=$ac_try;;
32738esac
32739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32740 (eval "$ac_try") 2>&5
32741 ac_status=$?
32742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32743 (exit $ac_status); }; } &&
32744 { ac_try='test -s conftest.$ac_objext'
32745 { (case "(($ac_try" in
32746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747 *) ac_try_echo=$ac_try;;
32748esac
32749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750 (eval "$ac_try") 2>&5
32751 ac_status=$?
32752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32753 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032754 ac_cv_func_isnan_in_math_h=yes
32755else
32756 echo "$as_me: failed program was:" >&5
32757sed 's/^/| /' conftest.$ac_ext >&5
32758
Reid Spencera773bd52006-08-04 18:18:08 +000032759 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032760fi
Reid Spencera773bd52006-08-04 18:18:08 +000032761
32762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032763 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032764ac_cpp='$CPP $CPPFLAGS'
32765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767ac_compiler_gnu=$ac_cv_c_compiler_gnu
32768
32769fi
Reid Spencera773bd52006-08-04 18:18:08 +000032770{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32771echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032772
32773
32774if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032775
32776cat >>confdefs.h <<\_ACEOF
32777#define HAVE_ISNAN_IN_MATH_H 1
32778_ACEOF
32779
Reid Spencerabec8f92004-10-27 23:03:44 +000032780fi
32781
Reid Spencera773bd52006-08-04 18:18:08 +000032782{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32783echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032784if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32785 echo $ECHO_N "(cached) $ECHO_C" >&6
32786else
Reid Spencera773bd52006-08-04 18:18:08 +000032787 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032788ac_cpp='$CXXCPP $CPPFLAGS'
32789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32792
Reid Spencerabec8f92004-10-27 23:03:44 +000032793 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032794/* confdefs.h. */
32795_ACEOF
32796cat confdefs.h >>conftest.$ac_ext
32797cat >>conftest.$ac_ext <<_ACEOF
32798/* end confdefs.h. */
32799#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032800int
32801main ()
32802{
32803float f; isnan(f);
32804 ;
32805 return 0;
32806}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032807_ACEOF
32808rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032809if { (ac_try="$ac_compile"
32810case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32813esac
32814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032816 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032817 grep -v '^ *+' conftest.er1 >conftest.err
32818 rm -f conftest.er1
32819 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032821 (exit $ac_status); } &&
32822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32823 { (case "(($ac_try" in
32824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32825 *) ac_try_echo=$ac_try;;
32826esac
32827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32828 (eval "$ac_try") 2>&5
32829 ac_status=$?
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); }; } &&
32832 { ac_try='test -s conftest.$ac_objext'
32833 { (case "(($ac_try" in
32834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32835 *) ac_try_echo=$ac_try;;
32836esac
32837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32838 (eval "$ac_try") 2>&5
32839 ac_status=$?
32840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032842 ac_cv_func_isnan_in_cmath=yes
32843else
32844 echo "$as_me: failed program was:" >&5
32845sed 's/^/| /' conftest.$ac_ext >&5
32846
Reid Spencera773bd52006-08-04 18:18:08 +000032847 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032848fi
Reid Spencera773bd52006-08-04 18:18:08 +000032849
32850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032851 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032852ac_cpp='$CPP $CPPFLAGS'
32853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32855ac_compiler_gnu=$ac_cv_c_compiler_gnu
32856
32857fi
Reid Spencera773bd52006-08-04 18:18:08 +000032858{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32859echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032860
32861if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032862
32863cat >>confdefs.h <<\_ACEOF
32864#define HAVE_ISNAN_IN_CMATH 1
32865_ACEOF
32866
Reid Spencerabec8f92004-10-27 23:03:44 +000032867fi
32868
Reid Spencera773bd52006-08-04 18:18:08 +000032869{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32870echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032871if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32872 echo $ECHO_N "(cached) $ECHO_C" >&6
32873else
Reid Spencera773bd52006-08-04 18:18:08 +000032874 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032875ac_cpp='$CXXCPP $CPPFLAGS'
32876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32879
Reid Spencerabec8f92004-10-27 23:03:44 +000032880 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032881/* confdefs.h. */
32882_ACEOF
32883cat confdefs.h >>conftest.$ac_ext
32884cat >>conftest.$ac_ext <<_ACEOF
32885/* end confdefs.h. */
32886#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032887int
32888main ()
32889{
32890float f; std::isnan(f);
32891 ;
32892 return 0;
32893}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032894_ACEOF
32895rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032896if { (ac_try="$ac_compile"
32897case "(($ac_try" in
32898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32899 *) ac_try_echo=$ac_try;;
32900esac
32901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32902 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032904 grep -v '^ *+' conftest.er1 >conftest.err
32905 rm -f conftest.er1
32906 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032908 (exit $ac_status); } &&
32909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32910 { (case "(($ac_try" in
32911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32912 *) ac_try_echo=$ac_try;;
32913esac
32914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32915 (eval "$ac_try") 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; } &&
32919 { ac_try='test -s conftest.$ac_objext'
32920 { (case "(($ac_try" in
32921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32922 *) ac_try_echo=$ac_try;;
32923esac
32924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32925 (eval "$ac_try") 2>&5
32926 ac_status=$?
32927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32928 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032929 ac_cv_func_std_isnan_in_cmath=yes
32930else
32931 echo "$as_me: failed program was:" >&5
32932sed 's/^/| /' conftest.$ac_ext >&5
32933
Reid Spencera773bd52006-08-04 18:18:08 +000032934 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032935fi
Reid Spencera773bd52006-08-04 18:18:08 +000032936
32937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032938 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032939ac_cpp='$CPP $CPPFLAGS'
32940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32942ac_compiler_gnu=$ac_cv_c_compiler_gnu
32943
32944fi
Reid Spencera773bd52006-08-04 18:18:08 +000032945{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32946echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032947
32948if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032949
32950cat >>confdefs.h <<\_ACEOF
32951#define HAVE_STD_ISNAN_IN_CMATH 1
32952_ACEOF
32953
Reid Spencerabec8f92004-10-27 23:03:44 +000032954fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032955
32956
Reid Spencera773bd52006-08-04 18:18:08 +000032957{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32958echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032959if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961else
Reid Spencera773bd52006-08-04 18:18:08 +000032962 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032963ac_cpp='$CXXCPP $CPPFLAGS'
32964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32967
Reid Spencerabec8f92004-10-27 23:03:44 +000032968 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032969/* confdefs.h. */
32970_ACEOF
32971cat confdefs.h >>conftest.$ac_ext
32972cat >>conftest.$ac_ext <<_ACEOF
32973/* end confdefs.h. */
32974#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032975int
32976main ()
32977{
32978float f; isinf(f);
32979 ;
32980 return 0;
32981}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032982_ACEOF
32983rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032984if { (ac_try="$ac_compile"
32985case "(($ac_try" in
32986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987 *) ac_try_echo=$ac_try;;
32988esac
32989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032991 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032992 grep -v '^ *+' conftest.er1 >conftest.err
32993 rm -f conftest.er1
32994 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000032996 (exit $ac_status); } &&
32997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32998 { (case "(($ac_try" in
32999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000 *) ac_try_echo=$ac_try;;
33001esac
33002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003 (eval "$ac_try") 2>&5
33004 ac_status=$?
33005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006 (exit $ac_status); }; } &&
33007 { ac_try='test -s conftest.$ac_objext'
33008 { (case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33011esac
33012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_try") 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033017 ac_cv_func_isinf_in_math_h=yes
33018else
33019 echo "$as_me: failed program was:" >&5
33020sed 's/^/| /' conftest.$ac_ext >&5
33021
Reid Spencera773bd52006-08-04 18:18:08 +000033022 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033023fi
Reid Spencera773bd52006-08-04 18:18:08 +000033024
33025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033026 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033027ac_cpp='$CPP $CPPFLAGS'
33028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33030ac_compiler_gnu=$ac_cv_c_compiler_gnu
33031
33032fi
Reid Spencera773bd52006-08-04 18:18:08 +000033033{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33034echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033035
33036if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033037
33038cat >>confdefs.h <<\_ACEOF
33039#define HAVE_ISINF_IN_MATH_H 1
33040_ACEOF
33041
Reid Spencerabec8f92004-10-27 23:03:44 +000033042fi
33043
Reid Spencera773bd52006-08-04 18:18:08 +000033044{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33045echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033046if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33048else
Reid Spencera773bd52006-08-04 18:18:08 +000033049 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033050ac_cpp='$CXXCPP $CPPFLAGS'
33051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33054
Reid Spencerabec8f92004-10-27 23:03:44 +000033055 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033056/* confdefs.h. */
33057_ACEOF
33058cat confdefs.h >>conftest.$ac_ext
33059cat >>conftest.$ac_ext <<_ACEOF
33060/* end confdefs.h. */
33061#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033062int
33063main ()
33064{
33065float f; isinf(f);
33066 ;
33067 return 0;
33068}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033069_ACEOF
33070rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033071if { (ac_try="$ac_compile"
33072case "(($ac_try" in
33073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074 *) ac_try_echo=$ac_try;;
33075esac
33076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33077 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033078 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033079 grep -v '^ *+' conftest.er1 >conftest.err
33080 rm -f conftest.er1
33081 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033083 (exit $ac_status); } &&
33084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33085 { (case "(($ac_try" in
33086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33087 *) ac_try_echo=$ac_try;;
33088esac
33089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33090 (eval "$ac_try") 2>&5
33091 ac_status=$?
33092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 (exit $ac_status); }; } &&
33094 { ac_try='test -s conftest.$ac_objext'
33095 { (case "(($ac_try" in
33096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33097 *) ac_try_echo=$ac_try;;
33098esac
33099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33100 (eval "$ac_try") 2>&5
33101 ac_status=$?
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033104 ac_cv_func_isinf_in_cmath=yes
33105else
33106 echo "$as_me: failed program was:" >&5
33107sed 's/^/| /' conftest.$ac_ext >&5
33108
Reid Spencera773bd52006-08-04 18:18:08 +000033109 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033110fi
Reid Spencera773bd52006-08-04 18:18:08 +000033111
33112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033113 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033114ac_cpp='$CPP $CPPFLAGS'
33115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33117ac_compiler_gnu=$ac_cv_c_compiler_gnu
33118
33119fi
Reid Spencera773bd52006-08-04 18:18:08 +000033120{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33121echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033122
33123if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033124
33125cat >>confdefs.h <<\_ACEOF
33126#define HAVE_ISINF_IN_CMATH 1
33127_ACEOF
33128
Reid Spencerabec8f92004-10-27 23:03:44 +000033129fi
33130
Reid Spencera773bd52006-08-04 18:18:08 +000033131{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33132echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033133if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33134 echo $ECHO_N "(cached) $ECHO_C" >&6
33135else
Reid Spencera773bd52006-08-04 18:18:08 +000033136 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033137ac_cpp='$CXXCPP $CPPFLAGS'
33138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33141
Reid Spencerabec8f92004-10-27 23:03:44 +000033142 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033143/* confdefs.h. */
33144_ACEOF
33145cat confdefs.h >>conftest.$ac_ext
33146cat >>conftest.$ac_ext <<_ACEOF
33147/* end confdefs.h. */
33148#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033149int
33150main ()
33151{
33152float f; std::isinf(f)}
33153 ;
33154 return 0;
33155}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033156_ACEOF
33157rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033158if { (ac_try="$ac_compile"
33159case "(($ac_try" in
33160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33161 *) ac_try_echo=$ac_try;;
33162esac
33163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33164 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033166 grep -v '^ *+' conftest.er1 >conftest.err
33167 rm -f conftest.er1
33168 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033170 (exit $ac_status); } &&
33171 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33172 { (case "(($ac_try" in
33173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33174 *) ac_try_echo=$ac_try;;
33175esac
33176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33177 (eval "$ac_try") 2>&5
33178 ac_status=$?
33179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33180 (exit $ac_status); }; } &&
33181 { ac_try='test -s conftest.$ac_objext'
33182 { (case "(($ac_try" in
33183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33184 *) ac_try_echo=$ac_try;;
33185esac
33186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33187 (eval "$ac_try") 2>&5
33188 ac_status=$?
33189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33190 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033191 ac_cv_func_std_isinf_in_cmath=yes
33192else
33193 echo "$as_me: failed program was:" >&5
33194sed 's/^/| /' conftest.$ac_ext >&5
33195
Reid Spencera773bd52006-08-04 18:18:08 +000033196 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033197fi
Reid Spencera773bd52006-08-04 18:18:08 +000033198
33199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033200 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033201ac_cpp='$CPP $CPPFLAGS'
33202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33204ac_compiler_gnu=$ac_cv_c_compiler_gnu
33205
33206fi
Reid Spencera773bd52006-08-04 18:18:08 +000033207{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33208echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033209
33210if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033211
33212cat >>confdefs.h <<\_ACEOF
33213#define HAVE_STD_ISINF_IN_CMATH 1
33214_ACEOF
33215
Reid Spencerabec8f92004-10-27 23:03:44 +000033216fi
33217
Reid Spencera773bd52006-08-04 18:18:08 +000033218{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33219echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033220if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33221 echo $ECHO_N "(cached) $ECHO_C" >&6
33222else
Reid Spencera773bd52006-08-04 18:18:08 +000033223 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033224ac_cpp='$CXXCPP $CPPFLAGS'
33225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33228
Reid Spencerabec8f92004-10-27 23:03:44 +000033229 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033230/* confdefs.h. */
33231_ACEOF
33232cat confdefs.h >>conftest.$ac_ext
33233cat >>conftest.$ac_ext <<_ACEOF
33234/* end confdefs.h. */
33235#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033236int
33237main ()
33238{
33239float f; finite(f);
33240 ;
33241 return 0;
33242}
Brian Gaeked59a6472004-07-21 03:33:58 +000033243_ACEOF
33244rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033245if { (ac_try="$ac_compile"
33246case "(($ac_try" in
33247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248 *) ac_try_echo=$ac_try;;
33249esac
33250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33251 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033253 grep -v '^ *+' conftest.er1 >conftest.err
33254 rm -f conftest.er1
33255 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033257 (exit $ac_status); } &&
33258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33259 { (case "(($ac_try" in
33260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33261 *) ac_try_echo=$ac_try;;
33262esac
33263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33264 (eval "$ac_try") 2>&5
33265 ac_status=$?
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; } &&
33268 { ac_try='test -s conftest.$ac_objext'
33269 { (case "(($ac_try" in
33270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33271 *) ac_try_echo=$ac_try;;
33272esac
33273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33274 (eval "$ac_try") 2>&5
33275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033278 ac_cv_func_finite_in_ieeefp_h=yes
33279else
33280 echo "$as_me: failed program was:" >&5
33281sed 's/^/| /' conftest.$ac_ext >&5
33282
Reid Spencera773bd52006-08-04 18:18:08 +000033283 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033284fi
Reid Spencera773bd52006-08-04 18:18:08 +000033285
33286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033287 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033288ac_cpp='$CPP $CPPFLAGS'
33289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33291ac_compiler_gnu=$ac_cv_c_compiler_gnu
33292
33293fi
Reid Spencera773bd52006-08-04 18:18:08 +000033294{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33295echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033296
Brian Gaeke6802b552004-10-28 05:06:45 +000033297if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033298
33299cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033300#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033301_ACEOF
33302
Reid Spencerabec8f92004-10-27 23:03:44 +000033303fi
33304
33305
33306
Reid Spencer30fe5262007-01-20 07:48:49 +000033307if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033308
33309
33310for ac_header in stdlib.h unistd.h
33311do
33312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033317 echo $ECHO_N "(cached) $ECHO_C" >&6
33318fi
Reid Spencera773bd52006-08-04 18:18:08 +000033319ac_res=`eval echo '${'$as_ac_Header'}'`
33320 { echo "$as_me:$LINENO: result: $ac_res" >&5
33321echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033322else
33323 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033326cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033327/* confdefs.h. */
33328_ACEOF
33329cat confdefs.h >>conftest.$ac_ext
33330cat >>conftest.$ac_ext <<_ACEOF
33331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033332$ac_includes_default
33333#include <$ac_header>
33334_ACEOF
33335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033336if { (ac_try="$ac_compile"
33337case "(($ac_try" in
33338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33339 *) ac_try_echo=$ac_try;;
33340esac
33341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33342 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033344 grep -v '^ *+' conftest.er1 >conftest.err
33345 rm -f conftest.er1
33346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033348 (exit $ac_status); } &&
33349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33350 { (case "(($ac_try" in
33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33352 *) ac_try_echo=$ac_try;;
33353esac
33354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33355 (eval "$ac_try") 2>&5
33356 ac_status=$?
33357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33358 (exit $ac_status); }; } &&
33359 { ac_try='test -s conftest.$ac_objext'
33360 { (case "(($ac_try" in
33361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33362 *) ac_try_echo=$ac_try;;
33363esac
33364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33365 (eval "$ac_try") 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033369 ac_header_compiler=yes
33370else
33371 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033372sed 's/^/| /' conftest.$ac_ext >&5
33373
Reid Spencera773bd52006-08-04 18:18:08 +000033374 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033375fi
Reid Spencera773bd52006-08-04 18:18:08 +000033376
33377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33379echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033380
33381# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033384cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033385/* confdefs.h. */
33386_ACEOF
33387cat confdefs.h >>conftest.$ac_ext
33388cat >>conftest.$ac_ext <<_ACEOF
33389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033390#include <$ac_header>
33391_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033392if { (ac_try="$ac_cpp conftest.$ac_ext"
33393case "(($ac_try" in
33394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33395 *) ac_try_echo=$ac_try;;
33396esac
33397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033399 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033400 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033401 rm -f conftest.er1
33402 cat conftest.err >&5
33403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033404 (exit $ac_status); } >/dev/null; then
33405 if test -s conftest.err; then
33406 ac_cpp_err=$ac_c_preproc_warn_flag
33407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33408 else
33409 ac_cpp_err=
33410 fi
33411else
33412 ac_cpp_err=yes
33413fi
33414if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033415 ac_header_preproc=yes
33416else
33417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033418sed 's/^/| /' conftest.$ac_ext >&5
33419
John Criswell7a73b802003-06-30 21:59:07 +000033420 ac_header_preproc=no
33421fi
Reid Spencera773bd52006-08-04 18:18:08 +000033422
John Criswell7a73b802003-06-30 21:59:07 +000033423rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33425echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033426
33427# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33429 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33434 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033435 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033436 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033449 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033450## ----------------------------------- ##
33451## Report this to llvmbugs@cs.uiuc.edu ##
33452## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033453_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033454 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033455 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033456esac
Reid Spencera773bd52006-08-04 18:18:08 +000033457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033460 echo $ECHO_N "(cached) $ECHO_C" >&6
33461else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033462 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033463fi
Reid Spencera773bd52006-08-04 18:18:08 +000033464ac_res=`eval echo '${'$as_ac_Header'}'`
33465 { echo "$as_me:$LINENO: result: $ac_res" >&5
33466echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033467
33468fi
33469if test `eval echo '${'$as_ac_Header'}'` = yes; then
33470 cat >>confdefs.h <<_ACEOF
33471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33472_ACEOF
33473
33474fi
33475
33476done
33477
33478
33479for ac_func in getpagesize
33480do
33481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033482{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33484if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033485 echo $ECHO_N "(cached) $ECHO_C" >&6
33486else
33487 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033488/* confdefs.h. */
33489_ACEOF
33490cat confdefs.h >>conftest.$ac_ext
33491cat >>conftest.$ac_ext <<_ACEOF
33492/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33495#define $ac_func innocuous_$ac_func
33496
John Criswell7a73b802003-06-30 21:59:07 +000033497/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033498 which can conflict with char $ac_func (); below.
33499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33500 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033501
John Criswell0c38eaf2003-09-10 15:17:25 +000033502#ifdef __STDC__
33503# include <limits.h>
33504#else
33505# include <assert.h>
33506#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033507
33508#undef $ac_func
33509
Reid Spencera773bd52006-08-04 18:18:08 +000033510/* Override any GCC internal prototype to avoid an error.
33511 Use char because int might match the return type of a GCC
33512 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033513#ifdef __cplusplus
33514extern "C"
33515#endif
John Criswell7a73b802003-06-30 21:59:07 +000033516char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033517/* The GNU C library defines this for functions which it implements
33518 to always fail with ENOSYS. Some functions are actually named
33519 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033520#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033521choke me
John Criswell7a73b802003-06-30 21:59:07 +000033522#endif
33523
John Criswell0c38eaf2003-09-10 15:17:25 +000033524int
33525main ()
33526{
Reid Spencera773bd52006-08-04 18:18:08 +000033527return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033528 ;
33529 return 0;
33530}
33531_ACEOF
33532rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033533if { (ac_try="$ac_link"
33534case "(($ac_try" in
33535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33536 *) ac_try_echo=$ac_try;;
33537esac
33538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33539 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033541 grep -v '^ *+' conftest.er1 >conftest.err
33542 rm -f conftest.er1
33543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033545 (exit $ac_status); } &&
33546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33547 { (case "(($ac_try" in
33548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33549 *) ac_try_echo=$ac_try;;
33550esac
33551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33552 (eval "$ac_try") 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest$ac_exeext'
33557 { (case "(($ac_try" in
33558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33559 *) ac_try_echo=$ac_try;;
33560esac
33561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33562 (eval "$ac_try") 2>&5
33563 ac_status=$?
33564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33565 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033566 eval "$as_ac_var=yes"
33567else
33568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033569sed 's/^/| /' conftest.$ac_ext >&5
33570
Reid Spencera773bd52006-08-04 18:18:08 +000033571 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033572fi
Reid Spencera773bd52006-08-04 18:18:08 +000033573
Tanya Lattnercf067672008-01-17 05:57:22 +000033574rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033575 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033576fi
Reid Spencera773bd52006-08-04 18:18:08 +000033577ac_res=`eval echo '${'$as_ac_var'}'`
33578 { echo "$as_me:$LINENO: result: $ac_res" >&5
33579echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033580if test `eval echo '${'$as_ac_var'}'` = yes; then
33581 cat >>confdefs.h <<_ACEOF
33582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33583_ACEOF
33584
33585fi
33586done
33587
Reid Spencera773bd52006-08-04 18:18:08 +000033588{ echo "$as_me:$LINENO: checking for working mmap" >&5
33589echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033590if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33592else
33593 if test "$cross_compiling" = yes; then
33594 ac_cv_func_mmap_fixed_mapped=no
33595else
33596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033597/* confdefs.h. */
33598_ACEOF
33599cat confdefs.h >>conftest.$ac_ext
33600cat >>conftest.$ac_ext <<_ACEOF
33601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033602$ac_includes_default
33603/* malloc might have been renamed as rpl_malloc. */
33604#undef malloc
33605
33606/* Thanks to Mike Haertel and Jim Avera for this test.
33607 Here is a matrix of mmap possibilities:
33608 mmap private not fixed
33609 mmap private fixed at somewhere currently unmapped
33610 mmap private fixed at somewhere already mapped
33611 mmap shared not fixed
33612 mmap shared fixed at somewhere currently unmapped
33613 mmap shared fixed at somewhere already mapped
33614 For private mappings, we should verify that changes cannot be read()
33615 back from the file, nor mmap's back from the file at a different
33616 address. (There have been systems where private was not correctly
33617 implemented like the infamous i386 svr4.0, and systems where the
33618 VM page cache was not coherent with the file system buffer cache
33619 like early versions of FreeBSD and possibly contemporary NetBSD.)
33620 For shared mappings, we should conversely verify that changes get
33621 propagated back to all the places they're supposed to be.
33622
33623 Grep wants private fixed already mapped.
33624 The main things grep needs to know about mmap are:
33625 * does it exist and is it safe to write into the mmap'd area
33626 * how to use it (BSD variants) */
33627
33628#include <fcntl.h>
33629#include <sys/mman.h>
33630
Tanya Lattnercf067672008-01-17 05:57:22 +000033631#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033632char *malloc ();
33633#endif
33634
33635/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033636#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033637/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnercf067672008-01-17 05:57:22 +000033638# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033639# define HAVE_SYS_PARAM_H 1
33640# endif
33641
33642# ifdef _SC_PAGESIZE
33643# define getpagesize() sysconf(_SC_PAGESIZE)
33644# else /* no _SC_PAGESIZE */
Tanya Lattnercf067672008-01-17 05:57:22 +000033645# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033646# include <sys/param.h>
33647# ifdef EXEC_PAGESIZE
33648# define getpagesize() EXEC_PAGESIZE
33649# else /* no EXEC_PAGESIZE */
33650# ifdef NBPG
33651# define getpagesize() NBPG * CLSIZE
33652# ifndef CLSIZE
33653# define CLSIZE 1
33654# endif /* no CLSIZE */
33655# else /* no NBPG */
33656# ifdef NBPC
33657# define getpagesize() NBPC
33658# else /* no NBPC */
33659# ifdef PAGESIZE
33660# define getpagesize() PAGESIZE
33661# endif /* PAGESIZE */
33662# endif /* no NBPC */
33663# endif /* no NBPG */
33664# endif /* no EXEC_PAGESIZE */
33665# else /* no HAVE_SYS_PARAM_H */
33666# define getpagesize() 8192 /* punt totally */
33667# endif /* no HAVE_SYS_PARAM_H */
33668# endif /* no _SC_PAGESIZE */
33669
33670#endif /* no HAVE_GETPAGESIZE */
33671
33672int
33673main ()
33674{
33675 char *data, *data2, *data3;
33676 int i, pagesize;
33677 int fd;
33678
33679 pagesize = getpagesize ();
33680
33681 /* First, make a file with some known garbage in it. */
33682 data = (char *) malloc (pagesize);
33683 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033684 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033685 for (i = 0; i < pagesize; ++i)
33686 *(data + i) = rand ();
33687 umask (0);
33688 fd = creat ("conftest.mmap", 0600);
33689 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033690 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033691 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033692 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033693 close (fd);
33694
33695 /* Next, try to mmap the file at a fixed address which already has
33696 something else allocated at it. If we can, also make sure that
33697 we see the same garbage. */
33698 fd = open ("conftest.mmap", O_RDWR);
33699 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033700 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033701 data2 = (char *) malloc (2 * pagesize);
33702 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033703 return 1;
33704 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033705 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033706 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033707 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033708 for (i = 0; i < pagesize; ++i)
33709 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033710 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033711
33712 /* Finally, make sure that changes to the mapped area do not
33713 percolate back to the file as seen by read(). (This is a bug on
33714 some variants of i386 svr4.0.) */
33715 for (i = 0; i < pagesize; ++i)
33716 *(data2 + i) = *(data2 + i) + 1;
33717 data3 = (char *) malloc (pagesize);
33718 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033719 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033720 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033721 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033722 for (i = 0; i < pagesize; ++i)
33723 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033724 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033725 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033726 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033727}
33728_ACEOF
33729rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033730if { (ac_try="$ac_link"
33731case "(($ac_try" in
33732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33733 *) ac_try_echo=$ac_try;;
33734esac
33735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33736 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033737 ac_status=$?
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033740 { (case "(($ac_try" in
33741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33742 *) ac_try_echo=$ac_try;;
33743esac
33744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33745 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
33749 ac_cv_func_mmap_fixed_mapped=yes
33750else
33751 echo "$as_me: program exited with status $ac_status" >&5
33752echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033753sed 's/^/| /' conftest.$ac_ext >&5
33754
John Criswell7a73b802003-06-30 21:59:07 +000033755( exit $ac_status )
33756ac_cv_func_mmap_fixed_mapped=no
33757fi
Reid Spencera773bd52006-08-04 18:18:08 +000033758rm -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 +000033759fi
Reid Spencera773bd52006-08-04 18:18:08 +000033760
33761
John Criswell7a73b802003-06-30 21:59:07 +000033762fi
Reid Spencera773bd52006-08-04 18:18:08 +000033763{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33764echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033765if test $ac_cv_func_mmap_fixed_mapped = yes; then
33766
33767cat >>confdefs.h <<\_ACEOF
33768#define HAVE_MMAP 1
33769_ACEOF
33770
33771fi
33772rm -f conftest.mmap
33773
Reid Spencer30fe5262007-01-20 07:48:49 +000033774 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033775echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033776if test "${ac_cv_func_mmap_file+set}" = set; then
33777 echo $ECHO_N "(cached) $ECHO_C" >&6
33778else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033779 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033780ac_cpp='$CPP $CPPFLAGS'
33781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33783ac_compiler_gnu=$ac_cv_c_compiler_gnu
33784
33785 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033786 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033787else
33788 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033789
Reid Spencer777ce172004-09-20 04:09:56 +000033790 /* confdefs.h. */
33791_ACEOF
33792cat confdefs.h >>conftest.$ac_ext
33793cat >>conftest.$ac_ext <<_ACEOF
33794/* end confdefs.h. */
33795
John Criswell7a73b802003-06-30 21:59:07 +000033796#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033797#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033798#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033799
33800int
33801main ()
33802{
John Criswell7a73b802003-06-30 21:59:07 +000033803
33804 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033805 fd = creat ("foo",0777);
33806 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33807 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033808 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033809 ;
33810 return 0;
33811}
John Criswell7a73b802003-06-30 21:59:07 +000033812_ACEOF
33813rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033814if { (ac_try="$ac_link"
33815case "(($ac_try" in
33816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33817 *) ac_try_echo=$ac_try;;
33818esac
33819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33820 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033821 ac_status=$?
33822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033824 { (case "(($ac_try" in
33825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33826 *) ac_try_echo=$ac_try;;
33827esac
33828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33829 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033830 ac_status=$?
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); }; }; then
33833 ac_cv_func_mmap_file=yes
33834else
33835 echo "$as_me: program exited with status $ac_status" >&5
33836echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033837sed 's/^/| /' conftest.$ac_ext >&5
33838
John Criswell7a73b802003-06-30 21:59:07 +000033839( exit $ac_status )
33840ac_cv_func_mmap_file=no
33841fi
Reid Spencera773bd52006-08-04 18:18:08 +000033842rm -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 +000033843fi
Reid Spencera773bd52006-08-04 18:18:08 +000033844
33845
John Criswell7a73b802003-06-30 21:59:07 +000033846 ac_ext=c
33847ac_cpp='$CPP $CPPFLAGS'
33848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33850ac_compiler_gnu=$ac_cv_c_compiler_gnu
33851
33852
33853fi
Reid Spencera773bd52006-08-04 18:18:08 +000033854{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33855echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033856if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033857
33858cat >>confdefs.h <<\_ACEOF
33859#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033860_ACEOF
33861
33862 MMAP_FILE=yes
33863
33864fi
33865
Reid Spencer30fe5262007-01-20 07:48:49 +000033866 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033867echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033868if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33870else
Reid Spencer582a23c2004-12-29 07:07:57 +000033871 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033872 ac_cv_need_dev_zero_for_mmap=yes
33873 else
33874 ac_cv_need_dev_zero_for_mmap=no
33875 fi
33876
33877fi
Reid Spencera773bd52006-08-04 18:18:08 +000033878{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33879echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033880if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33881
33882cat >>confdefs.h <<\_ACEOF
33883#define NEED_DEV_ZERO_FOR_MMAP 1
33884_ACEOF
33885
33886fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033887
Reid Spencer30fe5262007-01-20 07:48:49 +000033888 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33889 then
33890 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033891echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033892 fi
33893 if test "$ac_cv_func_mmap_file" = "no"
33894 then
33895 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033896echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033897 fi
John Criswellb13092b2003-07-22 21:00:24 +000033898fi
John Criswell7a73b802003-06-30 21:59:07 +000033899
33900
Reid Spencer9372f152007-07-30 20:13:24 +000033901
33902for ac_func in __dso_handle
33903do
33904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33905{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33907if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33909else
33910 cat >conftest.$ac_ext <<_ACEOF
33911/* confdefs.h. */
33912_ACEOF
33913cat confdefs.h >>conftest.$ac_ext
33914cat >>conftest.$ac_ext <<_ACEOF
33915/* end confdefs.h. */
33916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33918#define $ac_func innocuous_$ac_func
33919
33920/* System header to define __stub macros and hopefully few prototypes,
33921 which can conflict with char $ac_func (); below.
33922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33923 <limits.h> exists even on freestanding compilers. */
33924
33925#ifdef __STDC__
33926# include <limits.h>
33927#else
33928# include <assert.h>
33929#endif
33930
33931#undef $ac_func
33932
33933/* Override any GCC internal prototype to avoid an error.
33934 Use char because int might match the return type of a GCC
33935 builtin and then its argument prototype would still apply. */
33936#ifdef __cplusplus
33937extern "C"
33938#endif
33939char $ac_func ();
33940/* The GNU C library defines this for functions which it implements
33941 to always fail with ENOSYS. Some functions are actually named
33942 something starting with __ and the normal name is an alias. */
33943#if defined __stub_$ac_func || defined __stub___$ac_func
33944choke me
33945#endif
33946
33947int
33948main ()
33949{
33950return $ac_func ();
33951 ;
33952 return 0;
33953}
33954_ACEOF
33955rm -f conftest.$ac_objext conftest$ac_exeext
33956if { (ac_try="$ac_link"
33957case "(($ac_try" in
33958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33959 *) ac_try_echo=$ac_try;;
33960esac
33961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33962 (eval "$ac_link") 2>conftest.er1
33963 ac_status=$?
33964 grep -v '^ *+' conftest.er1 >conftest.err
33965 rm -f conftest.er1
33966 cat conftest.err >&5
33967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnercf067672008-01-17 05:57:22 +000033968 (exit $ac_status); } &&
33969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33970 { (case "(($ac_try" in
33971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33972 *) ac_try_echo=$ac_try;;
33973esac
33974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33975 (eval "$ac_try") 2>&5
33976 ac_status=$?
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); }; } &&
33979 { ac_try='test -s conftest$ac_exeext'
33980 { (case "(($ac_try" in
33981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33982 *) ac_try_echo=$ac_try;;
33983esac
33984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33985 (eval "$ac_try") 2>&5
33986 ac_status=$?
33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33988 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033989 eval "$as_ac_var=yes"
33990else
33991 echo "$as_me: failed program was:" >&5
33992sed 's/^/| /' conftest.$ac_ext >&5
33993
33994 eval "$as_ac_var=no"
33995fi
33996
Tanya Lattnercf067672008-01-17 05:57:22 +000033997rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033998 conftest$ac_exeext conftest.$ac_ext
33999fi
34000ac_res=`eval echo '${'$as_ac_var'}'`
34001 { echo "$as_me:$LINENO: result: $ac_res" >&5
34002echo "${ECHO_T}$ac_res" >&6; }
34003if test `eval echo '${'$as_ac_var'}'` = yes; then
34004 cat >>confdefs.h <<_ACEOF
34005#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34006_ACEOF
34007
34008fi
34009done
34010
34011
Reid Spencera773bd52006-08-04 18:18:08 +000034012{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34013echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034014if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34015 echo $ECHO_N "(cached) $ECHO_C" >&6
34016else
34017 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034018if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034019 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034020 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34021 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034022 if test $? -eq 0 ; then
34023 llvm_cv_llvmgcc_sanity="yes"
34024 fi
34025 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034026fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034027fi
Reid Spencera773bd52006-08-04 18:18:08 +000034028{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34029echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034030
34031if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034032 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34033echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034034 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034035 LLVMCC1=$llvmcc1path
34036
Reid Spencer502935f2004-12-22 05:56:56 +000034037 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034038 LLVMCC1PLUS=$llvmcc1pluspath
34039
Reid Spencer502935f2004-12-22 05:56:56 +000034040 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34041 LLVMGCCDIR=$llvmgccdir
34042
Reid Spencer282d8c12006-12-21 22:55:41 +000034043 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34044 LLVMGCCLIBEXEC=$llvmgcclibexec
34045
Reid Spencerb5d75b82006-05-09 00:31:01 +000034046 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034047 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34048 LLVMGCC_VERSION=$llvmgccversion
34049
34050 LLVMGCC_MAJVERS=$llvmgccmajvers
34051
Reid Spencer0d238182007-04-21 21:28:52 +000034052 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ -]*\).*/\1/'`
34053 LLVMGCC_LANGS=$llvmgcclangs
34054
34055 { echo "$as_me:$LINENO: result: ok" >&5
34056echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034057fi
34058
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034059SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034060
34061
Reid Spencere9de0912004-08-20 09:03:57 +000034062# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034063# information into substitutions that will end up in Makefile.config.in
34064# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034065if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034066 prefix="/usr/local"
34067fi
Reid Spencere9de0912004-08-20 09:03:57 +000034068eval LLVM_PREFIX="${prefix}";
34069eval LLVM_BINDIR="${prefix}/bin";
34070eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034071eval LLVM_DATADIR="${prefix}/share/llvm";
34072eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34073eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034074eval LLVM_INCLUDEDIR="${prefix}/include";
34075eval LLVM_INFODIR="${prefix}/info";
34076eval LLVM_MANDIR="${prefix}/man";
34077LLVM_CONFIGTIME=`date`
34078
34079
34080
34081
34082
34083
34084
34085
34086
34087
34088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034089# Place the various directores into the config.h file as #defines so that we
34090# can know about the installation paths within LLVM.
34091
Reid Spencere9de0912004-08-20 09:03:57 +000034092cat >>confdefs.h <<_ACEOF
34093#define LLVM_PREFIX "$LLVM_PREFIX"
34094_ACEOF
34095
34096
34097cat >>confdefs.h <<_ACEOF
34098#define LLVM_BINDIR "$LLVM_BINDIR"
34099_ACEOF
34100
34101
34102cat >>confdefs.h <<_ACEOF
34103#define LLVM_LIBDIR "$LLVM_LIBDIR"
34104_ACEOF
34105
34106
34107cat >>confdefs.h <<_ACEOF
34108#define LLVM_DATADIR "$LLVM_DATADIR"
34109_ACEOF
34110
34111
34112cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034113#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034114_ACEOF
34115
34116
34117cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034118#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034119_ACEOF
34120
34121
34122cat >>confdefs.h <<_ACEOF
34123#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34124_ACEOF
34125
34126
34127cat >>confdefs.h <<_ACEOF
34128#define LLVM_INFODIR "$LLVM_INFODIR"
34129_ACEOF
34130
34131
34132cat >>confdefs.h <<_ACEOF
34133#define LLVM_MANDIR "$LLVM_MANDIR"
34134_ACEOF
34135
34136
34137cat >>confdefs.h <<_ACEOF
34138#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34139_ACEOF
34140
34141
Eric Christopher790e11c2007-12-01 00:34:39 +000034142cat >>confdefs.h <<_ACEOF
34143#define LLVM_HOSTTRIPLE "$host"
34144_ACEOF
34145
34146
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034147# Determine which bindings to build.
34148if test "$BINDINGS_TO_BUILD" = auto ; then
34149 BINDINGS_TO_BUILD=""
34150 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34151 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34152 fi
34153fi
34154BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34155
34156
34157# This isn't really configurey, but it avoids having to repeat the list in
34158# other files.
34159ALL_BINDINGS=ocaml
34160
34161
Gordon Henriksenf0915682007-10-02 16:42:22 +000034162# Do any work necessary to ensure that bindings have what they need.
34163binding_prereqs_failed=0
34164for a_binding in $BINDINGS_TO_BUILD ; do
34165 case "$a_binding" in
34166 ocaml)
34167 if test "x$OCAMLC" = x ; then
34168 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34169echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34170 binding_prereqs_failed=1
34171 fi
34172 if test "x$OCAMLDEP" = x ; then
34173 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34174echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34175 binding_prereqs_failed=1
34176 fi
34177 if test "x$OCAMLOPT" = x ; then
34178 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34179echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34180 fi
34181 if test "x$with_ocaml_libdir" != xauto ; then
34182 OCAML_LIBDIR=$with_ocaml_libdir
34183
34184 else
34185 ocaml_stdlib="`"$OCAMLC" -where`"
34186 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34187 then
34188 # ocaml stdlib is beneath our prefix; use stdlib
34189 OCAML_LIBDIR=$ocaml_stdlib
34190
34191 else
34192 # ocaml stdlib is outside our prefix; use libdir/ocaml
34193 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34194
34195 fi
34196 fi
34197 ;;
34198 esac
34199done
34200if test "$binding_prereqs_failed" = 1 ; then
34201 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34202echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34203 { (exit 1); exit 1; }; }
34204fi
34205
34206
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034207
Reid Spencera773bd52006-08-04 18:18:08 +000034208ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034209
Reid Spencera773bd52006-08-04 18:18:08 +000034210ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034211
Reid Spencera773bd52006-08-04 18:18:08 +000034212ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034213
Reid Spencera773bd52006-08-04 18:18:08 +000034214ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034215
Reid Spencera773bd52006-08-04 18:18:08 +000034216ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034217
34218
Reid Spencera773bd52006-08-04 18:18:08 +000034219ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034220
34221
Reid Spencerea949cf2006-08-16 00:45:38 +000034222ac_config_files="$ac_config_files llvm.spec"
34223
34224
Reid Spencera773bd52006-08-04 18:18:08 +000034225ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034226
34227
Reid Spencera773bd52006-08-04 18:18:08 +000034228ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034229
34230
Reid Spencera773bd52006-08-04 18:18:08 +000034231ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034232
Reid Spencera773bd52006-08-04 18:18:08 +000034233ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034234
34235
Reid Spencera773bd52006-08-04 18:18:08 +000034236ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034237
34238
Reid Spencera773bd52006-08-04 18:18:08 +000034239ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034240
34241
Reid Spencera773bd52006-08-04 18:18:08 +000034242ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034243
34244
Reid Spencer8b2e1412006-11-17 03:32:33 +000034245ac_config_commands="$ac_config_commands runtime/Makefile"
34246
34247
Reid Spencera773bd52006-08-04 18:18:08 +000034248ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034249
34250
Reid Spencera773bd52006-08-04 18:18:08 +000034251ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034252
34253
Reid Spencera773bd52006-08-04 18:18:08 +000034254ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034255
34256
Reid Spencera773bd52006-08-04 18:18:08 +000034257ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034258
34259
Reid Spencera773bd52006-08-04 18:18:08 +000034260ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034261
34262
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034263ac_config_commands="$ac_config_commands bindings/Makefile"
34264
34265
34266ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34267
34268
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034269
John Criswell7a73b802003-06-30 21:59:07 +000034270cat >confcache <<\_ACEOF
34271# This file is a shell script that caches the results of configure
34272# tests run on this system so they can be shared between configure
34273# scripts and configure runs, see configure's option --config-cache.
34274# It is not useful on other systems. If it contains results you don't
34275# want to keep, you may remove or edit it.
34276#
34277# config.status only pays attention to the cache file if you give it
34278# the --recheck option to rerun configure.
34279#
John Criswell0c38eaf2003-09-10 15:17:25 +000034280# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034281# loading this file, other *unset* `ac_cv_foo' will be assigned the
34282# following values.
34283
34284_ACEOF
34285
34286# The following way of writing the cache mishandles newlines in values,
34287# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034288# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034289# Ultrix sh set writes to stderr and can't be redirected directly,
34290# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034291(
34292 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34293 eval ac_val=\$$ac_var
34294 case $ac_val in #(
34295 *${as_nl}*)
34296 case $ac_var in #(
34297 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34298echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34299 esac
34300 case $ac_var in #(
34301 _ | IFS | as_nl) ;; #(
34302 *) $as_unset $ac_var ;;
34303 esac ;;
34304 esac
34305 done
34306
John Criswell7a73b802003-06-30 21:59:07 +000034307 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34309 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034310 # `set' does not quote correctly, so add quotes (double-quote
34311 # substitution turns \\\\ into \\, and sed turns \\ into \).
34312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034313 "s/'/'\\\\''/g;
34314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034315 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034316 *)
34317 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034319 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034320 esac |
34321 sort
34322) |
John Criswell7a73b802003-06-30 21:59:07 +000034323 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034324 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034325 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034326 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34328 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34330 :end' >>confcache
34331if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34332 if test -w "$cache_file"; then
34333 test "x$cache_file" != "x/dev/null" &&
34334 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34335echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034336 cat confcache >$cache_file
34337 else
Reid Spencera773bd52006-08-04 18:18:08 +000034338 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34339echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034340 fi
34341fi
34342rm -f confcache
34343
34344test "x$prefix" = xNONE && prefix=$ac_default_prefix
34345# Let make expand exec_prefix.
34346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34347
John Criswell7a73b802003-06-30 21:59:07 +000034348DEFS=-DHAVE_CONFIG_H
34349
John Criswell0c38eaf2003-09-10 15:17:25 +000034350ac_libobjs=
34351ac_ltlibobjs=
34352for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34353 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034354 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34355 ac_i=`echo "$ac_i" | sed "$ac_script"`
34356 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34357 # will be set to the directory where LIBOBJS objects are built.
34358 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34359 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034360done
34361LIBOBJS=$ac_libobjs
34362
34363LTLIBOBJS=$ac_ltlibobjs
34364
34365
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034366if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34367 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34368Usually this means the macro was only invoked conditionally." >&5
34369echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34370Usually this means the macro was only invoked conditionally." >&2;}
34371 { (exit 1); exit 1; }; }
34372fi
34373if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34374 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34375Usually this means the macro was only invoked conditionally." >&5
34376echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34377Usually this means the macro was only invoked conditionally." >&2;}
34378 { (exit 1); exit 1; }; }
34379fi
John Criswell7a73b802003-06-30 21:59:07 +000034380
34381: ${CONFIG_STATUS=./config.status}
34382ac_clean_files_save=$ac_clean_files
34383ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34384{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34385echo "$as_me: creating $CONFIG_STATUS" >&6;}
34386cat >$CONFIG_STATUS <<_ACEOF
34387#! $SHELL
34388# Generated by $as_me.
34389# Run this file to recreate the current configuration.
34390# Compiler output produced by configure, useful for debugging
34391# configure, is in config.log if it exists.
34392
34393debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034394ac_cs_recheck=false
34395ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034396SHELL=\${CONFIG_SHELL-$SHELL}
34397_ACEOF
34398
34399cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034400## --------------------- ##
34401## M4sh Initialization. ##
34402## --------------------- ##
34403
Tanya Lattnercf067672008-01-17 05:57:22 +000034404# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34406 emulate sh
34407 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034408 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34409 # is contrary to our usage. Disable this feature.
34410 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034411 setopt NO_GLOB_SUBST
34412else
Tanya Lattnercf067672008-01-17 05:57:22 +000034413 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034414fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034415BIN_SH=xpg4; export BIN_SH # for Tru64
34416DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034417
John Criswell7a73b802003-06-30 21:59:07 +000034418
Reid Spencera773bd52006-08-04 18:18:08 +000034419# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034420# Avoid depending upon Character Ranges.
34421as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34422as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34423as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34424as_cr_digits='0123456789'
34425as_cr_alnum=$as_cr_Letters$as_cr_digits
34426
34427# The user is always right.
34428if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034429 echo "#! /bin/sh" >conf$$.sh
34430 echo "exit 0" >>conf$$.sh
34431 chmod +x conf$$.sh
34432 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034433 PATH_SEPARATOR=';'
34434 else
34435 PATH_SEPARATOR=:
34436 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034437 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034438fi
34439
Reid Spencera773bd52006-08-04 18:18:08 +000034440# Support unset when possible.
34441if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34442 as_unset=unset
34443else
34444 as_unset=false
34445fi
John Criswell7a73b802003-06-30 21:59:07 +000034446
Reid Spencera773bd52006-08-04 18:18:08 +000034447
34448# IFS
34449# We need space, tab and new line, in precisely that order. Quoting is
34450# there to prevent editors from complaining about space-tab.
34451# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34452# splitting by setting IFS to empty value.)
34453as_nl='
34454'
34455IFS=" "" $as_nl"
34456
34457# Find who we are. Look in the path if we contain no directory separator.
34458case $0 in
34459 *[\\/]* ) as_myself=$0 ;;
34460 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034461for as_dir in $PATH
34462do
34463 IFS=$as_save_IFS
34464 test -z "$as_dir" && as_dir=.
34465 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34466done
Reid Spencera773bd52006-08-04 18:18:08 +000034467IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034468
Reid Spencera773bd52006-08-04 18:18:08 +000034469 ;;
34470esac
34471# We did not find ourselves, most probably we were run as `sh COMMAND'
34472# in which case we are not to be found in the path.
34473if test "x$as_myself" = x; then
34474 as_myself=$0
34475fi
34476if test ! -f "$as_myself"; then
34477 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34478 { (exit 1); exit 1; }
34479fi
34480
34481# Work around bugs in pre-3.0 UWIN ksh.
34482for as_var in ENV MAIL MAILPATH
34483do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34484done
34485PS1='$ '
34486PS2='> '
34487PS4='+ '
34488
34489# NLS nuisances.
34490for as_var in \
34491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34493 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034494do
Reid Spencera773bd52006-08-04 18:18:08 +000034495 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34496 eval $as_var=C; export $as_var
34497 else
34498 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34499 fi
34500done
34501
34502# Required to use basename.
34503if expr a : '\(a\)' >/dev/null 2>&1 &&
34504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34505 as_expr=expr
34506else
34507 as_expr=false
34508fi
34509
34510if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34511 as_basename=basename
34512else
34513 as_basename=false
34514fi
34515
34516
34517# Name of the executable.
34518as_me=`$as_basename -- "$0" ||
34519$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34520 X"$0" : 'X\(//\)$' \| \
34521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34522echo X/"$0" |
34523 sed '/^.*\/\([^/][^/]*\)\/*$/{
34524 s//\1/
34525 q
34526 }
34527 /^X\/\(\/\/\)$/{
34528 s//\1/
34529 q
34530 }
34531 /^X\/\(\/\).*/{
34532 s//\1/
34533 q
34534 }
34535 s/.*/./; q'`
34536
34537# CDPATH.
34538$as_unset CDPATH
34539
34540
34541
John Criswell7a73b802003-06-30 21:59:07 +000034542 as_lineno_1=$LINENO
34543 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034544 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034545 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034546
34547 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34548 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034549 # line-number line after each line using $LINENO; the second 'sed'
34550 # does the real work. The second script uses 'N' to pair each
34551 # line-number line with the line containing $LINENO, and appends
34552 # trailing '-' during substitution so that $LINENO is not a special
34553 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034555 # scripts with optimization help from Paolo Bonzini. Blame Lee
34556 # E. McMahon (1931-1989) for sed's syntax. :-)
34557 sed -n '
34558 p
34559 /[$]LINENO/=
34560 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034561 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034562 s/[$]LINENO.*/&-/
34563 t lineno
34564 b
34565 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034566 N
Reid Spencera773bd52006-08-04 18:18:08 +000034567 :loop
34568 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034569 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034570 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034571 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034572 chmod +x "$as_me.lineno" ||
34573 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034574 { (exit 1); exit 1; }; }
34575
34576 # Don't try to exec as it changes $[0], causing all sort of problems
34577 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034578 # original and so on. Autoconf is especially sensitive to this).
34579 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034580 # Exit status is that of the last command.
34581 exit
34582}
34583
34584
Reid Spencera773bd52006-08-04 18:18:08 +000034585if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34586 as_dirname=dirname
34587else
34588 as_dirname=false
34589fi
34590
34591ECHO_C= ECHO_N= ECHO_T=
34592case `echo -n x` in
34593-n*)
34594 case `echo 'x\c'` in
34595 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34596 *) ECHO_C='\c';;
34597 esac;;
34598*)
34599 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034600esac
34601
Reid Spencera773bd52006-08-04 18:18:08 +000034602if expr a : '\(a\)' >/dev/null 2>&1 &&
34603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034604 as_expr=expr
34605else
34606 as_expr=false
34607fi
34608
34609rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034610if test -d conf$$.dir; then
34611 rm -f conf$$.dir/conf$$.file
34612else
34613 rm -f conf$$.dir
34614 mkdir conf$$.dir
34615fi
John Criswell7a73b802003-06-30 21:59:07 +000034616echo >conf$$.file
34617if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034618 as_ln_s='ln -s'
34619 # ... but there are two gotchas:
34620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34622 # In both cases, we have to default to `cp -p'.
34623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034624 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034625elif ln conf$$.file conf$$ 2>/dev/null; then
34626 as_ln_s=ln
34627else
34628 as_ln_s='cp -p'
34629fi
Reid Spencera773bd52006-08-04 18:18:08 +000034630rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34631rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034632
John Criswell0c38eaf2003-09-10 15:17:25 +000034633if mkdir -p . 2>/dev/null; then
34634 as_mkdir_p=:
34635else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034636 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034637 as_mkdir_p=false
34638fi
34639
Tanya Lattnercf067672008-01-17 05:57:22 +000034640# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34641# systems may use methods other than mode bits to determine executability.
34642cat >conf$$.file <<_ASEOF
34643#! /bin/sh
34644exit 0
34645_ASEOF
34646chmod +x conf$$.file
34647if test -x conf$$.file >/dev/null 2>&1; then
34648 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034649else
Tanya Lattnercf067672008-01-17 05:57:22 +000034650 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034651fi
Tanya Lattnercf067672008-01-17 05:57:22 +000034652rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034653
34654# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034655as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034656
34657# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034658as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034659
34660
John Criswell7a73b802003-06-30 21:59:07 +000034661exec 6>&1
34662
Reid Spencera773bd52006-08-04 18:18:08 +000034663# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034664# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034665# values after options handling.
34666ac_log="
Tanya Lattnercf067672008-01-17 05:57:22 +000034667This file was extended by llvm $as_me 2.3svn, which was
34668generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034669
34670 CONFIG_FILES = $CONFIG_FILES
34671 CONFIG_HEADERS = $CONFIG_HEADERS
34672 CONFIG_LINKS = $CONFIG_LINKS
34673 CONFIG_COMMANDS = $CONFIG_COMMANDS
34674 $ $0 $@
34675
Reid Spencera773bd52006-08-04 18:18:08 +000034676on `(hostname || uname -n) 2>/dev/null | sed 1q`
34677"
34678
John Criswell7a73b802003-06-30 21:59:07 +000034679_ACEOF
34680
Reid Spencera773bd52006-08-04 18:18:08 +000034681cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034682# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034683config_files="$ac_config_files"
34684config_headers="$ac_config_headers"
34685config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034686
Reid Spencera773bd52006-08-04 18:18:08 +000034687_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034688
34689cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034690ac_cs_usage="\
34691\`$as_me' instantiates files from templates according to the
34692current configuration.
34693
34694Usage: $0 [OPTIONS] [FILE]...
34695
34696 -h, --help print this help, then exit
Tanya Lattnercf067672008-01-17 05:57:22 +000034697 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034698 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034699 -d, --debug don't remove temporary files
34700 --recheck update $as_me by reconfiguring in the same conditions
34701 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034702 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034703 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034704 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034705
34706Configuration files:
34707$config_files
34708
34709Configuration headers:
34710$config_headers
34711
John Criswellc764fbc2003-09-06 15:17:13 +000034712Configuration commands:
34713$config_commands
34714
John Criswell7a73b802003-06-30 21:59:07 +000034715Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034716
Reid Spencera773bd52006-08-04 18:18:08 +000034717_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034718cat >>$CONFIG_STATUS <<_ACEOF
34719ac_cs_version="\\
Tanya Lattnercf067672008-01-17 05:57:22 +000034720llvm config.status 2.3svn
34721configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034722 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034723
Reid Spencera773bd52006-08-04 18:18:08 +000034724Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034725This config.status script is free software; the Free Software Foundation
34726gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034727
34728ac_pwd='$ac_pwd'
34729srcdir='$srcdir'
34730INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034731_ACEOF
34732
34733cat >>$CONFIG_STATUS <<\_ACEOF
34734# If no file are specified by the user, then we need to provide default
34735# value. By we need to know if files were specified by the user.
34736ac_need_defaults=:
34737while test $# != 0
34738do
34739 case $1 in
34740 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034741 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34742 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034743 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034744 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034745 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034746 ac_option=$1
34747 ac_optarg=$2
34748 ac_shift=shift
34749 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034750 esac
34751
John Criswell0c38eaf2003-09-10 15:17:25 +000034752 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034753 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034754 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34755 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034756 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34757 echo "$ac_cs_version"; exit ;;
34758 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034759 debug=: ;;
34760 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034761 $ac_shift
34762 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034763 ac_need_defaults=false;;
34764 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034765 $ac_shift
34766 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034767 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034768 --he | --h)
34769 # Conflict between --help and --header
34770 { echo "$as_me: error: ambiguous option: $1
34771Try \`$0 --help' for more information." >&2
34772 { (exit 1); exit 1; }; };;
34773 --help | --hel | -h )
34774 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34777 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034778
34779 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034780 -*) { echo "$as_me: error: unrecognized option: $1
34781Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034782 { (exit 1); exit 1; }; } ;;
34783
Reid Spencera773bd52006-08-04 18:18:08 +000034784 *) ac_config_targets="$ac_config_targets $1"
34785 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034786
34787 esac
34788 shift
34789done
34790
John Criswell0c38eaf2003-09-10 15:17:25 +000034791ac_configure_extra_args=
34792
34793if $ac_cs_silent; then
34794 exec 6>/dev/null
34795 ac_configure_extra_args="$ac_configure_extra_args --silent"
34796fi
34797
34798_ACEOF
34799cat >>$CONFIG_STATUS <<_ACEOF
34800if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034801 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34802 CONFIG_SHELL=$SHELL
34803 export CONFIG_SHELL
34804 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034805fi
34806
John Criswell7a73b802003-06-30 21:59:07 +000034807_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034808cat >>$CONFIG_STATUS <<\_ACEOF
34809exec 5>>config.log
34810{
34811 echo
34812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34813## Running $as_me. ##
34814_ASBOX
34815 echo "$ac_log"
34816} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034817
Reid Spencera773bd52006-08-04 18:18:08 +000034818_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034819cat >>$CONFIG_STATUS <<_ACEOF
34820#
Reid Spencera773bd52006-08-04 18:18:08 +000034821# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034822#
Reid Spencerc0682832005-02-24 19:05:19 +000034823llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034824
34825_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034826
John Criswell7a73b802003-06-30 21:59:07 +000034827cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034828
34829# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034830for ac_config_target in $ac_config_targets
34831do
Reid Spencera773bd52006-08-04 18:18:08 +000034832 case $ac_config_target in
34833 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34834 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34835 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34836 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34837 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34838 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034839 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034840 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34841 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34842 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34843 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34844 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34845 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34846 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034847 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034848 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34849 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34850 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34851 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34852 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034853 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34854 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034855
John Criswell7a73b802003-06-30 21:59:07 +000034856 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34857echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34858 { (exit 1); exit 1; }; };;
34859 esac
34860done
34861
Reid Spencera773bd52006-08-04 18:18:08 +000034862
John Criswell7a73b802003-06-30 21:59:07 +000034863# If the user did not use the arguments to specify the items to instantiate,
34864# then the envvar interface is used. Set only those that are not.
34865# We use the long form for the default assignment because of an extremely
34866# bizarre bug on SunOS 4.1.3.
34867if $ac_need_defaults; then
34868 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34869 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034870 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034871fi
34872
John Criswell0c38eaf2003-09-10 15:17:25 +000034873# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034874# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034875# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034876# Hook for its removal unless debugging.
34877# Note that there is a small window in which the directory will not be cleaned:
34878# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034879$debug ||
34880{
Reid Spencera773bd52006-08-04 18:18:08 +000034881 tmp=
34882 trap 'exit_status=$?
34883 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34884' 0
John Criswell7a73b802003-06-30 21:59:07 +000034885 trap '{ (exit 1); exit 1; }' 1 2 13 15
34886}
John Criswell7a73b802003-06-30 21:59:07 +000034887# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034888
John Criswell7a73b802003-06-30 21:59:07 +000034889{
Reid Spencera773bd52006-08-04 18:18:08 +000034890 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034891 test -n "$tmp" && test -d "$tmp"
34892} ||
34893{
Reid Spencera773bd52006-08-04 18:18:08 +000034894 tmp=./conf$$-$RANDOM
34895 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034896} ||
34897{
John Criswell0c38eaf2003-09-10 15:17:25 +000034898 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034899 { (exit 1); exit 1; }
34900}
34901
John Criswell7a73b802003-06-30 21:59:07 +000034902#
Reid Spencera773bd52006-08-04 18:18:08 +000034903# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034904#
34905
34906# No need to generate the scripts if there are no CONFIG_FILES.
34907# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034908if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034909
34910_ACEOF
34911
Reid Spencera773bd52006-08-04 18:18:08 +000034912
34913
34914ac_delim='%!_!# '
34915for ac_last_try in false false false false false :; do
34916 cat >conf$$subs.sed <<_ACEOF
34917SHELL!$SHELL$ac_delim
34918PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34919PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34920PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34921PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34922PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34923PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34924exec_prefix!$exec_prefix$ac_delim
34925prefix!$prefix$ac_delim
34926program_transform_name!$program_transform_name$ac_delim
34927bindir!$bindir$ac_delim
34928sbindir!$sbindir$ac_delim
34929libexecdir!$libexecdir$ac_delim
34930datarootdir!$datarootdir$ac_delim
34931datadir!$datadir$ac_delim
34932sysconfdir!$sysconfdir$ac_delim
34933sharedstatedir!$sharedstatedir$ac_delim
34934localstatedir!$localstatedir$ac_delim
34935includedir!$includedir$ac_delim
34936oldincludedir!$oldincludedir$ac_delim
34937docdir!$docdir$ac_delim
34938infodir!$infodir$ac_delim
34939htmldir!$htmldir$ac_delim
34940dvidir!$dvidir$ac_delim
34941pdfdir!$pdfdir$ac_delim
34942psdir!$psdir$ac_delim
34943libdir!$libdir$ac_delim
34944localedir!$localedir$ac_delim
34945mandir!$mandir$ac_delim
34946DEFS!$DEFS$ac_delim
34947ECHO_C!$ECHO_C$ac_delim
34948ECHO_N!$ECHO_N$ac_delim
34949ECHO_T!$ECHO_T$ac_delim
34950LIBS!$LIBS$ac_delim
34951build_alias!$build_alias$ac_delim
34952host_alias!$host_alias$ac_delim
34953target_alias!$target_alias$ac_delim
34954LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34955subdirs!$subdirs$ac_delim
34956build!$build$ac_delim
34957build_cpu!$build_cpu$ac_delim
34958build_vendor!$build_vendor$ac_delim
34959build_os!$build_os$ac_delim
34960host!$host$ac_delim
34961host_cpu!$host_cpu$ac_delim
34962host_vendor!$host_vendor$ac_delim
34963host_os!$host_os$ac_delim
34964target!$target$ac_delim
34965target_cpu!$target_cpu$ac_delim
34966target_vendor!$target_vendor$ac_delim
34967target_os!$target_os$ac_delim
34968OS!$OS$ac_delim
34969LINKALL!$LINKALL$ac_delim
34970NOLINKALL!$NOLINKALL$ac_delim
34971LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34972LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34973ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000034974ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034975CC!$CC$ac_delim
34976CFLAGS!$CFLAGS$ac_delim
34977LDFLAGS!$LDFLAGS$ac_delim
34978CPPFLAGS!$CPPFLAGS$ac_delim
34979ac_ct_CC!$ac_ct_CC$ac_delim
34980EXEEXT!$EXEEXT$ac_delim
34981OBJEXT!$OBJEXT$ac_delim
34982CPP!$CPP$ac_delim
34983GREP!$GREP$ac_delim
34984EGREP!$EGREP$ac_delim
34985LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34986BUILD_CC!$BUILD_CC$ac_delim
34987BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34988CVSBUILD!$CVSBUILD$ac_delim
34989ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34990DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034991ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34992EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034993DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034994JIT!$JIT$ac_delim
34995TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34996ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34997ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034998ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034999TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035000ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035001EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35002CXX!$CXX$ac_delim
35003CXXFLAGS!$CXXFLAGS$ac_delim
35004ac_ct_CXX!$ac_ct_CXX$ac_delim
35005LEX!$LEX$ac_delim
Scott Michel96dcd2b2007-12-05 21:24:02 +000035006LEXLIB!$LEXLIB$ac_delim
Tanya Lattnercf067672008-01-17 05:57:22 +000035007LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035008FLEX!$FLEX$ac_delim
35009YACC!$YACC$ac_delim
35010YFLAGS!$YFLAGS$ac_delim
35011BISON!$BISON$ac_delim
35012NM!$NM$ac_delim
35013ifGNUmake!$ifGNUmake$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035014_ACEOF
35015
35016 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35017 break
35018 elif $ac_last_try; then
35019 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35020echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35021 { (exit 1); exit 1; }; }
35022 else
35023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035024 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035025done
35026
35027ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35028if test -n "$ac_eof"; then
35029 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35030 ac_eof=`expr $ac_eof + 1`
35031fi
35032
35033cat >>$CONFIG_STATUS <<_ACEOF
35034cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35035/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35036_ACEOF
35037sed '
35038s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35039s/^/s,@/; s/!/@,|#_!!_#|/
35040:n
35041t n
35042s/'"$ac_delim"'$/,g/; t
35043s/$/\\/; p
35044N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35045' >>$CONFIG_STATUS <conf$$subs.sed
35046rm -f conf$$subs.sed
35047cat >>$CONFIG_STATUS <<_ACEOF
35048CEOF$ac_eof
35049_ACEOF
35050
35051
35052ac_delim='%!_!# '
35053for ac_last_try in false false false false false :; do
35054 cat >conf$$subs.sed <<_ACEOF
David Greenea696d242007-06-28 19:36:08 +000035055LN_S!$LN_S$ac_delim
35056CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035057CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035058DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035059FIND!$FIND$ac_delim
35060MKDIR!$MKDIR$ac_delim
35061MV!$MV$ac_delim
35062RANLIB!$RANLIB$ac_delim
35063RM!$RM$ac_delim
35064SED!$SED$ac_delim
35065TAR!$TAR$ac_delim
35066BINPWD!$BINPWD$ac_delim
35067GRAPHVIZ!$GRAPHVIZ$ac_delim
35068DOT!$DOT$ac_delim
35069GV!$GV$ac_delim
35070DOTTY!$DOTTY$ac_delim
35071PERL!$PERL$ac_delim
35072HAVE_PERL!$HAVE_PERL$ac_delim
35073INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35074INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35075INSTALL_DATA!$INSTALL_DATA$ac_delim
35076BZIP2!$BZIP2$ac_delim
35077DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035078GROFF!$GROFF$ac_delim
35079GZIP!$GZIP$ac_delim
35080POD2HTML!$POD2HTML$ac_delim
35081POD2MAN!$POD2MAN$ac_delim
35082RUNTEST!$RUNTEST$ac_delim
35083TCLSH!$TCLSH$ac_delim
35084ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035085OCAMLC!$OCAMLC$ac_delim
35086OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035087OCAMLDEP!$OCAMLDEP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035088INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35089INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35090CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35091CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35092LIBADD_DL!$LIBADD_DL$ac_delim
35093ECHO!$ECHO$ac_delim
35094AR!$AR$ac_delim
35095STRIP!$STRIP$ac_delim
35096CXXCPP!$CXXCPP$ac_delim
35097F77!$F77$ac_delim
35098FFLAGS!$FFLAGS$ac_delim
35099ac_ct_F77!$ac_ct_F77$ac_delim
35100LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035101LLVMGCC!$LLVMGCC$ac_delim
35102LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035103USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035104HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035105HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035106ALLOCA!$ALLOCA$ac_delim
35107MMAP_FILE!$MMAP_FILE$ac_delim
35108LLVMCC1!$LLVMCC1$ac_delim
35109LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35110LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035111LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035112LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35113LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035114LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035115SHLIBEXT!$SHLIBEXT$ac_delim
35116LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35117LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35118LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35119LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35120LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35121LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35122LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35123LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35124LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35125LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035126BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35127ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035128OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035129LIBOBJS!$LIBOBJS$ac_delim
35130LTLIBOBJS!$LTLIBOBJS$ac_delim
35131_ACEOF
35132
Gordon Henriksenf0915682007-10-02 16:42:22 +000035133 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000035134 break
35135 elif $ac_last_try; then
35136 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35137echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35138 { (exit 1); exit 1; }; }
35139 else
35140 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35141 fi
35142done
35143
35144ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35145if test -n "$ac_eof"; then
35146 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35147 ac_eof=`expr $ac_eof + 1`
35148fi
35149
35150cat >>$CONFIG_STATUS <<_ACEOF
35151cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35153_ACEOF
35154sed '
35155s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35156s/^/s,@/; s/!/@,|#_!!_#|/
35157:n
35158t n
35159s/'"$ac_delim"'$/,g/; t
35160s/$/\\/; p
35161N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35162' >>$CONFIG_STATUS <conf$$subs.sed
35163rm -f conf$$subs.sed
35164cat >>$CONFIG_STATUS <<_ACEOF
35165:end
35166s/|#_!!_#|//g
35167CEOF$ac_eof
35168_ACEOF
35169
35170
35171# VPATH may cause trouble with some makes, so we remove $(srcdir),
35172# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35173# trailing colons and then remove the whole line if VPATH becomes empty
35174# (actually we leave an empty line to preserve line numbers).
35175if test "x$srcdir" = x.; then
35176 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35177s/:*\$(srcdir):*/:/
35178s/:*\${srcdir}:*/:/
35179s/:*@srcdir@:*/:/
35180s/^\([^=]*=[ ]*\):*/\1/
35181s/:*$//
35182s/^[^=]*=[ ]*$//
35183}'
35184fi
35185
35186cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035187fi # test -n "$CONFIG_FILES"
35188
Reid Spencera773bd52006-08-04 18:18:08 +000035189
35190for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35191do
35192 case $ac_tag in
35193 :[FHLC]) ac_mode=$ac_tag; continue;;
35194 esac
35195 case $ac_mode$ac_tag in
35196 :[FHL]*:*);;
35197 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35198echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35199 { (exit 1); exit 1; }; };;
35200 :[FH]-) ac_tag=-:-;;
35201 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35202 esac
35203 ac_save_IFS=$IFS
35204 IFS=:
35205 set x $ac_tag
35206 IFS=$ac_save_IFS
35207 shift
35208 ac_file=$1
35209 shift
35210
35211 case $ac_mode in
35212 :L) ac_source=$1;;
35213 :[FH])
35214 ac_file_inputs=
35215 for ac_f
35216 do
35217 case $ac_f in
35218 -) ac_f="$tmp/stdin";;
35219 *) # Look for the file first in the build tree, then in the source tree
35220 # (if the path is not absolute). The absolute path cannot be DOS-style,
35221 # because $ac_f cannot contain `:'.
35222 test -f "$ac_f" ||
35223 case $ac_f in
35224 [\\/$]*) false;;
35225 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35226 esac ||
35227 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35228echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35229 { (exit 1); exit 1; }; };;
35230 esac
35231 ac_file_inputs="$ac_file_inputs $ac_f"
35232 done
35233
35234 # Let's still pretend it is `configure' which instantiates (i.e., don't
35235 # use $as_me), people would be surprised to read:
35236 # /* config.h. Generated by config.status. */
35237 configure_input="Generated from "`IFS=:
35238 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35239 if test x"$ac_file" != x-; then
35240 configure_input="$ac_file. $configure_input"
35241 { echo "$as_me:$LINENO: creating $ac_file" >&5
35242echo "$as_me: creating $ac_file" >&6;}
35243 fi
35244
35245 case $ac_tag in
35246 *:-:* | *:-) cat >"$tmp/stdin";;
35247 esac
35248 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035249 esac
35250
Reid Spencera773bd52006-08-04 18:18:08 +000035251 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035252$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035253 X"$ac_file" : 'X\(//\)[^/]' \| \
35254 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035256echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35258 s//\1/
35259 q
35260 }
35261 /^X\(\/\/\)[^/].*/{
35262 s//\1/
35263 q
35264 }
35265 /^X\(\/\/\)$/{
35266 s//\1/
35267 q
35268 }
35269 /^X\(\/\).*/{
35270 s//\1/
35271 q
35272 }
35273 s/.*/./; q'`
35274 { as_dir="$ac_dir"
35275 case $as_dir in #(
35276 -*) as_dir=./$as_dir;;
35277 esac
35278 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035279 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035280 while :; do
35281 case $as_dir in #(
35282 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35283 *) as_qdir=$as_dir;;
35284 esac
35285 as_dirs="'$as_qdir' $as_dirs"
35286 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035287$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035288 X"$as_dir" : 'X\(//\)[^/]' \| \
35289 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035291echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35293 s//\1/
35294 q
35295 }
35296 /^X\(\/\/\)[^/].*/{
35297 s//\1/
35298 q
35299 }
35300 /^X\(\/\/\)$/{
35301 s//\1/
35302 q
35303 }
35304 /^X\(\/\).*/{
35305 s//\1/
35306 q
35307 }
35308 s/.*/./; q'`
35309 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035310 done
Reid Spencera773bd52006-08-04 18:18:08 +000035311 test -z "$as_dirs" || eval "mkdir $as_dirs"
35312 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35313echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035314 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035315 ac_builddir=.
35316
Reid Spencera773bd52006-08-04 18:18:08 +000035317case "$ac_dir" in
35318.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35319*)
John Criswell7a73b802003-06-30 21:59:07 +000035320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035321 # A ".." for each directory in $ac_dir_suffix.
35322 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35323 case $ac_top_builddir_sub in
35324 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35325 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35326 esac ;;
35327esac
35328ac_abs_top_builddir=$ac_pwd
35329ac_abs_builddir=$ac_pwd$ac_dir_suffix
35330# for backward compatibility:
35331ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035332
35333case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035334 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035335 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035336 ac_top_srcdir=$ac_top_builddir_sub
35337 ac_abs_top_srcdir=$ac_pwd ;;
35338 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035339 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035340 ac_top_srcdir=$srcdir
35341 ac_abs_top_srcdir=$srcdir ;;
35342 *) # Relative name.
35343 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35344 ac_top_srcdir=$ac_top_build_prefix$srcdir
35345 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035346esac
Reid Spencera773bd52006-08-04 18:18:08 +000035347ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035348
John Criswell7a73b802003-06-30 21:59:07 +000035349
Reid Spencera773bd52006-08-04 18:18:08 +000035350 case $ac_mode in
35351 :F)
35352 #
35353 # CONFIG_FILE
35354 #
John Criswell7a73b802003-06-30 21:59:07 +000035355
35356 case $INSTALL in
35357 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035358 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035359 esac
John Criswell7a73b802003-06-30 21:59:07 +000035360_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035361
35362cat >>$CONFIG_STATUS <<\_ACEOF
35363# If the template does not know about datarootdir, expand it.
35364# FIXME: This hack should be removed a few years after 2.60.
35365ac_datarootdir_hack=; ac_datarootdir_seen=
35366
35367case `sed -n '/datarootdir/ {
35368 p
35369 q
35370}
35371/@datadir@/p
35372/@docdir@/p
35373/@infodir@/p
35374/@localedir@/p
35375/@mandir@/p
35376' $ac_file_inputs` in
35377*datarootdir*) ac_datarootdir_seen=yes;;
35378*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35379 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35380echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35381_ACEOF
35382cat >>$CONFIG_STATUS <<_ACEOF
35383 ac_datarootdir_hack='
35384 s&@datadir@&$datadir&g
35385 s&@docdir@&$docdir&g
35386 s&@infodir@&$infodir&g
35387 s&@localedir@&$localedir&g
35388 s&@mandir@&$mandir&g
35389 s&\\\${datarootdir}&$datarootdir&g' ;;
35390esac
35391_ACEOF
35392
35393# Neutralize VPATH when `$srcdir' = `.'.
35394# Shell code in configure.ac might set extrasub.
35395# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035396cat >>$CONFIG_STATUS <<_ACEOF
35397 sed "$ac_vpsub
35398$extrasub
35399_ACEOF
35400cat >>$CONFIG_STATUS <<\_ACEOF
35401:t
35402/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035403s&@configure_input@&$configure_input&;t t
35404s&@top_builddir@&$ac_top_builddir_sub&;t t
35405s&@srcdir@&$ac_srcdir&;t t
35406s&@abs_srcdir@&$ac_abs_srcdir&;t t
35407s&@top_srcdir@&$ac_top_srcdir&;t t
35408s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35409s&@builddir@&$ac_builddir&;t t
35410s&@abs_builddir@&$ac_abs_builddir&;t t
35411s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35412s&@INSTALL@&$ac_INSTALL&;t t
35413$ac_datarootdir_hack
35414" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035415
Reid Spencera773bd52006-08-04 18:18:08 +000035416test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35417 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35418 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35419 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35420which seems to be undefined. Please make sure it is defined." >&5
35421echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35422which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035423
Reid Spencera773bd52006-08-04 18:18:08 +000035424 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035425 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035426 -) cat "$tmp/out"; rm -f "$tmp/out";;
35427 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035428 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035429 ;;
35430 :H)
35431 #
35432 # CONFIG_HEADER
35433 #
John Criswell7a73b802003-06-30 21:59:07 +000035434_ACEOF
35435
Reid Spencera773bd52006-08-04 18:18:08 +000035436# Transform confdefs.h into a sed script `conftest.defines', that
35437# substitutes the proper values into config.h.in to produce config.h.
35438rm -f conftest.defines conftest.tail
35439# First, append a space to every undef/define line, to ease matching.
35440echo 's/$/ /' >conftest.defines
35441# Then, protect against being on the right side of a sed subst, or in
35442# an unquoted here document, in config.status. If some macros were
35443# called several times there might be several #defines for the same
35444# symbol, which is useless. But do not sort them, since the last
35445# AC_DEFINE must be honored.
35446ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35447# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35448# NAME is the cpp macro being defined, VALUE is the value it is being given.
35449# PARAMS is the parameter list in the macro definition--in most cases, it's
35450# just an empty string.
35451ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35452ac_dB='\\)[ (].*,\\1define\\2'
35453ac_dC=' '
35454ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035455
Reid Spencera773bd52006-08-04 18:18:08 +000035456uniq confdefs.h |
35457 sed -n '
35458 t rset
35459 :rset
35460 s/^[ ]*#[ ]*define[ ][ ]*//
35461 t ok
35462 d
35463 :ok
35464 s/[\\&,]/\\&/g
35465 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35466 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35467 ' >>conftest.defines
35468
35469# Remove the space that was appended to ease matching.
35470# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035471# example, in the case of _POSIX_SOURCE, which is predefined and required
35472# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035473# (The regexp can be short, since the line contains either #define or #undef.)
35474echo 's/ $//
35475s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035476
Reid Spencera773bd52006-08-04 18:18:08 +000035477# Break up conftest.defines:
35478ac_max_sed_lines=50
35479
35480# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35481# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35482# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35483# et cetera.
35484ac_in='$ac_file_inputs'
35485ac_out='"$tmp/out1"'
35486ac_nxt='"$tmp/out2"'
35487
35488while :
John Criswell7a73b802003-06-30 21:59:07 +000035489do
Reid Spencera773bd52006-08-04 18:18:08 +000035490 # Write a here document:
35491 cat >>$CONFIG_STATUS <<_ACEOF
35492 # First, check the format of the line:
35493 cat >"\$tmp/defines.sed" <<\\CEOF
35494/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35495/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35496b
35497:def
35498_ACEOF
35499 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035500 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035501 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35502 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35503 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35504 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035505 rm -f conftest.defines
35506 mv conftest.tail conftest.defines
35507done
Reid Spencera773bd52006-08-04 18:18:08 +000035508rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035509
Reid Spencera773bd52006-08-04 18:18:08 +000035510echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035511cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035512 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035513 echo "/* $configure_input */" >"$tmp/config.h"
35514 cat "$ac_result" >>"$tmp/config.h"
35515 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035516 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35517echo "$as_me: $ac_file is unchanged" >&6;}
35518 else
John Criswell7a73b802003-06-30 21:59:07 +000035519 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035520 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035521 fi
35522 else
Reid Spencera773bd52006-08-04 18:18:08 +000035523 echo "/* $configure_input */"
35524 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035525 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035526 rm -f "$tmp/out12"
35527 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035528
Reid Spencera773bd52006-08-04 18:18:08 +000035529 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35530echo "$as_me: executing $ac_file commands" >&6;}
35531 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035532 esac
John Criswell7a73b802003-06-30 21:59:07 +000035533
Reid Spencera773bd52006-08-04 18:18:08 +000035534
35535 case $ac_file$ac_mode in
35536 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35537 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35538 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35539 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35540 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35541 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35542 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35543 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035544 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35545 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035546 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35547 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35548 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35549 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35550 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35551 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35552 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35553 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35554 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35555 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035556 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35557 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35558 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35559 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035560
35561 esac
35562done # for ac_tag
35563
John Criswell7a73b802003-06-30 21:59:07 +000035564
35565{ (exit 0); exit 0; }
35566_ACEOF
35567chmod +x $CONFIG_STATUS
35568ac_clean_files=$ac_clean_files_save
35569
35570
35571# configure is writing to config.log, and then calls config.status.
35572# config.status does its own redirection, appending to config.log.
35573# Unfortunately, on DOS this fails, as config.log is still kept open
35574# by configure, so config.status won't be able to write to it; its
35575# output is simply discarded. So we exec the FD to /dev/null,
35576# effectively closing config.log, so it can be properly (re)opened and
35577# appended to by config.status. When coming back to configure, we
35578# need to make the FD available again.
35579if test "$no_create" != yes; then
35580 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035581 ac_config_status_args=
35582 test "$silent" = yes &&
35583 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035584 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035585 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035586 exec 5>>config.log
35587 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35588 # would make configure fail if this is the last instruction.
35589 $ac_cs_success || { (exit 1); exit 1; }
35590fi
35591
John Criswell12399a12003-09-30 15:55:44 +000035592#
35593# CONFIG_SUBDIRS section.
35594#
35595if test "$no_recursion" != yes; then
35596
35597 # Remove --cache-file and --srcdir arguments so they do not pile up.
35598 ac_sub_configure_args=
35599 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035600 eval "set x $ac_configure_args"
35601 shift
35602 for ac_arg
35603 do
John Criswell12399a12003-09-30 15:55:44 +000035604 if test -n "$ac_prev"; then
35605 ac_prev=
35606 continue
35607 fi
35608 case $ac_arg in
35609 -cache-file | --cache-file | --cache-fil | --cache-fi \
35610 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35611 ac_prev=cache_file ;;
35612 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35613 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35614 | --c=*)
35615 ;;
35616 --config-cache | -C)
35617 ;;
35618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35619 ac_prev=srcdir ;;
35620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35621 ;;
35622 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35623 ac_prev=prefix ;;
35624 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035626 *)
35627 case $ac_arg in
35628 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35629 esac
35630 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035631 esac
35632 done
35633
35634 # Always prepend --prefix to ensure using the same prefix
35635 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035636 ac_arg="--prefix=$prefix"
35637 case $ac_arg in
35638 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35639 esac
Tanya Lattnercf067672008-01-17 05:57:22 +000035640 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035641
35642 ac_popdir=`pwd`
35643 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35644
35645 # Do not complain, so a configure script can configure whichever
35646 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035647 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035648
Reid Spencera773bd52006-08-04 18:18:08 +000035649 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35650 echo "$as_me:$LINENO: $ac_msg" >&5
35651 echo "$ac_msg" >&6
35652 { as_dir="$ac_dir"
35653 case $as_dir in #(
35654 -*) as_dir=./$as_dir;;
35655 esac
35656 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035657 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035658 while :; do
35659 case $as_dir in #(
35660 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35661 *) as_qdir=$as_dir;;
35662 esac
35663 as_dirs="'$as_qdir' $as_dirs"
35664 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035665$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035666 X"$as_dir" : 'X\(//\)[^/]' \| \
35667 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035668 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035669echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35671 s//\1/
35672 q
35673 }
35674 /^X\(\/\/\)[^/].*/{
35675 s//\1/
35676 q
35677 }
35678 /^X\(\/\/\)$/{
35679 s//\1/
35680 q
35681 }
35682 /^X\(\/\).*/{
35683 s//\1/
35684 q
35685 }
35686 s/.*/./; q'`
35687 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035688 done
Reid Spencera773bd52006-08-04 18:18:08 +000035689 test -z "$as_dirs" || eval "mkdir $as_dirs"
35690 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35691echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035692 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035693 ac_builddir=.
35694
Reid Spencera773bd52006-08-04 18:18:08 +000035695case "$ac_dir" in
35696.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35697*)
John Criswell12399a12003-09-30 15:55:44 +000035698 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035699 # A ".." for each directory in $ac_dir_suffix.
35700 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35701 case $ac_top_builddir_sub in
35702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35704 esac ;;
35705esac
35706ac_abs_top_builddir=$ac_pwd
35707ac_abs_builddir=$ac_pwd$ac_dir_suffix
35708# for backward compatibility:
35709ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035710
35711case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035712 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035713 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035714 ac_top_srcdir=$ac_top_builddir_sub
35715 ac_abs_top_srcdir=$ac_pwd ;;
35716 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035717 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035718 ac_top_srcdir=$srcdir
35719 ac_abs_top_srcdir=$srcdir ;;
35720 *) # Relative name.
35721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35722 ac_top_srcdir=$ac_top_build_prefix$srcdir
35723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035724esac
Reid Spencera773bd52006-08-04 18:18:08 +000035725ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035726
35727
Reid Spencera773bd52006-08-04 18:18:08 +000035728 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035729
35730 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035731 if test -f "$ac_srcdir/configure.gnu"; then
35732 ac_sub_configure=$ac_srcdir/configure.gnu
35733 elif test -f "$ac_srcdir/configure"; then
35734 ac_sub_configure=$ac_srcdir/configure
35735 elif test -f "$ac_srcdir/configure.in"; then
35736 # This should be Cygnus configure.
35737 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035738 else
35739 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35740echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35741 ac_sub_configure=
35742 fi
35743
35744 # The recursion is here.
35745 if test -n "$ac_sub_configure"; then
35746 # Make the cache file name correct relative to the subdirectory.
35747 case $cache_file in
35748 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035749 *) # Relative name.
35750 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035751 esac
35752
Reid Spencera773bd52006-08-04 18:18:08 +000035753 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35754echo "$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 +000035755 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035756 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35757 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035758 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035759echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35760 { (exit 1); exit 1; }; }
35761 fi
35762
Reid Spencera773bd52006-08-04 18:18:08 +000035763 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035764 done
35765fi
35766