blob: 60ee5c30c36763ed86a5c2d150389b22f07c1339 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003# Generated by GNU Autoconf 2.60 for llvm 2.6svn.
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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000718PACKAGE_VERSION='2.6svn'
719PACKAGE_STRING='llvm 2.6svn'
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 Lattnerf9eb2d82009-01-22 05:17:59 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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
Bill Wendlinga0833352009-03-12 04:10:09 +0000815ARCH
816ENDIAN
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
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
Nick Lewyckye792b1d2009-02-03 07:10:30 +0000845BINUTILS_INCDIR
Reid Spencera773bd52006-08-04 18:18:08 +0000846CXX
847CXXFLAGS
848ac_ct_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000849NM
850ifGNUmake
851LN_S
852CMP
853CP
854DATE
855FIND
856MKDIR
857MV
858RANLIB
859RM
860SED
861TAR
862BINPWD
863GRAPHVIZ
864DOT
865GV
866DOTTY
867PERL
868HAVE_PERL
869INSTALL_PROGRAM
870INSTALL_SCRIPT
871INSTALL_DATA
872BZIP2
873DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000874GROFF
875GZIP
876POD2HTML
877POD2MAN
878RUNTEST
879TCLSH
880ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000881OCAMLC
882OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000883OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000884OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000885GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000886INSTALL_LTDL_TRUE
887INSTALL_LTDL_FALSE
888CONVENIENCE_LTDL_TRUE
889CONVENIENCE_LTDL_FALSE
890LIBADD_DL
891ECHO
892AR
893STRIP
894CXXCPP
895F77
896FFLAGS
897ac_ct_F77
898LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000899LLVMGCC
900LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000901USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000902HAVE_PTHREAD
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +0000903HAVE_FFI
Reid Spencerb2ed05262006-11-03 18:04:08 +0000904HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000905ALLOCA
906MMAP_FILE
907LLVMCC1
908LLVMCC1PLUS
909LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000910LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000911LLVMGCC_VERSION
912LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000913LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000914SHLIBEXT
915LLVM_PREFIX
916LLVM_BINDIR
917LLVM_LIBDIR
918LLVM_DATADIR
919LLVM_DOCSDIR
920LLVM_ETCDIR
921LLVM_INCLUDEDIR
922LLVM_INFODIR
923LLVM_MANDIR
924LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000925BINDINGS_TO_BUILD
926ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000927OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000928ENABLE_VISIBILITY_INLINES_HIDDEN
Nick Lewyckye9821dc2009-03-03 04:55:29 +0000929RPATH
Nick Lewycky731c6ab2009-03-05 08:20:44 +0000930RDYNAMIC
Reid Spencera773bd52006-08-04 18:18:08 +0000931LIBOBJS
932LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000933ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000934 ac_precious_vars='build_alias
935host_alias
936target_alias
937CC
938CFLAGS
939LDFLAGS
940CPPFLAGS
941CPP
942CXX
943CXXFLAGS
944CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000945CXXCPP
946F77
947FFLAGS'
948ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000949projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000950projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000951projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000952projects/test-suite
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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +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 Lattnerf9eb2d82009-01-22 05:17:59 +00001461\`configure' configures llvm 2.6svn 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 Lattnerf9eb2d82009-01-22 05:17:59 +00001527 short | recursive ) echo "Configuration of llvm 2.6svn:";;
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
Nick Lewycky5d249572009-02-19 06:18:56 +00001543 is YES)
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)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001572 --with-binutils-include Specify path to binutils/include/ containing
1573 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001574 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001578 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001579 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001580
1581Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001582 CC C compiler command
1583 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001588 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to <llvmbugs@cs.uiuc.edu>.
1599_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001600ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001606 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001607 ac_builddir=.
1608
Reid Spencera773bd52006-08-04 18:18:08 +00001609case "$ac_dir" in
1610.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611*)
John Criswell7a73b802003-06-30 21:59:07 +00001612 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619esac
1620ac_abs_top_builddir=$ac_pwd
1621ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622# for backward compatibility:
1623ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001624
1625case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001626 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001627 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001631 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001638esac
Reid Spencera773bd52006-08-04 18:18:08 +00001639ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001640
Reid Spencera773bd52006-08-04 18:18:08 +00001641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001649 else
1650 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001653 done
1654fi
1655
Reid Spencera773bd52006-08-04 18:18:08 +00001656test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001657if $ac_init_version; then
1658 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001659llvm configure 2.6svn
1660generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001661
Reid Spencera773bd52006-08-04 18:18:08 +00001662Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16632002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001666
Tanya Lattnercf067672008-01-17 05:57:22 +00001667Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001668_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001669 exit
John Criswell7a73b802003-06-30 21:59:07 +00001670fi
Reid Spencera773bd52006-08-04 18:18:08 +00001671cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001672This file contains any messages produced by compilers while
1673running configure, to aid debugging if configure makes a mistake.
1674
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001675It was created by llvm $as_me 2.6svn, which was
1676generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001677
1678 $ $0 $@
1679
1680_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001681exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001682{
1683cat <<_ASUNAME
1684## --------- ##
1685## Platform. ##
1686## --------- ##
1687
1688hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1689uname -m = `(uname -m) 2>/dev/null || echo unknown`
1690uname -r = `(uname -r) 2>/dev/null || echo unknown`
1691uname -s = `(uname -s) 2>/dev/null || echo unknown`
1692uname -v = `(uname -v) 2>/dev/null || echo unknown`
1693
1694/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1695/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1696
1697/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1698/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1699/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001700/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001701/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1702/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1703/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1704
1705_ASUNAME
1706
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 echo "PATH: $as_dir"
1713done
Reid Spencera773bd52006-08-04 18:18:08 +00001714IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001715
1716} >&5
1717
1718cat >&5 <<_ACEOF
1719
1720
1721## ----------- ##
1722## Core tests. ##
1723## ----------- ##
1724
1725_ACEOF
1726
1727
1728# Keep a trace of the command line.
1729# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001730# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001731# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001732# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001733ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001734ac_configure_args0=
1735ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001736ac_must_keep_next=false
1737for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001738do
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 for ac_arg
1740 do
1741 case $ac_arg in
1742 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1743 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1744 | -silent | --silent | --silen | --sile | --sil)
1745 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001746 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 esac
1749 case $ac_pass in
1750 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1751 2)
1752 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1753 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001754 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001756 case $ac_arg in
1757 *=* | --config-cache | -C | -disable-* | --disable-* \
1758 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1759 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1760 | -with-* | --with-* | -without-* | --without-* | --x)
1761 case "$ac_configure_args0 " in
1762 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1763 esac
1764 ;;
1765 -* ) ac_must_keep_next=true ;;
1766 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001767 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001768 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001769 ;;
1770 esac
1771 done
John Criswell7a73b802003-06-30 21:59:07 +00001772done
John Criswell0c38eaf2003-09-10 15:17:25 +00001773$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1774$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 +00001775
1776# When interrupted or exit'd, cleanup temporary files, and complete
1777# config.log. We remove comments because anyway the quotes in there
1778# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001779# WARNING: Use '\'' to represent an apostrophe within the trap.
1780# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001781trap 'exit_status=$?
1782 # Save into config.log some information that might help in debugging.
1783 {
1784 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001785
John Criswell7a73b802003-06-30 21:59:07 +00001786 cat <<\_ASBOX
1787## ---------------- ##
1788## Cache variables. ##
1789## ---------------- ##
1790_ASBOX
1791 echo
1792 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001793(
1794 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1795 eval ac_val=\$$ac_var
1796 case $ac_val in #(
1797 *${as_nl}*)
1798 case $ac_var in #(
1799 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1800echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1801 esac
1802 case $ac_var in #(
1803 _ | IFS | as_nl) ;; #(
1804 *) $as_unset $ac_var ;;
1805 esac ;;
1806 esac
1807 done
John Criswell7a73b802003-06-30 21:59:07 +00001808 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001809 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1810 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001811 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001812 "s/'\''/'\''\\\\'\'''\''/g;
1813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1814 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001815 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001816 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001817 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001818 esac |
1819 sort
1820)
John Criswell7a73b802003-06-30 21:59:07 +00001821 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001822
1823 cat <<\_ASBOX
1824## ----------------- ##
1825## Output variables. ##
1826## ----------------- ##
1827_ASBOX
1828 echo
1829 for ac_var in $ac_subst_vars
1830 do
Reid Spencera773bd52006-08-04 18:18:08 +00001831 eval ac_val=\$$ac_var
1832 case $ac_val in
1833 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1834 esac
1835 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001836 done | sort
1837 echo
1838
1839 if test -n "$ac_subst_files"; then
1840 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001841## ------------------- ##
1842## File substitutions. ##
1843## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001844_ASBOX
1845 echo
1846 for ac_var in $ac_subst_files
1847 do
Reid Spencera773bd52006-08-04 18:18:08 +00001848 eval ac_val=\$$ac_var
1849 case $ac_val in
1850 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1851 esac
1852 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001853 done | sort
1854 echo
1855 fi
1856
John Criswell7a73b802003-06-30 21:59:07 +00001857 if test -s confdefs.h; then
1858 cat <<\_ASBOX
1859## ----------- ##
1860## confdefs.h. ##
1861## ----------- ##
1862_ASBOX
1863 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001864 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001865 echo
1866 fi
1867 test "$ac_signal" != 0 &&
1868 echo "$as_me: caught signal $ac_signal"
1869 echo "$as_me: exit $exit_status"
1870 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001871 rm -f core *.core core.conftest.* &&
1872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001873 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001874' 0
John Criswell7a73b802003-06-30 21:59:07 +00001875for ac_signal in 1 2 13 15; do
1876 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1877done
1878ac_signal=0
1879
1880# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001881rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001882
1883# Predefined preprocessor variables.
1884
1885cat >>confdefs.h <<_ACEOF
1886#define PACKAGE_NAME "$PACKAGE_NAME"
1887_ACEOF
1888
1889
1890cat >>confdefs.h <<_ACEOF
1891#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1892_ACEOF
1893
1894
1895cat >>confdefs.h <<_ACEOF
1896#define PACKAGE_VERSION "$PACKAGE_VERSION"
1897_ACEOF
1898
1899
1900cat >>confdefs.h <<_ACEOF
1901#define PACKAGE_STRING "$PACKAGE_STRING"
1902_ACEOF
1903
1904
1905cat >>confdefs.h <<_ACEOF
1906#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1907_ACEOF
1908
1909
1910# Let the site file select an alternate cache file if it wants to.
1911# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001912if test -n "$CONFIG_SITE"; then
1913 set x "$CONFIG_SITE"
1914elif test "x$prefix" != xNONE; then
1915 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1916else
1917 set x "$ac_default_prefix/share/config.site" \
1918 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001919fi
Reid Spencera773bd52006-08-04 18:18:08 +00001920shift
1921for ac_site_file
1922do
John Criswell7a73b802003-06-30 21:59:07 +00001923 if test -r "$ac_site_file"; then
1924 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1925echo "$as_me: loading site script $ac_site_file" >&6;}
1926 sed 's/^/| /' "$ac_site_file" >&5
1927 . "$ac_site_file"
1928 fi
1929done
1930
1931if test -r "$cache_file"; then
1932 # Some versions of bash will fail to source /dev/null (special
1933 # files actually), so we avoid doing that.
1934 if test -f "$cache_file"; then
1935 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1936echo "$as_me: loading cache $cache_file" >&6;}
1937 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001938 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1939 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001940 esac
1941 fi
1942else
1943 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1944echo "$as_me: creating cache $cache_file" >&6;}
1945 >$cache_file
1946fi
1947
1948# Check that the precious variables saved in the cache have kept the same
1949# value.
1950ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001951for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001952 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1953 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001954 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1955 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001956 case $ac_old_set,$ac_new_set in
1957 set,)
1958 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1959echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1960 ac_cache_corrupted=: ;;
1961 ,set)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1963echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,);;
1966 *)
1967 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001968 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001969echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001970 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001971echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001972 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001973echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001974 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001975 fi;;
1976 esac
1977 # Pass precious variables to config.status.
1978 if test "$ac_new_set" = set; then
1979 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001980 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001981 *) ac_arg=$ac_var=$ac_new_val ;;
1982 esac
1983 case " $ac_configure_args " in
1984 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1985 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1986 esac
1987 fi
1988done
1989if $ac_cache_corrupted; then
1990 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1991echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1992 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1993echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1994 { (exit 1); exit 1; }; }
1995fi
1996
Reid Spencera773bd52006-08-04 18:18:08 +00001997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
John Criswell7a73b802003-06-30 21:59:07 +00002021ac_ext=c
2022ac_cpp='$CPP $CPPFLAGS'
2023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026
2027
2028
Tanya Lattnercf067672008-01-17 05:57:22 +00002029LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030
2031
2032
2033
2034
2035
2036
John Criswell7a73b802003-06-30 21:59:07 +00002037ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002038for ac_dir in autoconf "$srcdir"/autoconf; do
2039 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/install-sh -c"
2042 break
Reid Spencera773bd52006-08-04 18:18:08 +00002043 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install.sh -c"
2046 break
Reid Spencera773bd52006-08-04 18:18:08 +00002047 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/shtool install -c"
2050 break
2051 fi
2052done
2053if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002054 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2055echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002056 { (exit 1); exit 1; }; }
2057fi
Reid Spencera773bd52006-08-04 18:18:08 +00002058
2059# These three variables are undocumented and unsupported,
2060# and are intended to be withdrawn in a future Autoconf release.
2061# They can cause serious problems if a builder's source tree is in a directory
2062# whose full name contains unusual characters.
2063ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2064ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2065ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2066
John Criswell7a73b802003-06-30 21:59:07 +00002067
John Criswell392aaa32003-07-22 19:18:09 +00002068
Reid Spencer2706f8c2004-09-19 23:53:36 +00002069if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002070 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2071 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002072echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2073 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 fi
John Criswell93e1c722003-09-15 17:04:06 +00002075fi
2076
John Criswell33a911a2003-11-25 20:36:46 +00002077for i in `ls ${srcdir}/projects`
2078do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 if test -d ${srcdir}/projects/${i} ; then
2080 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002081 CVS) ;;
2082 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002085 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002086 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002088 # llvm-test is the old name of the test-suite, kept here for backwards
2089 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002090 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002091 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002092 test-suite) subdirs="$subdirs projects/test-suite"
2093 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002096 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002097 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002098 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002099 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002100 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002103 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002104 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002107 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002108 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002109 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2110echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002111 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002112 esac
John Criswell33a911a2003-11-25 20:36:46 +00002113 fi
2114done
John Criswell559a6c12003-09-30 16:31:48 +00002115
John Criswell7a73b802003-06-30 21:59:07 +00002116
2117# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002118$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2119 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2120echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002121 { (exit 1); exit 1; }; }
2122
Reid Spencera773bd52006-08-04 18:18:08 +00002123{ echo "$as_me:$LINENO: checking build system type" >&5
2124echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002125if test "${ac_cv_build+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
Reid Spencera773bd52006-08-04 18:18:08 +00002128 ac_build_alias=$build_alias
2129test "x$ac_build_alias" = x &&
2130 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2131test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002132 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2133echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2134 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002135ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2136 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2137echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002138 { (exit 1); exit 1; }; }
2139
2140fi
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2142echo "${ECHO_T}$ac_cv_build" >&6; }
2143case $ac_cv_build in
2144*-*-*) ;;
2145*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2146echo "$as_me: error: invalid value of canonical build" >&2;}
2147 { (exit 1); exit 1; }; };;
2148esac
John Criswell7a73b802003-06-30 21:59:07 +00002149build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002150ac_save_IFS=$IFS; IFS='-'
2151set x $ac_cv_build
2152shift
2153build_cpu=$1
2154build_vendor=$2
2155shift; shift
2156# Remember, the first character of IFS is used to create $*,
2157# except with old shells:
2158build_os=$*
2159IFS=$ac_save_IFS
2160case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002161
2162
Reid Spencera773bd52006-08-04 18:18:08 +00002163{ echo "$as_me:$LINENO: checking host system type" >&5
2164echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002165if test "${ac_cv_host+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167else
Reid Spencera773bd52006-08-04 18:18:08 +00002168 if test "x$host_alias" = x; then
2169 ac_cv_host=$ac_cv_build
2170else
2171 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2172 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2173echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002175fi
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177fi
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2179echo "${ECHO_T}$ac_cv_host" >&6; }
2180case $ac_cv_host in
2181*-*-*) ;;
2182*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2183echo "$as_me: error: invalid value of canonical host" >&2;}
2184 { (exit 1); exit 1; }; };;
2185esac
John Criswell7a73b802003-06-30 21:59:07 +00002186host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002187ac_save_IFS=$IFS; IFS='-'
2188set x $ac_cv_host
2189shift
2190host_cpu=$1
2191host_vendor=$2
2192shift; shift
2193# Remember, the first character of IFS is used to create $*,
2194# except with old shells:
2195host_os=$*
2196IFS=$ac_save_IFS
2197case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002198
2199
Reid Spencera773bd52006-08-04 18:18:08 +00002200{ echo "$as_me:$LINENO: checking target system type" >&5
2201echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002202if test "${ac_cv_target+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204else
Reid Spencera773bd52006-08-04 18:18:08 +00002205 if test "x$target_alias" = x; then
2206 ac_cv_target=$ac_cv_host
2207else
2208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2209 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2210echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002211 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002212fi
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214fi
Reid Spencera773bd52006-08-04 18:18:08 +00002215{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2216echo "${ECHO_T}$ac_cv_target" >&6; }
2217case $ac_cv_target in
2218*-*-*) ;;
2219*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2220echo "$as_me: error: invalid value of canonical target" >&2;}
2221 { (exit 1); exit 1; }; };;
2222esac
John Criswell7a73b802003-06-30 21:59:07 +00002223target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002224ac_save_IFS=$IFS; IFS='-'
2225set x $ac_cv_target
2226shift
2227target_cpu=$1
2228target_vendor=$2
2229shift; shift
2230# Remember, the first character of IFS is used to create $*,
2231# except with old shells:
2232target_os=$*
2233IFS=$ac_save_IFS
2234case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002235
2236
2237# The aliases save the names the user supplied, while $host etc.
2238# will get canonicalized.
2239test -n "$target_alias" &&
2240 test "$program_prefix$program_suffix$program_transform_name" = \
2241 NONENONEs,x,x, &&
2242 program_prefix=${target_alias}-
2243
Reid Spencera773bd52006-08-04 18:18:08 +00002244{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2245echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002247 echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002249 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002250 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002251 llvm_cv_link_all_option="-Wl,--whole-archive"
2252 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002253 llvm_cv_os_type="AIX"
2254 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002255 *-*-irix*)
2256 llvm_cv_link_all_option="-Wl,--whole-archive"
2257 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2258 llvm_cv_os_type="IRIX"
2259 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002261 llvm_cv_link_all_option="-Wl,--whole-archive"
2262 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 llvm_cv_os_type="Cygwin"
2264 llvm_cv_platform_type="Unix" ;;
2265 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002266 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002267 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 llvm_cv_os_type="Darwin"
2269 llvm_cv_platform_type="Unix" ;;
2270 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002271 llvm_cv_link_all_option="-Wl,--whole-archive"
2272 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002273 llvm_cv_os_type="FreeBSD"
2274 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002275 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002276 llvm_cv_link_all_option="-Wl,--whole-archive"
2277 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002278 llvm_cv_os_type="OpenBSD"
2279 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002280 *-*-netbsd*)
2281 llvm_cv_link_all_option="-Wl,--whole-archive"
2282 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2283 llvm_cv_os_type="NetBSD"
2284 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002285 *-*-dragonfly*)
2286 llvm_cv_link_all_option="-Wl,--whole-archive"
2287 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2288 llvm_cv_os_type="DragonFly"
2289 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002290 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002291 llvm_cv_link_all_option="-Wl,--whole-archive"
2292 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002293 llvm_cv_os_type="HP-UX"
2294 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002296 llvm_cv_link_all_option="-Wl,--whole-archive"
2297 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298 llvm_cv_os_type="Interix"
2299 llvm_cv_platform_type="Unix" ;;
2300 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002301 llvm_cv_link_all_option="-Wl,--whole-archive"
2302 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 llvm_cv_os_type="Linux"
2304 llvm_cv_platform_type="Unix" ;;
2305 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002306 llvm_cv_link_all_option="-Wl,-z,allextract"
2307 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002308 llvm_cv_os_type="SunOS"
2309 llvm_cv_platform_type="Unix" ;;
2310 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002311 llvm_cv_link_all_option="-Wl,--whole-archive"
2312 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002313 llvm_cv_os_type="Win32"
2314 llvm_cv_platform_type="Win32" ;;
2315 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002316 llvm_cv_link_all_option="-Wl,--whole-archive"
2317 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002318 llvm_cv_os_type="MingW"
2319 llvm_cv_platform_type="Win32" ;;
2320 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002321 llvm_cv_link_all_option=""
2322 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 llvm_cv_os_type="Unknown"
2324 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002325esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002326fi
Reid Spencera773bd52006-08-04 18:18:08 +00002327{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2328echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002329
Reid Spencer7b3e8512004-12-24 06:29:05 +00002330if test "$llvm_cv_os_type" = "Unknown" ; then
2331 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2332echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002333 { (exit 1); exit 1; }; }
2334fi
2335
Reid Spencer7b3e8512004-12-24 06:29:05 +00002336OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337
2338
Reid Spencera773bd52006-08-04 18:18:08 +00002339LINKALL=$llvm_cv_link_all_option
2340
2341NOLINKALL=$llvm_cv_no_link_all_option
2342
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344case $llvm_cv_platform_type in
2345 Unix)
2346
2347cat >>confdefs.h <<\_ACEOF
2348#define LLVM_ON_UNIX 1
2349_ACEOF
2350
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002351 LLVM_ON_UNIX=1
2352
2353 LLVM_ON_WIN32=0
2354
Reid Spencer7b3e8512004-12-24 06:29:05 +00002355 ;;
2356 Win32)
2357
2358cat >>confdefs.h <<\_ACEOF
2359#define LLVM_ON_WIN32 1
2360_ACEOF
2361
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002362 LLVM_ON_UNIX=0
2363
2364 LLVM_ON_WIN32=1
2365
Reid Spencer7b3e8512004-12-24 06:29:05 +00002366 ;;
2367esac
2368
Reid Spencera773bd52006-08-04 18:18:08 +00002369{ echo "$as_me:$LINENO: checking target architecture" >&5
2370echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "${llvm_cv_target_arch+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002375 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002376 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002377 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2378 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002379 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002380 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002381 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002382 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002383 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002384 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002385 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002386esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387fi
Reid Spencera773bd52006-08-04 18:18:08 +00002388{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2389echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002390
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391if test "$llvm_cv_target_arch" = "Unknown" ; then
2392 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2393echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2394fi
John Criswell76595452003-07-01 22:07:39 +00002395
Bill Wendlinga0833352009-03-12 04:10:09 +00002396ARCH=$llvm_cv_target_arch
2397
2398
2399ac_ext=c
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400ac_cpp='$CPP $CPPFLAGS'
2401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002404if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002409if test "${ac_cv_prog_CC+set}" = set; then
2410 echo $ECHO_N "(cached) $ECHO_C" >&6
2411else
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2414else
2415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002421 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 +00002422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426done
2427done
Reid Spencera773bd52006-08-04 18:18:08 +00002428IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429
2430fi
2431fi
2432CC=$ac_cv_prog_CC
2433if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002434 { echo "$as_me:$LINENO: result: $CC" >&5
2435echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002436else
Reid Spencera773bd52006-08-04 18:18:08 +00002437 { echo "$as_me:$LINENO: result: no" >&5
2438echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002439fi
2440
Reid Spencera773bd52006-08-04 18:18:08 +00002441
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442fi
2443if test -z "$ac_cv_prog_CC"; then
2444 ac_ct_CC=$CC
2445 # Extract the first word of "gcc", so it can be a program name with args.
2446set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454else
2455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002461 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 +00002462 ac_cv_prog_ac_ct_CC="gcc"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466done
2467done
Reid Spencera773bd52006-08-04 18:18:08 +00002468IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002469
2470fi
2471fi
2472ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476else
Reid Spencera773bd52006-08-04 18:18:08 +00002477 { echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002479fi
2480
Reid Spencera773bd52006-08-04 18:18:08 +00002481 if test "x$ac_ct_CC" = x; then
2482 CC=""
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485yes:)
2486{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2487whose name does not start with the host triplet. If you think this
2488configuration is useful to you, please write to autoconf@gnu.org." >&5
2489echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2490whose name does not start with the host triplet. If you think this
2491configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2492ac_tool_warned=yes ;;
2493esac
2494 CC=$ac_ct_CC
2495 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002496else
2497 CC="$ac_cv_prog_CC"
2498fi
2499
2500if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002501 if test -n "$ac_tool_prefix"; then
2502 # 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 +00002503set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002504{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508else
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
2511else
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002518 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 +00002519 ac_cv_prog_CC="${ac_tool_prefix}cc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
Reid Spencera773bd52006-08-04 18:18:08 +00002525IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526
2527fi
2528fi
2529CC=$ac_cv_prog_CC
2530if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002531 { echo "$as_me:$LINENO: result: $CC" >&5
2532echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533else
Reid Spencera773bd52006-08-04 18:18:08 +00002534 { echo "$as_me:$LINENO: result: no" >&5
2535echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002536fi
2537
Reid Spencera773bd52006-08-04 18:18:08 +00002538
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002540fi
2541if test -z "$CC"; then
2542 # Extract the first word of "cc", so it can be a program name with args.
2543set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002544{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002546if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2551else
2552 ac_prog_rejected=no
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002559 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 +00002560 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2561 ac_prog_rejected=yes
2562 continue
2563 fi
2564 ac_cv_prog_CC="cc"
2565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568done
2569done
Reid Spencera773bd52006-08-04 18:18:08 +00002570IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002571
2572if test $ac_prog_rejected = yes; then
2573 # We found a bogon in the path, so make sure we never use it.
2574 set dummy $ac_cv_prog_CC
2575 shift
2576 if test $# != 0; then
2577 # We chose a different compiler from the bogus one.
2578 # However, it has the same basename, so the bogon will be chosen
2579 # first if we set CC to just the basename; use the full file name.
2580 shift
2581 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2582 fi
2583fi
2584fi
2585fi
2586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002588 { echo "$as_me:$LINENO: result: $CC" >&5
2589echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590else
Reid Spencera773bd52006-08-04 18:18:08 +00002591 { echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593fi
2594
Reid Spencera773bd52006-08-04 18:18:08 +00002595
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596fi
2597if test -z "$CC"; then
2598 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002599 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002600 do
2601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002617 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 +00002618 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622done
2623done
Reid Spencera773bd52006-08-04 18:18:08 +00002624IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002625
2626fi
2627fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002628CC=$ac_cv_prog_CC
2629if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002630 { echo "$as_me:$LINENO: result: $CC" >&5
2631echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002632else
Reid Spencera773bd52006-08-04 18:18:08 +00002633 { echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002635fi
2636
Reid Spencera773bd52006-08-04 18:18:08 +00002637
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002638 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002639 done
2640fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002641if test -z "$CC"; then
2642 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002643 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002644do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 if test -n "$ac_ct_CC"; then
2653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002661 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 +00002662 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667done
Reid Spencera773bd52006-08-04 18:18:08 +00002668IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002669
2670fi
2671fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002672ac_ct_CC=$ac_cv_prog_ac_ct_CC
2673if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002674 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2675echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002676else
Reid Spencera773bd52006-08-04 18:18:08 +00002677 { echo "$as_me:$LINENO: result: no" >&5
2678echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002679fi
2680
Reid Spencera773bd52006-08-04 18:18:08 +00002681
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002682 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002683done
John Criswell7a73b802003-06-30 21:59:07 +00002684
Reid Spencera773bd52006-08-04 18:18:08 +00002685 if test "x$ac_ct_CC" = x; then
2686 CC=""
2687 else
2688 case $cross_compiling:$ac_tool_warned in
2689yes:)
2690{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2691whose name does not start with the host triplet. If you think this
2692configuration is useful to you, please write to autoconf@gnu.org." >&5
2693echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2694whose name does not start with the host triplet. If you think this
2695configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2696ac_tool_warned=yes ;;
2697esac
2698 CC=$ac_ct_CC
2699 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700fi
2701
John Criswell7a73b802003-06-30 21:59:07 +00002702fi
2703
2704
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002705test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2706See \`config.log' for more details." >&5
2707echo "$as_me: error: no acceptable C compiler found in \$PATH
2708See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }
2710
John Criswell7a73b802003-06-30 21:59:07 +00002711# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002712echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002713ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002714{ (ac_try="$ac_compiler --version >&5"
2715case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718esac
2719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002721 ac_status=$?
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002724{ (ac_try="$ac_compiler -v >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002731 ac_status=$?
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002734{ (ac_try="$ac_compiler -V >&5"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }
2744
2745cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002751
John Criswell7a73b802003-06-30 21:59:07 +00002752int
2753main ()
2754{
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002761ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002762# Try to create an executable without -o first, disregard a.out.
2763# It will help us diagnose broken compilers, and finding out an intuition
2764# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002765{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2766echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002767ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002768#
2769# List of possible output files, starting from the most likely.
2770# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2771# only as a last resort. b.out is created by i960 compilers.
2772ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2773#
2774# The IRIX 6 linker writes into existing files which may not be
2775# executable, retaining their permissions. Remove them first so a
2776# subsequent execution test works.
2777ac_rmfiles=
2778for ac_file in $ac_files
2779do
2780 case $ac_file in
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2782 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2783 esac
2784done
2785rm -f $ac_rmfiles
2786
2787if { (ac_try="$ac_link_default"
2788case "(($ac_try" in
2789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2791esac
2792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2793 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002794 ac_status=$?
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002797 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2798# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2799# in a Makefile. We should not override ac_cv_exeext if it was cached,
2800# so that the user can short-circuit this test for compilers unknown to
2801# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002802for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002803do
2804 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002805 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002807 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002808 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 # We found the default executable, but exeext='' is most
2810 # certainly right.
2811 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002812 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002813 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2814 then :; else
2815 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2816 fi
2817 # We set ac_cv_exeext here because the later test for it is not
2818 # safe: cross compilers may not add the suffix if given an `-o'
2819 # argument, so we may need to know it at that point already.
2820 # Even if this section looks crufty: it has the advantage of
2821 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002822 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002823 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002824 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002825 esac
2826done
Reid Spencera773bd52006-08-04 18:18:08 +00002827test "$ac_cv_exeext" = no && ac_cv_exeext=
2828
John Criswell7a73b802003-06-30 21:59:07 +00002829else
2830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002831sed 's/^/| /' conftest.$ac_ext >&5
2832
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002833{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002834See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002835echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002836See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002837 { (exit 77); exit 77; }; }
2838fi
2839
2840ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002841{ echo "$as_me:$LINENO: result: $ac_file" >&5
2842echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002843
Reid Spencera773bd52006-08-04 18:18:08 +00002844# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002845# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002846{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2847echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002848# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2849# If not cross compiling, check that we can run a simple program.
2850if test "$cross_compiling" != yes; then
2851 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002852 { (case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
2856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2861 cross_compiling=no
2862 else
2863 if test "$cross_compiling" = maybe; then
2864 cross_compiling=yes
2865 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002866 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002867If you meant to cross compile, use \`--host'.
2868See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002869echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002870If you meant to cross compile, use \`--host'.
2871See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002872 { (exit 1); exit 1; }; }
2873 fi
2874 fi
2875fi
Reid Spencera773bd52006-08-04 18:18:08 +00002876{ echo "$as_me:$LINENO: result: yes" >&5
2877echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002878
John Criswell0c38eaf2003-09-10 15:17:25 +00002879rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002880ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002881# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002882# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002883{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2884echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2885{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2886echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002887
Reid Spencera773bd52006-08-04 18:18:08 +00002888{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2889echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2890if { (ac_try="$ac_link"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002897 ac_status=$?
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; then
2900 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2901# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2902# work properly (i.e., refer to `conftest.exe'), while it won't with
2903# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002904for ac_file in conftest.exe conftest conftest.*; do
2905 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002906 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002908 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002909 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002910 * ) break;;
2911 esac
2912done
2913else
John Criswell0c38eaf2003-09-10 15:17:25 +00002914 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2917See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002918 { (exit 1); exit 1; }; }
2919fi
2920
2921rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002922{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2923echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002924
2925rm -f conftest.$ac_ext
2926EXEEXT=$ac_cv_exeext
2927ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002928{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2929echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002930if test "${ac_cv_objext+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932else
2933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002934/* confdefs.h. */
2935_ACEOF
2936cat confdefs.h >>conftest.$ac_ext
2937cat >>conftest.$ac_ext <<_ACEOF
2938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002939
John Criswell7a73b802003-06-30 21:59:07 +00002940int
2941main ()
2942{
2943
2944 ;
2945 return 0;
2946}
2947_ACEOF
2948rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002949if { (ac_try="$ac_compile"
2950case "(($ac_try" in
2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2952 *) ac_try_echo=$ac_try;;
2953esac
2954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2955 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002956 ac_status=$?
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002959 for ac_file in conftest.o conftest.obj conftest.*; do
2960 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002961 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002963 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2964 break;;
2965 esac
2966done
2967else
2968 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002969sed 's/^/| /' conftest.$ac_ext >&5
2970
2971{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2972See \`config.log' for more details." >&5
2973echo "$as_me: error: cannot compute suffix of object files: cannot compile
2974See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002975 { (exit 1); exit 1; }; }
2976fi
2977
2978rm -f conftest.$ac_cv_objext conftest.$ac_ext
2979fi
Reid Spencera773bd52006-08-04 18:18:08 +00002980{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2981echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002982OBJEXT=$ac_cv_objext
2983ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002984{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2985echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002986if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988else
2989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002995
John Criswell7a73b802003-06-30 21:59:07 +00002996int
2997main ()
2998{
2999#ifndef __GNUC__
3000 choke me
3001#endif
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003008if { (ac_try="$ac_compile"
3009case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3012esac
3013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003016 grep -v '^ *+' conftest.er1 >conftest.err
3017 rm -f conftest.er1
3018 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3025esac
3026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest.$ac_objext'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003041 ac_compiler_gnu=yes
3042else
3043 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003044sed 's/^/| /' conftest.$ac_ext >&5
3045
Reid Spencera773bd52006-08-04 18:18:08 +00003046 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003047fi
Reid Spencera773bd52006-08-04 18:18:08 +00003048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003050ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003051
3052fi
Reid Spencera773bd52006-08-04 18:18:08 +00003053{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3054echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003055GCC=`test $ac_compiler_gnu = yes && echo yes`
3056ac_test_CFLAGS=${CFLAGS+set}
3057ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003058{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3059echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003060if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003061 echo $ECHO_N "(cached) $ECHO_C" >&6
3062else
Reid Spencera773bd52006-08-04 18:18:08 +00003063 ac_save_c_werror_flag=$ac_c_werror_flag
3064 ac_c_werror_flag=yes
3065 ac_cv_prog_cc_g=no
3066 CFLAGS="-g"
3067 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003073
John Criswell7a73b802003-06-30 21:59:07 +00003074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003083if { (ac_try="$ac_compile"
3084case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3087esac
3088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003090 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003091 grep -v '^ *+' conftest.er1 >conftest.err
3092 rm -f conftest.er1
3093 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003095 (exit $ac_status); } &&
3096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; } &&
3106 { ac_try='test -s conftest.$ac_objext'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003116 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003117else
3118 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003119sed 's/^/| /' conftest.$ac_ext >&5
3120
Reid Spencera773bd52006-08-04 18:18:08 +00003121 CFLAGS=""
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128
3129int
3130main ()
3131{
3132
3133 ;
3134 return 0;
3135}
3136_ACEOF
3137rm -f conftest.$ac_objext
3138if { (ac_try="$ac_compile"
3139case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_compile") 2>conftest.er1
3145 ac_status=$?
3146 grep -v '^ *+' conftest.er1 >conftest.err
3147 rm -f conftest.er1
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003150 (exit $ac_status); } &&
3151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003171 :
3172else
3173 echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176 ac_c_werror_flag=$ac_save_c_werror_flag
3177 CFLAGS="-g"
3178 cat >conftest.$ac_ext <<_ACEOF
3179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
3184
3185int
3186main ()
3187{
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193rm -f conftest.$ac_objext
3194if { (ac_try="$ac_compile"
3195case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198esac
3199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3201 ac_status=$?
3202 grep -v '^ *+' conftest.er1 >conftest.err
3203 rm -f conftest.er1
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003206 (exit $ac_status); } &&
3207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3211esac
3212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); }; } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (case "(($ac_try" in
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3221esac
3222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003227 ac_cv_prog_cc_g=yes
3228else
3229 echo "$as_me: failed program was:" >&5
3230sed 's/^/| /' conftest.$ac_ext >&5
3231
3232
John Criswell7a73b802003-06-30 21:59:07 +00003233fi
Reid Spencera773bd52006-08-04 18:18:08 +00003234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003236fi
Reid Spencera773bd52006-08-04 18:18:08 +00003237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239fi
3240
3241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 ac_c_werror_flag=$ac_save_c_werror_flag
3243fi
3244{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3245echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003246if test "$ac_test_CFLAGS" = set; then
3247 CFLAGS=$ac_save_CFLAGS
3248elif test $ac_cv_prog_cc_g = yes; then
3249 if test "$GCC" = yes; then
3250 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003251 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003252 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003253 fi
3254else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003255 if test "$GCC" = yes; then
3256 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003257 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003258 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003259 fi
3260fi
Reid Spencera773bd52006-08-04 18:18:08 +00003261{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3262echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3263if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003264 echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
Reid Spencera773bd52006-08-04 18:18:08 +00003266 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003267ac_save_CC=$CC
3268cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274#include <stdarg.h>
3275#include <stdio.h>
3276#include <sys/types.h>
3277#include <sys/stat.h>
3278/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3279struct buf { int x; };
3280FILE * (*rcsopen) (struct buf *, struct stat *, int);
3281static char *e (p, i)
3282 char **p;
3283 int i;
3284{
3285 return p[i];
3286}
3287static char *f (char * (*g) (char **, int), char **p, ...)
3288{
3289 char *s;
3290 va_list v;
3291 va_start (v,p);
3292 s = g (p, va_arg (v,int));
3293 va_end (v);
3294 return s;
3295}
3296
3297/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3298 function prototypes and stuff, but not '\xHH' hex character constants.
3299 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003300 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3302 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003303 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003304int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3305
Reid Spencera773bd52006-08-04 18:18:08 +00003306/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3307 inside strings and character constants. */
3308#define FOO(x) 'x'
3309int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3310
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003311int test (int i, double x);
3312struct s1 {int (*f) (int a);};
3313struct s2 {int (*f) (double a);};
3314int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3315int argc;
3316char **argv;
3317int
3318main ()
3319{
3320return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3321 ;
3322 return 0;
3323}
3324_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003325for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3326 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327do
3328 CC="$ac_save_CC $ac_arg"
3329 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003330if { (ac_try="$ac_compile"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337 ac_status=$?
3338 grep -v '^ *+' conftest.er1 >conftest.err
3339 rm -f conftest.er1
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003342 (exit $ac_status); } &&
3343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347esac
3348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357esac
3358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_try") 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003363 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364else
3365 echo "$as_me: failed program was:" >&5
3366sed 's/^/| /' conftest.$ac_ext >&5
3367
Reid Spencera773bd52006-08-04 18:18:08 +00003368
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369fi
Reid Spencera773bd52006-08-04 18:18:08 +00003370
3371rm -f core conftest.err conftest.$ac_objext
3372 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003373done
Reid Spencera773bd52006-08-04 18:18:08 +00003374rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003375CC=$ac_save_CC
3376
3377fi
Reid Spencera773bd52006-08-04 18:18:08 +00003378# AC_CACHE_VAL
3379case "x$ac_cv_prog_cc_c89" in
3380 x)
3381 { echo "$as_me:$LINENO: result: none needed" >&5
3382echo "${ECHO_T}none needed" >&6; } ;;
3383 xno)
3384 { echo "$as_me:$LINENO: result: unsupported" >&5
3385echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003386 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003387 CC="$CC $ac_cv_prog_cc_c89"
3388 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003390esac
3391
John Criswell0c38eaf2003-09-10 15:17:25 +00003392
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003393ac_ext=c
3394ac_cpp='$CPP $CPPFLAGS'
3395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003400ac_ext=c
3401ac_cpp='$CPP $CPPFLAGS'
3402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003405{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3406echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003407# On Suns, sometimes $CPP names a directory.
3408if test -n "$CPP" && test -d "$CPP"; then
3409 CPP=
3410fi
3411if test -z "$CPP"; then
3412 if test "${ac_cv_prog_CPP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 # Double quotes because CPP needs to be expanded
3416 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3417 do
3418 ac_preproc_ok=false
3419for ac_c_preproc_warn_flag in '' yes
3420do
3421 # Use a header file that comes with gcc, so configuring glibc
3422 # with a fresh cross-compiler works.
3423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3424 # <limits.h> exists even on freestanding compilers.
3425 # On the NeXT, cc -E runs the code through the compiler's parser,
3426 # not just through cpp. "Syntax error" is here to catch this case.
3427 cat >conftest.$ac_ext <<_ACEOF
3428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
3433#ifdef __STDC__
3434# include <limits.h>
3435#else
3436# include <assert.h>
3437#endif
3438 Syntax error
3439_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003440if { (ac_try="$ac_cpp conftest.$ac_ext"
3441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003452 (exit $ac_status); } >/dev/null; then
3453 if test -s conftest.err; then
3454 ac_cpp_err=$ac_c_preproc_warn_flag
3455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3456 else
3457 ac_cpp_err=
3458 fi
3459else
3460 ac_cpp_err=yes
3461fi
3462if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003463 :
3464else
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 # Broken: fails on valid input.
3469continue
3470fi
Reid Spencera773bd52006-08-04 18:18:08 +00003471
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003472rm -f conftest.err conftest.$ac_ext
3473
Reid Spencera773bd52006-08-04 18:18:08 +00003474 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003475 # can be detected and how.
3476 cat >conftest.$ac_ext <<_ACEOF
3477/* confdefs.h. */
3478_ACEOF
3479cat confdefs.h >>conftest.$ac_ext
3480cat >>conftest.$ac_ext <<_ACEOF
3481/* end confdefs.h. */
3482#include <ac_nonexistent.h>
3483_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003484if { (ac_try="$ac_cpp conftest.$ac_ext"
3485case "(($ac_try" in
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3488esac
3489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003491 ac_status=$?
3492 grep -v '^ *+' conftest.er1 >conftest.err
3493 rm -f conftest.er1
3494 cat conftest.err >&5
3495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003496 (exit $ac_status); } >/dev/null; then
3497 if test -s conftest.err; then
3498 ac_cpp_err=$ac_c_preproc_warn_flag
3499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3500 else
3501 ac_cpp_err=
3502 fi
3503else
3504 ac_cpp_err=yes
3505fi
3506if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003507 # Broken: success on invalid input.
3508continue
3509else
3510 echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513 # Passes both tests.
3514ac_preproc_ok=:
3515break
3516fi
Reid Spencera773bd52006-08-04 18:18:08 +00003517
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003518rm -f conftest.err conftest.$ac_ext
3519
3520done
3521# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3522rm -f conftest.err conftest.$ac_ext
3523if $ac_preproc_ok; then
3524 break
3525fi
3526
3527 done
3528 ac_cv_prog_CPP=$CPP
3529
3530fi
3531 CPP=$ac_cv_prog_CPP
3532else
3533 ac_cv_prog_CPP=$CPP
3534fi
Reid Spencera773bd52006-08-04 18:18:08 +00003535{ echo "$as_me:$LINENO: result: $CPP" >&5
3536echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003537ac_preproc_ok=false
3538for ac_c_preproc_warn_flag in '' yes
3539do
3540 # Use a header file that comes with gcc, so configuring glibc
3541 # with a fresh cross-compiler works.
3542 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543 # <limits.h> exists even on freestanding compilers.
3544 # On the NeXT, cc -E runs the code through the compiler's parser,
3545 # not just through cpp. "Syntax error" is here to catch this case.
3546 cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#ifdef __STDC__
3553# include <limits.h>
3554#else
3555# include <assert.h>
3556#endif
3557 Syntax error
3558_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003559if { (ac_try="$ac_cpp conftest.$ac_ext"
3560case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563esac
3564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003566 ac_status=$?
3567 grep -v '^ *+' conftest.er1 >conftest.err
3568 rm -f conftest.er1
3569 cat conftest.err >&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003571 (exit $ac_status); } >/dev/null; then
3572 if test -s conftest.err; then
3573 ac_cpp_err=$ac_c_preproc_warn_flag
3574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3575 else
3576 ac_cpp_err=
3577 fi
3578else
3579 ac_cpp_err=yes
3580fi
3581if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003582 :
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 # Broken: fails on valid input.
3588continue
3589fi
Reid Spencera773bd52006-08-04 18:18:08 +00003590
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003591rm -f conftest.err conftest.$ac_ext
3592
Reid Spencera773bd52006-08-04 18:18:08 +00003593 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003594 # can be detected and how.
3595 cat >conftest.$ac_ext <<_ACEOF
3596/* confdefs.h. */
3597_ACEOF
3598cat confdefs.h >>conftest.$ac_ext
3599cat >>conftest.$ac_ext <<_ACEOF
3600/* end confdefs.h. */
3601#include <ac_nonexistent.h>
3602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003603if { (ac_try="$ac_cpp conftest.$ac_ext"
3604case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607esac
3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003610 ac_status=$?
3611 grep -v '^ *+' conftest.er1 >conftest.err
3612 rm -f conftest.er1
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003615 (exit $ac_status); } >/dev/null; then
3616 if test -s conftest.err; then
3617 ac_cpp_err=$ac_c_preproc_warn_flag
3618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3619 else
3620 ac_cpp_err=
3621 fi
3622else
3623 ac_cpp_err=yes
3624fi
3625if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003626 # Broken: success on invalid input.
3627continue
3628else
3629 echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632 # Passes both tests.
3633ac_preproc_ok=:
3634break
3635fi
Reid Spencera773bd52006-08-04 18:18:08 +00003636
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003637rm -f conftest.err conftest.$ac_ext
3638
3639done
3640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3641rm -f conftest.err conftest.$ac_ext
3642if $ac_preproc_ok; then
3643 :
3644else
3645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3646See \`config.log' for more details." >&5
3647echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3648See \`config.log' for more details." >&2;}
3649 { (exit 1); exit 1; }; }
3650fi
3651
John Criswell7a73b802003-06-30 21:59:07 +00003652ac_ext=c
3653ac_cpp='$CPP $CPPFLAGS'
3654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657
John Criswell7a73b802003-06-30 21:59:07 +00003658
Reid Spencera773bd52006-08-04 18:18:08 +00003659{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3660echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003661if test "${ac_cv_path_GREP+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
Reid Spencera773bd52006-08-04 18:18:08 +00003664 # Extract the first word of "grep ggrep" to use in msg output
3665if test -z "$GREP"; then
3666set dummy grep ggrep; ac_prog_name=$2
3667if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669else
Reid Spencera773bd52006-08-04 18:18:08 +00003670 ac_path_GREP_found=false
3671# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003673for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003674do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003677 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003678 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003679 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003680 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003681 # Check for GNU ac_path_GREP and select it if it is found.
3682 # Check for GNU $ac_path_GREP
3683case `"$ac_path_GREP" --version 2>&1` in
3684*GNU*)
3685 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3686*)
3687 ac_count=0
3688 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3689 while :
3690 do
3691 cat "conftest.in" "conftest.in" >"conftest.tmp"
3692 mv "conftest.tmp" "conftest.in"
3693 cp "conftest.in" "conftest.nl"
3694 echo 'GREP' >> "conftest.nl"
3695 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3696 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3697 ac_count=`expr $ac_count + 1`
3698 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3699 # Best one so far, save it but keep looking for a better one
3700 ac_cv_path_GREP="$ac_path_GREP"
3701 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003702 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003703 # 10*(2^10) chars as input seems more than enough
3704 test $ac_count -gt 10 && break
3705 done
3706 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3707esac
3708
3709
3710 $ac_path_GREP_found && break 3
3711 done
3712done
3713
3714done
3715IFS=$as_save_IFS
3716
3717
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003718fi
Reid Spencera773bd52006-08-04 18:18:08 +00003719
3720GREP="$ac_cv_path_GREP"
3721if test -z "$GREP"; then
3722 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3723echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3724 { (exit 1); exit 1; }; }
3725fi
3726
3727else
3728 ac_cv_path_GREP=$GREP
3729fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003730
John Criswell7a73b802003-06-30 21:59:07 +00003731
Reid Spencera773bd52006-08-04 18:18:08 +00003732fi
3733{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3734echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3735 GREP="$ac_cv_path_GREP"
3736
3737
3738{ echo "$as_me:$LINENO: checking for egrep" >&5
3739echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3740if test "${ac_cv_path_EGREP+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742else
3743 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3744 then ac_cv_path_EGREP="$GREP -E"
3745 else
3746 # Extract the first word of "egrep" to use in msg output
3747if test -z "$EGREP"; then
3748set dummy egrep; ac_prog_name=$2
3749if test "${ac_cv_path_EGREP+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751else
3752 ac_path_EGREP_found=false
3753# Loop through the user's path and test for each of PROGNAME-LIST
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in egrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003762 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003763 # Check for GNU ac_path_EGREP and select it if it is found.
3764 # Check for GNU $ac_path_EGREP
3765case `"$ac_path_EGREP" --version 2>&1` in
3766*GNU*)
3767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3768*)
3769 ac_count=0
3770 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3771 while :
3772 do
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 echo 'EGREP' >> "conftest.nl"
3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_EGREP="$ac_path_EGREP"
3783 ac_path_EGREP_max=$ac_count
3784 fi
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3787 done
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3789esac
3790
3791
3792 $ac_path_EGREP_found && break 3
3793 done
3794done
3795
3796done
3797IFS=$as_save_IFS
3798
3799
3800fi
3801
3802EGREP="$ac_cv_path_EGREP"
3803if test -z "$EGREP"; then
3804 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3805echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3806 { (exit 1); exit 1; }; }
3807fi
3808
3809else
3810 ac_cv_path_EGREP=$EGREP
3811fi
3812
3813
3814 fi
3815fi
3816{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3817echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3818 EGREP="$ac_cv_path_EGREP"
3819
3820
3821{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3822echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003823if test "${ac_cv_header_stdc+set}" = set; then
3824 echo $ECHO_N "(cached) $ECHO_C" >&6
3825else
3826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003827/* confdefs.h. */
3828_ACEOF
3829cat confdefs.h >>conftest.$ac_ext
3830cat >>conftest.$ac_ext <<_ACEOF
3831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003832#include <stdlib.h>
3833#include <stdarg.h>
3834#include <string.h>
3835#include <float.h>
3836
John Criswell0c38eaf2003-09-10 15:17:25 +00003837int
3838main ()
3839{
3840
3841 ;
3842 return 0;
3843}
John Criswell7a73b802003-06-30 21:59:07 +00003844_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003845rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003846if { (ac_try="$ac_compile"
3847case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863esac
3864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
3874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003879 ac_cv_header_stdc=yes
3880else
3881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003882sed 's/^/| /' conftest.$ac_ext >&5
3883
Reid Spencera773bd52006-08-04 18:18:08 +00003884 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003885fi
Reid Spencera773bd52006-08-04 18:18:08 +00003886
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003888
3889if test $ac_cv_header_stdc = yes; then
3890 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003897#include <string.h>
3898
3899_ACEOF
3900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003901 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003902 :
3903else
3904 ac_cv_header_stdc=no
3905fi
3906rm -f conftest*
3907
3908fi
3909
3910if test $ac_cv_header_stdc = yes; then
3911 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3912 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003913/* confdefs.h. */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003918#include <stdlib.h>
3919
3920_ACEOF
3921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003922 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003923 :
3924else
3925 ac_cv_header_stdc=no
3926fi
3927rm -f conftest*
3928
3929fi
3930
3931if test $ac_cv_header_stdc = yes; then
3932 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3933 if test "$cross_compiling" = yes; then
3934 :
3935else
3936 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003942#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003943#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003944#if ((' ' & 0x0FF) == 0x020)
3945# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3946# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3947#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003948# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003949 (('a' <= (c) && (c) <= 'i') \
3950 || ('j' <= (c) && (c) <= 'r') \
3951 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003952# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3953#endif
3954
3955#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3956int
3957main ()
3958{
3959 int i;
3960 for (i = 0; i < 256; i++)
3961 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003962 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003963 return 2;
3964 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003965}
3966_ACEOF
3967rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003968if { (ac_try="$ac_link"
3969case "(($ac_try" in
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3972esac
3973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3974 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003978 { (case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981esac
3982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003984 ac_status=$?
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); }; }; then
3987 :
3988else
3989 echo "$as_me: program exited with status $ac_status" >&5
3990echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003991sed 's/^/| /' conftest.$ac_ext >&5
3992
John Criswell7a73b802003-06-30 21:59:07 +00003993( exit $ac_status )
3994ac_cv_header_stdc=no
3995fi
Reid Spencera773bd52006-08-04 18:18:08 +00003996rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3997fi
3998
3999
John Criswell7a73b802003-06-30 21:59:07 +00004000fi
4001fi
Reid Spencera773bd52006-08-04 18:18:08 +00004002{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4003echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004004if test $ac_cv_header_stdc = yes; then
4005
4006cat >>confdefs.h <<\_ACEOF
4007#define STDC_HEADERS 1
4008_ACEOF
4009
4010fi
4011
Reid Spencera773bd52006-08-04 18:18:08 +00004012# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4023 inttypes.h stdint.h unistd.h
4024do
4025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4026{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4030else
4031 cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h. */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h. */
4037$ac_includes_default
4038
4039#include <$ac_header>
4040_ACEOF
4041rm -f conftest.$ac_objext
4042if { (ac_try="$ac_compile"
4043case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4046esac
4047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compile") 2>conftest.er1
4049 ac_status=$?
4050 grep -v '^ *+' conftest.er1 >conftest.err
4051 rm -f conftest.er1
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004054 (exit $ac_status); } &&
4055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059esac
4060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest.$ac_objext'
4066 { (case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_try") 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004075 eval "$as_ac_Header=yes"
4076else
4077 echo "$as_me: failed program was:" >&5
4078sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 eval "$as_ac_Header=no"
4081fi
4082
4083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084fi
4085ac_res=`eval echo '${'$as_ac_Header'}'`
4086 { echo "$as_me:$LINENO: result: $ac_res" >&5
4087echo "${ECHO_T}$ac_res" >&6; }
4088if test `eval echo '${'$as_ac_Header'}'` = yes; then
4089 cat >>confdefs.h <<_ACEOF
4090#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4091_ACEOF
4092
4093fi
4094
4095done
4096
4097
4098{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4099echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4100if test "${ac_cv_c_bigendian+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4102else
4103 # See if sys/param.h defines the BYTE_ORDER macro.
4104cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110#include <sys/types.h>
4111#include <sys/param.h>
4112
4113int
4114main ()
4115{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004116#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004117 bogus endian macros
4118#endif
4119
4120 ;
4121 return 0;
4122}
4123_ACEOF
4124rm -f conftest.$ac_objext
4125if { (ac_try="$ac_compile"
4126case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4129esac
4130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_compile") 2>conftest.er1
4132 ac_status=$?
4133 grep -v '^ *+' conftest.er1 >conftest.err
4134 rm -f conftest.er1
4135 cat conftest.err >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004137 (exit $ac_status); } &&
4138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4145 ac_status=$?
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; } &&
4148 { ac_try='test -s conftest.$ac_objext'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004158 # It does; now see whether it defined to BIG_ENDIAN or not.
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h. */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h. */
4165#include <sys/types.h>
4166#include <sys/param.h>
4167
4168int
4169main ()
4170{
4171#if BYTE_ORDER != BIG_ENDIAN
4172 not big endian
4173#endif
4174
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179rm -f conftest.$ac_objext
4180if { (ac_try="$ac_compile"
4181case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184esac
4185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004192 (exit $ac_status); } &&
4193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196 *) ac_try_echo=$ac_try;;
4197esac
4198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest.$ac_objext'
4204 { (case "(($ac_try" in
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4207esac
4208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_try") 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004213 ac_cv_c_bigendian=yes
4214else
4215 echo "$as_me: failed program was:" >&5
4216sed 's/^/| /' conftest.$ac_ext >&5
4217
4218 ac_cv_c_bigendian=no
4219fi
4220
4221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 # It does not; compile a test program.
4227if test "$cross_compiling" = yes; then
4228 # try to guess the endianness by grepping values into an object file
4229 ac_cv_c_bigendian=unknown
4230 cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4237short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4238void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4239short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4240short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4241void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4242int
4243main ()
4244{
4245 _ascii (); _ebcdic ();
4246 ;
4247 return 0;
4248}
4249_ACEOF
4250rm -f conftest.$ac_objext
4251if { (ac_try="$ac_compile"
4252case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_compile") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (case "(($ac_try" in
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4268esac
4269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; } &&
4274 { ac_try='test -s conftest.$ac_objext'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004284 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4285 ac_cv_c_bigendian=yes
4286fi
4287if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4288 if test "$ac_cv_c_bigendian" = unknown; then
4289 ac_cv_c_bigendian=no
4290 else
4291 # finding both strings is unlikely to happen, but who knows?
4292 ac_cv_c_bigendian=unknown
4293 fi
4294fi
4295else
4296 echo "$as_me: failed program was:" >&5
4297sed 's/^/| /' conftest.$ac_ext >&5
4298
4299
4300fi
4301
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303else
4304 cat >conftest.$ac_ext <<_ACEOF
4305/* confdefs.h. */
4306_ACEOF
4307cat confdefs.h >>conftest.$ac_ext
4308cat >>conftest.$ac_ext <<_ACEOF
4309/* end confdefs.h. */
4310$ac_includes_default
4311int
4312main ()
4313{
4314
4315 /* Are we little or big endian? From Harbison&Steele. */
4316 union
4317 {
4318 long int l;
4319 char c[sizeof (long int)];
4320 } u;
4321 u.l = 1;
4322 return u.c[sizeof (long int) - 1] == 1;
4323
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328rm -f conftest$ac_exeext
4329if { (ac_try="$ac_link"
4330case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4335 (eval "$ac_link") 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4339 { (case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342esac
4343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_try") 2>&5
4345 ac_status=$?
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); }; }; then
4348 ac_cv_c_bigendian=no
4349else
4350 echo "$as_me: program exited with status $ac_status" >&5
4351echo "$as_me: failed program was:" >&5
4352sed 's/^/| /' conftest.$ac_ext >&5
4353
4354( exit $ac_status )
4355ac_cv_c_bigendian=yes
4356fi
4357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4358fi
4359
4360
4361fi
4362
4363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4364fi
4365{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4366echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4367case $ac_cv_c_bigendian in
4368 yes)
4369 ENDIAN=big
4370 ;;
4371 no)
4372 ENDIAN=little
4373 ;;
4374 *)
4375 { { echo "$as_me:$LINENO: error: unknown endianness
4376presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4377echo "$as_me: error: unknown endianness
4378presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4379 { (exit 1); exit 1; }; } ;;
4380esac
4381
4382
4383if test "$cross_compiling" = yes; then
4384 LLVM_CROSS_COMPILING=1
4385
4386
4387{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4388echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4389if test "${ac_cv_build_exeext+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4393 ac_cv_build_exeext=.exe
4394else
4395 ac_build_prefix=${build_alias}-
4396
4397 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4398set dummy ${ac_build_prefix}gcc; ac_word=$2
4399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404 if test -n "$BUILD_CC"; then
4405 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004413 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 +00004414 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424BUILD_CC=$ac_cv_prog_BUILD_CC
4425if test -n "$BUILD_CC"; then
4426 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427echo "${ECHO_T}$BUILD_CC" >&6; }
4428else
4429 { echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6; }
4431fi
4432
4433
4434 if test -z "$BUILD_CC"; then
4435 # Extract the first word of "gcc", so it can be a program name with args.
4436set dummy gcc; ac_word=$2
4437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -n "$BUILD_CC"; then
4443 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444else
4445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4446for as_dir in $PATH
4447do
4448 IFS=$as_save_IFS
4449 test -z "$as_dir" && as_dir=.
4450 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004451 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 +00004452 ac_cv_prog_BUILD_CC="gcc"
4453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4454 break 2
4455 fi
4456done
4457done
4458IFS=$as_save_IFS
4459
4460fi
4461fi
4462BUILD_CC=$ac_cv_prog_BUILD_CC
4463if test -n "$BUILD_CC"; then
4464 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4465echo "${ECHO_T}$BUILD_CC" >&6; }
4466else
4467 { echo "$as_me:$LINENO: result: no" >&5
4468echo "${ECHO_T}no" >&6; }
4469fi
4470
4471
4472 if test -z "$BUILD_CC"; then
4473 # Extract the first word of "cc", so it can be a program name with args.
4474set dummy cc; ac_word=$2
4475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4477if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 if test -n "$BUILD_CC"; then
4481 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4482else
4483 ac_prog_rejected=no
4484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485for as_dir in $PATH
4486do
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004490 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 +00004491 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4492 ac_prog_rejected=yes
4493 continue
4494 fi
4495 ac_cv_prog_BUILD_CC="cc"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4498 fi
4499done
4500done
4501IFS=$as_save_IFS
4502
4503if test $ac_prog_rejected = yes; then
4504 # We found a bogon in the path, so make sure we never use it.
4505 set dummy $ac_cv_prog_BUILD_CC
4506 shift
4507 if test $# != 0; then
4508 # We chose a different compiler from the bogus one.
4509 # However, it has the same basename, so the bogon will be chosen
4510 # first if we set BUILD_CC to just the basename; use the full file name.
4511 shift
4512 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4513 fi
4514fi
4515fi
4516fi
4517BUILD_CC=$ac_cv_prog_BUILD_CC
4518if test -n "$BUILD_CC"; then
4519 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4520echo "${ECHO_T}$BUILD_CC" >&6; }
4521else
4522 { echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6; }
4524fi
4525
4526
4527 fi
4528 fi
4529 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4530echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4531 { (exit 1); exit 1; }; }
4532 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4533 rm -f conftest*
4534 echo 'int main () { return 0; }' > conftest.$ac_ext
4535 ac_cv_build_exeext=
4536 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4537 (eval $ac_build_link) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; then
4541 for file in conftest.*; do
4542 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004543 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004544 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4545 esac
4546 done
4547 else
4548 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4549echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4550 { (exit 1); exit 1; }; }
4551 fi
4552 rm -f conftest*
4553 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4554fi
4555fi
4556
4557BUILD_EXEEXT=""
4558test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4559{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4560echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4561ac_build_exeext=$BUILD_EXEEXT
4562
Jim Grosbach673612e2008-10-02 22:56:44 +00004563 ac_build_prefix=${build_alias}-
4564 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4565set dummy ${ac_build_prefix}g++; ac_word=$2
4566{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4570else
4571 if test -n "$BUILD_CXX"; then
4572 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4573else
4574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575for as_dir in $PATH
4576do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004581 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585done
4586done
4587IFS=$as_save_IFS
4588
4589fi
4590fi
4591BUILD_CXX=$ac_cv_prog_BUILD_CXX
4592if test -n "$BUILD_CXX"; then
4593 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4594echo "${ECHO_T}$BUILD_CXX" >&6; }
4595else
4596 { echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6; }
4598fi
4599
4600
4601 if test -z "$BUILD_CXX"; then
4602 # Extract the first word of "g++", so it can be a program name with args.
4603set dummy g++; ac_word=$2
4604{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608else
4609 if test -n "$BUILD_CXX"; then
4610 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004619 ac_cv_prog_BUILD_CXX="g++"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
4624done
4625IFS=$as_save_IFS
4626
4627fi
4628fi
4629BUILD_CXX=$ac_cv_prog_BUILD_CXX
4630if test -n "$BUILD_CXX"; then
4631 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4632echo "${ECHO_T}$BUILD_CXX" >&6; }
4633else
4634 { echo "$as_me:$LINENO: result: no" >&5
4635echo "${ECHO_T}no" >&6; }
4636fi
4637
4638
4639 if test -z "$BUILD_CXX"; then
4640 # Extract the first word of "c++", so it can be a program name with args.
4641set dummy c++; ac_word=$2
4642{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4646else
4647 if test -n "$BUILD_CXX"; then
4648 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4649else
4650 ac_prog_rejected=no
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4659 ac_prog_rejected=yes
4660 continue
4661 fi
4662 ac_cv_prog_BUILD_CXX="c++"
4663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4664 break 2
4665 fi
4666done
4667done
4668IFS=$as_save_IFS
4669
4670if test $ac_prog_rejected = yes; then
4671 # We found a bogon in the path, so make sure we never use it.
4672 set dummy $ac_cv_prog_BUILD_CXX
4673 shift
4674 if test $# != 0; then
4675 # We chose a different compiler from the bogus one.
4676 # However, it has the same basename, so the bogon will be chosen
4677 # first if we set BUILD_CXX to just the basename; use the full file name.
4678 shift
4679 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4680 fi
4681fi
4682fi
4683fi
4684BUILD_CXX=$ac_cv_prog_BUILD_CXX
4685if test -n "$BUILD_CXX"; then
4686 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4687echo "${ECHO_T}$BUILD_CXX" >&6; }
4688else
4689 { echo "$as_me:$LINENO: result: no" >&5
4690echo "${ECHO_T}no" >&6; }
4691fi
4692
4693
4694 fi
4695 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004696else
4697 LLVM_CROSS_COMPILING=0
4698
4699fi
4700
Reid Spencer0b1e4662007-04-02 15:41:39 +00004701if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004702 cvsbuild="yes"
4703 optimize="no"
4704 CVSBUILD=CVSBUILD=1
4705
4706else
4707 cvsbuild="no"
4708 optimize="yes"
4709fi
4710
4711
4712# Check whether --enable-optimized was given.
4713if test "${enable_optimized+set}" = set; then
4714 enableval=$enable_optimized;
4715else
4716 enableval=$optimize
4717fi
4718
4719if test ${enableval} = "no" ; then
4720 ENABLE_OPTIMIZED=
4721
4722else
4723 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4724
4725fi
4726
4727# Check whether --enable-assertions was given.
4728if test "${enable_assertions+set}" = set; then
4729 enableval=$enable_assertions;
4730else
4731 enableval="yes"
4732fi
4733
4734if test ${enableval} = "yes" ; then
4735 DISABLE_ASSERTIONS=
4736
4737else
4738 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4739
4740fi
4741
David Greenea696d242007-06-28 19:36:08 +00004742# Check whether --enable-expensive-checks was given.
4743if test "${enable_expensive_checks+set}" = set; then
4744 enableval=$enable_expensive_checks;
4745else
4746 enableval="no"
4747fi
4748
4749if test ${enableval} = "yes" ; then
4750 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4751
4752 EXPENSIVE_CHECKS=yes
4753
4754else
4755 ENABLE_EXPENSIVE_CHECKS=
4756
4757 EXPENSIVE_CHECKS=no
4758
4759fi
4760
Reid Spencer8b2e1412006-11-17 03:32:33 +00004761# Check whether --enable-debug-runtime was given.
4762if test "${enable_debug_runtime+set}" = set; then
4763 enableval=$enable_debug_runtime;
4764else
4765 enableval=no
4766fi
4767
4768if test ${enableval} = "no" ; then
4769 DEBUG_RUNTIME=
4770
4771else
4772 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4773
4774fi
4775
Reid Spencera773bd52006-08-04 18:18:08 +00004776# Check whether --enable-jit was given.
4777if test "${enable_jit+set}" = set; then
4778 enableval=$enable_jit;
4779else
4780 enableval=default
4781fi
4782
4783if test ${enableval} = "no"
4784then
4785 JIT=
4786
4787else
4788 case "$llvm_cv_target_arch" in
4789 x86) TARGET_HAS_JIT=1
4790 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004791 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004792 ;;
4793 PowerPC) TARGET_HAS_JIT=1
4794 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004795 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004796 ;;
4797 Alpha) TARGET_HAS_JIT=1
4798 ;;
4799 IA64) TARGET_HAS_JIT=0
4800 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004801 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004802 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004803 Mips) TARGET_HAS_JIT=0
4804 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004805 PIC16) TARGET_HAS_JIT=0
4806 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004807 XCore) TARGET_HAS_JIT=0
4808 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004809 *) TARGET_HAS_JIT=0
4810 ;;
4811 esac
4812fi
4813
4814# Check whether --enable-doxygen was given.
4815if test "${enable_doxygen+set}" = set; then
4816 enableval=$enable_doxygen;
4817else
4818 enableval=default
4819fi
4820
4821case "$enableval" in
4822 yes) ENABLE_DOXYGEN=1
4823 ;;
4824 no) ENABLE_DOXYGEN=0
4825 ;;
4826 default) ENABLE_DOXYGEN=0
4827 ;;
4828 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4829echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4830 { (exit 1); exit 1; }; } ;;
4831esac
4832
4833# Check whether --enable-threads was given.
4834if test "${enable_threads+set}" = set; then
4835 enableval=$enable_threads;
4836else
Reid Spencer65c5d752006-11-05 17:08:18 +00004837 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004838fi
4839
4840case "$enableval" in
4841 yes) ENABLE_THREADS=1
4842 ;;
4843 no) ENABLE_THREADS=0
4844 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004845 default) ENABLE_THREADS=1
4846 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004847 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4848echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4849 { (exit 1); exit 1; }; } ;;
4850esac
4851
4852cat >>confdefs.h <<_ACEOF
4853#define ENABLE_THREADS $ENABLE_THREADS
4854_ACEOF
4855
4856
Reid Spencer89b0d992006-12-16 22:07:52 +00004857# Check whether --enable-pic was given.
4858if test "${enable_pic+set}" = set; then
4859 enableval=$enable_pic;
4860else
4861 enableval=default
4862fi
4863
4864case "$enableval" in
4865 yes) ENABLE_PIC=1
4866 ;;
4867 no) ENABLE_PIC=0
4868 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004869 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004870 ;;
4871 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4872echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4873 { (exit 1); exit 1; }; } ;;
4874esac
4875
4876cat >>confdefs.h <<_ACEOF
4877#define ENABLE_PIC $ENABLE_PIC
4878_ACEOF
4879
4880
Reid Spencera773bd52006-08-04 18:18:08 +00004881TARGETS_TO_BUILD=""
4882# Check whether --enable-targets was given.
4883if test "${enable_targets+set}" = set; then
4884 enableval=$enable_targets;
4885else
4886 enableval=all
4887fi
4888
4889case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004890 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004891 host-only)
4892 case "$llvm_cv_target_arch" in
4893 x86) TARGETS_TO_BUILD="X86" ;;
4894 x86_64) TARGETS_TO_BUILD="X86" ;;
4895 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4896 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4897 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4898 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004899 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004900 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004901 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004902 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004903 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004904 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4905echo "$as_me: error: Can not set target to build" >&2;}
4906 { (exit 1); exit 1; }; } ;;
4907 esac
4908 ;;
4909 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4910 case "$a_target" in
4911 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4913 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4914 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4915 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4916 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004917 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004918 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004919 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004920 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004921 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004922 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4923 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004924 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004925 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4926echo "$as_me: error: Unrecognized target $a_target" >&2;}
4927 { (exit 1); exit 1; }; } ;;
4928 esac
4929 done
4930 ;;
4931esac
Reid Spencera773bd52006-08-04 18:18:08 +00004932TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4933
4934
Reid Spencer65c5d752006-11-05 17:08:18 +00004935# Check whether --enable-cbe-printf-a was given.
4936if test "${enable_cbe_printf_a+set}" = set; then
4937 enableval=$enable_cbe_printf_a;
4938else
4939 enableval=default
4940fi
4941
4942case "$enableval" in
4943 yes) ENABLE_CBE_PRINTF_A=1
4944 ;;
4945 no) ENABLE_CBE_PRINTF_A=0
4946 ;;
4947 default) ENABLE_CBE_PRINTF_A=1
4948 ;;
4949 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4950echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4951 { (exit 1); exit 1; }; } ;;
4952esac
4953
4954cat >>confdefs.h <<_ACEOF
4955#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4956_ACEOF
4957
4958
Reid Spencera773bd52006-08-04 18:18:08 +00004959
4960# Check whether --with-llvmgccdir was given.
4961if test "${with_llvmgccdir+set}" = set; then
4962 withval=$with_llvmgccdir;
4963else
4964 withval=default
4965fi
4966
4967case "$withval" in
4968 default) WITH_LLVMGCCDIR=default ;;
4969 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4970 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4971echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4973esac
4974
4975
Devang Patel5d28b882007-12-04 22:54:47 +00004976# Check whether --with-llvmgcc was given.
4977if test "${with_llvmgcc+set}" = set; then
4978 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4979 WITH_LLVMGCCDIR=""
4980fi
4981
4982
4983
4984# Check whether --with-llvmgxx was given.
4985if test "${with_llvmgxx+set}" = set; then
4986 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4987 WITH_LLVMGCCDIR=""
4988fi
4989
4990
4991if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4992 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4993echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4994 { (exit 1); exit 1; }; };
4995fi
4996
4997if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4998 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4999echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5000 { (exit 1); exit 1; }; };
5001fi
5002
5003
Reid Spencera773bd52006-08-04 18:18:08 +00005004# Check whether --with-extra-options was given.
5005if test "${with_extra_options+set}" = set; then
5006 withval=$with_extra_options;
5007else
5008 withval=default
5009fi
5010
5011case "$withval" in
5012 default) EXTRA_OPTIONS= ;;
5013 *) EXTRA_OPTIONS=$withval ;;
5014esac
5015EXTRA_OPTIONS=$EXTRA_OPTIONS
5016
5017
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005018# Check whether --enable-bindings was given.
5019if test "${enable_bindings+set}" = set; then
5020 enableval=$enable_bindings;
5021else
5022 enableval=default
5023fi
5024
5025BINDINGS_TO_BUILD=""
5026case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005027 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005028 all ) BINDINGS_TO_BUILD="ocaml" ;;
5029 none | no) BINDINGS_TO_BUILD="" ;;
5030 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5031 case "$a_binding" in
5032 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5033 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5034echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5035 { (exit 1); exit 1; }; } ;;
5036 esac
5037 done
5038 ;;
5039esac
5040
Reid Spencera773bd52006-08-04 18:18:08 +00005041
Gordon Henriksenf0915682007-10-02 16:42:22 +00005042# Check whether --with-ocaml-libdir was given.
5043if test "${with_ocaml_libdir+set}" = set; then
5044 withval=$with_ocaml_libdir;
5045else
5046 withval=auto
5047fi
5048
5049case "$withval" in
5050 auto) with_ocaml_libdir="$withval" ;;
5051 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5052 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5053echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5054 { (exit 1); exit 1; }; } ;;
5055esac
5056
5057
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005058# Check whether --with-binutils-include was given.
5059if test "${with_binutils_include+set}" = set; then
5060 withval=$with_binutils_include;
5061else
5062 withval=default
5063fi
5064
5065case "$withval" in
5066 default) WITH_BINUTILS_INCDIR=default ;;
5067 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5068 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5069echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5070 { (exit 1); exit 1; }; } ;;
5071esac
5072if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5073 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5074
5075 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5076 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5077 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5078echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5079 { (exit 1); exit 1; }; };
5080 fi
5081fi
5082
5083
Reid Spencera773bd52006-08-04 18:18:08 +00005084ac_ext=c
5085ac_cpp='$CPP $CPPFLAGS'
5086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5088ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5090echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5091# On Suns, sometimes $CPP names a directory.
5092if test -n "$CPP" && test -d "$CPP"; then
5093 CPP=
5094fi
5095if test -z "$CPP"; then
5096 if test "${ac_cv_prog_CPP+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099 # Double quotes because CPP needs to be expanded
5100 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5101 do
5102 ac_preproc_ok=false
5103for ac_c_preproc_warn_flag in '' yes
5104do
5105 # Use a header file that comes with gcc, so configuring glibc
5106 # with a fresh cross-compiler works.
5107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5108 # <limits.h> exists even on freestanding compilers.
5109 # On the NeXT, cc -E runs the code through the compiler's parser,
5110 # not just through cpp. "Syntax error" is here to catch this case.
5111 cat >conftest.$ac_ext <<_ACEOF
5112/* confdefs.h. */
5113_ACEOF
5114cat confdefs.h >>conftest.$ac_ext
5115cat >>conftest.$ac_ext <<_ACEOF
5116/* end confdefs.h. */
5117#ifdef __STDC__
5118# include <limits.h>
5119#else
5120# include <assert.h>
5121#endif
5122 Syntax error
5123_ACEOF
5124if { (ac_try="$ac_cpp conftest.$ac_ext"
5125case "(($ac_try" in
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5128esac
5129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_c_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143else
5144 ac_cpp_err=yes
5145fi
5146if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005147 :
5148else
5149 echo "$as_me: failed program was:" >&5
5150sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 # Broken: fails on valid input.
5153continue
5154fi
5155
5156rm -f conftest.err conftest.$ac_ext
5157
5158 # OK, works on sane cases. Now check whether nonexistent headers
5159 # can be detected and how.
5160 cat >conftest.$ac_ext <<_ACEOF
5161/* confdefs.h. */
5162_ACEOF
5163cat confdefs.h >>conftest.$ac_ext
5164cat >>conftest.$ac_ext <<_ACEOF
5165/* end confdefs.h. */
5166#include <ac_nonexistent.h>
5167_ACEOF
5168if { (ac_try="$ac_cpp conftest.$ac_ext"
5169case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172esac
5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_c_preproc_warn_flag
5183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5184 else
5185 ac_cpp_err=
5186 fi
5187else
5188 ac_cpp_err=yes
5189fi
5190if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005191 # Broken: success on invalid input.
5192continue
5193else
5194 echo "$as_me: failed program was:" >&5
5195sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 # Passes both tests.
5198ac_preproc_ok=:
5199break
5200fi
5201
5202rm -f conftest.err conftest.$ac_ext
5203
5204done
5205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5206rm -f conftest.err conftest.$ac_ext
5207if $ac_preproc_ok; then
5208 break
5209fi
5210
5211 done
5212 ac_cv_prog_CPP=$CPP
5213
5214fi
5215 CPP=$ac_cv_prog_CPP
5216else
5217 ac_cv_prog_CPP=$CPP
5218fi
5219{ echo "$as_me:$LINENO: result: $CPP" >&5
5220echo "${ECHO_T}$CPP" >&6; }
5221ac_preproc_ok=false
5222for ac_c_preproc_warn_flag in '' yes
5223do
5224 # Use a header file that comes with gcc, so configuring glibc
5225 # with a fresh cross-compiler works.
5226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5227 # <limits.h> exists even on freestanding compilers.
5228 # On the NeXT, cc -E runs the code through the compiler's parser,
5229 # not just through cpp. "Syntax error" is here to catch this case.
5230 cat >conftest.$ac_ext <<_ACEOF
5231/* confdefs.h. */
5232_ACEOF
5233cat confdefs.h >>conftest.$ac_ext
5234cat >>conftest.$ac_ext <<_ACEOF
5235/* end confdefs.h. */
5236#ifdef __STDC__
5237# include <limits.h>
5238#else
5239# include <assert.h>
5240#endif
5241 Syntax error
5242_ACEOF
5243if { (ac_try="$ac_cpp conftest.$ac_ext"
5244case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247esac
5248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005255 (exit $ac_status); } >/dev/null; then
5256 if test -s conftest.err; then
5257 ac_cpp_err=$ac_c_preproc_warn_flag
5258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5259 else
5260 ac_cpp_err=
5261 fi
5262else
5263 ac_cpp_err=yes
5264fi
5265if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005266 :
5267else
5268 echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271 # Broken: fails on valid input.
5272continue
5273fi
5274
5275rm -f conftest.err conftest.$ac_ext
5276
5277 # OK, works on sane cases. Now check whether nonexistent headers
5278 # can be detected and how.
5279 cat >conftest.$ac_ext <<_ACEOF
5280/* confdefs.h. */
5281_ACEOF
5282cat confdefs.h >>conftest.$ac_ext
5283cat >>conftest.$ac_ext <<_ACEOF
5284/* end confdefs.h. */
5285#include <ac_nonexistent.h>
5286_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005299 (exit $ac_status); } >/dev/null; then
5300 if test -s conftest.err; then
5301 ac_cpp_err=$ac_c_preproc_warn_flag
5302 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5303 else
5304 ac_cpp_err=
5305 fi
5306else
5307 ac_cpp_err=yes
5308fi
5309if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005310 # Broken: success on invalid input.
5311continue
5312else
5313 echo "$as_me: failed program was:" >&5
5314sed 's/^/| /' conftest.$ac_ext >&5
5315
5316 # Passes both tests.
5317ac_preproc_ok=:
5318break
5319fi
5320
5321rm -f conftest.err conftest.$ac_ext
5322
5323done
5324# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5325rm -f conftest.err conftest.$ac_ext
5326if $ac_preproc_ok; then
5327 :
5328else
5329 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5330See \`config.log' for more details." >&5
5331echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5332See \`config.log' for more details." >&2;}
5333 { (exit 1); exit 1; }; }
5334fi
5335
5336ac_ext=c
5337ac_cpp='$CPP $CPPFLAGS'
5338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341
5342ac_ext=c
5343ac_cpp='$CPP $CPPFLAGS'
5344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347if test -n "$ac_tool_prefix"; then
5348 for ac_prog in gcc
5349 do
5350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5351set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5352{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5354if test "${ac_cv_prog_CC+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357 if test -n "$CC"; then
5358 ac_cv_prog_CC="$CC" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005366 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 +00005367 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377CC=$ac_cv_prog_CC
5378if test -n "$CC"; then
5379 { echo "$as_me:$LINENO: result: $CC" >&5
5380echo "${ECHO_T}$CC" >&6; }
5381else
5382 { echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6; }
5384fi
5385
5386
5387 test -n "$CC" && break
5388 done
5389fi
5390if test -z "$CC"; then
5391 ac_ct_CC=$CC
5392 for ac_prog in gcc
5393do
5394 # Extract the first word of "$ac_prog", so it can be a program name with args.
5395set dummy $ac_prog; ac_word=$2
5396{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5398if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5399 echo $ECHO_N "(cached) $ECHO_C" >&6
5400else
5401 if test -n "$ac_ct_CC"; then
5402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005410 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 +00005411 ac_cv_prog_ac_ct_CC="$ac_prog"
5412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421ac_ct_CC=$ac_cv_prog_ac_ct_CC
5422if test -n "$ac_ct_CC"; then
5423 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5424echo "${ECHO_T}$ac_ct_CC" >&6; }
5425else
5426 { echo "$as_me:$LINENO: result: no" >&5
5427echo "${ECHO_T}no" >&6; }
5428fi
5429
5430
5431 test -n "$ac_ct_CC" && break
5432done
5433
5434 if test "x$ac_ct_CC" = x; then
5435 CC=""
5436 else
5437 case $cross_compiling:$ac_tool_warned in
5438yes:)
5439{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5440whose name does not start with the host triplet. If you think this
5441configuration is useful to you, please write to autoconf@gnu.org." >&5
5442echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5443whose name does not start with the host triplet. If you think this
5444configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5445ac_tool_warned=yes ;;
5446esac
5447 CC=$ac_ct_CC
5448 fi
5449fi
5450
5451
5452test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5453See \`config.log' for more details." >&5
5454echo "$as_me: error: no acceptable C compiler found in \$PATH
5455See \`config.log' for more details." >&2;}
5456 { (exit 1); exit 1; }; }
5457
5458# Provide some information about the compiler.
5459echo "$as_me:$LINENO: checking for C compiler version" >&5
5460ac_compiler=`set X $ac_compile; echo $2`
5461{ (ac_try="$ac_compiler --version >&5"
5462case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465esac
5466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compiler --version >&5") 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }
5471{ (ac_try="$ac_compiler -v >&5"
5472case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_compiler -v >&5") 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); }
5481{ (ac_try="$ac_compiler -V >&5"
5482case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485esac
5486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487 (eval "$ac_compiler -V >&5") 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }
5491
5492{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5493echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5494if test "${ac_cv_c_compiler_gnu+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497 cat >conftest.$ac_ext <<_ACEOF
5498/* confdefs.h. */
5499_ACEOF
5500cat confdefs.h >>conftest.$ac_ext
5501cat >>conftest.$ac_ext <<_ACEOF
5502/* end confdefs.h. */
5503
5504int
5505main ()
5506{
5507#ifndef __GNUC__
5508 choke me
5509#endif
5510
5511 ;
5512 return 0;
5513}
5514_ACEOF
5515rm -f conftest.$ac_objext
5516if { (ac_try="$ac_compile"
5517case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_compile") 2>conftest.er1
5523 ac_status=$?
5524 grep -v '^ *+' conftest.er1 >conftest.err
5525 rm -f conftest.er1
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005528 (exit $ac_status); } &&
5529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5530 { (case "(($ac_try" in
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5533esac
5534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_try") 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; } &&
5539 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005549 ac_compiler_gnu=yes
5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_compiler_gnu=no
5555fi
5556
5557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558ac_cv_c_compiler_gnu=$ac_compiler_gnu
5559
5560fi
5561{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5562echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5563GCC=`test $ac_compiler_gnu = yes && echo yes`
5564ac_test_CFLAGS=${CFLAGS+set}
5565ac_save_CFLAGS=$CFLAGS
5566{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5567echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5568if test "${ac_cv_prog_cc_g+set}" = set; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5570else
5571 ac_save_c_werror_flag=$ac_c_werror_flag
5572 ac_c_werror_flag=yes
5573 ac_cv_prog_cc_g=no
5574 CFLAGS="-g"
5575 cat >conftest.$ac_ext <<_ACEOF
5576/* confdefs.h. */
5577_ACEOF
5578cat confdefs.h >>conftest.$ac_ext
5579cat >>conftest.$ac_ext <<_ACEOF
5580/* end confdefs.h. */
5581
5582int
5583main ()
5584{
5585
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext
5591if { (ac_try="$ac_compile"
5592case "(($ac_try" in
5593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594 *) ac_try_echo=$ac_try;;
5595esac
5596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597 (eval "$ac_compile") 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; } &&
5614 { ac_try='test -s conftest.$ac_objext'
5615 { (case "(($ac_try" in
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5618esac
5619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005624 ac_cv_prog_cc_g=yes
5625else
5626 echo "$as_me: failed program was:" >&5
5627sed 's/^/| /' conftest.$ac_ext >&5
5628
5629 CFLAGS=""
5630 cat >conftest.$ac_ext <<_ACEOF
5631/* confdefs.h. */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h. */
5636
5637int
5638main ()
5639{
5640
5641 ;
5642 return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (ac_try="$ac_compile"
5647case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_compile") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005658 (exit $ac_status); } &&
5659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5660 { (case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663esac
5664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; } &&
5669 { ac_try='test -s conftest.$ac_objext'
5670 { (case "(($ac_try" in
5671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5672 *) ac_try_echo=$ac_try;;
5673esac
5674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5675 (eval "$ac_try") 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005679 :
5680else
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_c_werror_flag=$ac_save_c_werror_flag
5685 CFLAGS="-g"
5686 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692
5693int
5694main ()
5695{
5696
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
5702if { (ac_try="$ac_compile"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
5707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005714 (exit $ac_status); } &&
5715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5716 { (case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_try") 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest.$ac_objext'
5726 { (case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729esac
5730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_try") 2>&5
5732 ac_status=$?
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005735 ac_cv_prog_cc_g=yes
5736else
5737 echo "$as_me: failed program was:" >&5
5738sed 's/^/| /' conftest.$ac_ext >&5
5739
5740
5741fi
5742
5743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744fi
5745
5746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747fi
5748
5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_c_werror_flag=$ac_save_c_werror_flag
5751fi
5752{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5753echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5754if test "$ac_test_CFLAGS" = set; then
5755 CFLAGS=$ac_save_CFLAGS
5756elif test $ac_cv_prog_cc_g = yes; then
5757 if test "$GCC" = yes; then
5758 CFLAGS="-g -O2"
5759 else
5760 CFLAGS="-g"
5761 fi
5762else
5763 if test "$GCC" = yes; then
5764 CFLAGS="-O2"
5765 else
5766 CFLAGS=
5767 fi
5768fi
5769{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5770echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5771if test "${ac_cv_prog_cc_c89+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773else
5774 ac_cv_prog_cc_c89=no
5775ac_save_CC=$CC
5776cat >conftest.$ac_ext <<_ACEOF
5777/* confdefs.h. */
5778_ACEOF
5779cat confdefs.h >>conftest.$ac_ext
5780cat >>conftest.$ac_ext <<_ACEOF
5781/* end confdefs.h. */
5782#include <stdarg.h>
5783#include <stdio.h>
5784#include <sys/types.h>
5785#include <sys/stat.h>
5786/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5787struct buf { int x; };
5788FILE * (*rcsopen) (struct buf *, struct stat *, int);
5789static char *e (p, i)
5790 char **p;
5791 int i;
5792{
5793 return p[i];
5794}
5795static char *f (char * (*g) (char **, int), char **p, ...)
5796{
5797 char *s;
5798 va_list v;
5799 va_start (v,p);
5800 s = g (p, va_arg (v,int));
5801 va_end (v);
5802 return s;
5803}
5804
5805/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5806 function prototypes and stuff, but not '\xHH' hex character constants.
5807 These don't provoke an error unfortunately, instead are silently treated
5808 as 'x'. The following induces an error, until -std is added to get
5809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5810 array size at least. It's necessary to write '\x00'==0 to get something
5811 that's true only with -std. */
5812int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5813
5814/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5815 inside strings and character constants. */
5816#define FOO(x) 'x'
5817int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5818
5819int test (int i, double x);
5820struct s1 {int (*f) (int a);};
5821struct s2 {int (*f) (double a);};
5822int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5823int argc;
5824char **argv;
5825int
5826main ()
5827{
5828return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5835do
5836 CC="$ac_save_CC $ac_arg"
5837 rm -f conftest.$ac_objext
5838if { (ac_try="$ac_compile"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_compile") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005850 (exit $ac_status); } &&
5851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5852 { (case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855esac
5856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_try") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; } &&
5861 { ac_try='test -s conftest.$ac_objext'
5862 { (case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_try") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005871 ac_cv_prog_cc_c89=$ac_arg
5872else
5873 echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext
5880 test "x$ac_cv_prog_cc_c89" != "xno" && break
5881done
5882rm -f conftest.$ac_ext
5883CC=$ac_save_CC
5884
5885fi
5886# AC_CACHE_VAL
5887case "x$ac_cv_prog_cc_c89" in
5888 x)
5889 { echo "$as_me:$LINENO: result: none needed" >&5
5890echo "${ECHO_T}none needed" >&6; } ;;
5891 xno)
5892 { echo "$as_me:$LINENO: result: unsupported" >&5
5893echo "${ECHO_T}unsupported" >&6; } ;;
5894 *)
5895 CC="$CC $ac_cv_prog_cc_c89"
5896 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5897echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5898esac
5899
5900
5901ac_ext=c
5902ac_cpp='$CPP $CPPFLAGS'
5903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5905ac_compiler_gnu=$ac_cv_c_compiler_gnu
5906
5907ac_ext=cpp
5908ac_cpp='$CXXCPP $CPPFLAGS'
5909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912if test -z "$CXX"; then
5913 if test -n "$CCC"; then
5914 CXX=$CCC
5915 else
5916 if test -n "$ac_tool_prefix"; then
5917 for ac_prog in g++
5918 do
5919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5920set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5921{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5923if test "${ac_cv_prog_CXX+set}" = set; then
5924 echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926 if test -n "$CXX"; then
5927 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5928else
5929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930for as_dir in $PATH
5931do
5932 IFS=$as_save_IFS
5933 test -z "$as_dir" && as_dir=.
5934 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005935 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 +00005936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5938 break 2
5939 fi
5940done
5941done
5942IFS=$as_save_IFS
5943
5944fi
5945fi
5946CXX=$ac_cv_prog_CXX
5947if test -n "$CXX"; then
5948 { echo "$as_me:$LINENO: result: $CXX" >&5
5949echo "${ECHO_T}$CXX" >&6; }
5950else
5951 { echo "$as_me:$LINENO: result: no" >&5
5952echo "${ECHO_T}no" >&6; }
5953fi
5954
5955
5956 test -n "$CXX" && break
5957 done
5958fi
5959if test -z "$CXX"; then
5960 ac_ct_CXX=$CXX
5961 for ac_prog in g++
5962do
5963 # Extract the first word of "$ac_prog", so it can be a program name with args.
5964set dummy $ac_prog; ac_word=$2
5965{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5967if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5968 echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970 if test -n "$ac_ct_CXX"; then
5971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5972else
5973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974for as_dir in $PATH
5975do
5976 IFS=$as_save_IFS
5977 test -z "$as_dir" && as_dir=.
5978 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005979 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 +00005980 ac_cv_prog_ac_ct_CXX="$ac_prog"
5981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 break 2
5983 fi
5984done
5985done
5986IFS=$as_save_IFS
5987
5988fi
5989fi
5990ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5991if test -n "$ac_ct_CXX"; then
5992 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5993echo "${ECHO_T}$ac_ct_CXX" >&6; }
5994else
5995 { echo "$as_me:$LINENO: result: no" >&5
5996echo "${ECHO_T}no" >&6; }
5997fi
5998
5999
6000 test -n "$ac_ct_CXX" && break
6001done
6002
6003 if test "x$ac_ct_CXX" = x; then
6004 CXX="g++"
6005 else
6006 case $cross_compiling:$ac_tool_warned in
6007yes:)
6008{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6009whose name does not start with the host triplet. If you think this
6010configuration is useful to you, please write to autoconf@gnu.org." >&5
6011echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6012whose name does not start with the host triplet. If you think this
6013configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6014ac_tool_warned=yes ;;
6015esac
6016 CXX=$ac_ct_CXX
6017 fi
6018fi
6019
6020 fi
6021fi
6022# Provide some information about the compiler.
6023echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6024ac_compiler=`set X $ac_compile; echo $2`
6025{ (ac_try="$ac_compiler --version >&5"
6026case "(($ac_try" in
6027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6028 *) ac_try_echo=$ac_try;;
6029esac
6030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6031 (eval "$ac_compiler --version >&5") 2>&5
6032 ac_status=$?
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }
6035{ (ac_try="$ac_compiler -v >&5"
6036case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039esac
6040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6041 (eval "$ac_compiler -v >&5") 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }
6045{ (ac_try="$ac_compiler -V >&5"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compiler -V >&5") 2>&5
6052 ac_status=$?
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }
6055
6056{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6057echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6058if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6060else
6061 cat >conftest.$ac_ext <<_ACEOF
6062/* confdefs.h. */
6063_ACEOF
6064cat confdefs.h >>conftest.$ac_ext
6065cat >>conftest.$ac_ext <<_ACEOF
6066/* end confdefs.h. */
6067
6068int
6069main ()
6070{
6071#ifndef __GNUC__
6072 choke me
6073#endif
6074
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079rm -f conftest.$ac_objext
6080if { (ac_try="$ac_compile"
6081case "(($ac_try" in
6082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6083 *) ac_try_echo=$ac_try;;
6084esac
6085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006092 (exit $ac_status); } &&
6093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; } &&
6103 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006113 ac_compiler_gnu=yes
6114else
6115 echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118 ac_compiler_gnu=no
6119fi
6120
6121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6122ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6123
6124fi
6125{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6126echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6127GXX=`test $ac_compiler_gnu = yes && echo yes`
6128ac_test_CXXFLAGS=${CXXFLAGS+set}
6129ac_save_CXXFLAGS=$CXXFLAGS
6130{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6131echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6132if test "${ac_cv_prog_cxx_g+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6134else
6135 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6136 ac_cxx_werror_flag=yes
6137 ac_cv_prog_cxx_g=no
6138 CXXFLAGS="-g"
6139 cat >conftest.$ac_ext <<_ACEOF
6140/* confdefs.h. */
6141_ACEOF
6142cat confdefs.h >>conftest.$ac_ext
6143cat >>conftest.$ac_ext <<_ACEOF
6144/* end confdefs.h. */
6145
6146int
6147main ()
6148{
6149
6150 ;
6151 return 0;
6152}
6153_ACEOF
6154rm -f conftest.$ac_objext
6155if { (ac_try="$ac_compile"
6156case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159esac
6160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006167 (exit $ac_status); } &&
6168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6169 { (case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_try") 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); }; } &&
6178 { ac_try='test -s conftest.$ac_objext'
6179 { (case "(($ac_try" in
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6182esac
6183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_try") 2>&5
6185 ac_status=$?
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006188 ac_cv_prog_cxx_g=yes
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193 CXXFLAGS=""
6194 cat >conftest.$ac_ext <<_ACEOF
6195/* confdefs.h. */
6196_ACEOF
6197cat confdefs.h >>conftest.$ac_ext
6198cat >>conftest.$ac_ext <<_ACEOF
6199/* end confdefs.h. */
6200
6201int
6202main ()
6203{
6204
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209rm -f conftest.$ac_objext
6210if { (ac_try="$ac_compile"
6211case "(($ac_try" in
6212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6213 *) ac_try_echo=$ac_try;;
6214esac
6215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6216 (eval "$ac_compile") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006222 (exit $ac_status); } &&
6223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6224 { (case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227esac
6228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6229 (eval "$ac_try") 2>&5
6230 ac_status=$?
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); }; } &&
6233 { ac_try='test -s conftest.$ac_objext'
6234 { (case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
6238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_try") 2>&5
6240 ac_status=$?
6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6242 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006243 :
6244else
6245 echo "$as_me: failed program was:" >&5
6246sed 's/^/| /' conftest.$ac_ext >&5
6247
6248 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6249 CXXFLAGS="-g"
6250 cat >conftest.$ac_ext <<_ACEOF
6251/* confdefs.h. */
6252_ACEOF
6253cat confdefs.h >>conftest.$ac_ext
6254cat >>conftest.$ac_ext <<_ACEOF
6255/* end confdefs.h. */
6256
6257int
6258main ()
6259{
6260
6261 ;
6262 return 0;
6263}
6264_ACEOF
6265rm -f conftest.$ac_objext
6266if { (ac_try="$ac_compile"
6267case "(($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_compile") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006278 (exit $ac_status); } &&
6279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6280 { (case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283esac
6284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_try") 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }; } &&
6289 { ac_try='test -s conftest.$ac_objext'
6290 { (case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293esac
6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_try") 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006299 ac_cv_prog_cxx_g=yes
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
6304
6305fi
6306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309
6310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6311fi
6312
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6315fi
6316{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6317echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6318if test "$ac_test_CXXFLAGS" = set; then
6319 CXXFLAGS=$ac_save_CXXFLAGS
6320elif test $ac_cv_prog_cxx_g = yes; then
6321 if test "$GXX" = yes; then
6322 CXXFLAGS="-g -O2"
6323 else
6324 CXXFLAGS="-g"
6325 fi
6326else
6327 if test "$GXX" = yes; then
6328 CXXFLAGS="-O2"
6329 else
6330 CXXFLAGS=
6331 fi
6332fi
6333ac_ext=c
6334ac_cpp='$CPP $CPPFLAGS'
6335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6337ac_compiler_gnu=$ac_cv_c_compiler_gnu
6338
Reid Spencera773bd52006-08-04 18:18:08 +00006339
6340{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6341echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6342if test "${lt_cv_path_NM+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6344else
6345 if test -n "$NM"; then
6346 # Let the user override the test.
6347 lt_cv_path_NM="$NM"
6348else
6349 lt_nm_to_check="${ac_tool_prefix}nm"
6350 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6351 lt_nm_to_check="$lt_nm_to_check nm"
6352 fi
6353 for lt_tmp_nm in $lt_nm_to_check; do
6354 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6355 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6356 IFS="$lt_save_ifs"
6357 test -z "$ac_dir" && ac_dir=.
6358 tmp_nm="$ac_dir/$lt_tmp_nm"
6359 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6360 # Check to see if the nm accepts a BSD-compat flag.
6361 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6362 # nm: unknown option "B" ignored
6363 # Tru64's nm complains that /dev/null is an invalid object file
6364 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6365 */dev/null* | *'Invalid file or object type'*)
6366 lt_cv_path_NM="$tmp_nm -B"
6367 break
6368 ;;
6369 *)
6370 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6371 */dev/null*)
6372 lt_cv_path_NM="$tmp_nm -p"
6373 break
6374 ;;
6375 *)
6376 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6377 continue # so that we can try to find one that supports BSD flags
6378 ;;
6379 esac
6380 ;;
6381 esac
6382 fi
6383 done
6384 IFS="$lt_save_ifs"
6385 done
6386 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6387fi
6388fi
6389{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6390echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6391NM="$lt_cv_path_NM"
6392
6393
6394
6395{ echo "$as_me:$LINENO: checking for GNU make" >&5
6396echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6397if test "${llvm_cv_gnu_make_command+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
6400 llvm_cv_gnu_make_command=''
6401 for a in "$MAKE" make gmake gnumake ; do
6402 if test -z "$a" ; then continue ; fi ;
6403 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6404 then
6405 llvm_cv_gnu_make_command=$a ;
6406 break;
6407 fi
6408 done
6409fi
6410{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6411echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6412 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6413 ifGNUmake='' ;
6414 else
6415 ifGNUmake='#' ;
6416 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6417echo "${ECHO_T}\"Not found\"" >&6; };
6418 fi
6419
6420
6421{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6422echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6423LN_S=$as_ln_s
6424if test "$LN_S" = "ln -s"; then
6425 { echo "$as_me:$LINENO: result: yes" >&5
6426echo "${ECHO_T}yes" >&6; }
6427else
6428 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6429echo "${ECHO_T}no, using $LN_S" >&6; }
6430fi
6431
6432# Extract the first word of "cmp", so it can be a program name with args.
6433set dummy cmp; ac_word=$2
6434{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6436if test "${ac_cv_path_CMP+set}" = set; then
6437 echo $ECHO_N "(cached) $ECHO_C" >&6
6438else
6439 case $CMP in
6440 [\\/]* | ?:[\\/]*)
6441 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6442 ;;
6443 *)
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006450 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 +00006451 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455done
6456done
6457IFS=$as_save_IFS
6458
6459 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6460 ;;
6461esac
6462fi
6463CMP=$ac_cv_path_CMP
6464if test -n "$CMP"; then
6465 { echo "$as_me:$LINENO: result: $CMP" >&5
6466echo "${ECHO_T}$CMP" >&6; }
6467else
6468 { echo "$as_me:$LINENO: result: no" >&5
6469echo "${ECHO_T}no" >&6; }
6470fi
6471
6472
6473# Extract the first word of "cp", so it can be a program name with args.
6474set dummy cp; ac_word=$2
6475{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477if test "${ac_cv_path_CP+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480 case $CP in
6481 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6483 ;;
6484 *)
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006491 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 +00006492 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496done
6497done
6498IFS=$as_save_IFS
6499
6500 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6501 ;;
6502esac
6503fi
6504CP=$ac_cv_path_CP
6505if test -n "$CP"; then
6506 { echo "$as_me:$LINENO: result: $CP" >&5
6507echo "${ECHO_T}$CP" >&6; }
6508else
6509 { echo "$as_me:$LINENO: result: no" >&5
6510echo "${ECHO_T}no" >&6; }
6511fi
6512
6513
6514# Extract the first word of "date", so it can be a program name with args.
6515set dummy date; ac_word=$2
6516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6518if test "${ac_cv_path_DATE+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521 case $DATE in
6522 [\\/]* | ?:[\\/]*)
6523 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6524 ;;
6525 *)
6526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6527for as_dir in $PATH
6528do
6529 IFS=$as_save_IFS
6530 test -z "$as_dir" && as_dir=.
6531 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006532 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 +00006533 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535 break 2
6536 fi
6537done
6538done
6539IFS=$as_save_IFS
6540
6541 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6542 ;;
6543esac
6544fi
6545DATE=$ac_cv_path_DATE
6546if test -n "$DATE"; then
6547 { echo "$as_me:$LINENO: result: $DATE" >&5
6548echo "${ECHO_T}$DATE" >&6; }
6549else
6550 { echo "$as_me:$LINENO: result: no" >&5
6551echo "${ECHO_T}no" >&6; }
6552fi
6553
6554
6555# Extract the first word of "find", so it can be a program name with args.
6556set dummy find; ac_word=$2
6557{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6559if test "${ac_cv_path_FIND+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562 case $FIND in
6563 [\\/]* | ?:[\\/]*)
6564 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6565 ;;
6566 *)
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570 IFS=$as_save_IFS
6571 test -z "$as_dir" && as_dir=.
6572 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006573 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 +00006574 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576 break 2
6577 fi
6578done
6579done
6580IFS=$as_save_IFS
6581
6582 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6583 ;;
6584esac
6585fi
6586FIND=$ac_cv_path_FIND
6587if test -n "$FIND"; then
6588 { echo "$as_me:$LINENO: result: $FIND" >&5
6589echo "${ECHO_T}$FIND" >&6; }
6590else
6591 { echo "$as_me:$LINENO: result: no" >&5
6592echo "${ECHO_T}no" >&6; }
6593fi
6594
6595
6596# Extract the first word of "grep", so it can be a program name with args.
6597set dummy grep; ac_word=$2
6598{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6600if test "${ac_cv_path_GREP+set}" = set; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603 case $GREP in
6604 [\\/]* | ?:[\\/]*)
6605 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6606 ;;
6607 *)
6608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609for as_dir in $PATH
6610do
6611 IFS=$as_save_IFS
6612 test -z "$as_dir" && as_dir=.
6613 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006614 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 +00006615 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 break 2
6618 fi
6619done
6620done
6621IFS=$as_save_IFS
6622
6623 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6624 ;;
6625esac
6626fi
6627GREP=$ac_cv_path_GREP
6628if test -n "$GREP"; then
6629 { echo "$as_me:$LINENO: result: $GREP" >&5
6630echo "${ECHO_T}$GREP" >&6; }
6631else
6632 { echo "$as_me:$LINENO: result: no" >&5
6633echo "${ECHO_T}no" >&6; }
6634fi
6635
6636
6637# Extract the first word of "mkdir", so it can be a program name with args.
6638set dummy mkdir; ac_word=$2
6639{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6641if test "${ac_cv_path_MKDIR+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644 case $MKDIR in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6647 ;;
6648 *)
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650for as_dir in $PATH
6651do
6652 IFS=$as_save_IFS
6653 test -z "$as_dir" && as_dir=.
6654 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006655 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 +00006656 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6658 break 2
6659 fi
6660done
6661done
6662IFS=$as_save_IFS
6663
6664 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6665 ;;
6666esac
6667fi
6668MKDIR=$ac_cv_path_MKDIR
6669if test -n "$MKDIR"; then
6670 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6671echo "${ECHO_T}$MKDIR" >&6; }
6672else
6673 { echo "$as_me:$LINENO: result: no" >&5
6674echo "${ECHO_T}no" >&6; }
6675fi
6676
6677
6678# Extract the first word of "mv", so it can be a program name with args.
6679set dummy mv; ac_word=$2
6680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6682if test "${ac_cv_path_MV+set}" = set; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684else
6685 case $MV in
6686 [\\/]* | ?:[\\/]*)
6687 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6688 ;;
6689 *)
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691for as_dir in $PATH
6692do
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006696 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 +00006697 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6699 break 2
6700 fi
6701done
6702done
6703IFS=$as_save_IFS
6704
6705 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6706 ;;
6707esac
6708fi
6709MV=$ac_cv_path_MV
6710if test -n "$MV"; then
6711 { echo "$as_me:$LINENO: result: $MV" >&5
6712echo "${ECHO_T}$MV" >&6; }
6713else
6714 { echo "$as_me:$LINENO: result: no" >&5
6715echo "${ECHO_T}no" >&6; }
6716fi
6717
6718
6719if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6721set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6722{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724if test "${ac_cv_prog_RANLIB+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727 if test -n "$RANLIB"; then
6728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733 IFS=$as_save_IFS
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006736 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 +00006737 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 break 2
6740 fi
6741done
6742done
6743IFS=$as_save_IFS
6744
6745fi
6746fi
6747RANLIB=$ac_cv_prog_RANLIB
6748if test -n "$RANLIB"; then
6749 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6750echo "${ECHO_T}$RANLIB" >&6; }
6751else
6752 { echo "$as_me:$LINENO: result: no" >&5
6753echo "${ECHO_T}no" >&6; }
6754fi
6755
6756
6757fi
6758if test -z "$ac_cv_prog_RANLIB"; then
6759 ac_ct_RANLIB=$RANLIB
6760 # Extract the first word of "ranlib", so it can be a program name with args.
6761set dummy ranlib; ac_word=$2
6762{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766else
6767 if test -n "$ac_ct_RANLIB"; then
6768 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6769else
6770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771for as_dir in $PATH
6772do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006776 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 +00006777 ac_cv_prog_ac_ct_RANLIB="ranlib"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781done
6782done
6783IFS=$as_save_IFS
6784
6785fi
6786fi
6787ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6788if test -n "$ac_ct_RANLIB"; then
6789 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6790echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6791else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793echo "${ECHO_T}no" >&6; }
6794fi
6795
6796 if test "x$ac_ct_RANLIB" = x; then
6797 RANLIB=":"
6798 else
6799 case $cross_compiling:$ac_tool_warned in
6800yes:)
6801{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802whose name does not start with the host triplet. If you think this
6803configuration is useful to you, please write to autoconf@gnu.org." >&5
6804echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805whose name does not start with the host triplet. If you think this
6806configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807ac_tool_warned=yes ;;
6808esac
6809 RANLIB=$ac_ct_RANLIB
6810 fi
6811else
6812 RANLIB="$ac_cv_prog_RANLIB"
6813fi
6814
6815# Extract the first word of "rm", so it can be a program name with args.
6816set dummy rm; ac_word=$2
6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_path_RM+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822 case $RM in
6823 [\\/]* | ?:[\\/]*)
6824 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6825 ;;
6826 *)
6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006833 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 +00006834 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840IFS=$as_save_IFS
6841
6842 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6843 ;;
6844esac
6845fi
6846RM=$ac_cv_path_RM
6847if test -n "$RM"; then
6848 { echo "$as_me:$LINENO: result: $RM" >&5
6849echo "${ECHO_T}$RM" >&6; }
6850else
6851 { echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6; }
6853fi
6854
6855
6856# Extract the first word of "sed", so it can be a program name with args.
6857set dummy sed; ac_word=$2
6858{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860if test "${ac_cv_path_SED+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863 case $SED in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6866 ;;
6867 *)
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006874 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 +00006875 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880done
6881IFS=$as_save_IFS
6882
6883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6884 ;;
6885esac
6886fi
6887SED=$ac_cv_path_SED
6888if test -n "$SED"; then
6889 { echo "$as_me:$LINENO: result: $SED" >&5
6890echo "${ECHO_T}$SED" >&6; }
6891else
6892 { echo "$as_me:$LINENO: result: no" >&5
6893echo "${ECHO_T}no" >&6; }
6894fi
6895
6896
6897# Extract the first word of "tar", so it can be a program name with args.
6898set dummy tar; ac_word=$2
6899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6901if test "${ac_cv_path_TAR+set}" = set; then
6902 echo $ECHO_N "(cached) $ECHO_C" >&6
6903else
6904 case $TAR in
6905 [\\/]* | ?:[\\/]*)
6906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6907 ;;
6908 *)
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910for as_dir in $PATH
6911do
6912 IFS=$as_save_IFS
6913 test -z "$as_dir" && as_dir=.
6914 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006915 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 +00006916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6918 break 2
6919 fi
6920done
6921done
6922IFS=$as_save_IFS
6923
6924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6925 ;;
6926esac
6927fi
6928TAR=$ac_cv_path_TAR
6929if test -n "$TAR"; then
6930 { echo "$as_me:$LINENO: result: $TAR" >&5
6931echo "${ECHO_T}$TAR" >&6; }
6932else
6933 { echo "$as_me:$LINENO: result: no" >&5
6934echo "${ECHO_T}no" >&6; }
6935fi
6936
6937
6938# Extract the first word of "pwd", so it can be a program name with args.
6939set dummy pwd; ac_word=$2
6940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6942if test "${ac_cv_path_BINPWD+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else
6945 case $BINPWD in
6946 [\\/]* | ?:[\\/]*)
6947 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6948 ;;
6949 *)
6950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6951for as_dir in $PATH
6952do
6953 IFS=$as_save_IFS
6954 test -z "$as_dir" && as_dir=.
6955 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006956 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 +00006957 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6959 break 2
6960 fi
6961done
6962done
6963IFS=$as_save_IFS
6964
6965 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6966 ;;
6967esac
6968fi
6969BINPWD=$ac_cv_path_BINPWD
6970if test -n "$BINPWD"; then
6971 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6972echo "${ECHO_T}$BINPWD" >&6; }
6973else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6; }
6976fi
6977
6978
6979
6980# Extract the first word of "Graphviz", so it can be a program name with args.
6981set dummy Graphviz; ac_word=$2
6982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6984if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6986else
6987 case $GRAPHVIZ in
6988 [\\/]* | ?:[\\/]*)
6989 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6990 ;;
6991 *)
6992 as_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 Lattnerf9eb2d82009-01-22 05:17:59 +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_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
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
7007 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7008 ;;
7009esac
7010fi
7011GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7012if test -n "$GRAPHVIZ"; then
7013 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7014echo "${ECHO_T}$GRAPHVIZ" >&6; }
7015else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017echo "${ECHO_T}no" >&6; }
7018fi
7019
7020
7021if test "$GRAPHVIZ" != "echo Graphviz" ; then
7022
7023cat >>confdefs.h <<\_ACEOF
7024#define HAVE_GRAPHVIZ 1
7025_ACEOF
7026
Jeff Cohen28783c32007-01-12 18:22:38 +00007027 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007028 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7029 fi
7030
7031cat >>confdefs.h <<_ACEOF
7032#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7033_ACEOF
7034
7035fi
7036# Extract the first word of "dot", so it can be a program name with args.
7037set dummy dot; ac_word=$2
7038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7040if test "${ac_cv_path_DOT+set}" = set; then
7041 echo $ECHO_N "(cached) $ECHO_C" >&6
7042else
7043 case $DOT in
7044 [\\/]* | ?:[\\/]*)
7045 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7046 ;;
7047 *)
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049for as_dir in $PATH
7050do
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007054 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 +00007055 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7058 fi
7059done
7060done
7061IFS=$as_save_IFS
7062
7063 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7064 ;;
7065esac
7066fi
7067DOT=$ac_cv_path_DOT
7068if test -n "$DOT"; then
7069 { echo "$as_me:$LINENO: result: $DOT" >&5
7070echo "${ECHO_T}$DOT" >&6; }
7071else
7072 { echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6; }
7074fi
7075
7076
7077if test "$DOT" != "echo dot" ; then
7078
7079cat >>confdefs.h <<\_ACEOF
7080#define HAVE_DOT 1
7081_ACEOF
7082
Jeff Cohen28783c32007-01-12 18:22:38 +00007083 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007084 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7085 fi
7086
7087cat >>confdefs.h <<_ACEOF
7088#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7089_ACEOF
7090
7091fi
7092for ac_prog in gv gsview32
7093do
7094 # Extract the first word of "$ac_prog", so it can be a program name with args.
7095set dummy $ac_prog; ac_word=$2
7096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7098if test "${ac_cv_path_GV+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101 case $GV in
7102 [\\/]* | ?:[\\/]*)
7103 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7104 ;;
7105 *)
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109 IFS=$as_save_IFS
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007112 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 +00007113 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7115 break 2
7116 fi
7117done
7118done
7119IFS=$as_save_IFS
7120
7121 ;;
7122esac
7123fi
7124GV=$ac_cv_path_GV
7125if test -n "$GV"; then
7126 { echo "$as_me:$LINENO: result: $GV" >&5
7127echo "${ECHO_T}$GV" >&6; }
7128else
7129 { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
7131fi
7132
7133
7134 test -n "$GV" && break
7135done
7136test -n "$GV" || GV="echo gv"
7137
7138if test "$GV" != "echo gv" ; then
7139
7140cat >>confdefs.h <<\_ACEOF
7141#define HAVE_GV 1
7142_ACEOF
7143
Jeff Cohen28783c32007-01-12 18:22:38 +00007144 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007145 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7146 fi
7147
7148cat >>confdefs.h <<_ACEOF
7149#define LLVM_PATH_GV "$GV${EXEEXT}"
7150_ACEOF
7151
7152fi
7153# Extract the first word of "dotty", so it can be a program name with args.
7154set dummy dotty; ac_word=$2
7155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157if test "${ac_cv_path_DOTTY+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160 case $DOTTY in
7161 [\\/]* | ?:[\\/]*)
7162 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7163 ;;
7164 *)
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166for as_dir in $PATH
7167do
7168 IFS=$as_save_IFS
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007171 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 +00007172 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174 break 2
7175 fi
7176done
7177done
7178IFS=$as_save_IFS
7179
7180 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7181 ;;
7182esac
7183fi
7184DOTTY=$ac_cv_path_DOTTY
7185if test -n "$DOTTY"; then
7186 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7187echo "${ECHO_T}$DOTTY" >&6; }
7188else
7189 { echo "$as_me:$LINENO: result: no" >&5
7190echo "${ECHO_T}no" >&6; }
7191fi
7192
7193
7194if test "$DOTTY" != "echo dotty" ; then
7195
7196cat >>confdefs.h <<\_ACEOF
7197#define HAVE_DOTTY 1
7198_ACEOF
7199
Jeff Cohen28783c32007-01-12 18:22:38 +00007200 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007201 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7202 fi
7203
7204cat >>confdefs.h <<_ACEOF
7205#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7206_ACEOF
7207
7208fi
7209
7210
7211# Extract the first word of "perl", so it can be a program name with args.
7212set dummy perl; ac_word=$2
7213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215if test "${ac_cv_path_PERL+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218 case $PERL in
7219 [\\/]* | ?:[\\/]*)
7220 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7221 ;;
7222 *)
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224for as_dir in $PATH
7225do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007229 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 +00007230 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234done
7235done
7236IFS=$as_save_IFS
7237
7238 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7239 ;;
7240esac
7241fi
7242PERL=$ac_cv_path_PERL
7243if test -n "$PERL"; then
7244 { echo "$as_me:$LINENO: result: $PERL" >&5
7245echo "${ECHO_T}$PERL" >&6; }
7246else
7247 { echo "$as_me:$LINENO: result: no" >&5
7248echo "${ECHO_T}no" >&6; }
7249fi
7250
7251
7252if test "$PERL" != "none"; then
7253 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7254echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7255 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7256 { echo "$as_me:$LINENO: result: yes" >&5
7257echo "${ECHO_T}yes" >&6; }
7258 else
7259 PERL=none
7260 { echo "$as_me:$LINENO: result: not found" >&5
7261echo "${ECHO_T}not found" >&6; }
7262 fi
7263fi
7264
7265
7266if test x"$PERL" = xnone; then
7267 HAVE_PERL=0
7268
Reid Spencer59807fa2007-05-17 18:11:03 +00007269 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7270echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7271 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007272else
7273 HAVE_PERL=1
7274
7275fi
7276
7277# Find a good install program. We prefer a C program (faster),
7278# so one script is as good as another. But avoid the broken or
7279# incompatible versions:
7280# SysV /etc/install, /usr/sbin/install
7281# SunOS /usr/etc/install
7282# IRIX /sbin/install
7283# AIX /bin/install
7284# AmigaOS /C/install, which installs bootblocks on floppy discs
7285# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7286# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7287# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7288# OS/2's system install, which has a completely different semantic
7289# ./install, which can be erroneously created by make from ./install.sh.
7290{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7291echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7292if test -z "$INSTALL"; then
7293if test "${ac_cv_path_install+set}" = set; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297for as_dir in $PATH
7298do
7299 IFS=$as_save_IFS
7300 test -z "$as_dir" && as_dir=.
7301 # Account for people who put trailing slashes in PATH elements.
7302case $as_dir/ in
7303 ./ | .// | /cC/* | \
7304 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7305 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7306 /usr/ucb/* ) ;;
7307 *)
7308 # OSF1 and SCO ODT 3.0 have their own names for install.
7309 # Don't use installbsd from OSF since it installs stuff as root
7310 # by default.
7311 for ac_prog in ginstall scoinst install; do
7312 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007313 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 +00007314 if test $ac_prog = install &&
7315 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7316 # AIX install. It has an incompatible calling convention.
7317 :
7318 elif test $ac_prog = install &&
7319 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7320 # program-specific install script used by HP pwplus--don't use.
7321 :
7322 else
7323 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7324 break 3
7325 fi
7326 fi
7327 done
7328 done
7329 ;;
7330esac
7331done
7332IFS=$as_save_IFS
7333
7334
7335fi
7336 if test "${ac_cv_path_install+set}" = set; then
7337 INSTALL=$ac_cv_path_install
7338 else
7339 # As a last resort, use the slow shell script. Don't cache a
7340 # value for INSTALL within a source directory, because that will
7341 # break other packages using the cache if that directory is
7342 # removed, or if the value is a relative name.
7343 INSTALL=$ac_install_sh
7344 fi
7345fi
7346{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7347echo "${ECHO_T}$INSTALL" >&6; }
7348
7349# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7350# It thinks the first close brace ends the variable substitution.
7351test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7352
7353test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7354
7355test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7356
7357
7358# Extract the first word of "bzip2", so it can be a program name with args.
7359set dummy bzip2; ac_word=$2
7360{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7362if test "${ac_cv_path_BZIP2+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364else
7365 case $BZIP2 in
7366 [\\/]* | ?:[\\/]*)
7367 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7368 ;;
7369 *)
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371for as_dir in $PATH
7372do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007376 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 +00007377 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381done
7382done
7383IFS=$as_save_IFS
7384
Reid Spencera773bd52006-08-04 18:18:08 +00007385 ;;
7386esac
7387fi
7388BZIP2=$ac_cv_path_BZIP2
7389if test -n "$BZIP2"; then
7390 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7391echo "${ECHO_T}$BZIP2" >&6; }
7392else
7393 { echo "$as_me:$LINENO: result: no" >&5
7394echo "${ECHO_T}no" >&6; }
7395fi
7396
7397
7398# Extract the first word of "doxygen", so it can be a program name with args.
7399set dummy doxygen; ac_word=$2
7400{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7402if test "${ac_cv_path_DOXYGEN+set}" = set; then
7403 echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405 case $DOXYGEN in
7406 [\\/]* | ?:[\\/]*)
7407 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7408 ;;
7409 *)
7410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413 IFS=$as_save_IFS
7414 test -z "$as_dir" && as_dir=.
7415 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007416 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 +00007417 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419 break 2
7420 fi
7421done
7422done
7423IFS=$as_save_IFS
7424
Reid Spencera773bd52006-08-04 18:18:08 +00007425 ;;
7426esac
7427fi
7428DOXYGEN=$ac_cv_path_DOXYGEN
7429if test -n "$DOXYGEN"; then
7430 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7431echo "${ECHO_T}$DOXYGEN" >&6; }
7432else
7433 { echo "$as_me:$LINENO: result: no" >&5
7434echo "${ECHO_T}no" >&6; }
7435fi
7436
7437
Reid Spencera773bd52006-08-04 18:18:08 +00007438# Extract the first word of "groff", so it can be a program name with args.
7439set dummy groff; ac_word=$2
7440{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7442if test "${ac_cv_path_GROFF+set}" = set; then
7443 echo $ECHO_N "(cached) $ECHO_C" >&6
7444else
7445 case $GROFF in
7446 [\\/]* | ?:[\\/]*)
7447 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7448 ;;
7449 *)
7450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
7455 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007456 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 +00007457 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7459 break 2
7460 fi
7461done
7462done
7463IFS=$as_save_IFS
7464
Reid Spencera773bd52006-08-04 18:18:08 +00007465 ;;
7466esac
7467fi
7468GROFF=$ac_cv_path_GROFF
7469if test -n "$GROFF"; then
7470 { echo "$as_me:$LINENO: result: $GROFF" >&5
7471echo "${ECHO_T}$GROFF" >&6; }
7472else
7473 { echo "$as_me:$LINENO: result: no" >&5
7474echo "${ECHO_T}no" >&6; }
7475fi
7476
7477
7478# Extract the first word of "gzip", so it can be a program name with args.
7479set dummy gzip; ac_word=$2
7480{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482if test "${ac_cv_path_GZIP+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484else
7485 case $GZIP in
7486 [\\/]* | ?:[\\/]*)
7487 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7488 ;;
7489 *)
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007496 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 +00007497 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 break 2
7500 fi
7501done
7502done
7503IFS=$as_save_IFS
7504
Reid Spencera773bd52006-08-04 18:18:08 +00007505 ;;
7506esac
7507fi
7508GZIP=$ac_cv_path_GZIP
7509if test -n "$GZIP"; then
7510 { echo "$as_me:$LINENO: result: $GZIP" >&5
7511echo "${ECHO_T}$GZIP" >&6; }
7512else
7513 { echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6; }
7515fi
7516
7517
7518# Extract the first word of "pod2html", so it can be a program name with args.
7519set dummy pod2html; ac_word=$2
7520{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7522if test "${ac_cv_path_POD2HTML+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7524else
7525 case $POD2HTML in
7526 [\\/]* | ?:[\\/]*)
7527 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7528 ;;
7529 *)
7530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
7535 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007536 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 +00007537 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 break 2
7540 fi
7541done
7542done
7543IFS=$as_save_IFS
7544
Reid Spencera773bd52006-08-04 18:18:08 +00007545 ;;
7546esac
7547fi
7548POD2HTML=$ac_cv_path_POD2HTML
7549if test -n "$POD2HTML"; then
7550 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7551echo "${ECHO_T}$POD2HTML" >&6; }
7552else
7553 { echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6; }
7555fi
7556
7557
7558# Extract the first word of "pod2man", so it can be a program name with args.
7559set dummy pod2man; ac_word=$2
7560{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562if test "${ac_cv_path_POD2MAN+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7564else
7565 case $POD2MAN in
7566 [\\/]* | ?:[\\/]*)
7567 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7568 ;;
7569 *)
7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7571for as_dir in $PATH
7572do
7573 IFS=$as_save_IFS
7574 test -z "$as_dir" && as_dir=.
7575 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007576 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 +00007577 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 break 2
7580 fi
7581done
7582done
7583IFS=$as_save_IFS
7584
Reid Spencera773bd52006-08-04 18:18:08 +00007585 ;;
7586esac
7587fi
7588POD2MAN=$ac_cv_path_POD2MAN
7589if test -n "$POD2MAN"; then
7590 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7591echo "${ECHO_T}$POD2MAN" >&6; }
7592else
7593 { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
7595fi
7596
7597
7598# Extract the first word of "runtest", so it can be a program name with args.
7599set dummy runtest; ac_word=$2
7600{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7602if test "${ac_cv_path_RUNTEST+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 case $RUNTEST in
7606 [\\/]* | ?:[\\/]*)
7607 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7608 ;;
7609 *)
7610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613 IFS=$as_save_IFS
7614 test -z "$as_dir" && as_dir=.
7615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007616 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 +00007617 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 break 2
7620 fi
7621done
7622done
7623IFS=$as_save_IFS
7624
Reid Spencera773bd52006-08-04 18:18:08 +00007625 ;;
7626esac
7627fi
7628RUNTEST=$ac_cv_path_RUNTEST
7629if test -n "$RUNTEST"; then
7630 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7631echo "${ECHO_T}$RUNTEST" >&6; }
7632else
7633 { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637
7638
7639no_itcl=true
7640{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7641echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7642
7643# Check whether --with-tclinclude was given.
7644if test "${with_tclinclude+set}" = set; then
7645 withval=$with_tclinclude; with_tclinclude=${withval}
7646else
7647 with_tclinclude=''
7648fi
7649
7650if test "${ac_cv_path_tclsh+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653
7654if test x"${with_tclinclude}" != x ; then
7655 if test -f ${with_tclinclude}/tclsh ; then
7656 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7657 elif test -f ${with_tclinclude}/src/tclsh ; then
7658 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7659 else
7660 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7661echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7662 { (exit 1); exit 1; }; }
7663 fi
7664fi
7665
7666if test x"${ac_cv_path_tclsh}" = x ; then
7667 { echo "$as_me:$LINENO: result: none" >&5
7668echo "${ECHO_T}none" >&6; }
7669 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
7670do
7671 # Extract the first word of "$ac_prog", so it can be a program name with args.
7672set dummy $ac_prog; ac_word=$2
7673{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7675if test "${ac_cv_path_TCLSH+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678 case $TCLSH in
7679 [\\/]* | ?:[\\/]*)
7680 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7681 ;;
7682 *)
7683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686 IFS=$as_save_IFS
7687 test -z "$as_dir" && as_dir=.
7688 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007689 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 +00007690 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692 break 2
7693 fi
7694done
7695done
7696IFS=$as_save_IFS
7697
7698 ;;
7699esac
7700fi
7701TCLSH=$ac_cv_path_TCLSH
7702if test -n "$TCLSH"; then
7703 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7704echo "${ECHO_T}$TCLSH" >&6; }
7705else
7706 { echo "$as_me:$LINENO: result: no" >&5
7707echo "${ECHO_T}no" >&6; }
7708fi
7709
7710
7711 test -n "$TCLSH" && break
7712done
7713
7714 if test x"${TCLSH}" = x ; then
7715 ac_cv_path_tclsh='';
7716 else
7717 ac_cv_path_tclsh="${TCLSH}";
7718 fi
7719else
7720 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7721echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7722 TCLSH="${ac_cv_path_tclsh}"
7723
7724fi
7725
7726fi
7727
7728# Extract the first word of "zip", so it can be a program name with args.
7729set dummy zip; ac_word=$2
7730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732if test "${ac_cv_path_ZIP+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7734else
7735 case $ZIP in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7738 ;;
7739 *)
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007746 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 +00007747 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751done
7752done
7753IFS=$as_save_IFS
7754
Reid Spencera773bd52006-08-04 18:18:08 +00007755 ;;
7756esac
7757fi
7758ZIP=$ac_cv_path_ZIP
7759if test -n "$ZIP"; then
7760 { echo "$as_me:$LINENO: result: $ZIP" >&5
7761echo "${ECHO_T}$ZIP" >&6; }
7762else
7763 { echo "$as_me:$LINENO: result: no" >&5
7764echo "${ECHO_T}no" >&6; }
7765fi
7766
7767
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007768for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007769do
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_OCAMLC+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777 case $OCAMLC in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007788 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 +00007789 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793done
7794done
7795IFS=$as_save_IFS
7796
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007797 ;;
7798esac
7799fi
7800OCAMLC=$ac_cv_path_OCAMLC
7801if test -n "$OCAMLC"; then
7802 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7803echo "${ECHO_T}$OCAMLC" >&6; }
7804else
7805 { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
7807fi
7808
7809
Gordon Henriksene7072162008-03-07 18:20:01 +00007810 test -n "$OCAMLC" && break
7811done
7812
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007813for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007814do
7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
7816set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7819if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 case $OCAMLOPT in
7823 [\\/]* | ?:[\\/]*)
7824 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7825 ;;
7826 *)
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828for as_dir in $PATH
7829do
7830 IFS=$as_save_IFS
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007833 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 +00007834 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 break 2
7837 fi
7838done
7839done
7840IFS=$as_save_IFS
7841
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007842 ;;
7843esac
7844fi
7845OCAMLOPT=$ac_cv_path_OCAMLOPT
7846if test -n "$OCAMLOPT"; then
7847 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7848echo "${ECHO_T}$OCAMLOPT" >&6; }
7849else
7850 { echo "$as_me:$LINENO: result: no" >&5
7851echo "${ECHO_T}no" >&6; }
7852fi
7853
7854
Gordon Henriksene7072162008-03-07 18:20:01 +00007855 test -n "$OCAMLOPT" && break
7856done
7857
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007858for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007859do
7860 # Extract the first word of "$ac_prog", so it can be a program name with args.
7861set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007862{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7864if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867 case $OCAMLDEP in
7868 [\\/]* | ?:[\\/]*)
7869 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7870 ;;
7871 *)
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007878 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 +00007879 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7882 fi
7883done
7884done
7885IFS=$as_save_IFS
7886
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007887 ;;
7888esac
7889fi
7890OCAMLDEP=$ac_cv_path_OCAMLDEP
7891if test -n "$OCAMLDEP"; then
7892 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7893echo "${ECHO_T}$OCAMLDEP" >&6; }
7894else
7895 { echo "$as_me:$LINENO: result: no" >&5
7896echo "${ECHO_T}no" >&6; }
7897fi
7898
7899
Gordon Henriksene7072162008-03-07 18:20:01 +00007900 test -n "$OCAMLDEP" && break
7901done
7902
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007903for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007904do
7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
7906set dummy $ac_prog; ac_word=$2
7907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7909if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912 case $OCAMLDOC in
7913 [\\/]* | ?:[\\/]*)
7914 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7915 ;;
7916 *)
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918for as_dir in $PATH
7919do
7920 IFS=$as_save_IFS
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007924 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7926 break 2
7927 fi
7928done
7929done
7930IFS=$as_save_IFS
7931
7932 ;;
7933esac
7934fi
7935OCAMLDOC=$ac_cv_path_OCAMLDOC
7936if test -n "$OCAMLDOC"; then
7937 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7938echo "${ECHO_T}$OCAMLDOC" >&6; }
7939else
7940 { echo "$as_me:$LINENO: result: no" >&5
7941echo "${ECHO_T}no" >&6; }
7942fi
7943
7944
7945 test -n "$OCAMLDOC" && break
7946done
7947
Torok Edwincc499a42008-10-22 09:56:27 +00007948for ac_prog in gas as
7949do
7950 # Extract the first word of "$ac_prog", so it can be a program name with args.
7951set dummy $ac_prog; 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_GAS+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7956else
7957 case $GAS in
7958 [\\/]* | ?:[\\/]*)
7959 ac_cv_path_GAS="$GAS" # 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 Lattnerf9eb2d82009-01-22 05:17:59 +00007968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00007969 ac_cv_path_GAS="$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
7977 ;;
7978esac
7979fi
7980GAS=$ac_cv_path_GAS
7981if test -n "$GAS"; then
7982 { echo "$as_me:$LINENO: result: $GAS" >&5
7983echo "${ECHO_T}$GAS" >&6; }
7984else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6; }
7987fi
7988
7989
7990 test -n "$GAS" && break
7991done
7992
Reid Spencera773bd52006-08-04 18:18:08 +00007993
7994{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7995echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7996if test "${llvm_cv_link_use_r+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999 ac_ext=c
8000ac_cpp='$CPP $CPPFLAGS'
8001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8003ac_compiler_gnu=$ac_cv_c_compiler_gnu
8004
8005 oldcflags="$CFLAGS"
8006 CFLAGS="$CFLAGS -Wl,-R."
8007 cat >conftest.$ac_ext <<_ACEOF
8008/* confdefs.h. */
8009_ACEOF
8010cat confdefs.h >>conftest.$ac_ext
8011cat >>conftest.$ac_ext <<_ACEOF
8012/* end confdefs.h. */
8013
8014int
8015main ()
8016{
8017int main() { return 0; }
8018 ;
8019 return 0;
8020}
8021_ACEOF
8022rm -f conftest.$ac_objext conftest$ac_exeext
8023if { (ac_try="$ac_link"
8024case "(($ac_try" in
8025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8026 *) ac_try_echo=$ac_try;;
8027esac
8028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8029 (eval "$ac_link") 2>conftest.er1
8030 ac_status=$?
8031 grep -v '^ *+' conftest.er1 >conftest.err
8032 rm -f conftest.er1
8033 cat conftest.err >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008035 (exit $ac_status); } &&
8036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8037 { (case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040esac
8041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_try") 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008056 llvm_cv_link_use_r=yes
8057else
8058 echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061 llvm_cv_link_use_r=no
8062fi
8063
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008064rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008065 conftest$ac_exeext conftest.$ac_ext
8066 CFLAGS="$oldcflags"
8067 ac_ext=c
8068ac_cpp='$CPP $CPPFLAGS'
8069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8071ac_compiler_gnu=$ac_cv_c_compiler_gnu
8072
8073
8074fi
8075{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8076echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8077if test "$llvm_cv_link_use_r" = yes ; then
8078
8079cat >>confdefs.h <<\_ACEOF
8080#define HAVE_LINK_R 1
8081_ACEOF
8082
8083 fi
8084
8085
Nick Lewycky731c6ab2009-03-05 08:20:44 +00008086{ echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8087echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8088if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8090else
8091 ac_ext=c
8092ac_cpp='$CPP $CPPFLAGS'
8093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8095ac_compiler_gnu=$ac_cv_c_compiler_gnu
8096
8097 oldcflags="$CFLAGS"
8098 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105
8106int
8107main ()
8108{
8109int main() { return 0; }
8110 ;
8111 return 0;
8112}
8113_ACEOF
8114rm -f conftest.$ac_objext conftest$ac_exeext
8115if { (ac_try="$ac_link"
8116case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119esac
8120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_link") 2>conftest.er1
8122 ac_status=$?
8123 grep -v '^ *+' conftest.er1 >conftest.err
8124 rm -f conftest.er1
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8132esac
8133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8135 ac_status=$?
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142esac
8143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8145 ac_status=$?
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 llvm_cv_link_use_export_dynamic=yes
8149else
8150 echo "$as_me: failed program was:" >&5
8151sed 's/^/| /' conftest.$ac_ext >&5
8152
8153 llvm_cv_link_use_export_dynamic=no
8154fi
8155
8156rm -f core conftest.err conftest.$ac_objext \
8157 conftest$ac_exeext conftest.$ac_ext
8158 CFLAGS="$oldcflags"
8159 ac_ext=c
8160ac_cpp='$CPP $CPPFLAGS'
8161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163ac_compiler_gnu=$ac_cv_c_compiler_gnu
8164
8165
8166fi
8167{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8168echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8169if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8170
8171cat >>confdefs.h <<\_ACEOF
8172#define HAVE_LINK_EXPORT_DYNAMIC 1
8173_ACEOF
8174
8175 fi
8176
8177
Reid Spencera773bd52006-08-04 18:18:08 +00008178
8179
8180{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8181echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8182if test "${ac_cv_c_const+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185 cat >conftest.$ac_ext <<_ACEOF
8186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h. */
8191
8192int
8193main ()
8194{
8195/* FIXME: Include the comments suggested by Paul. */
8196#ifndef __cplusplus
8197 /* Ultrix mips cc rejects this. */
8198 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008199 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008200 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008201 char const *const *ccp;
8202 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008203 /* NEC SVR4.0.2 mips cc rejects this. */
8204 struct point {int x, y;};
8205 static struct point const zero = {0,0};
8206 /* AIX XL C 1.02.0.0 rejects this.
8207 It does not let you subtract one const X* pointer from another in
8208 an arm of an if-expression whose if-part is not a constant
8209 expression */
8210 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008211 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008212 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008213 ++ccp;
8214 p = (char**) ccp;
8215 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008216 { /* SCO 3.2v4 cc rejects this. */
8217 char *t;
8218 char const *s = 0 ? (char *) 0 : (char const *) 0;
8219
8220 *t++ = 0;
8221 if (s) return 0;
8222 }
8223 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8224 int x[] = {25, 17};
8225 const int *foo = &x[0];
8226 ++foo;
8227 }
8228 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8229 typedef const int *iptr;
8230 iptr p = 0;
8231 ++p;
8232 }
8233 { /* AIX XL C 1.02.0.0 rejects this saying
8234 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8235 struct s { int j; const int *ap[3]; };
8236 struct s *b; b->j = 5;
8237 }
8238 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8239 const int foo = 10;
8240 if (!foo) return 0;
8241 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008242 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008243#endif
8244
8245 ;
8246 return 0;
8247}
8248_ACEOF
8249rm -f conftest.$ac_objext
8250if { (ac_try="$ac_compile"
8251case "(($ac_try" in
8252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253 *) ac_try_echo=$ac_try;;
8254esac
8255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8256 (eval "$ac_compile") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008262 (exit $ac_status); } &&
8263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8264 { (case "(($ac_try" in
8265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8266 *) ac_try_echo=$ac_try;;
8267esac
8268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8269 (eval "$ac_try") 2>&5
8270 ac_status=$?
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); }; } &&
8273 { ac_try='test -s conftest.$ac_objext'
8274 { (case "(($ac_try" in
8275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8276 *) ac_try_echo=$ac_try;;
8277esac
8278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8279 (eval "$ac_try") 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008283 ac_cv_c_const=yes
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 ac_cv_c_const=no
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8294echo "${ECHO_T}$ac_cv_c_const" >&6; }
8295if test $ac_cv_c_const = no; then
8296
8297cat >>confdefs.h <<\_ACEOF
8298#define const
8299_ACEOF
8300
8301fi
8302
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008303
8304
8305
8306
8307
8308ac_header_dirent=no
8309for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8310 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008311{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8312echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008314 echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316 cat >conftest.$ac_ext <<_ACEOF
8317/* confdefs.h. */
8318_ACEOF
8319cat confdefs.h >>conftest.$ac_ext
8320cat >>conftest.$ac_ext <<_ACEOF
8321/* end confdefs.h. */
8322#include <sys/types.h>
8323#include <$ac_hdr>
8324
8325int
8326main ()
8327{
8328if ((DIR *) 0)
8329return 0;
8330 ;
8331 return 0;
8332}
8333_ACEOF
8334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008335if { (ac_try="$ac_compile"
8336case "(($ac_try" in
8337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8338 *) ac_try_echo=$ac_try;;
8339esac
8340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8341 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008347 (exit $ac_status); } &&
8348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_try") 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; } &&
8358 { ac_try='test -s conftest.$ac_objext'
8359 { (case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362esac
8363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_try") 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008368 eval "$as_ac_Header=yes"
8369else
8370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
Reid Spencera773bd52006-08-04 18:18:08 +00008373 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008374fi
Reid Spencera773bd52006-08-04 18:18:08 +00008375
8376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008377fi
Reid Spencera773bd52006-08-04 18:18:08 +00008378ac_res=`eval echo '${'$as_ac_Header'}'`
8379 { echo "$as_me:$LINENO: result: $ac_res" >&5
8380echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008381if test `eval echo '${'$as_ac_Header'}'` = yes; then
8382 cat >>confdefs.h <<_ACEOF
8383#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8384_ACEOF
8385
8386ac_header_dirent=$ac_hdr; break
8387fi
8388
8389done
8390# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8391if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008392 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8393echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008394if test "${ac_cv_search_opendir+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8396else
8397 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008398cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h. */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h. */
8404
Reid Spencera773bd52006-08-04 18:18:08 +00008405/* Override any GCC internal prototype to avoid an error.
8406 Use char because int might match the return type of a GCC
8407 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008408#ifdef __cplusplus
8409extern "C"
8410#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008411char opendir ();
8412int
8413main ()
8414{
Reid Spencera773bd52006-08-04 18:18:08 +00008415return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008416 ;
8417 return 0;
8418}
8419_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008420for ac_lib in '' dir; do
8421 if test -z "$ac_lib"; then
8422 ac_res="none required"
8423 else
8424 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008426 fi
8427 rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (ac_try="$ac_link"
8429case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008440 (exit $ac_status); } &&
8441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442 { (case "(($ac_try" in
8443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444 *) ac_try_echo=$ac_try;;
8445esac
8446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447 (eval "$ac_try") 2>&5
8448 ac_status=$?
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); }; } &&
8451 { ac_try='test -s conftest$ac_exeext'
8452 { (case "(($ac_try" in
8453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454 *) ac_try_echo=$ac_try;;
8455esac
8456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457 (eval "$ac_try") 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008461 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008462else
8463 echo "$as_me: failed program was:" >&5
8464sed 's/^/| /' conftest.$ac_ext >&5
8465
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008466
8467fi
8468
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008469rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008470 conftest$ac_exeext
8471 if test "${ac_cv_search_opendir+set}" = set; then
8472 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008473fi
John Criswell7a73b802003-06-30 21:59:07 +00008474done
Reid Spencera773bd52006-08-04 18:18:08 +00008475if test "${ac_cv_search_opendir+set}" = set; then
8476 :
8477else
8478 ac_cv_search_opendir=no
8479fi
8480rm conftest.$ac_ext
8481LIBS=$ac_func_search_save_LIBS
8482fi
8483{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8484echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8485ac_res=$ac_cv_search_opendir
8486if test "$ac_res" != no; then
8487 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008488
Reid Spencera773bd52006-08-04 18:18:08 +00008489fi
8490
8491else
8492 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8493echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8494if test "${ac_cv_search_opendir+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497 ac_func_search_save_LIBS=$LIBS
8498cat >conftest.$ac_ext <<_ACEOF
8499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
8504
8505/* Override any GCC internal prototype to avoid an error.
8506 Use char because int might match the return type of a GCC
8507 builtin and then its argument prototype would still apply. */
8508#ifdef __cplusplus
8509extern "C"
8510#endif
8511char opendir ();
8512int
8513main ()
8514{
8515return opendir ();
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520for ac_lib in '' x; do
8521 if test -z "$ac_lib"; then
8522 ac_res="none required"
8523 else
8524 ac_res=-l$ac_lib
8525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8526 fi
8527 rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (ac_try="$ac_link"
8529case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_link") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008540 (exit $ac_status); } &&
8541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8542 { (case "(($ac_try" in
8543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8544 *) ac_try_echo=$ac_try;;
8545esac
8546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_try") 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest$ac_exeext'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555esac
8556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008561 ac_cv_search_opendir=$ac_res
8562else
8563 echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566
8567fi
8568
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008569rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008570 conftest$ac_exeext
8571 if test "${ac_cv_search_opendir+set}" = set; then
8572 break
8573fi
8574done
8575if test "${ac_cv_search_opendir+set}" = set; then
8576 :
8577else
8578 ac_cv_search_opendir=no
8579fi
8580rm conftest.$ac_ext
8581LIBS=$ac_func_search_save_LIBS
8582fi
8583{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8584echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8585ac_res=$ac_cv_search_opendir
8586if test "$ac_res" != no; then
8587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8588
8589fi
8590
8591fi
John Criswell7a73b802003-06-30 21:59:07 +00008592
8593
8594for ac_header in dlfcn.h
8595do
8596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8600if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008601 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008602fi
Reid Spencera773bd52006-08-04 18:18:08 +00008603ac_res=`eval echo '${'$as_ac_Header'}'`
8604 { echo "$as_me:$LINENO: result: $ac_res" >&5
8605echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008606else
Brian Gaeke0a621332004-09-08 20:38:05 +00008607 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008608{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008610cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008611/* confdefs.h. */
8612_ACEOF
8613cat confdefs.h >>conftest.$ac_ext
8614cat >>conftest.$ac_ext <<_ACEOF
8615/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008616$ac_includes_default
8617#include <$ac_header>
8618_ACEOF
8619rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008620if { (ac_try="$ac_compile"
8621case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624esac
8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008632 (exit $ac_status); } &&
8633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8634 { (case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637esac
8638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_try") 2>&5
8640 ac_status=$?
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); }; } &&
8643 { ac_try='test -s conftest.$ac_objext'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8647esac
8648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8650 ac_status=$?
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008653 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008654else
8655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008656sed 's/^/| /' conftest.$ac_ext >&5
8657
Reid Spencera773bd52006-08-04 18:18:08 +00008658 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008659fi
Reid Spencera773bd52006-08-04 18:18:08 +00008660
8661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8663echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008664
8665# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008666{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8667echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008668cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008669/* confdefs.h. */
8670_ACEOF
8671cat confdefs.h >>conftest.$ac_ext
8672cat >>conftest.$ac_ext <<_ACEOF
8673/* end confdefs.h. */
8674#include <$ac_header>
8675_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008676if { (ac_try="$ac_cpp conftest.$ac_ext"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008688 (exit $ac_status); } >/dev/null; then
8689 if test -s conftest.err; then
8690 ac_cpp_err=$ac_c_preproc_warn_flag
8691 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8692 else
8693 ac_cpp_err=
8694 fi
8695else
8696 ac_cpp_err=yes
8697fi
8698if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008699 ac_header_preproc=yes
8700else
8701 echo "$as_me: failed program was:" >&5
8702sed 's/^/| /' conftest.$ac_ext >&5
8703
8704 ac_header_preproc=no
8705fi
Reid Spencera773bd52006-08-04 18:18:08 +00008706
Brian Gaeke0a621332004-09-08 20:38:05 +00008707rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008708{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008710
8711# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008719 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008720 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008733 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008734## ----------------------------------- ##
8735## Report this to llvmbugs@cs.uiuc.edu ##
8736## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008737_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008738 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008739 ;;
8740esac
Reid Spencera773bd52006-08-04 18:18:08 +00008741{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8743if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008744 echo $ECHO_N "(cached) $ECHO_C" >&6
8745else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008746 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008747fi
Reid Spencera773bd52006-08-04 18:18:08 +00008748ac_res=`eval echo '${'$as_ac_Header'}'`
8749 { echo "$as_me:$LINENO: result: $ac_res" >&5
8750echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008751
8752fi
John Criswell7a73b802003-06-30 21:59:07 +00008753if test `eval echo '${'$as_ac_Header'}'` = yes; then
8754 cat >>confdefs.h <<_ACEOF
8755#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8756_ACEOF
8757
8758fi
8759
8760done
8761
Reid Spencera773bd52006-08-04 18:18:08 +00008762# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008763if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008764 enableval=$enable_ltdl_install;
8765fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008766
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008767
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008768
8769
8770if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008771 INSTALL_LTDL_TRUE=
8772 INSTALL_LTDL_FALSE='#'
8773else
8774 INSTALL_LTDL_TRUE='#'
8775 INSTALL_LTDL_FALSE=
8776fi
8777
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008778
8779
8780if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008781 CONVENIENCE_LTDL_TRUE=
8782 CONVENIENCE_LTDL_FALSE='#'
8783else
8784 CONVENIENCE_LTDL_TRUE='#'
8785 CONVENIENCE_LTDL_FALSE=
8786fi
8787
8788
Reid Spencera773bd52006-08-04 18:18:08 +00008789{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8790echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008791library_names_spec=
8792libname_spec='lib$name'
8793soname_spec=
8794shrext_cmds=".so"
8795postinstall_cmds=
8796postuninstall_cmds=
8797finish_cmds=
8798finish_eval=
8799shlibpath_var=
8800shlibpath_overrides_runpath=unknown
8801version_type=none
8802dynamic_linker="$host_os ld.so"
8803sys_lib_dlsearch_path_spec="/lib /usr/lib"
8804if test "$GCC" = yes; then
8805 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8806 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8807 # if the path contains ";" then we assume it to be the separator
8808 # otherwise default to the standard path separator (i.e. ":") - it is
8809 # assumed that no part of a normal pathname contains ";" but that should
8810 # okay in the real world where ";" in dirpaths is itself problematic.
8811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8812 else
8813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8814 fi
8815else
8816 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8817fi
8818need_lib_prefix=unknown
8819hardcode_into_libs=no
8820
8821# when you set need_version to no, make sure it does not cause -set_version
8822# flags to be left without arguments
8823need_version=unknown
8824
8825case $host_os in
8826aix3*)
8827 version_type=linux
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8829 shlibpath_var=LIBPATH
8830
8831 # AIX 3 has no versioning support, so we append a major version to the name.
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 ;;
8834
8835aix4* | aix5*)
8836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 hardcode_into_libs=yes
8840 if test "$host_cpu" = ia64; then
8841 # AIX 5 supports IA64
8842 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 else
8845 # With GCC up to 2.95.x, collect2 would create an import file
8846 # for dependence libraries. The import file would start with
8847 # the line `#! .'. This would cause the generated library to
8848 # depend on `.', always an invalid library. This was fixed in
8849 # development snapshots of GCC prior to 3.0.
8850 case $host_os in
8851 aix4 | aix4.[01] | aix4.[01].*)
8852 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8853 echo ' yes '
8854 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8855 :
8856 else
8857 can_build_shared=no
8858 fi
8859 ;;
8860 esac
8861 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8862 # soname into executable. Probably we can add versioning support to
8863 # collect2, so additional links can be useful in future.
8864 if test "$aix_use_runtimelinking" = yes; then
8865 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8866 # instead of lib<name>.a to let people know that these are not
8867 # typical AIX shared libraries.
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8869 else
8870 # We preserve .a as extension for shared libraries through AIX4.2
8871 # and later when we are not doing run time linking.
8872 library_names_spec='${libname}${release}.a $libname.a'
8873 soname_spec='${libname}${release}${shared_ext}$major'
8874 fi
8875 shlibpath_var=LIBPATH
8876 fi
8877 ;;
8878
8879amigaos*)
8880 library_names_spec='$libname.ixlibrary $libname.a'
8881 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8882 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'
8883 ;;
8884
8885beos*)
8886 library_names_spec='${libname}${shared_ext}'
8887 dynamic_linker="$host_os ld.so"
8888 shlibpath_var=LIBRARY_PATH
8889 ;;
8890
8891bsdi[45]*)
8892 version_type=linux
8893 need_version=no
8894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8895 soname_spec='${libname}${release}${shared_ext}$major'
8896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8897 shlibpath_var=LD_LIBRARY_PATH
8898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8900 # the default ld.so.conf also contains /usr/contrib/lib and
8901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8902 # libtool to hard-code these into programs
8903 ;;
8904
8905cygwin* | mingw* | pw32*)
8906 version_type=windows
8907 shrext_cmds=".dll"
8908 need_version=no
8909 need_lib_prefix=no
8910
8911 case $GCC,$host_os in
8912 yes,cygwin* | yes,mingw* | yes,pw32*)
8913 library_names_spec='$libname.dll.a'
8914 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8915 postinstall_cmds='base_file=`basename \${file}`~
8916 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8917 dldir=$destdir/`dirname \$dlpath`~
8918 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008919 $install_prog $dir/$dlname \$dldir/$dlname~
8920 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008921 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8922 dlpath=$dir/\$dldll~
8923 $rm \$dlpath'
8924 shlibpath_overrides_runpath=yes
8925
8926 case $host_os in
8927 cygwin*)
8928 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8929 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8930 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8931 ;;
8932 mingw*)
8933 # MinGW DLLs use traditional 'lib' prefix
8934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8936 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8937 # It is most probably a Windows format PATH printed by
8938 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8939 # path with ; separators, and with drive letters. We can handle the
8940 # drive letters (cygwin fileutils understands them), so leave them,
8941 # especially as we might pass files found there to a mingw objdump,
8942 # which wouldn't understand a cygwinified path. Ahh.
8943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8944 else
8945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8946 fi
8947 ;;
8948 pw32*)
8949 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008950 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 +00008951 ;;
8952 esac
8953 ;;
8954
8955 *)
8956 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8957 ;;
8958 esac
8959 dynamic_linker='Win32 ld.exe'
8960 # FIXME: first we should search . and the directory the executable is in
8961 shlibpath_var=PATH
8962 ;;
8963
8964darwin* | rhapsody*)
8965 dynamic_linker="$host_os dyld"
8966 version_type=darwin
8967 need_lib_prefix=no
8968 need_version=no
8969 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8970 soname_spec='${libname}${release}${major}$shared_ext'
8971 shlibpath_overrides_runpath=yes
8972 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008973 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008974 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8975 if test "$GCC" = yes; then
8976 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"`
8977 else
8978 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8979 fi
8980 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8981 ;;
8982
8983dgux*)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 ;;
8991
8992freebsd1*)
8993 dynamic_linker=no
8994 ;;
8995
8996kfreebsd*-gnu)
8997 version_type=linux
8998 need_lib_prefix=no
8999 need_version=no
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 hardcode_into_libs=yes
9005 dynamic_linker='GNU ld.so'
9006 ;;
9007
Reid Spencera773bd52006-08-04 18:18:08 +00009008freebsd* | dragonfly*)
9009 # DragonFly does not have aout. When/if they implement a new
9010 # versioning mechanism, adjust this.
9011 if test -x /usr/bin/objformat; then
9012 objformat=`/usr/bin/objformat`
9013 else
9014 case $host_os in
9015 freebsd[123]*) objformat=aout ;;
9016 *) objformat=elf ;;
9017 esac
9018 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009019 version_type=freebsd-$objformat
9020 case $version_type in
9021 freebsd-elf*)
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9023 need_version=no
9024 need_lib_prefix=no
9025 ;;
9026 freebsd-*)
9027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9028 need_version=yes
9029 ;;
9030 esac
9031 shlibpath_var=LD_LIBRARY_PATH
9032 case $host_os in
9033 freebsd2*)
9034 shlibpath_overrides_runpath=yes
9035 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009036 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009037 shlibpath_overrides_runpath=yes
9038 hardcode_into_libs=yes
9039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009045 freebsd*) # from 4.6 on
9046 shlibpath_overrides_runpath=yes
9047 hardcode_into_libs=yes
9048 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009049 esac
9050 ;;
9051
9052gnu*)
9053 version_type=linux
9054 need_lib_prefix=no
9055 need_version=no
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 hardcode_into_libs=yes
9060 ;;
9061
9062hpux9* | hpux10* | hpux11*)
9063 # Give a soname corresponding to the major version so that dld.sl refuses to
9064 # link against other versions.
9065 version_type=sunos
9066 need_lib_prefix=no
9067 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009068 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069 ia64*)
9070 shrext_cmds='.so'
9071 hardcode_into_libs=yes
9072 dynamic_linker="$host_os dld.so"
9073 shlibpath_var=LD_LIBRARY_PATH
9074 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9077 if test "X$HPUX_IA64_MODE" = X32; then
9078 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9079 else
9080 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9081 fi
9082 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9083 ;;
9084 hppa*64*)
9085 shrext_cmds='.sl'
9086 hardcode_into_libs=yes
9087 dynamic_linker="$host_os dld.sl"
9088 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091 soname_spec='${libname}${release}${shared_ext}$major'
9092 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9094 ;;
9095 *)
9096 shrext_cmds='.sl'
9097 dynamic_linker="$host_os dld.sl"
9098 shlibpath_var=SHLIB_PATH
9099 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9101 soname_spec='${libname}${release}${shared_ext}$major'
9102 ;;
9103 esac
9104 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9105 postinstall_cmds='chmod 555 $lib'
9106 ;;
9107
Reid Spencera773bd52006-08-04 18:18:08 +00009108interix3*)
9109 version_type=linux
9110 need_lib_prefix=no
9111 need_version=no
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 shlibpath_overrides_runpath=no
9117 hardcode_into_libs=yes
9118 ;;
9119
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009120irix5* | irix6* | nonstopux*)
9121 case $host_os in
9122 nonstopux*) version_type=nonstopux ;;
9123 *)
9124 if test "$lt_cv_prog_gnu_ld" = yes; then
9125 version_type=linux
9126 else
9127 version_type=irix
9128 fi ;;
9129 esac
9130 need_lib_prefix=no
9131 need_version=no
9132 soname_spec='${libname}${release}${shared_ext}$major'
9133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9134 case $host_os in
9135 irix5* | nonstopux*)
9136 libsuff= shlibsuff=
9137 ;;
9138 *)
9139 case $LD in # libtool.m4 will add one of these switches to LD
9140 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9141 libsuff= shlibsuff= libmagic=32-bit;;
9142 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9143 libsuff=32 shlibsuff=N32 libmagic=N32;;
9144 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9145 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9146 *) libsuff= shlibsuff= libmagic=never-match;;
9147 esac
9148 ;;
9149 esac
9150 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9151 shlibpath_overrides_runpath=no
9152 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9153 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9154 hardcode_into_libs=yes
9155 ;;
9156
9157# No shared lib support for Linux oldld, aout, or coff.
9158linux*oldld* | linux*aout* | linux*coff*)
9159 dynamic_linker=no
9160 ;;
9161
9162# This must be Linux ELF.
9163linux*)
9164 version_type=linux
9165 need_lib_prefix=no
9166 need_version=no
9167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec='${libname}${release}${shared_ext}$major'
9169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9170 shlibpath_var=LD_LIBRARY_PATH
9171 shlibpath_overrides_runpath=no
9172 # This implies no fast_install, which is unacceptable.
9173 # Some rework will be needed to allow for fast_install
9174 # before this can be enabled.
9175 hardcode_into_libs=yes
9176
9177 # Append ld.so.conf contents to the search path
9178 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009179 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 +00009180 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9181 fi
9182
9183 # We used to test for /lib/ld.so.1 and disable shared libraries on
9184 # powerpc, because MkLinux only supported shared libraries with the
9185 # GNU dynamic linker. Since this was broken with cross compilers,
9186 # most powerpc-linux boxes support dynamic linking these days and
9187 # people can always --disable-shared, the test was removed, and we
9188 # assume the GNU/Linux dynamic linker is in use.
9189 dynamic_linker='GNU/Linux ld.so'
9190 ;;
9191
9192knetbsd*-gnu)
9193 version_type=linux
9194 need_lib_prefix=no
9195 need_version=no
9196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9197 soname_spec='${libname}${release}${shared_ext}$major'
9198 shlibpath_var=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath=no
9200 hardcode_into_libs=yes
9201 dynamic_linker='GNU ld.so'
9202 ;;
9203
9204netbsd*)
9205 version_type=sunos
9206 need_lib_prefix=no
9207 need_version=no
9208 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211 dynamic_linker='NetBSD (a.out) ld.so'
9212 else
9213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
9215 dynamic_linker='NetBSD ld.elf_so'
9216 fi
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 hardcode_into_libs=yes
9220 ;;
9221
9222newsos6)
9223 version_type=linux
9224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9227 ;;
9228
9229nto-qnx*)
9230 version_type=linux
9231 need_lib_prefix=no
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
9235 shlibpath_var=LD_LIBRARY_PATH
9236 shlibpath_overrides_runpath=yes
9237 ;;
9238
9239openbsd*)
9240 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009241 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009243 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9244 case $host_os in
9245 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9246 *) need_version=no ;;
9247 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9250 shlibpath_var=LD_LIBRARY_PATH
9251 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9252 case $host_os in
9253 openbsd2.[89] | openbsd2.[89].*)
9254 shlibpath_overrides_runpath=no
9255 ;;
9256 *)
9257 shlibpath_overrides_runpath=yes
9258 ;;
9259 esac
9260 else
9261 shlibpath_overrides_runpath=yes
9262 fi
9263 ;;
9264
9265os2*)
9266 libname_spec='$name'
9267 shrext_cmds=".dll"
9268 need_lib_prefix=no
9269 library_names_spec='$libname${shared_ext} $libname.a'
9270 dynamic_linker='OS/2 ld.exe'
9271 shlibpath_var=LIBPATH
9272 ;;
9273
9274osf3* | osf4* | osf5*)
9275 version_type=osf
9276 need_lib_prefix=no
9277 need_version=no
9278 soname_spec='${libname}${release}${shared_ext}$major'
9279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9280 shlibpath_var=LD_LIBRARY_PATH
9281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9282 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9283 ;;
9284
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285solaris*)
9286 version_type=linux
9287 need_lib_prefix=no
9288 need_version=no
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9290 soname_spec='${libname}${release}${shared_ext}$major'
9291 shlibpath_var=LD_LIBRARY_PATH
9292 shlibpath_overrides_runpath=yes
9293 hardcode_into_libs=yes
9294 # ldd complains unless libraries are executable
9295 postinstall_cmds='chmod +x $lib'
9296 ;;
9297
9298sunos4*)
9299 version_type=sunos
9300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9301 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes
9304 if test "$with_gnu_ld" = yes; then
9305 need_lib_prefix=no
9306 fi
9307 need_version=yes
9308 ;;
9309
Reid Spencera773bd52006-08-04 18:18:08 +00009310sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009311 version_type=linux
9312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9313 soname_spec='${libname}${release}${shared_ext}$major'
9314 shlibpath_var=LD_LIBRARY_PATH
9315 case $host_vendor in
9316 sni)
9317 shlibpath_overrides_runpath=no
9318 need_lib_prefix=no
9319 export_dynamic_flag_spec='${wl}-Blargedynsym'
9320 runpath_var=LD_RUN_PATH
9321 ;;
9322 siemens)
9323 need_lib_prefix=no
9324 ;;
9325 motorola)
9326 need_lib_prefix=no
9327 need_version=no
9328 shlibpath_overrides_runpath=no
9329 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9330 ;;
9331 esac
9332 ;;
9333
9334sysv4*MP*)
9335 if test -d /usr/nec ;then
9336 version_type=linux
9337 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9338 soname_spec='$libname${shared_ext}.$major'
9339 shlibpath_var=LD_LIBRARY_PATH
9340 fi
9341 ;;
9342
Reid Spencera773bd52006-08-04 18:18:08 +00009343sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9344 version_type=freebsd-elf
9345 need_lib_prefix=no
9346 need_version=no
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9348 soname_spec='${libname}${release}${shared_ext}$major'
9349 shlibpath_var=LD_LIBRARY_PATH
9350 hardcode_into_libs=yes
9351 if test "$with_gnu_ld" = yes; then
9352 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9353 shlibpath_overrides_runpath=no
9354 else
9355 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9356 shlibpath_overrides_runpath=yes
9357 case $host_os in
9358 sco3.2v5*)
9359 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9360 ;;
9361 esac
9362 fi
9363 sys_lib_dlsearch_path_spec='/usr/lib'
9364 ;;
9365
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009366uts4*)
9367 version_type=linux
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 shlibpath_var=LD_LIBRARY_PATH
9371 ;;
9372
9373*)
9374 dynamic_linker=no
9375 ;;
9376esac
Reid Spencera773bd52006-08-04 18:18:08 +00009377{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9378echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009379test "$dynamic_linker" = no && can_build_shared=no
9380
Reid Spencera773bd52006-08-04 18:18:08 +00009381variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9382if test "$GCC" = yes; then
9383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9384fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009385
Reid Spencera773bd52006-08-04 18:18:08 +00009386
9387{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9388echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009389if test "${libltdl_cv_shlibext+set}" = set; then
9390 echo $ECHO_N "(cached) $ECHO_C" >&6
9391else
9392
9393module=yes
9394eval libltdl_cv_shlibext=$shrext_cmds
9395
9396fi
Reid Spencera773bd52006-08-04 18:18:08 +00009397{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9398echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009399if test -n "$libltdl_cv_shlibext"; then
9400
9401cat >>confdefs.h <<_ACEOF
9402#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9403_ACEOF
9404
9405fi
9406
9407
Reid Spencera773bd52006-08-04 18:18:08 +00009408{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9409echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009410if test "${libltdl_cv_shlibpath_var+set}" = set; then
9411 echo $ECHO_N "(cached) $ECHO_C" >&6
9412else
9413 libltdl_cv_shlibpath_var="$shlibpath_var"
9414fi
Reid Spencera773bd52006-08-04 18:18:08 +00009415{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9416echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009417if test -n "$libltdl_cv_shlibpath_var"; then
9418
9419cat >>confdefs.h <<_ACEOF
9420#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9421_ACEOF
9422
9423fi
9424
9425
Reid Spencera773bd52006-08-04 18:18:08 +00009426{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9427echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009428if test "${libltdl_cv_sys_search_path+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9430else
9431 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9432fi
Reid Spencera773bd52006-08-04 18:18:08 +00009433{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9434echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009435if test -n "$libltdl_cv_sys_search_path"; then
9436 sys_search_path=
9437 for dir in $libltdl_cv_sys_search_path; do
9438 if test -z "$sys_search_path"; then
9439 sys_search_path="$dir"
9440 else
9441 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9442 fi
9443 done
9444
9445cat >>confdefs.h <<_ACEOF
9446#define LTDL_SYSSEARCHPATH "$sys_search_path"
9447_ACEOF
9448
9449fi
9450
Reid Spencera773bd52006-08-04 18:18:08 +00009451{ echo "$as_me:$LINENO: checking for objdir" >&5
9452echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453if test "${libltdl_cv_objdir+set}" = set; then
9454 echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456 libltdl_cv_objdir="$objdir"
9457 if test -n "$objdir"; then
9458 :
9459 else
9460 rm -f .libs 2>/dev/null
9461 mkdir .libs 2>/dev/null
9462 if test -d .libs; then
9463 libltdl_cv_objdir=.libs
9464 else
9465 # MS-DOS does not allow filenames that begin with a dot.
9466 libltdl_cv_objdir=_libs
9467 fi
9468 rmdir .libs 2>/dev/null
9469 fi
9470
9471fi
Reid Spencera773bd52006-08-04 18:18:08 +00009472{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9473echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009474
9475cat >>confdefs.h <<_ACEOF
9476#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9477_ACEOF
9478
9479
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480
9481
9482
9483
9484# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009485{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9486echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009487if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489else
9490
9491# These are sane defaults that work on at least a few old systems.
9492# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9493
9494# Character class describing NM global symbol codes.
9495symcode='[BCDEGRST]'
9496
9497# Regexp to match symbols that can be accessed directly from C.
9498sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9499
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500# Transform an extracted symbol line into a proper C declaration
9501lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9502
9503# Transform an extracted symbol line into symbol name and symbol address
9504lt_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'"
9505
9506# Define system-specific variables.
9507case $host_os in
9508aix*)
9509 symcode='[BCDT]'
9510 ;;
9511cygwin* | mingw* | pw32*)
9512 symcode='[ABCDGISTW]'
9513 ;;
9514hpux*) # Its linker distinguishes data from code symbols
9515 if test "$host_cpu" = ia64; then
9516 symcode='[ABCDEGRST]'
9517 fi
9518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9519 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'"
9520 ;;
9521linux*)
9522 if test "$host_cpu" = ia64; then
9523 symcode='[ABCDGIRSTW]'
9524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9525 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'"
9526 fi
9527 ;;
9528irix* | nonstopux*)
9529 symcode='[BCDEGRST]'
9530 ;;
9531osf*)
9532 symcode='[BCDEGQRST]'
9533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009534solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009535 symcode='[BDRT]'
9536 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009537sco3.2v5*)
9538 symcode='[DT]'
9539 ;;
9540sysv4.2uw2*)
9541 symcode='[DT]'
9542 ;;
9543sysv5* | sco5v6* | unixware* | OpenUNIX*)
9544 symcode='[ABDT]'
9545 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009546sysv4)
9547 symcode='[DFNSTU]'
9548 ;;
9549esac
9550
9551# Handle CRLF in mingw tool chain
9552opt_cr=
9553case $build_os in
9554mingw*)
9555 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9556 ;;
9557esac
9558
9559# If we're using GNU nm, then use its standard symbol codes.
9560case `$NM -V 2>&1` in
9561*GNU* | *'with BFD'*)
9562 symcode='[ABCDGIRSTW]' ;;
9563esac
9564
9565# Try without a prefix undercore, then with it.
9566for ac_symprfx in "" "_"; do
9567
Reid Spencera773bd52006-08-04 18:18:08 +00009568 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9569 symxfrm="\\1 $ac_symprfx\\2 \\2"
9570
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009571 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009572 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 +00009573
9574 # Check to see that the pipe works correctly.
9575 pipe_works=no
9576
9577 rm -f conftest*
9578 cat > conftest.$ac_ext <<EOF
9579#ifdef __cplusplus
9580extern "C" {
9581#endif
9582char nm_test_var;
9583void nm_test_func(){}
9584#ifdef __cplusplus
9585}
9586#endif
9587int main(){nm_test_var='a';nm_test_func();return(0);}
9588EOF
9589
9590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9591 (eval $ac_compile) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; then
9595 # Now try to grab the symbols.
9596 nlist=conftest.nm
9597 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9598 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9599 ac_status=$?
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } && test -s "$nlist"; then
9602 # Try sorting and uniquifying the output.
9603 if sort "$nlist" | uniq > "$nlist"T; then
9604 mv -f "$nlist"T "$nlist"
9605 else
9606 rm -f "$nlist"T
9607 fi
9608
9609 # Make sure that we snagged all the symbols we need.
9610 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9611 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9612 cat <<EOF > conftest.$ac_ext
9613#ifdef __cplusplus
9614extern "C" {
9615#endif
9616
9617EOF
9618 # Now generate the symbol file.
9619 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9620
9621 cat <<EOF >> conftest.$ac_ext
9622#if defined (__STDC__) && __STDC__
9623# define lt_ptr_t void *
9624#else
9625# define lt_ptr_t char *
9626# define const
9627#endif
9628
9629/* The mapping between symbol names and symbols. */
9630const struct {
9631 const char *name;
9632 lt_ptr_t address;
9633}
9634lt_preloaded_symbols[] =
9635{
9636EOF
9637 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9638 cat <<\EOF >> conftest.$ac_ext
9639 {0, (lt_ptr_t) 0}
9640};
9641
9642#ifdef __cplusplus
9643}
9644#endif
9645EOF
9646 # Now try linking the two files.
9647 mv conftest.$ac_objext conftstm.$ac_objext
9648 lt_save_LIBS="$LIBS"
9649 lt_save_CFLAGS="$CFLAGS"
9650 LIBS="conftstm.$ac_objext"
9651 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>&5
9654 ac_status=$?
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9657 pipe_works=yes
9658 fi
9659 LIBS="$lt_save_LIBS"
9660 CFLAGS="$lt_save_CFLAGS"
9661 else
9662 echo "cannot find nm_test_func in $nlist" >&5
9663 fi
9664 else
9665 echo "cannot find nm_test_var in $nlist" >&5
9666 fi
9667 else
9668 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9669 fi
9670 else
9671 echo "$progname: failed program was:" >&5
9672 cat conftest.$ac_ext >&5
9673 fi
9674 rm -f conftest* conftst*
9675
9676 # Do not use the global_symbol_pipe unless it works.
9677 if test "$pipe_works" = yes; then
9678 break
9679 else
9680 lt_cv_sys_global_symbol_pipe=
9681 fi
9682done
9683
9684fi
9685
9686if test -z "$lt_cv_sys_global_symbol_pipe"; then
9687 lt_cv_sys_global_symbol_to_cdecl=
9688fi
9689if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009690 { echo "$as_me:$LINENO: result: failed" >&5
9691echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692else
Reid Spencera773bd52006-08-04 18:18:08 +00009693 { echo "$as_me:$LINENO: result: ok" >&5
9694echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695fi
9696
9697
Reid Spencera773bd52006-08-04 18:18:08 +00009698{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9699echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009700if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9704 libltdl_cv_preloaded_symbols=yes
9705 else
9706 libltdl_cv_preloaded_symbols=no
9707 fi
9708
9709fi
Reid Spencera773bd52006-08-04 18:18:08 +00009710{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9711echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009712if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9713
9714cat >>confdefs.h <<\_ACEOF
9715#define HAVE_PRELOADED_SYMBOLS 1
9716_ACEOF
9717
9718fi
9719
9720LIBADD_DL=
9721
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727
9728
Reid Spencera773bd52006-08-04 18:18:08 +00009729{ echo "$as_me:$LINENO: checking for shl_load" >&5
9730echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009731if test "${ac_cv_func_shl_load+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734 cat >conftest.$ac_ext <<_ACEOF
9735/* confdefs.h. */
9736_ACEOF
9737cat confdefs.h >>conftest.$ac_ext
9738cat >>conftest.$ac_ext <<_ACEOF
9739/* end confdefs.h. */
9740/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9742#define shl_load innocuous_shl_load
9743
9744/* System header to define __stub macros and hopefully few prototypes,
9745 which can conflict with char shl_load (); below.
9746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9747 <limits.h> exists even on freestanding compilers. */
9748
9749#ifdef __STDC__
9750# include <limits.h>
9751#else
9752# include <assert.h>
9753#endif
9754
9755#undef shl_load
9756
Reid Spencera773bd52006-08-04 18:18:08 +00009757/* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760#ifdef __cplusplus
9761extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763char shl_load ();
9764/* The GNU C library defines this for functions which it implements
9765 to always fail with ENOSYS. Some functions are actually named
9766 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009767#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009769#endif
9770
9771int
9772main ()
9773{
Reid Spencera773bd52006-08-04 18:18:08 +00009774return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775 ;
9776 return 0;
9777}
9778_ACEOF
9779rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009780if { (ac_try="$ac_link"
9781case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784esac
9785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009792 (exit $ac_status); } &&
9793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9794 { (case "(($ac_try" in
9795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9796 *) ac_try_echo=$ac_try;;
9797esac
9798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; } &&
9803 { ac_try='test -s conftest$ac_exeext'
9804 { (case "(($ac_try" in
9805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9806 *) ac_try_echo=$ac_try;;
9807esac
9808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9809 (eval "$ac_try") 2>&5
9810 ac_status=$?
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009813 ac_cv_func_shl_load=yes
9814else
9815 echo "$as_me: failed program was:" >&5
9816sed 's/^/| /' conftest.$ac_ext >&5
9817
Reid Spencera773bd52006-08-04 18:18:08 +00009818 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009819fi
Reid Spencera773bd52006-08-04 18:18:08 +00009820
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009821rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009822 conftest$ac_exeext conftest.$ac_ext
9823fi
Reid Spencera773bd52006-08-04 18:18:08 +00009824{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9825echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826if test $ac_cv_func_shl_load = yes; then
9827
9828cat >>confdefs.h <<\_ACEOF
9829#define HAVE_SHL_LOAD 1
9830_ACEOF
9831
9832else
Reid Spencera773bd52006-08-04 18:18:08 +00009833 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9834echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9836 echo $ECHO_N "(cached) $ECHO_C" >&6
9837else
9838 ac_check_lib_save_LIBS=$LIBS
9839LIBS="-ldld $LIBS"
9840cat >conftest.$ac_ext <<_ACEOF
9841/* confdefs.h. */
9842_ACEOF
9843cat confdefs.h >>conftest.$ac_ext
9844cat >>conftest.$ac_ext <<_ACEOF
9845/* end confdefs.h. */
9846
Reid Spencera773bd52006-08-04 18:18:08 +00009847/* Override any GCC internal prototype to avoid an error.
9848 Use char because int might match the return type of a GCC
9849 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850#ifdef __cplusplus
9851extern "C"
9852#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009853char shl_load ();
9854int
9855main ()
9856{
Reid Spencera773bd52006-08-04 18:18:08 +00009857return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009858 ;
9859 return 0;
9860}
9861_ACEOF
9862rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009863if { (ac_try="$ac_link"
9864case "(($ac_try" in
9865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866 *) ac_try_echo=$ac_try;;
9867esac
9868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009875 (exit $ac_status); } &&
9876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9877 { (case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880esac
9881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882 (eval "$ac_try") 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896 ac_cv_lib_dld_shl_load=yes
9897else
9898 echo "$as_me: failed program was:" >&5
9899sed 's/^/| /' conftest.$ac_ext >&5
9900
Reid Spencera773bd52006-08-04 18:18:08 +00009901 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902fi
Reid Spencera773bd52006-08-04 18:18:08 +00009903
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009904rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009905 conftest$ac_exeext conftest.$ac_ext
9906LIBS=$ac_check_lib_save_LIBS
9907fi
Reid Spencera773bd52006-08-04 18:18:08 +00009908{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9909echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009910if test $ac_cv_lib_dld_shl_load = yes; then
9911
9912cat >>confdefs.h <<\_ACEOF
9913#define HAVE_SHL_LOAD 1
9914_ACEOF
9915
9916 LIBADD_DL="$LIBADD_DL -ldld"
9917else
Reid Spencera773bd52006-08-04 18:18:08 +00009918 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9919echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009920if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9922else
9923 ac_check_lib_save_LIBS=$LIBS
9924LIBS="-ldl $LIBS"
9925cat >conftest.$ac_ext <<_ACEOF
9926/* confdefs.h. */
9927_ACEOF
9928cat confdefs.h >>conftest.$ac_ext
9929cat >>conftest.$ac_ext <<_ACEOF
9930/* end confdefs.h. */
9931
Reid Spencera773bd52006-08-04 18:18:08 +00009932/* Override any GCC internal prototype to avoid an error.
9933 Use char because int might match the return type of a GCC
9934 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009935#ifdef __cplusplus
9936extern "C"
9937#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009938char dlopen ();
9939int
9940main ()
9941{
Reid Spencera773bd52006-08-04 18:18:08 +00009942return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009943 ;
9944 return 0;
9945}
9946_ACEOF
9947rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009948if { (ac_try="$ac_link"
9949case "(($ac_try" in
9950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9951 *) ac_try_echo=$ac_try;;
9952esac
9953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9954 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955 ac_status=$?
9956 grep -v '^ *+' conftest.er1 >conftest.err
9957 rm -f conftest.er1
9958 cat conftest.err >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009960 (exit $ac_status); } &&
9961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9962 { (case "(($ac_try" in
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9965esac
9966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_try") 2>&5
9968 ac_status=$?
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; } &&
9971 { ac_try='test -s conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975esac
9976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981 ac_cv_lib_dl_dlopen=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
Reid Spencera773bd52006-08-04 18:18:08 +00009986 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009987fi
Reid Spencera773bd52006-08-04 18:18:08 +00009988
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009989rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
Reid Spencera773bd52006-08-04 18:18:08 +00009993{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9994echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009995if test $ac_cv_lib_dl_dlopen = yes; then
9996
9997cat >>confdefs.h <<\_ACEOF
9998#define HAVE_LIBDL 1
9999_ACEOF
10000
10001 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10002else
10003 cat >conftest.$ac_ext <<_ACEOF
10004/* confdefs.h. */
10005_ACEOF
10006cat confdefs.h >>conftest.$ac_ext
10007cat >>conftest.$ac_ext <<_ACEOF
10008/* end confdefs.h. */
10009#if HAVE_DLFCN_H
10010# include <dlfcn.h>
10011#endif
10012
10013int
10014main ()
10015{
10016dlopen(0, 0);
10017 ;
10018 return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010022if { (ac_try="$ac_link"
10023case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010034 (exit $ac_status); } &&
10035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
10042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
10046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010055
10056cat >>confdefs.h <<\_ACEOF
10057#define HAVE_LIBDL 1
10058_ACEOF
10059 libltdl_cv_func_dlopen="yes"
10060else
10061 echo "$as_me: failed program was:" >&5
10062sed 's/^/| /' conftest.$ac_ext >&5
10063
Reid Spencera773bd52006-08-04 18:18:08 +000010064 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10065echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010066if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10067 echo $ECHO_N "(cached) $ECHO_C" >&6
10068else
10069 ac_check_lib_save_LIBS=$LIBS
10070LIBS="-lsvld $LIBS"
10071cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h. */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h. */
10077
Reid Spencera773bd52006-08-04 18:18:08 +000010078/* Override any GCC internal prototype to avoid an error.
10079 Use char because int might match the return type of a GCC
10080 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081#ifdef __cplusplus
10082extern "C"
10083#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010084char dlopen ();
10085int
10086main ()
10087{
Reid Spencera773bd52006-08-04 18:18:08 +000010088return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010089 ;
10090 return 0;
10091}
10092_ACEOF
10093rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010094if { (ac_try="$ac_link"
10095case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098esac
10099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10100 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010106 (exit $ac_status); } &&
10107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10108 { (case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111esac
10112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_try") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (case "(($ac_try" in
10119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10120 *) ac_try_echo=$ac_try;;
10121esac
10122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10123 (eval "$ac_try") 2>&5
10124 ac_status=$?
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010127 ac_cv_lib_svld_dlopen=yes
10128else
10129 echo "$as_me: failed program was:" >&5
10130sed 's/^/| /' conftest.$ac_ext >&5
10131
Reid Spencera773bd52006-08-04 18:18:08 +000010132 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133fi
Reid Spencera773bd52006-08-04 18:18:08 +000010134
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010135rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136 conftest$ac_exeext conftest.$ac_ext
10137LIBS=$ac_check_lib_save_LIBS
10138fi
Reid Spencera773bd52006-08-04 18:18:08 +000010139{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10140echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141if test $ac_cv_lib_svld_dlopen = yes; then
10142
10143cat >>confdefs.h <<\_ACEOF
10144#define HAVE_LIBDL 1
10145_ACEOF
10146
10147 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10148else
Reid Spencera773bd52006-08-04 18:18:08 +000010149 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10150echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153else
10154 ac_check_lib_save_LIBS=$LIBS
10155LIBS="-ldld $LIBS"
10156cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h. */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h. */
10162
Reid Spencera773bd52006-08-04 18:18:08 +000010163/* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010166#ifdef __cplusplus
10167extern "C"
10168#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169char dld_link ();
10170int
10171main ()
10172{
Reid Spencera773bd52006-08-04 18:18:08 +000010173return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174 ;
10175 return 0;
10176}
10177_ACEOF
10178rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010179if { (ac_try="$ac_link"
10180case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010191 (exit $ac_status); } &&
10192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10193 { (case "(($ac_try" in
10194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10195 *) ac_try_echo=$ac_try;;
10196esac
10197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10198 (eval "$ac_try") 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_try") 2>&5
10209 ac_status=$?
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010212 ac_cv_lib_dld_dld_link=yes
10213else
10214 echo "$as_me: failed program was:" >&5
10215sed 's/^/| /' conftest.$ac_ext >&5
10216
Reid Spencera773bd52006-08-04 18:18:08 +000010217 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010218fi
Reid Spencera773bd52006-08-04 18:18:08 +000010219
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010220rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221 conftest$ac_exeext conftest.$ac_ext
10222LIBS=$ac_check_lib_save_LIBS
10223fi
Reid Spencera773bd52006-08-04 18:18:08 +000010224{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10225echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226if test $ac_cv_lib_dld_dld_link = yes; then
10227
10228cat >>confdefs.h <<\_ACEOF
10229#define HAVE_DLD 1
10230_ACEOF
10231
10232 LIBADD_DL="$LIBADD_DL -ldld"
10233else
Reid Spencera773bd52006-08-04 18:18:08 +000010234 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10235echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010236if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238else
10239 cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10247#define _dyld_func_lookup innocuous__dyld_func_lookup
10248
10249/* System header to define __stub macros and hopefully few prototypes,
10250 which can conflict with char _dyld_func_lookup (); below.
10251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10252 <limits.h> exists even on freestanding compilers. */
10253
10254#ifdef __STDC__
10255# include <limits.h>
10256#else
10257# include <assert.h>
10258#endif
10259
10260#undef _dyld_func_lookup
10261
Reid Spencera773bd52006-08-04 18:18:08 +000010262/* Override any GCC internal prototype to avoid an error.
10263 Use char because int might match the return type of a GCC
10264 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265#ifdef __cplusplus
10266extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010267#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010268char _dyld_func_lookup ();
10269/* The GNU C library defines this for functions which it implements
10270 to always fail with ENOSYS. Some functions are actually named
10271 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010272#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010273choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010274#endif
10275
10276int
10277main ()
10278{
Reid Spencera773bd52006-08-04 18:18:08 +000010279return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010280 ;
10281 return 0;
10282}
10283_ACEOF
10284rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010285if { (ac_try="$ac_link"
10286case "(($ac_try" in
10287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288 *) ac_try_echo=$ac_try;;
10289esac
10290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010292 ac_status=$?
10293 grep -v '^ *+' conftest.er1 >conftest.err
10294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010297 (exit $ac_status); } &&
10298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10299 { (case "(($ac_try" in
10300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10301 *) ac_try_echo=$ac_try;;
10302esac
10303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10304 (eval "$ac_try") 2>&5
10305 ac_status=$?
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; } &&
10308 { ac_try='test -s conftest$ac_exeext'
10309 { (case "(($ac_try" in
10310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311 *) ac_try_echo=$ac_try;;
10312esac
10313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314 (eval "$ac_try") 2>&5
10315 ac_status=$?
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318 ac_cv_func__dyld_func_lookup=yes
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
Reid Spencera773bd52006-08-04 18:18:08 +000010323 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010324fi
Reid Spencera773bd52006-08-04 18:18:08 +000010325
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010326rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010327 conftest$ac_exeext conftest.$ac_ext
10328fi
Reid Spencera773bd52006-08-04 18:18:08 +000010329{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10330echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331if test $ac_cv_func__dyld_func_lookup = yes; then
10332
10333cat >>confdefs.h <<\_ACEOF
10334#define HAVE_DYLD 1
10335_ACEOF
10336
10337fi
10338
10339
10340fi
10341
10342
10343fi
10344
10345
10346fi
Reid Spencera773bd52006-08-04 18:18:08 +000010347
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010348rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010349 conftest$ac_exeext conftest.$ac_ext
10350
10351fi
10352
10353
10354fi
10355
10356
10357fi
10358
10359
10360if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10361then
10362 lt_save_LIBS="$LIBS"
10363 LIBS="$LIBS $LIBADD_DL"
10364
10365for ac_func in dlerror
10366do
10367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010368{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10370if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372else
10373 cat >conftest.$ac_ext <<_ACEOF
10374/* confdefs.h. */
10375_ACEOF
10376cat confdefs.h >>conftest.$ac_ext
10377cat >>conftest.$ac_ext <<_ACEOF
10378/* end confdefs.h. */
10379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10381#define $ac_func innocuous_$ac_func
10382
10383/* System header to define __stub macros and hopefully few prototypes,
10384 which can conflict with char $ac_func (); below.
10385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386 <limits.h> exists even on freestanding compilers. */
10387
10388#ifdef __STDC__
10389# include <limits.h>
10390#else
10391# include <assert.h>
10392#endif
10393
10394#undef $ac_func
10395
Reid Spencera773bd52006-08-04 18:18:08 +000010396/* Override any GCC internal prototype to avoid an error.
10397 Use char because int might match the return type of a GCC
10398 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399#ifdef __cplusplus
10400extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010402char $ac_func ();
10403/* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010406#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010407choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010408#endif
10409
10410int
10411main ()
10412{
Reid Spencera773bd52006-08-04 18:18:08 +000010413return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010414 ;
10415 return 0;
10416}
10417_ACEOF
10418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010419if { (ac_try="$ac_link"
10420case "(($ac_try" in
10421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10423esac
10424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433 { (case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_try") 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest$ac_exeext'
10443 { (case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446esac
10447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448 (eval "$ac_try") 2>&5
10449 ac_status=$?
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010452 eval "$as_ac_var=yes"
10453else
10454 echo "$as_me: failed program was:" >&5
10455sed 's/^/| /' conftest.$ac_ext >&5
10456
Reid Spencera773bd52006-08-04 18:18:08 +000010457 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010458fi
Reid Spencera773bd52006-08-04 18:18:08 +000010459
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461 conftest$ac_exeext conftest.$ac_ext
10462fi
Reid Spencera773bd52006-08-04 18:18:08 +000010463ac_res=`eval echo '${'$as_ac_var'}'`
10464 { echo "$as_me:$LINENO: result: $ac_res" >&5
10465echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466if test `eval echo '${'$as_ac_var'}'` = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10469_ACEOF
10470
10471fi
10472done
10473
10474 LIBS="$lt_save_LIBS"
10475fi
10476ac_ext=c
10477ac_cpp='$CPP $CPPFLAGS'
10478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10480ac_compiler_gnu=$ac_cv_c_compiler_gnu
10481
10482
10483
Reid Spencera773bd52006-08-04 18:18:08 +000010484{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10485echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010486if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489 ac_cv_sys_symbol_underscore=no
10490 cat > conftest.$ac_ext <<EOF
10491void nm_test_func(){}
10492int main(){nm_test_func;return 0;}
10493EOF
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; then
10499 # Now try to grab the symbols.
10500 ac_nlist=conftest.nm
10501 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10502 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); } && test -s "$ac_nlist"; then
10506 # See whether the symbols have a leading underscore.
10507 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10508 ac_cv_sys_symbol_underscore=yes
10509 else
10510 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10511 :
10512 else
10513 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10514 fi
10515 fi
10516 else
10517 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10518 fi
10519 else
10520 echo "configure: failed program was:" >&5
10521 cat conftest.c >&5
10522 fi
10523 rm -rf conftest*
10524
10525fi
Reid Spencera773bd52006-08-04 18:18:08 +000010526{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10527echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528
10529
10530if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10531 if test x"$libltdl_cv_func_dlopen" = xyes ||
10532 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010533 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10534echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535if test "${libltdl_cv_need_uscore+set}" = set; then
10536 echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538 libltdl_cv_need_uscore=unknown
10539 save_LIBS="$LIBS"
10540 LIBS="$LIBS $LIBADD_DL"
10541 if test "$cross_compiling" = yes; then :
10542 libltdl_cv_need_uscore=cross
10543else
10544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10545 lt_status=$lt_dlunknown
10546 cat > conftest.$ac_ext <<EOF
Bill Wendlinga0833352009-03-12 04:10:09 +000010547#line 10547 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010548#include "confdefs.h"
10549
10550#if HAVE_DLFCN_H
10551#include <dlfcn.h>
10552#endif
10553
10554#include <stdio.h>
10555
10556#ifdef RTLD_GLOBAL
10557# define LT_DLGLOBAL RTLD_GLOBAL
10558#else
10559# ifdef DL_GLOBAL
10560# define LT_DLGLOBAL DL_GLOBAL
10561# else
10562# define LT_DLGLOBAL 0
10563# endif
10564#endif
10565
10566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10567 find out it does not work in some platform. */
10568#ifndef LT_DLLAZY_OR_NOW
10569# ifdef RTLD_LAZY
10570# define LT_DLLAZY_OR_NOW RTLD_LAZY
10571# else
10572# ifdef DL_LAZY
10573# define LT_DLLAZY_OR_NOW DL_LAZY
10574# else
10575# ifdef RTLD_NOW
10576# define LT_DLLAZY_OR_NOW RTLD_NOW
10577# else
10578# ifdef DL_NOW
10579# define LT_DLLAZY_OR_NOW DL_NOW
10580# else
10581# define LT_DLLAZY_OR_NOW 0
10582# endif
10583# endif
10584# endif
10585# endif
10586#endif
10587
10588#ifdef __cplusplus
10589extern "C" void exit (int);
10590#endif
10591
10592void fnord() { int i=42;}
10593int main ()
10594{
10595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10596 int status = $lt_dlunknown;
10597
10598 if (self)
10599 {
10600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10602 /* dlclose (self); */
10603 }
Reid Spencera773bd52006-08-04 18:18:08 +000010604 else
10605 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606
10607 exit (status);
10608}
10609EOF
10610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611 (eval $ac_link) 2>&5
10612 ac_status=$?
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010615 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010616 lt_status=$?
10617 case x$lt_status in
10618 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10619 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010620 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010621 esac
10622 else :
10623 # compilation failed
10624
10625 fi
10626fi
10627rm -fr conftest*
10628
10629 LIBS="$save_LIBS"
10630
10631fi
Reid Spencera773bd52006-08-04 18:18:08 +000010632{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10633echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634 fi
10635fi
10636
10637if test x"$libltdl_cv_need_uscore" = xyes; then
10638
10639cat >>confdefs.h <<\_ACEOF
10640#define NEED_USCORE 1
10641_ACEOF
10642
10643fi
10644
10645
Reid Spencera773bd52006-08-04 18:18:08 +000010646{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10647echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010648if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10649 echo $ECHO_N "(cached) $ECHO_C" >&6
10650else
10651 # PORTME does your system automatically load deplibs for dlopen?
10652 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10653 # For now, we just catch OSes we know something about -- in the
10654 # future, we'll try test this programmatically.
10655 libltdl_cv_sys_dlopen_deplibs=unknown
10656 case "$host_os" in
10657 aix3*|aix4.1.*|aix4.2.*)
10658 # Unknown whether this is true for these versions of AIX, but
10659 # we want this `case' here to explicitly catch those versions.
10660 libltdl_cv_sys_dlopen_deplibs=unknown
10661 ;;
10662 aix[45]*)
10663 libltdl_cv_sys_dlopen_deplibs=yes
10664 ;;
10665 darwin*)
10666 # Assuming the user has installed a libdl from somewhere, this is true
10667 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10668 libltdl_cv_sys_dlopen_deplibs=yes
10669 ;;
10670 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10671 # GNU and its variants, using gnu ld.so (Glibc)
10672 libltdl_cv_sys_dlopen_deplibs=yes
10673 ;;
10674 hpux10*|hpux11*)
10675 libltdl_cv_sys_dlopen_deplibs=yes
10676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010677 interix*)
10678 libltdl_cv_sys_dlopen_deplibs=yes
10679 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680 irix[12345]*|irix6.[01]*)
10681 # Catch all versions of IRIX before 6.2, and indicate that we don't
10682 # know how it worked for any of those versions.
10683 libltdl_cv_sys_dlopen_deplibs=unknown
10684 ;;
10685 irix*)
10686 # The case above catches anything before 6.2, and it's known that
10687 # at 6.2 and later dlopen does load deplibs.
10688 libltdl_cv_sys_dlopen_deplibs=yes
10689 ;;
10690 netbsd*)
10691 libltdl_cv_sys_dlopen_deplibs=yes
10692 ;;
10693 openbsd*)
10694 libltdl_cv_sys_dlopen_deplibs=yes
10695 ;;
10696 osf[1234]*)
10697 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10698 # it did *not* use an RPATH in a shared library to find objects the
10699 # library depends on, so we explictly say `no'.
10700 libltdl_cv_sys_dlopen_deplibs=no
10701 ;;
10702 osf5.0|osf5.0a|osf5.1)
10703 # dlopen *does* load deplibs and with the right loader patch applied
10704 # it even uses RPATH in a shared library to search for shared objects
10705 # that the library depends on, but there's no easy way to know if that
10706 # patch is installed. Since this is the case, all we can really
10707 # say is unknown -- it depends on the patch being installed. If
10708 # it is, this changes to `yes'. Without it, it would be `no'.
10709 libltdl_cv_sys_dlopen_deplibs=unknown
10710 ;;
10711 osf*)
10712 # the two cases above should catch all versions of osf <= 5.1. Read
10713 # the comments above for what we know about them.
10714 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10715 # is used to find them so we can finally say `yes'.
10716 libltdl_cv_sys_dlopen_deplibs=yes
10717 ;;
10718 solaris*)
10719 libltdl_cv_sys_dlopen_deplibs=yes
10720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010721 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10722 libltdl_cv_sys_dlopen_deplibs=yes
10723 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010724 esac
10725
10726fi
Reid Spencera773bd52006-08-04 18:18:08 +000010727{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10728echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10730
10731cat >>confdefs.h <<\_ACEOF
10732#define LTDL_DLOPEN_DEPLIBS 1
10733_ACEOF
10734
10735fi
10736
10737
10738for ac_header in argz.h
10739do
10740as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10743echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746fi
Reid Spencera773bd52006-08-04 18:18:08 +000010747ac_res=`eval echo '${'$as_ac_Header'}'`
10748 { echo "$as_me:$LINENO: result: $ac_res" >&5
10749echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750else
10751 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010752{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10753echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754cat >conftest.$ac_ext <<_ACEOF
10755/* confdefs.h. */
10756_ACEOF
10757cat confdefs.h >>conftest.$ac_ext
10758cat >>conftest.$ac_ext <<_ACEOF
10759/* end confdefs.h. */
10760$ac_includes_default
10761#include <$ac_header>
10762_ACEOF
10763rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010764if { (ac_try="$ac_compile"
10765case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768esac
10769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010776 (exit $ac_status); } &&
10777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10778 { (case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10781esac
10782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_try") 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest.$ac_objext'
10788 { (case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_try") 2>&5
10794 ac_status=$?
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010797 ac_header_compiler=yes
10798else
10799 echo "$as_me: failed program was:" >&5
10800sed 's/^/| /' conftest.$ac_ext >&5
10801
Reid Spencera773bd52006-08-04 18:18:08 +000010802 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010803fi
Reid Spencera773bd52006-08-04 18:18:08 +000010804
10805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010808
10809# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010810{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812cat >conftest.$ac_ext <<_ACEOF
10813/* confdefs.h. */
10814_ACEOF
10815cat confdefs.h >>conftest.$ac_ext
10816cat >>conftest.$ac_ext <<_ACEOF
10817/* end confdefs.h. */
10818#include <$ac_header>
10819_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010820if { (ac_try="$ac_cpp conftest.$ac_ext"
10821case "(($ac_try" in
10822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10824esac
10825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010832 (exit $ac_status); } >/dev/null; then
10833 if test -s conftest.err; then
10834 ac_cpp_err=$ac_c_preproc_warn_flag
10835 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10836 else
10837 ac_cpp_err=
10838 fi
10839else
10840 ac_cpp_err=yes
10841fi
10842if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010843 ac_header_preproc=yes
10844else
10845 echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
10848 ac_header_preproc=no
10849fi
Reid Spencera773bd52006-08-04 18:18:08 +000010850
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010851rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010852{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010854
10855# So? What about this header?
10856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857 yes:no: )
10858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862 ac_header_preproc=yes
10863 ;;
10864 no:yes:* )
10865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010877 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010878## ----------------------------------- ##
10879## Report this to llvmbugs@cs.uiuc.edu ##
10880## ----------------------------------- ##
10881_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010882 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010883 ;;
10884esac
Reid Spencera773bd52006-08-04 18:18:08 +000010885{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10887if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010888 echo $ECHO_N "(cached) $ECHO_C" >&6
10889else
10890 eval "$as_ac_Header=\$ac_header_preproc"
10891fi
Reid Spencera773bd52006-08-04 18:18:08 +000010892ac_res=`eval echo '${'$as_ac_Header'}'`
10893 { echo "$as_me:$LINENO: result: $ac_res" >&5
10894echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010895
10896fi
10897if test `eval echo '${'$as_ac_Header'}'` = yes; then
10898 cat >>confdefs.h <<_ACEOF
10899#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10900_ACEOF
10901
10902fi
10903
10904done
10905
10906
Reid Spencera773bd52006-08-04 18:18:08 +000010907{ echo "$as_me:$LINENO: checking for error_t" >&5
10908echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909if test "${ac_cv_type_error_t+set}" = set; then
10910 echo $ECHO_N "(cached) $ECHO_C" >&6
10911else
10912 cat >conftest.$ac_ext <<_ACEOF
10913/* confdefs.h. */
10914_ACEOF
10915cat confdefs.h >>conftest.$ac_ext
10916cat >>conftest.$ac_ext <<_ACEOF
10917/* end confdefs.h. */
10918#if HAVE_ARGZ_H
10919# include <argz.h>
10920#endif
10921
Reid Spencera773bd52006-08-04 18:18:08 +000010922typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010923int
10924main ()
10925{
Reid Spencera773bd52006-08-04 18:18:08 +000010926if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010927 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010928if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010929 return 0;
10930 ;
10931 return 0;
10932}
10933_ACEOF
10934rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010935if { (ac_try="$ac_compile"
10936case "(($ac_try" in
10937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938 *) ac_try_echo=$ac_try;;
10939esac
10940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942 ac_status=$?
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010947 (exit $ac_status); } &&
10948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10949 { (case "(($ac_try" in
10950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951 *) ac_try_echo=$ac_try;;
10952esac
10953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954 (eval "$ac_try") 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
10959 { (case "(($ac_try" in
10960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10962esac
10963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10965 ac_status=$?
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968 ac_cv_type_error_t=yes
10969else
10970 echo "$as_me: failed program was:" >&5
10971sed 's/^/| /' conftest.$ac_ext >&5
10972
Reid Spencera773bd52006-08-04 18:18:08 +000010973 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010974fi
Reid Spencera773bd52006-08-04 18:18:08 +000010975
10976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977fi
Reid Spencera773bd52006-08-04 18:18:08 +000010978{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10979echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010980if test $ac_cv_type_error_t = yes; then
10981
10982cat >>confdefs.h <<_ACEOF
10983#define HAVE_ERROR_T 1
10984_ACEOF
10985
10986
10987else
10988
10989cat >>confdefs.h <<\_ACEOF
10990#define error_t int
10991_ACEOF
10992
10993fi
10994
10995
10996
10997
10998
10999
11000
11001for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11002do
11003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 cat >conftest.$ac_ext <<_ACEOF
11010/* confdefs.h. */
11011_ACEOF
11012cat confdefs.h >>conftest.$ac_ext
11013cat >>conftest.$ac_ext <<_ACEOF
11014/* end confdefs.h. */
11015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017#define $ac_func innocuous_$ac_func
11018
11019/* System header to define __stub macros and hopefully few prototypes,
11020 which can conflict with char $ac_func (); below.
11021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022 <limits.h> exists even on freestanding compilers. */
11023
11024#ifdef __STDC__
11025# include <limits.h>
11026#else
11027# include <assert.h>
11028#endif
11029
11030#undef $ac_func
11031
Reid Spencera773bd52006-08-04 18:18:08 +000011032/* Override any GCC internal prototype to avoid an error.
11033 Use char because int might match the return type of a GCC
11034 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011035#ifdef __cplusplus
11036extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038char $ac_func ();
11039/* The GNU C library defines this for functions which it implements
11040 to always fail with ENOSYS. Some functions are actually named
11041 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011042#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011044#endif
11045
11046int
11047main ()
11048{
Reid Spencera773bd52006-08-04 18:18:08 +000011049return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050 ;
11051 return 0;
11052}
11053_ACEOF
11054rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011055if { (ac_try="$ac_link"
11056case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059esac
11060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11069 { (case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11072esac
11073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_try") 2>&5
11075 ac_status=$?
11076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077 (exit $ac_status); }; } &&
11078 { ac_try='test -s conftest$ac_exeext'
11079 { (case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11082esac
11083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_try") 2>&5
11085 ac_status=$?
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011088 eval "$as_ac_var=yes"
11089else
11090 echo "$as_me: failed program was:" >&5
11091sed 's/^/| /' conftest.$ac_ext >&5
11092
Reid Spencera773bd52006-08-04 18:18:08 +000011093 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011094fi
Reid Spencera773bd52006-08-04 18:18:08 +000011095
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011096rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011097 conftest$ac_exeext conftest.$ac_ext
11098fi
Reid Spencera773bd52006-08-04 18:18:08 +000011099ac_res=`eval echo '${'$as_ac_var'}'`
11100 { echo "$as_me:$LINENO: result: $ac_res" >&5
11101echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102if test `eval echo '${'$as_ac_var'}'` = yes; then
11103 cat >>confdefs.h <<_ACEOF
11104#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11105_ACEOF
11106
11107fi
11108done
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11138 stdio.h unistd.h
11139do
11140as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011141if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011145 echo $ECHO_N "(cached) $ECHO_C" >&6
11146fi
Reid Spencera773bd52006-08-04 18:18:08 +000011147ac_res=`eval echo '${'$as_ac_Header'}'`
11148 { echo "$as_me:$LINENO: result: $ac_res" >&5
11149echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150else
11151 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011152{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11153echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154cat >conftest.$ac_ext <<_ACEOF
11155/* confdefs.h. */
11156_ACEOF
11157cat confdefs.h >>conftest.$ac_ext
11158cat >>conftest.$ac_ext <<_ACEOF
11159/* end confdefs.h. */
11160$ac_includes_default
11161#include <$ac_header>
11162_ACEOF
11163rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011164if { (ac_try="$ac_compile"
11165case "(($ac_try" in
11166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167 *) ac_try_echo=$ac_try;;
11168esac
11169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 ac_status=$?
11172 grep -v '^ *+' conftest.er1 >conftest.err
11173 rm -f conftest.er1
11174 cat conftest.err >&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011176 (exit $ac_status); } &&
11177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178 { (case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_try") 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest.$ac_objext'
11188 { (case "(($ac_try" in
11189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190 *) ac_try_echo=$ac_try;;
11191esac
11192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193 (eval "$ac_try") 2>&5
11194 ac_status=$?
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 ac_header_compiler=yes
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
Reid Spencera773bd52006-08-04 18:18:08 +000011202 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011203fi
Reid Spencera773bd52006-08-04 18:18:08 +000011204
11205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11207echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208
11209# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011210{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011212cat >conftest.$ac_ext <<_ACEOF
11213/* confdefs.h. */
11214_ACEOF
11215cat confdefs.h >>conftest.$ac_ext
11216cat >>conftest.$ac_ext <<_ACEOF
11217/* end confdefs.h. */
11218#include <$ac_header>
11219_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011220if { (ac_try="$ac_cpp conftest.$ac_ext"
11221case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224esac
11225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011232 (exit $ac_status); } >/dev/null; then
11233 if test -s conftest.err; then
11234 ac_cpp_err=$ac_c_preproc_warn_flag
11235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11236 else
11237 ac_cpp_err=
11238 fi
11239else
11240 ac_cpp_err=yes
11241fi
11242if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 ac_header_preproc=yes
11244else
11245 echo "$as_me: failed program was:" >&5
11246sed 's/^/| /' conftest.$ac_ext >&5
11247
11248 ac_header_preproc=no
11249fi
Reid Spencera773bd52006-08-04 18:18:08 +000011250
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011252{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11253echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011254
11255# So? What about this header?
11256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11257 yes:no: )
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11259echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11261echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11262 ac_header_preproc=yes
11263 ;;
11264 no:yes:* )
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11266echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11267 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11268echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11269 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11270echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11272echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11274echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11276echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011277 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011278## ----------------------------------- ##
11279## Report this to llvmbugs@cs.uiuc.edu ##
11280## ----------------------------------- ##
11281_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011282 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011283 ;;
11284esac
Reid Spencera773bd52006-08-04 18:18:08 +000011285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
11290 eval "$as_ac_Header=\$ac_header_preproc"
11291fi
Reid Spencera773bd52006-08-04 18:18:08 +000011292ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295
11296fi
11297if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300_ACEOF
11301
11302fi
11303
11304done
11305
11306
11307
11308
11309
11310for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11311do
11312as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011317 echo $ECHO_N "(cached) $ECHO_C" >&6
11318fi
Reid Spencera773bd52006-08-04 18:18:08 +000011319ac_res=`eval echo '${'$as_ac_Header'}'`
11320 { echo "$as_me:$LINENO: result: $ac_res" >&5
11321echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322else
11323 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011324{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11325echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326cat >conftest.$ac_ext <<_ACEOF
11327/* confdefs.h. */
11328_ACEOF
11329cat confdefs.h >>conftest.$ac_ext
11330cat >>conftest.$ac_ext <<_ACEOF
11331/* end confdefs.h. */
11332$ac_includes_default
11333#include <$ac_header>
11334_ACEOF
11335rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011336if { (ac_try="$ac_compile"
11337case "(($ac_try" in
11338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11339 *) ac_try_echo=$ac_try;;
11340esac
11341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11342 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011348 (exit $ac_status); } &&
11349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11350 { (case "(($ac_try" in
11351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11352 *) ac_try_echo=$ac_try;;
11353esac
11354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11355 (eval "$ac_try") 2>&5
11356 ac_status=$?
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_try") 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011369 ac_header_compiler=yes
11370else
11371 echo "$as_me: failed program was:" >&5
11372sed 's/^/| /' conftest.$ac_ext >&5
11373
Reid Spencera773bd52006-08-04 18:18:08 +000011374 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375fi
Reid Spencera773bd52006-08-04 18:18:08 +000011376
11377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380
11381# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011382{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011384cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
11390#include <$ac_header>
11391_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011392if { (ac_try="$ac_cpp conftest.$ac_ext"
11393case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396esac
11397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011404 (exit $ac_status); } >/dev/null; then
11405 if test -s conftest.err; then
11406 ac_cpp_err=$ac_c_preproc_warn_flag
11407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11408 else
11409 ac_cpp_err=
11410 fi
11411else
11412 ac_cpp_err=yes
11413fi
11414if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 ac_header_preproc=yes
11416else
11417 echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 ac_header_preproc=no
11421fi
Reid Spencera773bd52006-08-04 18:18:08 +000011422
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011423rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011424{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11425echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011426
11427# So? What about this header?
11428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11429 yes:no: )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11434 ac_header_preproc=yes
11435 ;;
11436 no:yes:* )
11437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011449 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011450## ----------------------------------- ##
11451## Report this to llvmbugs@cs.uiuc.edu ##
11452## ----------------------------------- ##
11453_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011454 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 ;;
11456esac
Reid Spencera773bd52006-08-04 18:18:08 +000011457{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11459if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461else
11462 eval "$as_ac_Header=\$ac_header_preproc"
11463fi
Reid Spencera773bd52006-08-04 18:18:08 +000011464ac_res=`eval echo '${'$as_ac_Header'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467
11468fi
11469if test `eval echo '${'$as_ac_Header'}'` = yes; then
11470 cat >>confdefs.h <<_ACEOF
11471#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11472_ACEOF
11473
11474fi
11475
11476done
11477
11478
11479
11480for ac_header in string.h strings.h
11481do
11482as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011483if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488fi
Reid Spencera773bd52006-08-04 18:18:08 +000011489ac_res=`eval echo '${'$as_ac_Header'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492else
11493 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011494{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496cat >conftest.$ac_ext <<_ACEOF
11497/* confdefs.h. */
11498_ACEOF
11499cat confdefs.h >>conftest.$ac_ext
11500cat >>conftest.$ac_ext <<_ACEOF
11501/* end confdefs.h. */
11502$ac_includes_default
11503#include <$ac_header>
11504_ACEOF
11505rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011506if { (ac_try="$ac_compile"
11507case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510esac
11511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11523esac
11524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11533esac
11534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11536 ac_status=$?
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539 ac_header_compiler=yes
11540else
11541 echo "$as_me: failed program was:" >&5
11542sed 's/^/| /' conftest.$ac_ext >&5
11543
Reid Spencera773bd52006-08-04 18:18:08 +000011544 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011545fi
Reid Spencera773bd52006-08-04 18:18:08 +000011546
11547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11549echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011550
11551# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011552{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11553echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554cat >conftest.$ac_ext <<_ACEOF
11555/* confdefs.h. */
11556_ACEOF
11557cat confdefs.h >>conftest.$ac_ext
11558cat >>conftest.$ac_ext <<_ACEOF
11559/* end confdefs.h. */
11560#include <$ac_header>
11561_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011562if { (ac_try="$ac_cpp conftest.$ac_ext"
11563case "(($ac_try" in
11564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11565 *) ac_try_echo=$ac_try;;
11566esac
11567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011569 ac_status=$?
11570 grep -v '^ *+' conftest.er1 >conftest.err
11571 rm -f conftest.er1
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11578 else
11579 ac_cpp_err=
11580 fi
11581else
11582 ac_cpp_err=yes
11583fi
11584if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011585 ac_header_preproc=yes
11586else
11587 echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590 ac_header_preproc=no
11591fi
Reid Spencera773bd52006-08-04 18:18:08 +000011592
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011593rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011594{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11595echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596
11597# So? What about this header?
11598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 yes:no: )
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11604 ac_header_preproc=yes
11605 ;;
11606 no:yes:* )
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011619 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011620## ----------------------------------- ##
11621## Report this to llvmbugs@cs.uiuc.edu ##
11622## ----------------------------------- ##
11623_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011624 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011625 ;;
11626esac
Reid Spencera773bd52006-08-04 18:18:08 +000011627{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631else
11632 eval "$as_ac_Header=\$ac_header_preproc"
11633fi
Reid Spencera773bd52006-08-04 18:18:08 +000011634ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011637
11638fi
11639if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642_ACEOF
11643 break
11644fi
11645
11646done
11647
11648
11649
11650
11651for ac_func in strchr index
11652do
11653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011654{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 echo $ECHO_N "(cached) $ECHO_C" >&6
11658else
11659 cat >conftest.$ac_ext <<_ACEOF
11660/* confdefs.h. */
11661_ACEOF
11662cat confdefs.h >>conftest.$ac_ext
11663cat >>conftest.$ac_ext <<_ACEOF
11664/* end confdefs.h. */
11665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11667#define $ac_func innocuous_$ac_func
11668
11669/* System header to define __stub macros and hopefully few prototypes,
11670 which can conflict with char $ac_func (); below.
11671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672 <limits.h> exists even on freestanding compilers. */
11673
11674#ifdef __STDC__
11675# include <limits.h>
11676#else
11677# include <assert.h>
11678#endif
11679
11680#undef $ac_func
11681
Reid Spencera773bd52006-08-04 18:18:08 +000011682/* Override any GCC internal prototype to avoid an error.
11683 Use char because int might match the return type of a GCC
11684 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011685#ifdef __cplusplus
11686extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011688char $ac_func ();
11689/* The GNU C library defines this for functions which it implements
11690 to always fail with ENOSYS. Some functions are actually named
11691 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011692#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694#endif
11695
11696int
11697main ()
11698{
Reid Spencera773bd52006-08-04 18:18:08 +000011699return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700 ;
11701 return 0;
11702}
11703_ACEOF
11704rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011705if { (ac_try="$ac_link"
11706case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712 ac_status=$?
11713 grep -v '^ *+' conftest.er1 >conftest.err
11714 rm -f conftest.er1
11715 cat conftest.err >&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011717 (exit $ac_status); } &&
11718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11719 { (case "(($ac_try" in
11720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11721 *) ac_try_echo=$ac_try;;
11722esac
11723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11724 (eval "$ac_try") 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; } &&
11728 { ac_try='test -s conftest$ac_exeext'
11729 { (case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_try") 2>&5
11735 ac_status=$?
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738 eval "$as_ac_var=yes"
11739else
11740 echo "$as_me: failed program was:" >&5
11741sed 's/^/| /' conftest.$ac_ext >&5
11742
Reid Spencera773bd52006-08-04 18:18:08 +000011743 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011744fi
Reid Spencera773bd52006-08-04 18:18:08 +000011745
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011746rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011747 conftest$ac_exeext conftest.$ac_ext
11748fi
Reid Spencera773bd52006-08-04 18:18:08 +000011749ac_res=`eval echo '${'$as_ac_var'}'`
11750 { echo "$as_me:$LINENO: result: $ac_res" >&5
11751echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752if test `eval echo '${'$as_ac_var'}'` = yes; then
11753 cat >>confdefs.h <<_ACEOF
11754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11755_ACEOF
11756 break
11757fi
11758done
11759
11760
11761
11762for ac_func in strrchr rindex
11763do
11764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011765{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011768 echo $ECHO_N "(cached) $ECHO_C" >&6
11769else
11770 cat >conftest.$ac_ext <<_ACEOF
11771/* confdefs.h. */
11772_ACEOF
11773cat confdefs.h >>conftest.$ac_ext
11774cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */
11776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11778#define $ac_func innocuous_$ac_func
11779
11780/* System header to define __stub macros and hopefully few prototypes,
11781 which can conflict with char $ac_func (); below.
11782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11783 <limits.h> exists even on freestanding compilers. */
11784
11785#ifdef __STDC__
11786# include <limits.h>
11787#else
11788# include <assert.h>
11789#endif
11790
11791#undef $ac_func
11792
Reid Spencera773bd52006-08-04 18:18:08 +000011793/* Override any GCC internal prototype to avoid an error.
11794 Use char because int might match the return type of a GCC
11795 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011796#ifdef __cplusplus
11797extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011798#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011799char $ac_func ();
11800/* The GNU C library defines this for functions which it implements
11801 to always fail with ENOSYS. Some functions are actually named
11802 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011803#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805#endif
11806
11807int
11808main ()
11809{
Reid Spencera773bd52006-08-04 18:18:08 +000011810return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011816if { (ac_try="$ac_link"
11817case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011828 (exit $ac_status); } &&
11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11830 { (case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_try") 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11843esac
11844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_try") 2>&5
11846 ac_status=$?
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011849 eval "$as_ac_var=yes"
11850else
11851 echo "$as_me: failed program was:" >&5
11852sed 's/^/| /' conftest.$ac_ext >&5
11853
Reid Spencera773bd52006-08-04 18:18:08 +000011854 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011855fi
Reid Spencera773bd52006-08-04 18:18:08 +000011856
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011857rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011858 conftest$ac_exeext conftest.$ac_ext
11859fi
Reid Spencera773bd52006-08-04 18:18:08 +000011860ac_res=`eval echo '${'$as_ac_var'}'`
11861 { echo "$as_me:$LINENO: result: $ac_res" >&5
11862echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863if test `eval echo '${'$as_ac_var'}'` = yes; then
11864 cat >>confdefs.h <<_ACEOF
11865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11866_ACEOF
11867 break
11868fi
11869done
11870
11871
11872
11873for ac_func in memcpy bcopy
11874do
11875as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011876{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11877echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11878if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879 echo $ECHO_N "(cached) $ECHO_C" >&6
11880else
11881 cat >conftest.$ac_ext <<_ACEOF
11882/* confdefs.h. */
11883_ACEOF
11884cat confdefs.h >>conftest.$ac_ext
11885cat >>conftest.$ac_ext <<_ACEOF
11886/* end confdefs.h. */
11887/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889#define $ac_func innocuous_$ac_func
11890
11891/* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11895
11896#ifdef __STDC__
11897# include <limits.h>
11898#else
11899# include <assert.h>
11900#endif
11901
11902#undef $ac_func
11903
Reid Spencera773bd52006-08-04 18:18:08 +000011904/* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907#ifdef __cplusplus
11908extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011909#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011910char $ac_func ();
11911/* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011914#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916#endif
11917
11918int
11919main ()
11920{
Reid Spencera773bd52006-08-04 18:18:08 +000011921return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922 ;
11923 return 0;
11924}
11925_ACEOF
11926rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011927if { (ac_try="$ac_link"
11928case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931esac
11932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934 ac_status=$?
11935 grep -v '^ *+' conftest.er1 >conftest.err
11936 rm -f conftest.er1
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (case "(($ac_try" in
11942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11943 *) ac_try_echo=$ac_try;;
11944esac
11945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11946 (eval "$ac_try") 2>&5
11947 ac_status=$?
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; } &&
11950 { ac_try='test -s conftest$ac_exeext'
11951 { (case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11954esac
11955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_try") 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011960 eval "$as_ac_var=yes"
11961else
11962 echo "$as_me: failed program was:" >&5
11963sed 's/^/| /' conftest.$ac_ext >&5
11964
Reid Spencera773bd52006-08-04 18:18:08 +000011965 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011966fi
Reid Spencera773bd52006-08-04 18:18:08 +000011967
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011968rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011969 conftest$ac_exeext conftest.$ac_ext
11970fi
Reid Spencera773bd52006-08-04 18:18:08 +000011971ac_res=`eval echo '${'$as_ac_var'}'`
11972 { echo "$as_me:$LINENO: result: $ac_res" >&5
11973echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974if test `eval echo '${'$as_ac_var'}'` = yes; then
11975 cat >>confdefs.h <<_ACEOF
11976#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11977_ACEOF
11978 break
11979fi
11980done
11981
11982
11983
11984for ac_func in memmove strcmp
11985do
11986as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011987{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11988echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11989if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12000#define $ac_func innocuous_$ac_func
12001
12002/* System header to define __stub macros and hopefully few prototypes,
12003 which can conflict with char $ac_func (); below.
12004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12005 <limits.h> exists even on freestanding compilers. */
12006
12007#ifdef __STDC__
12008# include <limits.h>
12009#else
12010# include <assert.h>
12011#endif
12012
12013#undef $ac_func
12014
Reid Spencera773bd52006-08-04 18:18:08 +000012015/* Override any GCC internal prototype to avoid an error.
12016 Use char because int might match the return type of a GCC
12017 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018#ifdef __cplusplus
12019extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012020#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012021char $ac_func ();
12022/* The GNU C library defines this for functions which it implements
12023 to always fail with ENOSYS. Some functions are actually named
12024 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012025#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012027#endif
12028
12029int
12030main ()
12031{
Reid Spencera773bd52006-08-04 18:18:08 +000012032return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012033 ;
12034 return 0;
12035}
12036_ACEOF
12037rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012038if { (ac_try="$ac_link"
12039case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042esac
12043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045 ac_status=$?
12046 grep -v '^ *+' conftest.er1 >conftest.err
12047 rm -f conftest.er1
12048 cat conftest.err >&5
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012050 (exit $ac_status); } &&
12051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12052 { (case "(($ac_try" in
12053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054 *) ac_try_echo=$ac_try;;
12055esac
12056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057 (eval "$ac_try") 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065esac
12066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_try") 2>&5
12068 ac_status=$?
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071 eval "$as_ac_var=yes"
12072else
12073 echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
Reid Spencera773bd52006-08-04 18:18:08 +000012076 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012077fi
Reid Spencera773bd52006-08-04 18:18:08 +000012078
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012079rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012080 conftest$ac_exeext conftest.$ac_ext
12081fi
Reid Spencera773bd52006-08-04 18:18:08 +000012082ac_res=`eval echo '${'$as_ac_var'}'`
12083 { echo "$as_me:$LINENO: result: $ac_res" >&5
12084echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085if test `eval echo '${'$as_ac_var'}'` = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12088_ACEOF
12089
12090fi
12091done
12092
12093
12094
12095
12096for ac_func in closedir opendir readdir
12097do
12098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012102 echo $ECHO_N "(cached) $ECHO_C" >&6
12103else
12104 cat >conftest.$ac_ext <<_ACEOF
12105/* confdefs.h. */
12106_ACEOF
12107cat confdefs.h >>conftest.$ac_ext
12108cat >>conftest.$ac_ext <<_ACEOF
12109/* end confdefs.h. */
12110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12112#define $ac_func innocuous_$ac_func
12113
12114/* System header to define __stub macros and hopefully few prototypes,
12115 which can conflict with char $ac_func (); below.
12116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12117 <limits.h> exists even on freestanding compilers. */
12118
12119#ifdef __STDC__
12120# include <limits.h>
12121#else
12122# include <assert.h>
12123#endif
12124
12125#undef $ac_func
12126
Reid Spencera773bd52006-08-04 18:18:08 +000012127/* Override any GCC internal prototype to avoid an error.
12128 Use char because int might match the return type of a GCC
12129 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012130#ifdef __cplusplus
12131extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012132#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133char $ac_func ();
12134/* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012137#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012139#endif
12140
12141int
12142main ()
12143{
Reid Spencera773bd52006-08-04 18:18:08 +000012144return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012145 ;
12146 return 0;
12147}
12148_ACEOF
12149rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012150if { (ac_try="$ac_link"
12151case "(($ac_try" in
12152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153 *) ac_try_echo=$ac_try;;
12154esac
12155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012157 ac_status=$?
12158 grep -v '^ *+' conftest.er1 >conftest.err
12159 rm -f conftest.er1
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167esac
12168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_try") 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; } &&
12173 { ac_try='test -s conftest$ac_exeext'
12174 { (case "(($ac_try" in
12175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176 *) ac_try_echo=$ac_try;;
12177esac
12178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179 (eval "$ac_try") 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183 eval "$as_ac_var=yes"
12184else
12185 echo "$as_me: failed program was:" >&5
12186sed 's/^/| /' conftest.$ac_ext >&5
12187
Reid Spencera773bd52006-08-04 18:18:08 +000012188 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012189fi
Reid Spencera773bd52006-08-04 18:18:08 +000012190
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012191rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012192 conftest$ac_exeext conftest.$ac_ext
12193fi
Reid Spencera773bd52006-08-04 18:18:08 +000012194ac_res=`eval echo '${'$as_ac_var'}'`
12195 { echo "$as_me:$LINENO: result: $ac_res" >&5
12196echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197if test `eval echo '${'$as_ac_var'}'` = yes; then
12198 cat >>confdefs.h <<_ACEOF
12199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12200_ACEOF
12201
12202fi
12203done
12204
12205
Reid Spencera773bd52006-08-04 18:18:08 +000012206# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012208 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012209 case $enableval in
12210 yes) enable_shared=yes ;;
12211 no) enable_shared=no ;;
12212 *)
12213 enable_shared=no
12214 # Look at the argument we got. We use all the common list separators.
12215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12216 for pkg in $enableval; do
12217 IFS="$lt_save_ifs"
12218 if test "X$pkg" = "X$p"; then
12219 enable_shared=yes
12220 fi
12221 done
12222 IFS="$lt_save_ifs"
12223 ;;
12224 esac
12225else
12226 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012227fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012228
Reid Spencera773bd52006-08-04 18:18:08 +000012229
12230# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012231if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012232 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012233 case $enableval in
12234 yes) enable_static=yes ;;
12235 no) enable_static=no ;;
12236 *)
12237 enable_static=no
12238 # Look at the argument we got. We use all the common list separators.
12239 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12240 for pkg in $enableval; do
12241 IFS="$lt_save_ifs"
12242 if test "X$pkg" = "X$p"; then
12243 enable_static=yes
12244 fi
12245 done
12246 IFS="$lt_save_ifs"
12247 ;;
12248 esac
12249else
12250 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012251fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252
Reid Spencera773bd52006-08-04 18:18:08 +000012253
12254# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012256 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257 case $enableval in
12258 yes) enable_fast_install=yes ;;
12259 no) enable_fast_install=no ;;
12260 *)
12261 enable_fast_install=no
12262 # Look at the argument we got. We use all the common list separators.
12263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12264 for pkg in $enableval; do
12265 IFS="$lt_save_ifs"
12266 if test "X$pkg" = "X$p"; then
12267 enable_fast_install=yes
12268 fi
12269 done
12270 IFS="$lt_save_ifs"
12271 ;;
12272 esac
12273else
12274 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012275fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012276
Reid Spencera773bd52006-08-04 18:18:08 +000012277
12278{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12279echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012280if test "${lt_cv_path_SED+set}" = set; then
12281 echo $ECHO_N "(cached) $ECHO_C" >&6
12282else
12283 # Loop through the user's path and test for sed and gsed.
12284# Then use that list of sed's as ones to test for truncation.
12285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286for as_dir in $PATH
12287do
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for lt_ac_prog in sed gsed; do
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12293 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12294 fi
12295 done
12296 done
12297done
12298lt_ac_max=0
12299lt_ac_count=0
12300# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12301# along with /bin/sed that truncates output.
12302for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012303 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 cat /dev/null > conftest.in
12305 lt_ac_count=0
12306 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12307 # Check for GNU sed and select it if it is found.
12308 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12309 lt_cv_path_SED=$lt_ac_sed
12310 break
12311 fi
12312 while true; do
12313 cat conftest.in conftest.in >conftest.tmp
12314 mv conftest.tmp conftest.in
12315 cp conftest.in conftest.nl
12316 echo >>conftest.nl
12317 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12318 cmp -s conftest.out conftest.nl || break
12319 # 10000 chars as input seems more than enough
12320 test $lt_ac_count -gt 10 && break
12321 lt_ac_count=`expr $lt_ac_count + 1`
12322 if test $lt_ac_count -gt $lt_ac_max; then
12323 lt_ac_max=$lt_ac_count
12324 lt_cv_path_SED=$lt_ac_sed
12325 fi
12326 done
12327done
12328
12329fi
12330
12331SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012332{ echo "$as_me:$LINENO: result: $SED" >&5
12333echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012334
12335
Reid Spencera773bd52006-08-04 18:18:08 +000012336# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012337if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012338 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012339else
12340 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012341fi
12342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343ac_prog=ld
12344if test "$GCC" = yes; then
12345 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012346 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12347echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012348 case $host in
12349 *-*-mingw*)
12350 # gcc leaves a trailing carriage return which upsets mingw
12351 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12352 *)
12353 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12354 esac
12355 case $ac_prog in
12356 # Accept absolute paths.
12357 [\\/]* | ?:[\\/]*)
12358 re_direlt='/[^/][^/]*/\.\./'
12359 # Canonicalize the pathname of ld
12360 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12361 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12362 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12363 done
12364 test -z "$LD" && LD="$ac_prog"
12365 ;;
12366 "")
12367 # If it fails, then pretend we aren't using GCC.
12368 ac_prog=ld
12369 ;;
12370 *)
12371 # If it is relative, then search for the first ld in PATH.
12372 with_gnu_ld=unknown
12373 ;;
12374 esac
12375elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012376 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12377echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012378else
Reid Spencera773bd52006-08-04 18:18:08 +000012379 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12380echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012381fi
12382if test "${lt_cv_path_LD+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384else
12385 if test -z "$LD"; then
12386 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12387 for ac_dir in $PATH; do
12388 IFS="$lt_save_ifs"
12389 test -z "$ac_dir" && ac_dir=.
12390 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12391 lt_cv_path_LD="$ac_dir/$ac_prog"
12392 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012393 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394 # Break only if it was the GNU/non-GNU ld that we prefer.
12395 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12396 *GNU* | *'with BFD'*)
12397 test "$with_gnu_ld" != no && break
12398 ;;
12399 *)
12400 test "$with_gnu_ld" != yes && break
12401 ;;
12402 esac
12403 fi
12404 done
12405 IFS="$lt_save_ifs"
12406else
12407 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12408fi
12409fi
12410
12411LD="$lt_cv_path_LD"
12412if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012413 { echo "$as_me:$LINENO: result: $LD" >&5
12414echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012415else
Reid Spencera773bd52006-08-04 18:18:08 +000012416 { echo "$as_me:$LINENO: result: no" >&5
12417echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418fi
12419test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12420echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12421 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012422{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12423echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012424if test "${lt_cv_prog_gnu_ld+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12426else
Reid Spencera773bd52006-08-04 18:18:08 +000012427 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428case `$LD -v 2>&1 </dev/null` in
12429*GNU* | *'with BFD'*)
12430 lt_cv_prog_gnu_ld=yes
12431 ;;
12432*)
12433 lt_cv_prog_gnu_ld=no
12434 ;;
12435esac
12436fi
Reid Spencera773bd52006-08-04 18:18:08 +000012437{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12438echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012439with_gnu_ld=$lt_cv_prog_gnu_ld
12440
12441
Reid Spencera773bd52006-08-04 18:18:08 +000012442{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12443echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444if test "${lt_cv_ld_reload_flag+set}" = set; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446else
12447 lt_cv_ld_reload_flag='-r'
12448fi
Reid Spencera773bd52006-08-04 18:18:08 +000012449{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12450echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012451reload_flag=$lt_cv_ld_reload_flag
12452case $reload_flag in
12453"" | " "*) ;;
12454*) reload_flag=" $reload_flag" ;;
12455esac
12456reload_cmds='$LD$reload_flag -o $output$reload_objs'
12457case $host_os in
12458 darwin*)
12459 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012460 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012461 else
12462 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12463 fi
12464 ;;
12465esac
12466
Reid Spencera773bd52006-08-04 18:18:08 +000012467{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12468echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012469if test "${lt_cv_deplibs_check_method+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12471else
12472 lt_cv_file_magic_cmd='$MAGIC_CMD'
12473lt_cv_file_magic_test_file=
12474lt_cv_deplibs_check_method='unknown'
12475# Need to set the preceding variable on all platforms that support
12476# interlibrary dependencies.
12477# 'none' -- dependencies not supported.
12478# `unknown' -- same as none, but documents that we really don't know.
12479# 'pass_all' -- all dependencies passed with no checks.
12480# 'test_compile' -- check by making test program.
12481# 'file_magic [[regex]]' -- check by looking for files in library path
12482# which responds to the $file_magic_cmd with a given extended regex.
12483# If you have `file' or equivalent on your system and you're not sure
12484# whether `pass_all' will *always* work, you probably want this one.
12485
12486case $host_os in
12487aix4* | aix5*)
12488 lt_cv_deplibs_check_method=pass_all
12489 ;;
12490
12491beos*)
12492 lt_cv_deplibs_check_method=pass_all
12493 ;;
12494
12495bsdi[45]*)
12496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12497 lt_cv_file_magic_cmd='/usr/bin/file -L'
12498 lt_cv_file_magic_test_file=/shlib/libc.so
12499 ;;
12500
12501cygwin*)
12502 # func_win32_libid is a shell function defined in ltmain.sh
12503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12504 lt_cv_file_magic_cmd='func_win32_libid'
12505 ;;
12506
12507mingw* | pw32*)
12508 # Base MSYS/MinGW do not provide the 'file' command needed by
12509 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12510 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12511 lt_cv_file_magic_cmd='$OBJDUMP -f'
12512 ;;
12513
12514darwin* | rhapsody*)
12515 lt_cv_deplibs_check_method=pass_all
12516 ;;
12517
Reid Spencera773bd52006-08-04 18:18:08 +000012518freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012519 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12520 case $host_cpu in
12521 i*86 )
12522 # Not sure whether the presence of OpenBSD here was a mistake.
12523 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012524 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 +000012525 lt_cv_file_magic_cmd=/usr/bin/file
12526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12527 ;;
12528 esac
12529 else
12530 lt_cv_deplibs_check_method=pass_all
12531 fi
12532 ;;
12533
12534gnu*)
12535 lt_cv_deplibs_check_method=pass_all
12536 ;;
12537
12538hpux10.20* | hpux11*)
12539 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012540 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 ia64*)
12542 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12543 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12544 ;;
12545 hppa*64*)
12546 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]'
12547 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12548 ;;
12549 *)
12550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12551 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12552 ;;
12553 esac
12554 ;;
12555
Reid Spencera773bd52006-08-04 18:18:08 +000012556interix3*)
12557 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12558 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12559 ;;
12560
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561irix5* | irix6* | nonstopux*)
12562 case $LD in
12563 *-32|*"-32 ") libmagic=32-bit;;
12564 *-n32|*"-n32 ") libmagic=N32;;
12565 *-64|*"-64 ") libmagic=64-bit;;
12566 *) libmagic=never-match;;
12567 esac
12568 lt_cv_deplibs_check_method=pass_all
12569 ;;
12570
12571# This must be Linux ELF.
12572linux*)
12573 lt_cv_deplibs_check_method=pass_all
12574 ;;
12575
12576netbsd*)
12577 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12578 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12579 else
12580 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12581 fi
12582 ;;
12583
12584newos6*)
12585 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12586 lt_cv_file_magic_cmd=/usr/bin/file
12587 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12588 ;;
12589
12590nto-qnx*)
12591 lt_cv_deplibs_check_method=unknown
12592 ;;
12593
12594openbsd*)
12595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12596 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12597 else
12598 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12599 fi
12600 ;;
12601
12602osf3* | osf4* | osf5*)
12603 lt_cv_deplibs_check_method=pass_all
12604 ;;
12605
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012606solaris*)
12607 lt_cv_deplibs_check_method=pass_all
12608 ;;
12609
Reid Spencera773bd52006-08-04 18:18:08 +000012610sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012611 case $host_vendor in
12612 motorola)
12613 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]'
12614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12615 ;;
12616 ncr)
12617 lt_cv_deplibs_check_method=pass_all
12618 ;;
12619 sequent)
12620 lt_cv_file_magic_cmd='/bin/file'
12621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12622 ;;
12623 sni)
12624 lt_cv_file_magic_cmd='/bin/file'
12625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12626 lt_cv_file_magic_test_file=/lib/libc.so
12627 ;;
12628 siemens)
12629 lt_cv_deplibs_check_method=pass_all
12630 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012631 pc)
12632 lt_cv_deplibs_check_method=pass_all
12633 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012634 esac
12635 ;;
12636
Reid Spencera773bd52006-08-04 18:18:08 +000012637sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638 lt_cv_deplibs_check_method=pass_all
12639 ;;
12640esac
12641
12642fi
Reid Spencera773bd52006-08-04 18:18:08 +000012643{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12644echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012645file_magic_cmd=$lt_cv_file_magic_cmd
12646deplibs_check_method=$lt_cv_deplibs_check_method
12647test -z "$deplibs_check_method" && deplibs_check_method=unknown
12648
12649
12650
12651# If no C compiler was specified, use CC.
12652LTCC=${LTCC-"$CC"}
12653
Reid Spencera773bd52006-08-04 18:18:08 +000012654# If no C compiler flags were specified, use CFLAGS.
12655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12656
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012657# Allow CC to be a program name with arguments.
12658compiler=$CC
12659
Reid Spencera773bd52006-08-04 18:18:08 +000012660# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012661if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012662 enableval=$enable_libtool_lock;
12663fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012664
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12666
12667# Some flags need to be propagated to the compiler or linker for good
12668# libtool support.
12669case $host in
12670ia64-*-hpux*)
12671 # Find out which ABI we are using.
12672 echo 'int i;' > conftest.$ac_ext
12673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12674 (eval $ac_compile) 2>&5
12675 ac_status=$?
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; then
12678 case `/usr/bin/file conftest.$ac_objext` in
12679 *ELF-32*)
12680 HPUX_IA64_MODE="32"
12681 ;;
12682 *ELF-64*)
12683 HPUX_IA64_MODE="64"
12684 ;;
12685 esac
12686 fi
12687 rm -rf conftest*
12688 ;;
12689*-*-irix6*)
12690 # Find out which ABI we are using.
Bill Wendlinga0833352009-03-12 04:10:09 +000012691 echo '#line 12691 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; then
12697 if test "$lt_cv_prog_gnu_ld" = yes; then
12698 case `/usr/bin/file conftest.$ac_objext` in
12699 *32-bit*)
12700 LD="${LD-ld} -melf32bsmip"
12701 ;;
12702 *N32*)
12703 LD="${LD-ld} -melf32bmipn32"
12704 ;;
12705 *64-bit*)
12706 LD="${LD-ld} -melf64bmip"
12707 ;;
12708 esac
12709 else
12710 case `/usr/bin/file conftest.$ac_objext` in
12711 *32-bit*)
12712 LD="${LD-ld} -32"
12713 ;;
12714 *N32*)
12715 LD="${LD-ld} -n32"
12716 ;;
12717 *64-bit*)
12718 LD="${LD-ld} -64"
12719 ;;
12720 esac
12721 fi
12722 fi
12723 rm -rf conftest*
12724 ;;
12725
12726x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12727 # Find out which ABI we are using.
12728 echo 'int i;' > conftest.$ac_ext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12730 (eval $ac_compile) 2>&5
12731 ac_status=$?
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012734 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012735 *32-bit*)
12736 case $host in
12737 x86_64-*linux*)
12738 LD="${LD-ld} -m elf_i386"
12739 ;;
12740 ppc64-*linux*|powerpc64-*linux*)
12741 LD="${LD-ld} -m elf32ppclinux"
12742 ;;
12743 s390x-*linux*)
12744 LD="${LD-ld} -m elf_s390"
12745 ;;
12746 sparc64-*linux*)
12747 LD="${LD-ld} -m elf32_sparc"
12748 ;;
12749 esac
12750 ;;
12751 *64-bit*)
12752 case $host in
12753 x86_64-*linux*)
12754 LD="${LD-ld} -m elf_x86_64"
12755 ;;
12756 ppc*-*linux*|powerpc*-*linux*)
12757 LD="${LD-ld} -m elf64ppc"
12758 ;;
12759 s390*-*linux*)
12760 LD="${LD-ld} -m elf64_s390"
12761 ;;
12762 sparc*-*linux*)
12763 LD="${LD-ld} -m elf64_sparc"
12764 ;;
12765 esac
12766 ;;
12767 esac
12768 fi
12769 rm -rf conftest*
12770 ;;
12771
12772*-*-sco3.2v5*)
12773 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12774 SAVE_CFLAGS="$CFLAGS"
12775 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012776 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12777echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012778if test "${lt_cv_cc_needs_belf+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12780else
12781 ac_ext=c
12782ac_cpp='$CPP $CPPFLAGS'
12783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793
Reid Spencera773bd52006-08-04 18:18:08 +000012794int
12795main ()
12796{
12797
12798 ;
12799 return 0;
12800}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012801_ACEOF
12802rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012803if { (ac_try="$ac_link"
12804case "(($ac_try" in
12805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806 *) ac_try_echo=$ac_try;;
12807esac
12808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012810 ac_status=$?
12811 grep -v '^ *+' conftest.er1 >conftest.err
12812 rm -f conftest.er1
12813 cat conftest.err >&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012815 (exit $ac_status); } &&
12816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12817 { (case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820esac
12821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_try") 2>&5
12823 ac_status=$?
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); }; } &&
12826 { ac_try='test -s conftest$ac_exeext'
12827 { (case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830esac
12831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_try") 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012836 lt_cv_cc_needs_belf=yes
12837else
12838 echo "$as_me: failed program was:" >&5
12839sed 's/^/| /' conftest.$ac_ext >&5
12840
Reid Spencera773bd52006-08-04 18:18:08 +000012841 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012842fi
Reid Spencera773bd52006-08-04 18:18:08 +000012843
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012844rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012845 conftest$ac_exeext conftest.$ac_ext
12846 ac_ext=c
12847ac_cpp='$CPP $CPPFLAGS'
12848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850ac_compiler_gnu=$ac_cv_c_compiler_gnu
12851
12852fi
Reid Spencera773bd52006-08-04 18:18:08 +000012853{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12854echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012855 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12856 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12857 CFLAGS="$SAVE_CFLAGS"
12858 fi
12859 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012860sparc*-*solaris*)
12861 # Find out which ABI we are using.
12862 echo 'int i;' > conftest.$ac_ext
12863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12864 (eval $ac_compile) 2>&5
12865 ac_status=$?
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); }; then
12868 case `/usr/bin/file conftest.o` in
12869 *64-bit*)
12870 case $lt_cv_prog_gnu_ld in
12871 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12872 *) LD="${LD-ld} -64" ;;
12873 esac
12874 ;;
12875 esac
12876 fi
12877 rm -rf conftest*
12878 ;;
12879
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012880
12881esac
12882
12883need_locks="$enable_libtool_lock"
12884
12885
Reid Spencer2706f8c2004-09-19 23:53:36 +000012886
12887
12888if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12889 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12890 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012891 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012892ac_cpp='$CXXCPP $CPPFLAGS'
12893ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12894ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12895ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012896{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12897echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012898if test -z "$CXXCPP"; then
12899 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012900 echo $ECHO_N "(cached) $ECHO_C" >&6
12901else
John Criswell47fdd832003-07-14 16:52:07 +000012902 # Double quotes because CXXCPP needs to be expanded
12903 for CXXCPP in "$CXX -E" "/lib/cpp"
12904 do
12905 ac_preproc_ok=false
12906for ac_cxx_preproc_warn_flag in '' yes
12907do
12908 # Use a header file that comes with gcc, so configuring glibc
12909 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012912 # On the NeXT, cc -E runs the code through the compiler's parser,
12913 # not just through cpp. "Syntax error" is here to catch this case.
12914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
12919/* end confdefs.h. */
12920#ifdef __STDC__
12921# include <limits.h>
12922#else
12923# include <assert.h>
12924#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012925 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012926_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012927if { (ac_try="$ac_cpp conftest.$ac_ext"
12928case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931esac
12932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012934 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012935 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012936 rm -f conftest.er1
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012939 (exit $ac_status); } >/dev/null; then
12940 if test -s conftest.err; then
12941 ac_cpp_err=$ac_cxx_preproc_warn_flag
12942 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12943 else
12944 ac_cpp_err=
12945 fi
12946else
12947 ac_cpp_err=yes
12948fi
12949if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012950 :
12951else
12952 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012953sed 's/^/| /' conftest.$ac_ext >&5
12954
John Criswell47fdd832003-07-14 16:52:07 +000012955 # Broken: fails on valid input.
12956continue
12957fi
Reid Spencera773bd52006-08-04 18:18:08 +000012958
John Criswell47fdd832003-07-14 16:52:07 +000012959rm -f conftest.err conftest.$ac_ext
12960
Reid Spencera773bd52006-08-04 18:18:08 +000012961 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012962 # can be detected and how.
12963 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012964/* confdefs.h. */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012969#include <ac_nonexistent.h>
12970_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012971if { (ac_try="$ac_cpp conftest.$ac_ext"
12972case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975esac
12976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012978 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012979 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012983 (exit $ac_status); } >/dev/null; then
12984 if test -s conftest.err; then
12985 ac_cpp_err=$ac_cxx_preproc_warn_flag
12986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12987 else
12988 ac_cpp_err=
12989 fi
12990else
12991 ac_cpp_err=yes
12992fi
12993if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012994 # Broken: success on invalid input.
12995continue
12996else
12997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012998sed 's/^/| /' conftest.$ac_ext >&5
12999
John Criswell47fdd832003-07-14 16:52:07 +000013000 # Passes both tests.
13001ac_preproc_ok=:
13002break
13003fi
Reid Spencera773bd52006-08-04 18:18:08 +000013004
John Criswell47fdd832003-07-14 16:52:07 +000013005rm -f conftest.err conftest.$ac_ext
13006
13007done
13008# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13009rm -f conftest.err conftest.$ac_ext
13010if $ac_preproc_ok; then
13011 break
John Criswell7a73b802003-06-30 21:59:07 +000013012fi
13013
John Criswell47fdd832003-07-14 16:52:07 +000013014 done
13015 ac_cv_prog_CXXCPP=$CXXCPP
13016
13017fi
13018 CXXCPP=$ac_cv_prog_CXXCPP
13019else
13020 ac_cv_prog_CXXCPP=$CXXCPP
13021fi
Reid Spencera773bd52006-08-04 18:18:08 +000013022{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13023echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013024ac_preproc_ok=false
13025for ac_cxx_preproc_warn_flag in '' yes
13026do
13027 # Use a header file that comes with gcc, so configuring glibc
13028 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13030 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013031 # On the NeXT, cc -E runs the code through the compiler's parser,
13032 # not just through cpp. "Syntax error" is here to catch this case.
13033 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039#ifdef __STDC__
13040# include <limits.h>
13041#else
13042# include <assert.h>
13043#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013044 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013045_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013046if { (ac_try="$ac_cpp conftest.$ac_ext"
13047case "(($ac_try" in
13048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13049 *) ac_try_echo=$ac_try;;
13050esac
13051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013053 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013054 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_cxx_preproc_warn_flag
13061 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13062 else
13063 ac_cpp_err=
13064 fi
13065else
13066 ac_cpp_err=yes
13067fi
13068if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013069 :
13070else
13071 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013072sed 's/^/| /' conftest.$ac_ext >&5
13073
John Criswell47fdd832003-07-14 16:52:07 +000013074 # Broken: fails on valid input.
13075continue
13076fi
Reid Spencera773bd52006-08-04 18:18:08 +000013077
John Criswell47fdd832003-07-14 16:52:07 +000013078rm -f conftest.err conftest.$ac_ext
13079
Reid Spencera773bd52006-08-04 18:18:08 +000013080 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013081 # can be detected and how.
13082 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013088#include <ac_nonexistent.h>
13089_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013090if { (ac_try="$ac_cpp conftest.$ac_ext"
13091case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094esac
13095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013097 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013098 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013099 rm -f conftest.er1
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013102 (exit $ac_status); } >/dev/null; then
13103 if test -s conftest.err; then
13104 ac_cpp_err=$ac_cxx_preproc_warn_flag
13105 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13106 else
13107 ac_cpp_err=
13108 fi
13109else
13110 ac_cpp_err=yes
13111fi
13112if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013113 # Broken: success on invalid input.
13114continue
13115else
13116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013117sed 's/^/| /' conftest.$ac_ext >&5
13118
John Criswell47fdd832003-07-14 16:52:07 +000013119 # Passes both tests.
13120ac_preproc_ok=:
13121break
13122fi
Reid Spencera773bd52006-08-04 18:18:08 +000013123
John Criswell47fdd832003-07-14 16:52:07 +000013124rm -f conftest.err conftest.$ac_ext
13125
13126done
13127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13128rm -f conftest.err conftest.$ac_ext
13129if $ac_preproc_ok; then
13130 :
13131else
John Criswell0c38eaf2003-09-10 15:17:25 +000013132 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13133See \`config.log' for more details." >&5
13134echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13135See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013136 { (exit 1); exit 1; }; }
13137fi
13138
Reid Spencera773bd52006-08-04 18:18:08 +000013139ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013140ac_cpp='$CXXCPP $CPPFLAGS'
13141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13144
Reid Spencer2706f8c2004-09-19 23:53:36 +000013145fi
13146
John Criswell47fdd832003-07-14 16:52:07 +000013147
13148ac_ext=f
13149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13151ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13152if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013153 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 +000013154 do
13155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013159if test "${ac_cv_prog_F77+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13161else
13162 if test -n "$F77"; then
13163 ac_cv_prog_F77="$F77" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013171 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 +000013172 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177done
Reid Spencera773bd52006-08-04 18:18:08 +000013178IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013179
13180fi
13181fi
13182F77=$ac_cv_prog_F77
13183if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013184 { echo "$as_me:$LINENO: result: $F77" >&5
13185echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013186else
Reid Spencera773bd52006-08-04 18:18:08 +000013187 { echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013189fi
13190
Reid Spencera773bd52006-08-04 18:18:08 +000013191
John Criswell47fdd832003-07-14 16:52:07 +000013192 test -n "$F77" && break
13193 done
13194fi
13195if test -z "$F77"; then
13196 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013197 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 +000013198do
13199 # Extract the first word of "$ac_prog", so it can be a program name with args.
13200set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013201{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13202echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013203if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13205else
13206 if test -n "$ac_ct_F77"; then
13207 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13208else
13209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210for as_dir in $PATH
13211do
13212 IFS=$as_save_IFS
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013215 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 +000013216 ac_cv_prog_ac_ct_F77="$ac_prog"
13217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13218 break 2
13219 fi
13220done
13221done
Reid Spencera773bd52006-08-04 18:18:08 +000013222IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013223
13224fi
13225fi
13226ac_ct_F77=$ac_cv_prog_ac_ct_F77
13227if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013228 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13229echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013230else
Reid Spencera773bd52006-08-04 18:18:08 +000013231 { echo "$as_me:$LINENO: result: no" >&5
13232echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013233fi
13234
Reid Spencera773bd52006-08-04 18:18:08 +000013235
John Criswell47fdd832003-07-14 16:52:07 +000013236 test -n "$ac_ct_F77" && break
13237done
13238
Reid Spencera773bd52006-08-04 18:18:08 +000013239 if test "x$ac_ct_F77" = x; then
13240 F77=""
13241 else
13242 case $cross_compiling:$ac_tool_warned in
13243yes:)
13244{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13245whose name does not start with the host triplet. If you think this
13246configuration is useful to you, please write to autoconf@gnu.org." >&5
13247echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13248whose name does not start with the host triplet. If you think this
13249configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13250ac_tool_warned=yes ;;
13251esac
13252 F77=$ac_ct_F77
13253 fi
John Criswell47fdd832003-07-14 16:52:07 +000013254fi
13255
13256
13257# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013258echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013259ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013260{ (ac_try="$ac_compiler --version >&5"
13261case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013270{ (ac_try="$ac_compiler -v >&5"
13271case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274esac
13275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013280{ (ac_try="$ac_compiler -V >&5"
13281case "(($ac_try" in
13282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13283 *) ac_try_echo=$ac_try;;
13284esac
13285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13286 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013287 ac_status=$?
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013290rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013291
13292# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013293# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013294ac_save_ext=$ac_ext
13295ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013296{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13297echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013298if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13300else
13301 cat >conftest.$ac_ext <<_ACEOF
13302 program main
13303#ifndef __GNUC__
13304 choke me
13305#endif
13306
13307 end
13308_ACEOF
13309rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013310if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013317 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318 grep -v '^ *+' conftest.er1 >conftest.err
13319 rm -f conftest.er1
13320 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13327esac
13328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13337esac
13338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13340 ac_status=$?
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013343 ac_compiler_gnu=yes
13344else
13345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013346sed 's/^/| /' conftest.$ac_ext >&5
13347
Reid Spencera773bd52006-08-04 18:18:08 +000013348 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013349fi
Reid Spencera773bd52006-08-04 18:18:08 +000013350
13351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013352ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13353
13354fi
Reid Spencera773bd52006-08-04 18:18:08 +000013355{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13356echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013357ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013358ac_test_FFLAGS=${FFLAGS+set}
13359ac_save_FFLAGS=$FFLAGS
13360FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013361{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13362echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013363if test "${ac_cv_prog_f77_g+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13365else
13366 FFLAGS=-g
13367cat >conftest.$ac_ext <<_ACEOF
13368 program main
13369
13370 end
13371_ACEOF
13372rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013373if { (ac_try="$ac_compile"
13374case "(($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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013385 (exit $ac_status); } &&
13386 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13387 { (case "(($ac_try" in
13388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13389 *) ac_try_echo=$ac_try;;
13390esac
13391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13392 (eval "$ac_try") 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); }; } &&
13396 { ac_try='test -s conftest.$ac_objext'
13397 { (case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_try") 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013406 ac_cv_prog_f77_g=yes
13407else
13408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013409sed 's/^/| /' conftest.$ac_ext >&5
13410
Reid Spencera773bd52006-08-04 18:18:08 +000013411 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013412fi
Reid Spencera773bd52006-08-04 18:18:08 +000013413
13414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013415
13416fi
Reid Spencera773bd52006-08-04 18:18:08 +000013417{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13418echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013419if test "$ac_test_FFLAGS" = set; then
13420 FFLAGS=$ac_save_FFLAGS
13421elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013422 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013423 FFLAGS="-g -O2"
13424 else
13425 FFLAGS="-g"
13426 fi
13427else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013428 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013429 FFLAGS="-O2"
13430 else
13431 FFLAGS=
13432 fi
13433fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013434
13435G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013436ac_ext=c
13437ac_cpp='$CPP $CPPFLAGS'
13438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
13442
13443
13444# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13445
13446# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013447{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13448echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013449if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
13452 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013454
13455 case $build_os in
13456 msdosdjgpp*)
13457 # On DJGPP, this test can blow up pretty badly due to problems in libc
13458 # (any single argument exceeding 2000 bytes causes a buffer overrun
13459 # during glob expansion). Even if it were fixed, the result of this
13460 # check would be larger than it should be.
13461 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13462 ;;
13463
13464 gnu*)
13465 # Under GNU Hurd, this test is not required because there is
13466 # no limit to the length of command line arguments.
13467 # Libtool will interpret -1 as no limit whatsoever
13468 lt_cv_sys_max_cmd_len=-1;
13469 ;;
13470
13471 cygwin* | mingw*)
13472 # On Win9x/ME, this test blows up -- it succeeds, but takes
13473 # about 5 minutes as the teststring grows exponentially.
13474 # Worse, since 9x/ME are not pre-emptively multitasking,
13475 # you end up with a "frozen" computer, even though with patience
13476 # the test eventually succeeds (with a max line length of 256k).
13477 # Instead, let's just punt: use the minimum linelength reported by
13478 # all of the supported platforms: 8192 (on NT/2K/XP).
13479 lt_cv_sys_max_cmd_len=8192;
13480 ;;
13481
Reid Spencer2706f8c2004-09-19 23:53:36 +000013482 amigaos*)
13483 # On AmigaOS with pdksh, this test takes hours, literally.
13484 # So we just punt and use a minimum line length of 8192.
13485 lt_cv_sys_max_cmd_len=8192;
13486 ;;
13487
Reid Spencera773bd52006-08-04 18:18:08 +000013488 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013489 # This has been around since 386BSD, at least. Likely further.
13490 if test -x /sbin/sysctl; then
13491 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13492 elif test -x /usr/sbin/sysctl; then
13493 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13494 else
Reid Spencera773bd52006-08-04 18:18:08 +000013495 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013496 fi
13497 # And add a safety zone
13498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013500 ;;
13501
Reid Spencera773bd52006-08-04 18:18:08 +000013502 interix*)
13503 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13504 lt_cv_sys_max_cmd_len=196608
13505 ;;
13506
13507 osf*)
13508 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13509 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13510 # nice to cause kernel panics so lets avoid the loop below.
13511 # First set a reasonable default.
13512 lt_cv_sys_max_cmd_len=16384
13513 #
13514 if test -x /sbin/sysconfig; then
13515 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13516 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13517 esac
13518 fi
13519 ;;
13520 sco3.2v5*)
13521 lt_cv_sys_max_cmd_len=102400
13522 ;;
13523 sysv5* | sco5v6* | sysv4.2uw2*)
13524 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13525 if test -n "$kargmax"; then
13526 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13527 else
13528 lt_cv_sys_max_cmd_len=32768
13529 fi
13530 ;;
13531 *)
John Criswell47fdd832003-07-14 16:52:07 +000013532 # If test is not a shell built-in, we'll probably end up computing a
13533 # maximum length that is only half of the actual maximum length, but
13534 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013535 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13536 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13537 = "XX$teststring") >/dev/null 2>&1 &&
13538 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013539 lt_cv_sys_max_cmd_len=$new_result &&
13540 test $i != 17 # 1/2 MB should be enough
13541 do
13542 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013543 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013544 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013545 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013546 # Add a significant safety factor because C++ compilers can tack on massive
13547 # amounts of additional arguments before passing them to the linker.
13548 # It appears as though 1/2 is a usable value.
13549 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13550 ;;
13551 esac
13552
13553fi
13554
13555if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013556 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13557echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013558else
Reid Spencera773bd52006-08-04 18:18:08 +000013559 { echo "$as_me:$LINENO: result: none" >&5
13560echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013561fi
13562
13563
13564
13565
13566# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013567{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13568echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013569if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13571else
13572
13573# These are sane defaults that work on at least a few old systems.
13574# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13575
13576# Character class describing NM global symbol codes.
13577symcode='[BCDEGRST]'
13578
13579# Regexp to match symbols that can be accessed directly from C.
13580sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13581
John Criswell47fdd832003-07-14 16:52:07 +000013582# Transform an extracted symbol line into a proper C declaration
13583lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13584
13585# Transform an extracted symbol line into symbol name and symbol address
13586lt_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'"
13587
13588# Define system-specific variables.
13589case $host_os in
13590aix*)
13591 symcode='[BCDT]'
13592 ;;
13593cygwin* | mingw* | pw32*)
13594 symcode='[ABCDGISTW]'
13595 ;;
13596hpux*) # Its linker distinguishes data from code symbols
13597 if test "$host_cpu" = ia64; then
13598 symcode='[ABCDEGRST]'
13599 fi
13600 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13601 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'"
13602 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013603linux*)
13604 if test "$host_cpu" = ia64; then
13605 symcode='[ABCDGIRSTW]'
13606 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13607 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'"
13608 fi
13609 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013610irix* | nonstopux*)
13611 symcode='[BCDEGRST]'
13612 ;;
13613osf*)
13614 symcode='[BCDEGQRST]'
13615 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013616solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013617 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013619sco3.2v5*)
13620 symcode='[DT]'
13621 ;;
13622sysv4.2uw2*)
13623 symcode='[DT]'
13624 ;;
13625sysv5* | sco5v6* | unixware* | OpenUNIX*)
13626 symcode='[ABDT]'
13627 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013628sysv4)
13629 symcode='[DFNSTU]'
13630 ;;
13631esac
13632
13633# Handle CRLF in mingw tool chain
13634opt_cr=
13635case $build_os in
13636mingw*)
13637 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13638 ;;
13639esac
13640
13641# If we're using GNU nm, then use its standard symbol codes.
13642case `$NM -V 2>&1` in
13643*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013644 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013645esac
13646
13647# Try without a prefix undercore, then with it.
13648for ac_symprfx in "" "_"; do
13649
Reid Spencera773bd52006-08-04 18:18:08 +000013650 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13651 symxfrm="\\1 $ac_symprfx\\2 \\2"
13652
John Criswell47fdd832003-07-14 16:52:07 +000013653 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013654 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 +000013655
13656 # Check to see that the pipe works correctly.
13657 pipe_works=no
13658
13659 rm -f conftest*
13660 cat > conftest.$ac_ext <<EOF
13661#ifdef __cplusplus
13662extern "C" {
13663#endif
13664char nm_test_var;
13665void nm_test_func(){}
13666#ifdef __cplusplus
13667}
13668#endif
13669int main(){nm_test_var='a';nm_test_func();return(0);}
13670EOF
13671
13672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13673 (eval $ac_compile) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; then
13677 # Now try to grab the symbols.
13678 nlist=conftest.nm
13679 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13680 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && test -s "$nlist"; then
13684 # Try sorting and uniquifying the output.
13685 if sort "$nlist" | uniq > "$nlist"T; then
13686 mv -f "$nlist"T "$nlist"
13687 else
13688 rm -f "$nlist"T
13689 fi
13690
13691 # Make sure that we snagged all the symbols we need.
13692 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13693 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13694 cat <<EOF > conftest.$ac_ext
13695#ifdef __cplusplus
13696extern "C" {
13697#endif
13698
13699EOF
13700 # Now generate the symbol file.
13701 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13702
13703 cat <<EOF >> conftest.$ac_ext
13704#if defined (__STDC__) && __STDC__
13705# define lt_ptr_t void *
13706#else
13707# define lt_ptr_t char *
13708# define const
13709#endif
13710
13711/* The mapping between symbol names and symbols. */
13712const struct {
13713 const char *name;
13714 lt_ptr_t address;
13715}
13716lt_preloaded_symbols[] =
13717{
13718EOF
13719 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13720 cat <<\EOF >> conftest.$ac_ext
13721 {0, (lt_ptr_t) 0}
13722};
13723
13724#ifdef __cplusplus
13725}
13726#endif
13727EOF
13728 # Now try linking the two files.
13729 mv conftest.$ac_objext conftstm.$ac_objext
13730 lt_save_LIBS="$LIBS"
13731 lt_save_CFLAGS="$CFLAGS"
13732 LIBS="conftstm.$ac_objext"
13733 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13735 (eval $ac_link) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13739 pipe_works=yes
13740 fi
13741 LIBS="$lt_save_LIBS"
13742 CFLAGS="$lt_save_CFLAGS"
13743 else
13744 echo "cannot find nm_test_func in $nlist" >&5
13745 fi
13746 else
13747 echo "cannot find nm_test_var in $nlist" >&5
13748 fi
13749 else
13750 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13751 fi
13752 else
13753 echo "$progname: failed program was:" >&5
13754 cat conftest.$ac_ext >&5
13755 fi
13756 rm -f conftest* conftst*
13757
13758 # Do not use the global_symbol_pipe unless it works.
13759 if test "$pipe_works" = yes; then
13760 break
13761 else
13762 lt_cv_sys_global_symbol_pipe=
13763 fi
13764done
13765
13766fi
13767
13768if test -z "$lt_cv_sys_global_symbol_pipe"; then
13769 lt_cv_sys_global_symbol_to_cdecl=
13770fi
13771if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013772 { echo "$as_me:$LINENO: result: failed" >&5
13773echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013774else
Reid Spencera773bd52006-08-04 18:18:08 +000013775 { echo "$as_me:$LINENO: result: ok" >&5
13776echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013777fi
13778
Reid Spencera773bd52006-08-04 18:18:08 +000013779{ echo "$as_me:$LINENO: checking for objdir" >&5
13780echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013781if test "${lt_cv_objdir+set}" = set; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
13784 rm -f .libs 2>/dev/null
13785mkdir .libs 2>/dev/null
13786if test -d .libs; then
13787 lt_cv_objdir=.libs
13788else
13789 # MS-DOS does not allow filenames that begin with a dot.
13790 lt_cv_objdir=_libs
13791fi
13792rmdir .libs 2>/dev/null
13793fi
Reid Spencera773bd52006-08-04 18:18:08 +000013794{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13795echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013796objdir=$lt_cv_objdir
13797
13798
13799
13800
13801
13802case $host_os in
13803aix3*)
13804 # AIX sometimes has problems with the GCC collect2 program. For some
13805 # reason, if we set the COLLECT_NAMES environment variable, the problems
13806 # vanish in a puff of smoke.
13807 if test "X${COLLECT_NAMES+set}" != Xset; then
13808 COLLECT_NAMES=
13809 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013810 fi
13811 ;;
13812esac
13813
John Criswell47fdd832003-07-14 16:52:07 +000013814# Sed substitution that helps us do robust quoting. It backslashifies
13815# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013816Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013817sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13818
13819# Same as above, but do not quote variable references.
13820double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13821
13822# Sed substitution to delay expansion of an escaped shell variable in a
13823# double_quote_subst'ed string.
13824delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13825
13826# Sed substitution to avoid accidental globbing in evaled expressions
13827no_glob_subst='s/\*/\\\*/g'
13828
13829# Constants:
13830rm="rm -f"
13831
13832# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013833default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013834can_build_shared=yes
13835
Reid Spencera773bd52006-08-04 18:18:08 +000013836# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013837# which needs '.lib').
13838libext=a
13839ltmain="$ac_aux_dir/ltmain.sh"
13840ofile="$default_ofile"
13841with_gnu_ld="$lt_cv_prog_gnu_ld"
13842
13843if test -n "$ac_tool_prefix"; then
13844 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13845set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013846{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013848if test "${ac_cv_prog_AR+set}" = set; then
13849 echo $ECHO_N "(cached) $ECHO_C" >&6
13850else
13851 if test -n "$AR"; then
13852 ac_cv_prog_AR="$AR" # Let the user override the test.
13853else
13854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13855for as_dir in $PATH
13856do
13857 IFS=$as_save_IFS
13858 test -z "$as_dir" && as_dir=.
13859 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013860 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 +000013861 ac_cv_prog_AR="${ac_tool_prefix}ar"
13862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 break 2
13864 fi
13865done
13866done
Reid Spencera773bd52006-08-04 18:18:08 +000013867IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013868
13869fi
13870fi
13871AR=$ac_cv_prog_AR
13872if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013873 { echo "$as_me:$LINENO: result: $AR" >&5
13874echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013875else
Reid Spencera773bd52006-08-04 18:18:08 +000013876 { echo "$as_me:$LINENO: result: no" >&5
13877echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013878fi
13879
Reid Spencera773bd52006-08-04 18:18:08 +000013880
John Criswell47fdd832003-07-14 16:52:07 +000013881fi
13882if test -z "$ac_cv_prog_AR"; then
13883 ac_ct_AR=$AR
13884 # Extract the first word of "ar", so it can be a program name with args.
13885set dummy 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_ac_ct_AR+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
13891 if test -n "$ac_ct_AR"; then
13892 ac_cv_prog_ac_ct_AR="$ac_ct_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 Lattnerf9eb2d82009-01-22 05:17:59 +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_ac_ct_AR="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
John Criswell47fdd832003-07-14 16:52:07 +000013909fi
13910fi
13911ac_ct_AR=$ac_cv_prog_ac_ct_AR
13912if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013913 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13914echo "${ECHO_T}$ac_ct_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 if test "x$ac_ct_AR" = x; then
13921 AR="false"
13922 else
13923 case $cross_compiling:$ac_tool_warned in
13924yes:)
13925{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13926whose name does not start with the host triplet. If you think this
13927configuration is useful to you, please write to autoconf@gnu.org." >&5
13928echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13929whose name does not start with the host triplet. If you think this
13930configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13931ac_tool_warned=yes ;;
13932esac
13933 AR=$ac_ct_AR
13934 fi
John Criswell47fdd832003-07-14 16:52:07 +000013935else
13936 AR="$ac_cv_prog_AR"
13937fi
13938
John Criswell7a73b802003-06-30 21:59:07 +000013939if test -n "$ac_tool_prefix"; then
13940 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013944if test "${ac_cv_prog_RANLIB+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946else
13947 if test -n "$RANLIB"; then
13948 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13949else
13950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951for as_dir in $PATH
13952do
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013956 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 +000013957 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13960 fi
13961done
13962done
Reid Spencera773bd52006-08-04 18:18:08 +000013963IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013964
13965fi
13966fi
13967RANLIB=$ac_cv_prog_RANLIB
13968if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013969 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13970echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013971else
Reid Spencera773bd52006-08-04 18:18:08 +000013972 { echo "$as_me:$LINENO: result: no" >&5
13973echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013974fi
13975
Reid Spencera773bd52006-08-04 18:18:08 +000013976
John Criswell7a73b802003-06-30 21:59:07 +000013977fi
13978if test -z "$ac_cv_prog_RANLIB"; then
13979 ac_ct_RANLIB=$RANLIB
13980 # Extract the first word of "ranlib", so it can be a program name with args.
13981set dummy 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_ac_ct_RANLIB+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986else
13987 if test -n "$ac_ct_RANLIB"; then
13988 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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 Lattnerf9eb2d82009-01-22 05:17:59 +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_ac_ct_RANLIB="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
John Criswell7a73b802003-06-30 21:59:07 +000014005fi
14006fi
14007ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14008if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014009 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14010echo "${ECHO_T}$ac_ct_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 if test "x$ac_ct_RANLIB" = x; then
14017 RANLIB=":"
14018 else
14019 case $cross_compiling:$ac_tool_warned in
14020yes:)
14021{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14022whose name does not start with the host triplet. If you think this
14023configuration is useful to you, please write to autoconf@gnu.org." >&5
14024echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14025whose name does not start with the host triplet. If you think this
14026configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14027ac_tool_warned=yes ;;
14028esac
14029 RANLIB=$ac_ct_RANLIB
14030 fi
John Criswell7a73b802003-06-30 21:59:07 +000014031else
14032 RANLIB="$ac_cv_prog_RANLIB"
14033fi
14034
14035if test -n "$ac_tool_prefix"; then
14036 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14037set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014038{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014040if test "${ac_cv_prog_STRIP+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14042else
14043 if test -n "$STRIP"; then
14044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14045else
14046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14047for as_dir in $PATH
14048do
14049 IFS=$as_save_IFS
14050 test -z "$as_dir" && as_dir=.
14051 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000014052 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 +000014053 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14055 break 2
14056 fi
14057done
14058done
Reid Spencera773bd52006-08-04 18:18:08 +000014059IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014060
14061fi
14062fi
14063STRIP=$ac_cv_prog_STRIP
14064if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014065 { echo "$as_me:$LINENO: result: $STRIP" >&5
14066echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014067else
Reid Spencera773bd52006-08-04 18:18:08 +000014068 { echo "$as_me:$LINENO: result: no" >&5
14069echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014070fi
14071
Reid Spencera773bd52006-08-04 18:18:08 +000014072
John Criswell7a73b802003-06-30 21:59:07 +000014073fi
14074if test -z "$ac_cv_prog_STRIP"; then
14075 ac_ct_STRIP=$STRIP
14076 # Extract the first word of "strip", so it can be a program name with args.
14077set dummy 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_ac_ct_STRIP+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 if test -n "$ac_ct_STRIP"; then
14084 ac_cv_prog_ac_ct_STRIP="$ac_ct_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 Lattnerf9eb2d82009-01-22 05:17:59 +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_ac_ct_STRIP="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
John Criswell7a73b802003-06-30 21:59:07 +000014101fi
14102fi
14103ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14104if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014105 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14106echo "${ECHO_T}$ac_ct_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 if test "x$ac_ct_STRIP" = x; then
14113 STRIP=":"
14114 else
14115 case $cross_compiling:$ac_tool_warned in
14116yes:)
14117{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14118whose name does not start with the host triplet. If you think this
14119configuration is useful to you, please write to autoconf@gnu.org." >&5
14120echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14121whose name does not start with the host triplet. If you think this
14122configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14123ac_tool_warned=yes ;;
14124esac
14125 STRIP=$ac_ct_STRIP
14126 fi
John Criswell7a73b802003-06-30 21:59:07 +000014127else
14128 STRIP="$ac_cv_prog_STRIP"
14129fi
14130
14131
John Criswell7a73b802003-06-30 21:59:07 +000014132old_CC="$CC"
14133old_CFLAGS="$CFLAGS"
14134
14135# Set sane defaults for various variables
14136test -z "$AR" && AR=ar
14137test -z "$AR_FLAGS" && AR_FLAGS=cru
14138test -z "$AS" && AS=as
14139test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014140test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014141test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014142test -z "$DLLTOOL" && DLLTOOL=dlltool
14143test -z "$LD" && LD=ld
14144test -z "$LN_S" && LN_S="ln -s"
14145test -z "$MAGIC_CMD" && MAGIC_CMD=file
14146test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014147test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014148test -z "$OBJDUMP" && OBJDUMP=objdump
14149test -z "$RANLIB" && RANLIB=:
14150test -z "$STRIP" && STRIP=:
14151test -z "$ac_objext" && ac_objext=o
14152
John Criswell7a73b802003-06-30 21:59:07 +000014153# Determine commands to create old-style static archives.
14154old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14155old_postinstall_cmds='chmod 644 $oldlib'
14156old_postuninstall_cmds=
14157
14158if test -n "$RANLIB"; then
14159 case $host_os in
14160 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014161 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014162 ;;
14163 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014164 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014165 ;;
14166 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014167 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014168fi
14169
Reid Spencera773bd52006-08-04 18:18:08 +000014170for cc_temp in $compiler""; do
14171 case $cc_temp in
14172 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14173 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14174 \-*) ;;
14175 *) break;;
14176 esac
14177done
14178cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14179
Reid Spencer2706f8c2004-09-19 23:53:36 +000014180
John Criswell47fdd832003-07-14 16:52:07 +000014181# Only perform the check for file, if the check method requires it
14182case $deplibs_check_method in
14183file_magic*)
14184 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014185 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14186echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014187if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14188 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014189else
John Criswell47fdd832003-07-14 16:52:07 +000014190 case $MAGIC_CMD in
14191[\\/*] | ?:[\\/]*)
14192 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14193 ;;
14194*)
14195 lt_save_MAGIC_CMD="$MAGIC_CMD"
14196 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14197 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14198 for ac_dir in $ac_dummy; do
14199 IFS="$lt_save_ifs"
14200 test -z "$ac_dir" && ac_dir=.
14201 if test -f $ac_dir/${ac_tool_prefix}file; then
14202 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14203 if test -n "$file_magic_test_file"; then
14204 case $deplibs_check_method in
14205 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014206 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14208 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14209 $EGREP "$file_magic_regex" > /dev/null; then
14210 :
14211 else
14212 cat <<EOF 1>&2
14213
14214*** Warning: the command libtool uses to detect shared libraries,
14215*** $file_magic_cmd, produces output that libtool cannot recognize.
14216*** The result is that libtool may fail to recognize shared libraries
14217*** as such. This will affect the creation of libtool libraries that
14218*** depend on shared libraries, but programs linked with such libtool
14219*** libraries will work regardless of this problem. Nevertheless, you
14220*** may want to report the problem to your system manager and/or to
14221*** bug-libtool@gnu.org
14222
14223EOF
14224 fi ;;
14225 esac
14226 fi
14227 break
14228 fi
14229 done
14230 IFS="$lt_save_ifs"
14231 MAGIC_CMD="$lt_save_MAGIC_CMD"
14232 ;;
14233esac
John Criswell7a73b802003-06-30 21:59:07 +000014234fi
John Criswell7a73b802003-06-30 21:59:07 +000014235
John Criswell47fdd832003-07-14 16:52:07 +000014236MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14237if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014238 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14239echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014240else
Reid Spencera773bd52006-08-04 18:18:08 +000014241 { echo "$as_me:$LINENO: result: no" >&5
14242echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014243fi
John Criswell7a73b802003-06-30 21:59:07 +000014244
John Criswell47fdd832003-07-14 16:52:07 +000014245if test -z "$lt_cv_path_MAGIC_CMD"; then
14246 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014247 { echo "$as_me:$LINENO: checking for file" >&5
14248echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014249if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14250 echo $ECHO_N "(cached) $ECHO_C" >&6
14251else
14252 case $MAGIC_CMD in
14253[\\/*] | ?:[\\/]*)
14254 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14255 ;;
14256*)
14257 lt_save_MAGIC_CMD="$MAGIC_CMD"
14258 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14259 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14260 for ac_dir in $ac_dummy; do
14261 IFS="$lt_save_ifs"
14262 test -z "$ac_dir" && ac_dir=.
14263 if test -f $ac_dir/file; then
14264 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14265 if test -n "$file_magic_test_file"; then
14266 case $deplibs_check_method in
14267 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014268 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014269 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14270 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14271 $EGREP "$file_magic_regex" > /dev/null; then
14272 :
14273 else
14274 cat <<EOF 1>&2
14275
14276*** Warning: the command libtool uses to detect shared libraries,
14277*** $file_magic_cmd, produces output that libtool cannot recognize.
14278*** The result is that libtool may fail to recognize shared libraries
14279*** as such. This will affect the creation of libtool libraries that
14280*** depend on shared libraries, but programs linked with such libtool
14281*** libraries will work regardless of this problem. Nevertheless, you
14282*** may want to report the problem to your system manager and/or to
14283*** bug-libtool@gnu.org
14284
14285EOF
14286 fi ;;
14287 esac
14288 fi
14289 break
14290 fi
14291 done
14292 IFS="$lt_save_ifs"
14293 MAGIC_CMD="$lt_save_MAGIC_CMD"
14294 ;;
14295esac
14296fi
14297
14298MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14299if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014300 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14301echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014302else
Reid Spencera773bd52006-08-04 18:18:08 +000014303 { echo "$as_me:$LINENO: result: no" >&5
14304echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014305fi
14306
14307 else
14308 MAGIC_CMD=:
14309 fi
14310fi
14311
14312 fi
14313 ;;
14314esac
14315
Reid Spencer17795972004-11-18 09:47:37 +000014316enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014317enable_win32_dll=no
14318
Reid Spencera773bd52006-08-04 18:18:08 +000014319# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014320if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014321 enableval=$enable_libtool_lock;
14322fi
John Criswell47fdd832003-07-14 16:52:07 +000014323
John Criswell47fdd832003-07-14 16:52:07 +000014324test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14325
John Criswell7a73b802003-06-30 21:59:07 +000014326
Reid Spencera773bd52006-08-04 18:18:08 +000014327# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014328if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014329 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014330else
14331 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014332fi
14333
John Criswell7a73b802003-06-30 21:59:07 +000014334test -z "$pic_mode" && pic_mode=default
14335
John Criswell47fdd832003-07-14 16:52:07 +000014336# Use C for the default configuration in the libtool script
14337tagname=
14338lt_save_CC="$CC"
14339ac_ext=c
14340ac_cpp='$CPP $CPPFLAGS'
14341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14343ac_compiler_gnu=$ac_cv_c_compiler_gnu
14344
14345
14346# Source file extension for C test sources.
14347ac_ext=c
14348
14349# Object file extension for compiled C test sources.
14350objext=o
14351objext=$objext
14352
14353# Code to be used in simple compile tests
14354lt_simple_compile_test_code="int some_variable = 0;\n"
14355
14356# Code to be used in simple link tests
14357lt_simple_link_test_code='int main(){return(0);}\n'
14358
14359
14360# If no C compiler was specified, use CC.
14361LTCC=${LTCC-"$CC"}
14362
Reid Spencera773bd52006-08-04 18:18:08 +000014363# If no C compiler flags were specified, use CFLAGS.
14364LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14365
John Criswell47fdd832003-07-14 16:52:07 +000014366# Allow CC to be a program name with arguments.
14367compiler=$CC
14368
14369
Reid Spencera773bd52006-08-04 18:18:08 +000014370# save warnings/boilerplate of simple test code
14371ac_outfile=conftest.$ac_objext
14372printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14373eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14374_lt_compiler_boilerplate=`cat conftest.err`
14375$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014376
Reid Spencera773bd52006-08-04 18:18:08 +000014377ac_outfile=conftest.$ac_objext
14378printf "$lt_simple_link_test_code" >conftest.$ac_ext
14379eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14380_lt_linker_boilerplate=`cat conftest.err`
14381$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014382
14383
John Criswell47fdd832003-07-14 16:52:07 +000014384
14385lt_prog_compiler_no_builtin_flag=
14386
14387if test "$GCC" = yes; then
14388 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14389
Reid Spencer2706f8c2004-09-19 23:53:36 +000014390
Reid Spencera773bd52006-08-04 18:18:08 +000014391{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14392echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014393if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395else
14396 lt_cv_prog_compiler_rtti_exceptions=no
14397 ac_outfile=conftest.$ac_objext
14398 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14399 lt_compiler_flag="-fno-rtti -fno-exceptions"
14400 # Insert the option either (1) after the last *FLAGS variable, or
14401 # (2) before a word containing "conftest.", or (3) at the end.
14402 # Note that $ac_compile itself does not contain backslashes and begins
14403 # with a dollar sign (not a hyphen), so the echo should work correctly.
14404 # The option is referenced via a variable to avoid confusing sed.
14405 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014406 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014407 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14408 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000014409 (eval echo "\"\$as_me:14409: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014410 (eval "$lt_compile" 2>conftest.err)
14411 ac_status=$?
14412 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000014413 echo "$as_me:14413: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014414 if (exit $ac_status) && test -s "$ac_outfile"; then
14415 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014416 # So say no if there are warnings other than the usual output.
14417 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14418 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14419 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014420 lt_cv_prog_compiler_rtti_exceptions=yes
14421 fi
14422 fi
14423 $rm conftest*
14424
14425fi
Reid Spencera773bd52006-08-04 18:18:08 +000014426{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14427echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014428
14429if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14430 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14431else
14432 :
14433fi
14434
14435fi
14436
14437lt_prog_compiler_wl=
14438lt_prog_compiler_pic=
14439lt_prog_compiler_static=
14440
Reid Spencera773bd52006-08-04 18:18:08 +000014441{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14442echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014443
14444 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014445 lt_prog_compiler_wl='-Wl,'
14446 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014447
14448 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014449 aix*)
14450 # All AIX code is PIC.
14451 if test "$host_cpu" = ia64; then
14452 # AIX 5 now supports IA64 processor
14453 lt_prog_compiler_static='-Bstatic'
14454 fi
John Criswell7a73b802003-06-30 21:59:07 +000014455 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014456
John Criswell7a73b802003-06-30 21:59:07 +000014457 amigaos*)
14458 # FIXME: we need at least 68020 code to build shared libraries, but
14459 # adding the `-m68020' flag to GCC prevents building anything better,
14460 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014461 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014462 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014463
14464 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014465 # PIC is the default for these OSes.
14466 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014467
14468 mingw* | pw32* | os2*)
14469 # This hack is so that the source file can tell whether it is being
14470 # built for inclusion in a dll (and should export symbols for example).
14471 lt_prog_compiler_pic='-DDLL_EXPORT'
14472 ;;
14473
John Criswell7a73b802003-06-30 21:59:07 +000014474 darwin* | rhapsody*)
14475 # PIC is the default on this platform
14476 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014477 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014479
Reid Spencera773bd52006-08-04 18:18:08 +000014480 interix3*)
14481 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14482 # Instead, we relocate shared libraries at runtime.
14483 ;;
14484
John Criswell47fdd832003-07-14 16:52:07 +000014485 msdosdjgpp*)
14486 # Just because we use GCC doesn't mean we suddenly get shared libraries
14487 # on systems that don't support them.
14488 lt_prog_compiler_can_build_shared=no
14489 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014491
John Criswell7a73b802003-06-30 21:59:07 +000014492 sysv4*MP*)
14493 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014494 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014495 fi
14496 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014497
14498 hpux*)
14499 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14500 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014501 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014502 hppa*64*|ia64*)
14503 # +Z the default
14504 ;;
14505 *)
14506 lt_prog_compiler_pic='-fPIC'
14507 ;;
14508 esac
14509 ;;
14510
John Criswell7a73b802003-06-30 21:59:07 +000014511 *)
John Criswell47fdd832003-07-14 16:52:07 +000014512 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014513 ;;
14514 esac
14515 else
John Criswell47fdd832003-07-14 16:52:07 +000014516 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014517 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014518 aix*)
14519 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014520 if test "$host_cpu" = ia64; then
14521 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014522 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014523 else
John Criswell47fdd832003-07-14 16:52:07 +000014524 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014525 fi
14526 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014527 darwin*)
14528 # PIC is the default on this platform
14529 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014530 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014531 xlc*)
14532 lt_prog_compiler_pic='-qnocommon'
14533 lt_prog_compiler_wl='-Wl,'
14534 ;;
14535 esac
14536 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014537
John Criswell47fdd832003-07-14 16:52:07 +000014538 mingw* | pw32* | os2*)
14539 # This hack is so that the source file can tell whether it is being
14540 # built for inclusion in a dll (and should export symbols for example).
14541 lt_prog_compiler_pic='-DDLL_EXPORT'
14542 ;;
14543
John Criswell7a73b802003-06-30 21:59:07 +000014544 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014545 lt_prog_compiler_wl='-Wl,'
14546 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14547 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014548 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014549 hppa*64*|ia64*)
14550 # +Z the default
14551 ;;
14552 *)
14553 lt_prog_compiler_pic='+Z'
14554 ;;
14555 esac
14556 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14557 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014558 ;;
14559
John Criswell47fdd832003-07-14 16:52:07 +000014560 irix5* | irix6* | nonstopux*)
14561 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014562 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014563 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014564 ;;
14565
14566 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014567 lt_prog_compiler_pic='-KPIC'
14568 lt_prog_compiler_static='-Bstatic'
14569 ;;
14570
14571 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014572 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014573 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014574 lt_prog_compiler_wl='-Wl,'
14575 lt_prog_compiler_pic='-KPIC'
14576 lt_prog_compiler_static='-static'
14577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014578 pgcc* | pgf77* | pgf90* | pgf95*)
14579 # Portland Group compilers (*not* the Pentium gcc compiler,
14580 # which looks to be a dead project)
14581 lt_prog_compiler_wl='-Wl,'
14582 lt_prog_compiler_pic='-fpic'
14583 lt_prog_compiler_static='-Bstatic'
14584 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014585 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014586 lt_prog_compiler_wl='-Wl,'
14587 # All Alpha code is PIC.
14588 lt_prog_compiler_static='-non_shared'
14589 ;;
14590 esac
John Criswell7a73b802003-06-30 21:59:07 +000014591 ;;
14592
14593 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014594 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014595 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014596 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014597 ;;
14598
John Criswell7a73b802003-06-30 21:59:07 +000014599 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014600 lt_prog_compiler_pic='-KPIC'
14601 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014602 case $cc_basename in
14603 f77* | f90* | f95*)
14604 lt_prog_compiler_wl='-Qoption ld ';;
14605 *)
14606 lt_prog_compiler_wl='-Wl,';;
14607 esac
John Criswell7a73b802003-06-30 21:59:07 +000014608 ;;
14609
14610 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014611 lt_prog_compiler_wl='-Qoption ld '
14612 lt_prog_compiler_pic='-PIC'
14613 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014614 ;;
14615
Reid Spencera773bd52006-08-04 18:18:08 +000014616 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014617 lt_prog_compiler_wl='-Wl,'
14618 lt_prog_compiler_pic='-KPIC'
14619 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014620 ;;
14621
14622 sysv4*MP*)
14623 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014624 lt_prog_compiler_pic='-Kconform_pic'
14625 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014626 fi
14627 ;;
14628
Reid Spencera773bd52006-08-04 18:18:08 +000014629 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14630 lt_prog_compiler_wl='-Wl,'
14631 lt_prog_compiler_pic='-KPIC'
14632 lt_prog_compiler_static='-Bstatic'
14633 ;;
14634
14635 unicos*)
14636 lt_prog_compiler_wl='-Wl,'
14637 lt_prog_compiler_can_build_shared=no
14638 ;;
14639
John Criswell47fdd832003-07-14 16:52:07 +000014640 uts4*)
14641 lt_prog_compiler_pic='-pic'
14642 lt_prog_compiler_static='-Bstatic'
14643 ;;
14644
John Criswell7a73b802003-06-30 21:59:07 +000014645 *)
John Criswell47fdd832003-07-14 16:52:07 +000014646 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014647 ;;
14648 esac
14649 fi
14650
Reid Spencera773bd52006-08-04 18:18:08 +000014651{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14652echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014653
John Criswell47fdd832003-07-14 16:52:07 +000014654#
14655# Check to make sure the PIC flag actually works.
14656#
14657if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014658
Reid Spencera773bd52006-08-04 18:18:08 +000014659{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14660echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014661if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
John Criswell47fdd832003-07-14 16:52:07 +000014664 lt_prog_compiler_pic_works=no
14665 ac_outfile=conftest.$ac_objext
14666 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14667 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14668 # Insert the option either (1) after the last *FLAGS variable, or
14669 # (2) before a word containing "conftest.", or (3) at the end.
14670 # Note that $ac_compile itself does not contain backslashes and begins
14671 # with a dollar sign (not a hyphen), so the echo should work correctly.
14672 # The option is referenced via a variable to avoid confusing sed.
14673 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14676 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000014677 (eval echo "\"\$as_me:14677: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014678 (eval "$lt_compile" 2>conftest.err)
14679 ac_status=$?
14680 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000014681 echo "$as_me:14681: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014682 if (exit $ac_status) && test -s "$ac_outfile"; then
14683 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014684 # So say no if there are warnings other than the usual output.
14685 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014688 lt_prog_compiler_pic_works=yes
14689 fi
14690 fi
14691 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014692
John Criswell47fdd832003-07-14 16:52:07 +000014693fi
Reid Spencera773bd52006-08-04 18:18:08 +000014694{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14695echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014696
John Criswell47fdd832003-07-14 16:52:07 +000014697if test x"$lt_prog_compiler_pic_works" = xyes; then
14698 case $lt_prog_compiler_pic in
14699 "" | " "*) ;;
14700 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14701 esac
John Criswell7a73b802003-06-30 21:59:07 +000014702else
John Criswell47fdd832003-07-14 16:52:07 +000014703 lt_prog_compiler_pic=
14704 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014705fi
14706
John Criswell7a73b802003-06-30 21:59:07 +000014707fi
Reid Spencera773bd52006-08-04 18:18:08 +000014708case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014709 # For platforms which do not support PIC, -DPIC is meaningless:
14710 *djgpp*)
14711 lt_prog_compiler_pic=
14712 ;;
14713 *)
14714 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14715 ;;
14716esac
John Criswell7a73b802003-06-30 21:59:07 +000014717
Reid Spencera773bd52006-08-04 18:18:08 +000014718#
14719# Check to make sure the static flag actually works.
14720#
14721wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14722{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14723echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14724if test "${lt_prog_compiler_static_works+set}" = set; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726else
14727 lt_prog_compiler_static_works=no
14728 save_LDFLAGS="$LDFLAGS"
14729 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14730 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14731 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14732 # The linker can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 if test -s conftest.err; then
14735 # Append any errors to the config.log.
14736 cat conftest.err 1>&5
14737 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14738 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14739 if diff conftest.exp conftest.er2 >/dev/null; then
14740 lt_prog_compiler_static_works=yes
14741 fi
14742 else
14743 lt_prog_compiler_static_works=yes
14744 fi
14745 fi
14746 $rm conftest*
14747 LDFLAGS="$save_LDFLAGS"
14748
14749fi
14750{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14751echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14752
14753if test x"$lt_prog_compiler_static_works" = xyes; then
14754 :
14755else
14756 lt_prog_compiler_static=
14757fi
14758
14759
14760{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14761echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014762if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764else
John Criswell47fdd832003-07-14 16:52:07 +000014765 lt_cv_prog_compiler_c_o=no
14766 $rm -r conftest 2>/dev/null
14767 mkdir conftest
14768 cd conftest
14769 mkdir out
14770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014771
John Criswell47fdd832003-07-14 16:52:07 +000014772 lt_compiler_flag="-o out/conftest2.$ac_objext"
14773 # Insert the option either (1) after the last *FLAGS variable, or
14774 # (2) before a word containing "conftest.", or (3) at the end.
14775 # Note that $ac_compile itself does not contain backslashes and begins
14776 # with a dollar sign (not a hyphen), so the echo should work correctly.
14777 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14780 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000014781 (eval echo "\"\$as_me:14781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014782 (eval "$lt_compile" 2>out/conftest.err)
14783 ac_status=$?
14784 cat out/conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000014785 echo "$as_me:14785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014786 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14787 then
14788 # The compiler can only warn and ignore the option if not recognized
14789 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014790 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14791 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14792 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014793 lt_cv_prog_compiler_c_o=yes
14794 fi
14795 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014796 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014797 $rm conftest*
14798 # SGI C++ compiler will create directory out/ii_files/ for
14799 # template instantiation
14800 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14801 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014802 cd ..
14803 rmdir conftest
14804 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014805
14806fi
Reid Spencera773bd52006-08-04 18:18:08 +000014807{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14808echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014809
John Criswell7a73b802003-06-30 21:59:07 +000014810
John Criswell7a73b802003-06-30 21:59:07 +000014811hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014812if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014813 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014814 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14815echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014816 hard_links=yes
14817 $rm conftest*
14818 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14819 touch conftest.a
14820 ln conftest.a conftest.b 2>&5 || hard_links=no
14821 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014822 { echo "$as_me:$LINENO: result: $hard_links" >&5
14823echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014824 if test "$hard_links" = no; then
14825 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14826echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14827 need_locks=warn
14828 fi
14829else
14830 need_locks=no
14831fi
John Criswell7a73b802003-06-30 21:59:07 +000014832
Reid Spencera773bd52006-08-04 18:18:08 +000014833{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14834echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014835
14836 runpath_var=
14837 allow_undefined_flag=
14838 enable_shared_with_static_runtimes=no
14839 archive_cmds=
14840 archive_expsym_cmds=
14841 old_archive_From_new_cmds=
14842 old_archive_from_expsyms_cmds=
14843 export_dynamic_flag_spec=
14844 whole_archive_flag_spec=
14845 thread_safe_flag_spec=
14846 hardcode_libdir_flag_spec=
14847 hardcode_libdir_flag_spec_ld=
14848 hardcode_libdir_separator=
14849 hardcode_direct=no
14850 hardcode_minus_L=no
14851 hardcode_shlibpath_var=unsupported
14852 link_all_deplibs=unknown
14853 hardcode_automatic=no
14854 module_cmds=
14855 module_expsym_cmds=
14856 always_export_symbols=no
14857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14858 # include_expsyms should be a list of space-separated symbols to be *always*
14859 # included in the symbol list
14860 include_expsyms=
14861 # exclude_expsyms can be an extended regexp of symbols to exclude
14862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14864 # as well as any symbol that contains `d'.
14865 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14867 # platforms (ab)use it in PIC code, but their linkers get confused if
14868 # the symbol is explicitly referenced. Since portable code cannot
14869 # rely on this symbol name, it's probably fine to never include it in
14870 # preloaded symbol tables.
14871 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014872 # Just being paranoid about ensuring that cc_basename is set.
14873 for cc_temp in $compiler""; do
14874 case $cc_temp in
14875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14877 \-*) ;;
14878 *) break;;
14879 esac
14880done
14881cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014882
14883 case $host_os in
14884 cygwin* | mingw* | pw32*)
14885 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14886 # When not using gcc, we currently assume that we are using
14887 # Microsoft Visual C++.
14888 if test "$GCC" != yes; then
14889 with_gnu_ld=no
14890 fi
14891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014892 interix*)
14893 # we just hope/assume this is gcc and not c89 (= MSVC++)
14894 with_gnu_ld=yes
14895 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014896 openbsd*)
14897 with_gnu_ld=no
14898 ;;
14899 esac
14900
14901 ld_shlibs=yes
14902 if test "$with_gnu_ld" = yes; then
14903 # If archive_cmds runs LD, not CC, wlarc should be empty
14904 wlarc='${wl}'
14905
Reid Spencera773bd52006-08-04 18:18:08 +000014906 # Set some defaults for GNU ld with shared library support. These
14907 # are reset later if shared libraries are not supported. Putting them
14908 # here allows them to be overridden if necessary.
14909 runpath_var=LD_RUN_PATH
14910 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14911 export_dynamic_flag_spec='${wl}--export-dynamic'
14912 # ancient GNU ld didn't support --whole-archive et. al.
14913 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14914 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14915 else
14916 whole_archive_flag_spec=
14917 fi
14918 supports_anon_versioning=no
14919 case `$LD -v 2>/dev/null` in
14920 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14921 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14922 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14923 *\ 2.11.*) ;; # other 2.11 versions
14924 *) supports_anon_versioning=yes ;;
14925 esac
14926
John Criswell47fdd832003-07-14 16:52:07 +000014927 # See if GNU ld supports shared libraries.
14928 case $host_os in
14929 aix3* | aix4* | aix5*)
14930 # On AIX/PPC, the GNU linker is very broken
14931 if test "$host_cpu" != ia64; then
14932 ld_shlibs=no
14933 cat <<EOF 1>&2
14934
14935*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14936*** to be unable to reliably create shared libraries on AIX.
14937*** Therefore, libtool is disabling shared libraries support. If you
14938*** really care for shared libraries, you may want to modify your PATH
14939*** so that a non-GNU linker is found, and then restart.
14940
14941EOF
14942 fi
14943 ;;
14944
14945 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014946 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 +000014947 hardcode_libdir_flag_spec='-L$libdir'
14948 hardcode_minus_L=yes
14949
14950 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14951 # that the semantics of dynamic libraries on AmigaOS, at least up
14952 # to version 4, is to share data among multiple programs linked
14953 # with the same dynamic library. Since this doesn't match the
14954 # behavior of shared libraries on other platforms, we can't use
14955 # them.
14956 ld_shlibs=no
14957 ;;
14958
14959 beos*)
14960 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14961 allow_undefined_flag=unsupported
14962 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14963 # support --undefined. This deserves some investigation. FIXME
14964 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14965 else
14966 ld_shlibs=no
14967 fi
14968 ;;
14969
14970 cygwin* | mingw* | pw32*)
14971 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14972 # as there is no search path for DLLs.
14973 hardcode_libdir_flag_spec='-L$libdir'
14974 allow_undefined_flag=unsupported
14975 always_export_symbols=no
14976 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014977 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 +000014978
14979 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014980 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 +000014981 # If the export-symbols file already is a .def file (1st line
14982 # is EXPORTS), use it as is; otherwise, prepend...
14983 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14984 cp $export_symbols $output_objdir/$soname.def;
14985 else
14986 echo EXPORTS > $output_objdir/$soname.def;
14987 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014988 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014989 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14990 else
14991 ld_shlibs=no
14992 fi
14993 ;;
14994
14995 interix3*)
14996 hardcode_direct=no
14997 hardcode_shlibpath_var=no
14998 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14999 export_dynamic_flag_spec='${wl}-E'
15000 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15001 # Instead, shared libraries are loaded at an image base (0x10000000 by
15002 # default) and relocated if they conflict, which is a slow very memory
15003 # consuming and fragmenting process. To avoid this, we pick a random,
15004 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15005 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15006 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15007 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'
15008 ;;
15009
15010 linux*)
15011 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15012 tmp_addflag=
15013 case $cc_basename,$host_cpu in
15014 pgcc*) # Portland Group C compiler
15015 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'
15016 tmp_addflag=' $pic_flag'
15017 ;;
15018 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15019 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'
15020 tmp_addflag=' $pic_flag -Mnomain' ;;
15021 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15022 tmp_addflag=' -i_dynamic' ;;
15023 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15024 tmp_addflag=' -i_dynamic -nofor_main' ;;
15025 ifc* | ifort*) # Intel Fortran compiler
15026 tmp_addflag=' -nofor_main' ;;
15027 esac
15028 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029
15030 if test $supports_anon_versioning = yes; then
15031 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15032 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15033 $echo "local: *; };" >> $output_objdir/$libname.ver~
15034 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15035 fi
John Criswell47fdd832003-07-14 16:52:07 +000015036 else
15037 ld_shlibs=no
15038 fi
15039 ;;
15040
15041 netbsd*)
15042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15043 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15044 wlarc=
15045 else
15046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15048 fi
15049 ;;
15050
Reid Spencera773bd52006-08-04 18:18:08 +000015051 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015052 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15053 ld_shlibs=no
15054 cat <<EOF 1>&2
15055
15056*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15057*** create shared libraries on Solaris systems. Therefore, libtool
15058*** is disabling shared libraries support. We urge you to upgrade GNU
15059*** binutils to release 2.9.1 or newer. Another option is to modify
15060*** your PATH or compiler configuration so that the native linker is
15061*** used, and then restart.
15062
15063EOF
15064 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15067 else
15068 ld_shlibs=no
15069 fi
15070 ;;
15071
Reid Spencera773bd52006-08-04 18:18:08 +000015072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15073 case `$LD -v 2>&1` in
15074 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15075 ld_shlibs=no
15076 cat <<_LT_EOF 1>&2
15077
15078*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15079*** reliably create shared libraries on SCO systems. Therefore, libtool
15080*** is disabling shared libraries support. We urge you to upgrade GNU
15081*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15082*** your PATH or compiler configuration so that the native linker is
15083*** used, and then restart.
15084
15085_LT_EOF
15086 ;;
15087 *)
15088 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15089 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15092 else
15093 ld_shlibs=no
15094 fi
15095 ;;
15096 esac
15097 ;;
15098
John Criswell47fdd832003-07-14 16:52:07 +000015099 sunos4*)
15100 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15101 wlarc=
15102 hardcode_direct=yes
15103 hardcode_shlibpath_var=no
15104 ;;
15105
15106 *)
15107 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15110 else
15111 ld_shlibs=no
15112 fi
15113 ;;
15114 esac
15115
Reid Spencera773bd52006-08-04 18:18:08 +000015116 if test "$ld_shlibs" = no; then
15117 runpath_var=
15118 hardcode_libdir_flag_spec=
15119 export_dynamic_flag_spec=
15120 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015121 fi
15122 else
15123 # PORTME fill in a description of your system's linker (not GNU ld)
15124 case $host_os in
15125 aix3*)
15126 allow_undefined_flag=unsupported
15127 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015128 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 +000015129 # Note: this linker hardcodes the directories in LIBPATH if there
15130 # are no directories specified by -L.
15131 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015132 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015133 # Neither direct hardcoding nor static linking is supported with a
15134 # broken collect2.
15135 hardcode_direct=unsupported
15136 fi
15137 ;;
15138
15139 aix4* | aix5*)
15140 if test "$host_cpu" = ia64; then
15141 # On IA64, the linker does run time linking by default, so we don't
15142 # have to do anything special.
15143 aix_use_runtimelinking=no
15144 exp_sym_flag='-Bexport'
15145 no_entry_flag=""
15146 else
15147 # If we're using GNU nm, then we don't want the "-C" option.
15148 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15149 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15150 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'
15151 else
15152 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'
15153 fi
15154 aix_use_runtimelinking=no
15155
15156 # Test if we are trying to use run time linking or normal
15157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15158 # need to do runtime linking.
15159 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15160 for ld_flag in $LDFLAGS; do
15161 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15162 aix_use_runtimelinking=yes
15163 break
15164 fi
15165 done
Reid Spencera773bd52006-08-04 18:18:08 +000015166 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015167 esac
15168
15169 exp_sym_flag='-bexport'
15170 no_entry_flag='-bnoentry'
15171 fi
15172
15173 # When large executables or shared objects are built, AIX ld can
15174 # have problems creating the table of contents. If linking a library
15175 # or program results in "error TOC overflow" add -mminimal-toc to
15176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15178
15179 archive_cmds=''
15180 hardcode_direct=yes
15181 hardcode_libdir_separator=':'
15182 link_all_deplibs=yes
15183
15184 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015185 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015186 # We only want to do this on AIX 4.2 and lower, the check
15187 # below for broken collect2 doesn't work under 4.3+
15188 collect2name=`${CC} -print-prog-name=collect2`
15189 if test -f "$collect2name" && \
15190 strings "$collect2name" | grep resolve_lib_name >/dev/null
15191 then
15192 # We have reworked collect2
15193 hardcode_direct=yes
15194 else
15195 # We have old collect2
15196 hardcode_direct=unsupported
15197 # It fails to find uninstalled libraries when the uninstalled
15198 # path is not listed in the libpath. Setting hardcode_minus_L
15199 # to unsupported forces relinking
15200 hardcode_minus_L=yes
15201 hardcode_libdir_flag_spec='-L$libdir'
15202 hardcode_libdir_separator=
15203 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015204 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015205 esac
15206 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015207 if test "$aix_use_runtimelinking" = yes; then
15208 shared_flag="$shared_flag "'${wl}-G'
15209 fi
John Criswell47fdd832003-07-14 16:52:07 +000015210 else
15211 # not using gcc
15212 if test "$host_cpu" = ia64; then
15213 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15214 # chokes on -Wl,-G. The following line is correct:
15215 shared_flag='-G'
15216 else
Reid Spencera773bd52006-08-04 18:18:08 +000015217 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015218 shared_flag='${wl}-G'
15219 else
15220 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015221 fi
John Criswell47fdd832003-07-14 16:52:07 +000015222 fi
15223 fi
15224
15225 # It seems that -bexpall does not export symbols beginning with
15226 # underscore (_), so it is better to generate a list of symbols to export.
15227 always_export_symbols=yes
15228 if test "$aix_use_runtimelinking" = yes; then
15229 # Warning - without using the other runtime loading flags (-brtl),
15230 # -berok will link without error, but may produce a broken library.
15231 allow_undefined_flag='-berok'
15232 # Determine the default libpath from the value encoded in an empty executable.
15233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015234/* confdefs.h. */
15235_ACEOF
15236cat confdefs.h >>conftest.$ac_ext
15237cat >>conftest.$ac_ext <<_ACEOF
15238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015239
John Criswell7a73b802003-06-30 21:59:07 +000015240int
15241main ()
15242{
John Criswell47fdd832003-07-14 16:52:07 +000015243
John Criswell7a73b802003-06-30 21:59:07 +000015244 ;
15245 return 0;
15246}
15247_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015248rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015249if { (ac_try="$ac_link"
15250case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253esac
15254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015261 (exit $ac_status); } &&
15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15263 { (case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
15267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_try") 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest$ac_exeext'
15273 { (case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15276esac
15277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_try") 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015282
John Criswell47fdd832003-07-14 16:52:07 +000015283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15284}'`
15285# Check for a 64-bit object if we didn't find anything.
15286if 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; }
15287}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015288else
15289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015290sed 's/^/| /' conftest.$ac_ext >&5
15291
Reid Spencera773bd52006-08-04 18:18:08 +000015292
John Criswell7a73b802003-06-30 21:59:07 +000015293fi
Reid Spencera773bd52006-08-04 18:18:08 +000015294
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015295rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015296 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015297if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015298
John Criswell47fdd832003-07-14 16:52:07 +000015299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015300 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 +000015301 else
15302 if test "$host_cpu" = ia64; then
15303 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15304 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015305 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 +000015306 else
15307 # Determine the default libpath from the value encoded in an empty executable.
15308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015314
John Criswell47fdd832003-07-14 16:52:07 +000015315int
15316main ()
15317{
John Criswell7a73b802003-06-30 21:59:07 +000015318
John Criswell47fdd832003-07-14 16:52:07 +000015319 ;
15320 return 0;
15321}
15322_ACEOF
15323rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015324if { (ac_try="$ac_link"
15325case "(($ac_try" in
15326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327 *) ac_try_echo=$ac_try;;
15328esac
15329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015332 grep -v '^ *+' conftest.er1 >conftest.err
15333 rm -f conftest.er1
15334 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015336 (exit $ac_status); } &&
15337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15338 { (case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341esac
15342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_try") 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest$ac_exeext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15351esac
15352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015357
John Criswell47fdd832003-07-14 16:52:07 +000015358aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15359}'`
15360# Check for a 64-bit object if we didn't find anything.
15361if 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; }
15362}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015363else
John Criswell47fdd832003-07-14 16:52:07 +000015364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015365sed 's/^/| /' conftest.$ac_ext >&5
15366
Reid Spencera773bd52006-08-04 18:18:08 +000015367
John Criswell47fdd832003-07-14 16:52:07 +000015368fi
Reid Spencera773bd52006-08-04 18:18:08 +000015369
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015370rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015371 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015372if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015373
John Criswell47fdd832003-07-14 16:52:07 +000015374 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15375 # Warning - without using the other run time loading flags,
15376 # -berok will link without error, but may produce a broken library.
15377 no_undefined_flag=' ${wl}-bernotok'
15378 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015379 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015380 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015381 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015382 # This is similar to how AIX traditionally builds its shared libraries.
15383 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 +000015384 fi
15385 fi
John Criswell7a73b802003-06-30 21:59:07 +000015386 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015387
15388 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015389 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 +000015390 hardcode_libdir_flag_spec='-L$libdir'
15391 hardcode_minus_L=yes
15392 # see comment about different semantics on the GNU ld section
15393 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015394 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015395
Reid Spencer2706f8c2004-09-19 23:53:36 +000015396 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015397 export_dynamic_flag_spec=-rdynamic
15398 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015399
John Criswell47fdd832003-07-14 16:52:07 +000015400 cygwin* | mingw* | pw32*)
15401 # When not using gcc, we currently assume that we are using
15402 # Microsoft Visual C++.
15403 # hardcode_libdir_flag_spec is actually meaningless, as there is
15404 # no search path for DLLs.
15405 hardcode_libdir_flag_spec=' '
15406 allow_undefined_flag=unsupported
15407 # Tell ltmain to make .lib files, not .a files.
15408 libext=lib
15409 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015410 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015411 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015412 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015413 # The linker will automatically build a .lib file if we build a DLL.
15414 old_archive_From_new_cmds='true'
15415 # FIXME: Should let the user specify the lib program.
15416 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15417 fix_srcfile_path='`cygpath -w "$srcfile"`'
15418 enable_shared_with_static_runtimes=yes
15419 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015420
John Criswell47fdd832003-07-14 16:52:07 +000015421 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015422 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015423 rhapsody* | darwin1.[012])
15424 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15425 ;;
15426 *) # Darwin 1.3 on
15427 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15428 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15429 else
15430 case ${MACOSX_DEPLOYMENT_TARGET} in
15431 10.[012])
15432 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15433 ;;
15434 10.*)
15435 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15436 ;;
15437 esac
15438 fi
15439 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015440 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015441 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015442 hardcode_direct=no
15443 hardcode_automatic=yes
15444 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015445 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015446 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015447 if test "$GCC" = yes ; then
15448 output_verbose_link_cmd='echo'
15449 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15450 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015451 # 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 +000015452 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}'
15453 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 +000015454 else
Reid Spencera773bd52006-08-04 18:18:08 +000015455 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015456 xlc*)
15457 output_verbose_link_cmd='echo'
15458 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15459 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015460 # 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 +000015461 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}'
15462 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 +000015463 ;;
15464 *)
15465 ld_shlibs=no
15466 ;;
15467 esac
John Criswell7a73b802003-06-30 21:59:07 +000015468 fi
John Criswell47fdd832003-07-14 16:52:07 +000015469 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015470
John Criswell47fdd832003-07-14 16:52:07 +000015471 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015473 hardcode_libdir_flag_spec='-L$libdir'
15474 hardcode_shlibpath_var=no
15475 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015476
John Criswell47fdd832003-07-14 16:52:07 +000015477 freebsd1*)
15478 ld_shlibs=no
15479 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015480
John Criswell47fdd832003-07-14 16:52:07 +000015481 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15482 # support. Future versions do this automatically, but an explicit c++rt0.o
15483 # does not break anything, and helps significantly (at the cost of a little
15484 # extra space).
15485 freebsd2.2*)
15486 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15487 hardcode_libdir_flag_spec='-R$libdir'
15488 hardcode_direct=yes
15489 hardcode_shlibpath_var=no
15490 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015491
John Criswell47fdd832003-07-14 16:52:07 +000015492 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15493 freebsd2*)
15494 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15495 hardcode_direct=yes
15496 hardcode_minus_L=yes
15497 hardcode_shlibpath_var=no
15498 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015499
John Criswell47fdd832003-07-14 16:52:07 +000015500 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015501 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015502 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15503 hardcode_libdir_flag_spec='-R$libdir'
15504 hardcode_direct=yes
15505 hardcode_shlibpath_var=no
15506 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015507
John Criswell47fdd832003-07-14 16:52:07 +000015508 hpux9*)
15509 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015510 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 +000015511 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015512 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 +000015513 fi
15514 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15515 hardcode_libdir_separator=:
15516 hardcode_direct=yes
15517
15518 # hardcode_minus_L: Not really in the search PATH,
15519 # but as the default location of the library.
15520 hardcode_minus_L=yes
15521 export_dynamic_flag_spec='${wl}-E'
15522 ;;
15523
Reid Spencera773bd52006-08-04 18:18:08 +000015524 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015525 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015526 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15527 else
15528 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15529 fi
15530 if test "$with_gnu_ld" = no; then
15531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_separator=:
15533
15534 hardcode_direct=yes
15535 export_dynamic_flag_spec='${wl}-E'
15536
15537 # hardcode_minus_L: Not really in the search PATH,
15538 # but as the default location of the library.
15539 hardcode_minus_L=yes
15540 fi
15541 ;;
15542
15543 hpux11*)
15544 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15545 case $host_cpu in
15546 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015547 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15548 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015549 ia64*)
15550 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15551 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015552 *)
15553 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15554 ;;
15555 esac
15556 else
Reid Spencera773bd52006-08-04 18:18:08 +000015557 case $host_cpu in
15558 hppa*64*)
15559 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 ;;
15561 ia64*)
15562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015563 ;;
15564 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015565 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 +000015566 ;;
15567 esac
15568 fi
15569 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015570 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15571 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015572
Reid Spencera773bd52006-08-04 18:18:08 +000015573 case $host_cpu in
15574 hppa*64*|ia64*)
15575 hardcode_libdir_flag_spec_ld='+b $libdir'
15576 hardcode_direct=no
15577 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015578 ;;
15579 *)
John Criswell47fdd832003-07-14 16:52:07 +000015580 hardcode_direct=yes
15581 export_dynamic_flag_spec='${wl}-E'
15582
15583 # hardcode_minus_L: Not really in the search PATH,
15584 # but as the default location of the library.
15585 hardcode_minus_L=yes
15586 ;;
15587 esac
15588 fi
15589 ;;
15590
15591 irix5* | irix6* | nonstopux*)
15592 if test "$GCC" = yes; then
15593 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'
15594 else
15595 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'
15596 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15597 fi
15598 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15599 hardcode_libdir_separator=:
15600 link_all_deplibs=yes
15601 ;;
15602
15603 netbsd*)
15604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15605 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15606 else
15607 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15608 fi
15609 hardcode_libdir_flag_spec='-R$libdir'
15610 hardcode_direct=yes
15611 hardcode_shlibpath_var=no
15612 ;;
15613
15614 newsos6)
15615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_direct=yes
15617 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15618 hardcode_libdir_separator=:
15619 hardcode_shlibpath_var=no
15620 ;;
15621
15622 openbsd*)
15623 hardcode_direct=yes
15624 hardcode_shlibpath_var=no
15625 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15626 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015627 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 +000015628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15629 export_dynamic_flag_spec='${wl}-E'
15630 else
15631 case $host_os in
15632 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15634 hardcode_libdir_flag_spec='-R$libdir'
15635 ;;
15636 *)
15637 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15639 ;;
15640 esac
15641 fi
15642 ;;
15643
15644 os2*)
15645 hardcode_libdir_flag_spec='-L$libdir'
15646 hardcode_minus_L=yes
15647 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015648 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 +000015649 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15650 ;;
15651
15652 osf3*)
15653 if test "$GCC" = yes; then
15654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15655 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'
15656 else
15657 allow_undefined_flag=' -expect_unresolved \*'
15658 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'
15659 fi
15660 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15661 hardcode_libdir_separator=:
15662 ;;
15663
15664 osf4* | osf5*) # as osf3* with the addition of -msym flag
15665 if test "$GCC" = yes; then
15666 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15667 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'
15668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15669 else
15670 allow_undefined_flag=' -expect_unresolved \*'
15671 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 +000015672 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 +000015673 $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 +000015674
John Criswell47fdd832003-07-14 16:52:07 +000015675 # Both c and cxx compiler support -rpath directly
15676 hardcode_libdir_flag_spec='-rpath $libdir'
15677 fi
15678 hardcode_libdir_separator=:
15679 ;;
15680
John Criswell47fdd832003-07-14 16:52:07 +000015681 solaris*)
15682 no_undefined_flag=' -z text'
15683 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015684 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015685 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015686 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15687 $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 +000015688 else
Reid Spencera773bd52006-08-04 18:18:08 +000015689 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015690 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015691 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15692 $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 +000015693 fi
15694 hardcode_libdir_flag_spec='-R$libdir'
15695 hardcode_shlibpath_var=no
15696 case $host_os in
15697 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015698 *)
15699 # The compiler driver will combine linker options so we
15700 # cannot just pass the convience library names through
15701 # without $wl, iff we do not link with $LD.
15702 # Luckily, gcc supports the same syntax we need for Sun Studio.
15703 # Supported since Solaris 2.6 (maybe 2.5.1?)
15704 case $wlarc in
15705 '')
15706 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15707 *)
15708 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' ;;
15709 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015710 esac
15711 link_all_deplibs=yes
15712 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015713
John Criswell47fdd832003-07-14 16:52:07 +000015714 sunos4*)
15715 if test "x$host_vendor" = xsequent; then
15716 # Use $CC to link under sequent, because it throws in some extra .o
15717 # files that make .init and .fini sections work.
15718 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15719 else
15720 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15721 fi
15722 hardcode_libdir_flag_spec='-L$libdir'
15723 hardcode_direct=yes
15724 hardcode_minus_L=yes
15725 hardcode_shlibpath_var=no
15726 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015727
John Criswell47fdd832003-07-14 16:52:07 +000015728 sysv4)
15729 case $host_vendor in
15730 sni)
15731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15732 hardcode_direct=yes # is this really true???
15733 ;;
15734 siemens)
15735 ## LD is ld it makes a PLAMLIB
15736 ## CC just makes a GrossModule.
15737 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15738 reload_cmds='$CC -r -o $output$reload_objs'
15739 hardcode_direct=no
15740 ;;
15741 motorola)
15742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15744 ;;
15745 esac
15746 runpath_var='LD_RUN_PATH'
15747 hardcode_shlibpath_var=no
15748 ;;
15749
15750 sysv4.3*)
15751 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_shlibpath_var=no
15753 export_dynamic_flag_spec='-Bexport'
15754 ;;
15755
15756 sysv4*MP*)
15757 if test -d /usr/nec; then
15758 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15759 hardcode_shlibpath_var=no
15760 runpath_var=LD_RUN_PATH
15761 hardcode_runpath_var=yes
15762 ld_shlibs=yes
15763 fi
15764 ;;
15765
Reid Spencera773bd52006-08-04 18:18:08 +000015766 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15767 no_undefined_flag='${wl}-z,text'
15768 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015769 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015770 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015771
John Criswell47fdd832003-07-14 16:52:07 +000015772 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015773 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15774 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 +000015775 else
Reid Spencera773bd52006-08-04 18:18:08 +000015776 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15777 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 +000015778 fi
John Criswell47fdd832003-07-14 16:52:07 +000015779 ;;
15780
Reid Spencera773bd52006-08-04 18:18:08 +000015781 sysv5* | sco3.2v5* | sco5v6*)
15782 # Note: We can NOT use -z defs as we might desire, because we do not
15783 # link with -lc, and that would cause any symbols used from libc to
15784 # always be unresolved, which means just about no library would
15785 # ever link correctly. If we're not using GNU ld we use -z text
15786 # though, which does catch some bad symbols but isn't as heavy-handed
15787 # as -z defs.
15788 no_undefined_flag='${wl}-z,text'
15789 allow_undefined_flag='${wl}-z,nodefs'
15790 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015791 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015792 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15793 hardcode_libdir_separator=':'
15794 link_all_deplibs=yes
15795 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015796 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015797
15798 if test "$GCC" = yes; then
15799 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15800 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15801 else
15802 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15803 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15804 fi
John Criswell47fdd832003-07-14 16:52:07 +000015805 ;;
15806
15807 uts4*)
15808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_libdir_flag_spec='-L$libdir'
15810 hardcode_shlibpath_var=no
15811 ;;
15812
15813 *)
15814 ld_shlibs=no
15815 ;;
15816 esac
15817 fi
15818
Reid Spencera773bd52006-08-04 18:18:08 +000015819{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15820echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015821test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015822
John Criswell47fdd832003-07-14 16:52:07 +000015823#
15824# Do we need to explicitly link libc?
15825#
15826case "x$archive_cmds_need_lc" in
15827x|xyes)
15828 # Assume -lc should be added
15829 archive_cmds_need_lc=yes
15830
15831 if test "$enable_shared" = yes && test "$GCC" = yes; then
15832 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015833 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015834 # FIXME: we may have to deal with multi-command sequences.
15835 ;;
15836 '$CC '*)
15837 # Test whether the compiler implicitly links with -lc since on some
15838 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15839 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015840 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15841echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015842 $rm conftest*
15843 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15844
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>&5
15847 ac_status=$?
15848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } 2>conftest.err; then
15850 soname=conftest
15851 lib=conftest
15852 libobjs=conftest.$ac_objext
15853 deplibs=
15854 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015855 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015856 compiler_flags=-v
15857 linker_flags=-v
15858 verstring=
15859 output_objdir=.
15860 libname=conftest
15861 lt_save_allow_undefined_flag=$allow_undefined_flag
15862 allow_undefined_flag=
15863 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15864 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }
15868 then
15869 archive_cmds_need_lc=no
15870 else
15871 archive_cmds_need_lc=yes
15872 fi
15873 allow_undefined_flag=$lt_save_allow_undefined_flag
15874 else
15875 cat conftest.err 1>&5
15876 fi
15877 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015878 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15879echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015880 ;;
15881 esac
15882 fi
15883 ;;
15884esac
15885
Reid Spencera773bd52006-08-04 18:18:08 +000015886{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15887echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015888library_names_spec=
15889libname_spec='lib$name'
15890soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015892postinstall_cmds=
15893postuninstall_cmds=
15894finish_cmds=
15895finish_eval=
15896shlibpath_var=
15897shlibpath_overrides_runpath=unknown
15898version_type=none
15899dynamic_linker="$host_os ld.so"
15900sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015901if test "$GCC" = yes; then
15902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15903 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15904 # if the path contains ";" then we assume it to be the separator
15905 # otherwise default to the standard path separator (i.e. ":") - it is
15906 # assumed that no part of a normal pathname contains ";" but that should
15907 # okay in the real world where ";" in dirpaths is itself problematic.
15908 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15909 else
15910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15911 fi
15912else
15913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15914fi
15915need_lib_prefix=unknown
15916hardcode_into_libs=no
15917
15918# when you set need_version to no, make sure it does not cause -set_version
15919# flags to be left without arguments
15920need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015921
15922case $host_os in
15923aix3*)
15924 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015926 shlibpath_var=LIBPATH
15927
John Criswell47fdd832003-07-14 16:52:07 +000015928 # AIX 3 has no versioning support, so we append a major version to the name.
15929 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015930 ;;
15931
15932aix4* | aix5*)
15933 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015934 need_lib_prefix=no
15935 need_version=no
15936 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015937 if test "$host_cpu" = ia64; then
15938 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015940 shlibpath_var=LD_LIBRARY_PATH
15941 else
15942 # With GCC up to 2.95.x, collect2 would create an import file
15943 # for dependence libraries. The import file would start with
15944 # the line `#! .'. This would cause the generated library to
15945 # depend on `.', always an invalid library. This was fixed in
15946 # development snapshots of GCC prior to 3.0.
15947 case $host_os in
15948 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15950 echo ' yes '
15951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15952 :
15953 else
15954 can_build_shared=no
15955 fi
15956 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015957 esac
John Criswell47fdd832003-07-14 16:52:07 +000015958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15959 # soname into executable. Probably we can add versioning support to
15960 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015961 if test "$aix_use_runtimelinking" = yes; then
15962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15963 # instead of lib<name>.a to let people know that these are not
15964 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015966 else
15967 # We preserve .a as extension for shared libraries through AIX4.2
15968 # and later when we are not doing run time linking.
15969 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015970 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015971 fi
15972 shlibpath_var=LIBPATH
15973 fi
15974 ;;
15975
15976amigaos*)
15977 library_names_spec='$libname.ixlibrary $libname.a'
15978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015979 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 +000015980 ;;
15981
15982beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015983 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015984 dynamic_linker="$host_os ld.so"
15985 shlibpath_var=LIBRARY_PATH
15986 ;;
15987
Reid Spencer2706f8c2004-09-19 23:53:36 +000015988bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015989 version_type=linux
15990 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015997 # the default ld.so.conf also contains /usr/contrib/lib and
15998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15999 # libtool to hard-code these into programs
16000 ;;
16001
16002cygwin* | mingw* | pw32*)
16003 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016004 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016005 need_version=no
16006 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016007
John Criswell7a73b802003-06-30 21:59:07 +000016008 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016009 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016010 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016012 postinstall_cmds='base_file=`basename \${file}`~
16013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16014 dldir=$destdir/`dirname \$dlpath`~
16015 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016016 $install_prog $dir/$dlname \$dldir/$dlname~
16017 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16019 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016020 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016021 shlibpath_overrides_runpath=yes
16022
16023 case $host_os in
16024 cygwin*)
16025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16026 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 +000016027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016028 ;;
16029 mingw*)
16030 # MinGW DLLs use traditional 'lib' prefix
16031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16034 # It is most probably a Windows format PATH printed by
16035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16036 # path with ; separators, and with drive letters. We can handle the
16037 # drive letters (cygwin fileutils understands them), so leave them,
16038 # especially as we might pass files found there to a mingw objdump,
16039 # which wouldn't understand a cygwinified path. Ahh.
16040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16041 else
16042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16043 fi
16044 ;;
16045 pw32*)
16046 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016047 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 +000016048 ;;
16049 esac
John Criswell7a73b802003-06-30 21:59:07 +000016050 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016051
John Criswell7a73b802003-06-30 21:59:07 +000016052 *)
John Criswell47fdd832003-07-14 16:52:07 +000016053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016054 ;;
16055 esac
16056 dynamic_linker='Win32 ld.exe'
16057 # FIXME: first we should search . and the directory the executable is in
16058 shlibpath_var=PATH
16059 ;;
16060
16061darwin* | rhapsody*)
16062 dynamic_linker="$host_os dyld"
16063 version_type=darwin
16064 need_lib_prefix=no
16065 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016067 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016068 shlibpath_overrides_runpath=yes
16069 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016070 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016071 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016072 if test "$GCC" = yes; then
16073 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"`
16074 else
16075 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016076 fi
16077 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16078 ;;
16079
16080dgux*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016087 ;;
16088
16089freebsd1*)
16090 dynamic_linker=no
16091 ;;
16092
Reid Spencer2706f8c2004-09-19 23:53:36 +000016093kfreebsd*-gnu)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16098 soname_spec='${libname}${release}${shared_ext}$major'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=no
16101 hardcode_into_libs=yes
16102 dynamic_linker='GNU ld.so'
16103 ;;
16104
Reid Spencera773bd52006-08-04 18:18:08 +000016105freebsd* | dragonfly*)
16106 # DragonFly does not have aout. When/if they implement a new
16107 # versioning mechanism, adjust this.
16108 if test -x /usr/bin/objformat; then
16109 objformat=`/usr/bin/objformat`
16110 else
16111 case $host_os in
16112 freebsd[123]*) objformat=aout ;;
16113 *) objformat=elf ;;
16114 esac
16115 fi
John Criswell7a73b802003-06-30 21:59:07 +000016116 version_type=freebsd-$objformat
16117 case $version_type in
16118 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016120 need_version=no
16121 need_lib_prefix=no
16122 ;;
16123 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016125 need_version=yes
16126 ;;
16127 esac
16128 shlibpath_var=LD_LIBRARY_PATH
16129 case $host_os in
16130 freebsd2*)
16131 shlibpath_overrides_runpath=yes
16132 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016133 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016134 shlibpath_overrides_runpath=yes
16135 hardcode_into_libs=yes
16136 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016137 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16138 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016139 shlibpath_overrides_runpath=no
16140 hardcode_into_libs=yes
16141 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016142 freebsd*) # from 4.6 on
16143 shlibpath_overrides_runpath=yes
16144 hardcode_into_libs=yes
16145 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016146 esac
16147 ;;
16148
16149gnu*)
16150 version_type=linux
16151 need_lib_prefix=no
16152 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016155 shlibpath_var=LD_LIBRARY_PATH
16156 hardcode_into_libs=yes
16157 ;;
16158
16159hpux9* | hpux10* | hpux11*)
16160 # Give a soname corresponding to the major version so that dld.sl refuses to
16161 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016162 version_type=sunos
16163 need_lib_prefix=no
16164 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016165 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016166 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016167 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016168 hardcode_into_libs=yes
16169 dynamic_linker="$host_os dld.so"
16170 shlibpath_var=LD_LIBRARY_PATH
16171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16173 soname_spec='${libname}${release}${shared_ext}$major'
16174 if test "X$HPUX_IA64_MODE" = X32; then
16175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16176 else
16177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16178 fi
16179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16180 ;;
16181 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016182 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016183 hardcode_into_libs=yes
16184 dynamic_linker="$host_os dld.sl"
16185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188 soname_spec='${libname}${release}${shared_ext}$major'
16189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16191 ;;
16192 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016193 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016194 dynamic_linker="$host_os dld.sl"
16195 shlibpath_var=SHLIB_PATH
16196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16198 soname_spec='${libname}${release}${shared_ext}$major'
16199 ;;
16200 esac
John Criswell7a73b802003-06-30 21:59:07 +000016201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16202 postinstall_cmds='chmod 555 $lib'
16203 ;;
16204
Reid Spencera773bd52006-08-04 18:18:08 +000016205interix3*)
16206 version_type=linux
16207 need_lib_prefix=no
16208 need_version=no
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16212 shlibpath_var=LD_LIBRARY_PATH
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16215 ;;
16216
John Criswell47fdd832003-07-14 16:52:07 +000016217irix5* | irix6* | nonstopux*)
16218 case $host_os in
16219 nonstopux*) version_type=nonstopux ;;
16220 *)
16221 if test "$lt_cv_prog_gnu_ld" = yes; then
16222 version_type=linux
16223 else
16224 version_type=irix
16225 fi ;;
16226 esac
John Criswell7a73b802003-06-30 21:59:07 +000016227 need_lib_prefix=no
16228 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016229 soname_spec='${libname}${release}${shared_ext}$major'
16230 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 +000016231 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016232 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016233 libsuff= shlibsuff=
16234 ;;
16235 *)
16236 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016237 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16238 libsuff= shlibsuff= libmagic=32-bit;;
16239 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16240 libsuff=32 shlibsuff=N32 libmagic=N32;;
16241 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16242 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016243 *) libsuff= shlibsuff= libmagic=never-match;;
16244 esac
16245 ;;
16246 esac
16247 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16248 shlibpath_overrides_runpath=no
16249 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16250 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016251 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016252 ;;
16253
16254# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016255linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016256 dynamic_linker=no
16257 ;;
16258
16259# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016260linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016261 version_type=linux
16262 need_lib_prefix=no
16263 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16265 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16267 shlibpath_var=LD_LIBRARY_PATH
16268 shlibpath_overrides_runpath=no
16269 # This implies no fast_install, which is unacceptable.
16270 # Some rework will be needed to allow for fast_install
16271 # before this can be enabled.
16272 hardcode_into_libs=yes
16273
Reid Spencer2706f8c2004-09-19 23:53:36 +000016274 # Append ld.so.conf contents to the search path
16275 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016276 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 +000016277 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16278 fi
16279
John Criswell7a73b802003-06-30 21:59:07 +000016280 # We used to test for /lib/ld.so.1 and disable shared libraries on
16281 # powerpc, because MkLinux only supported shared libraries with the
16282 # GNU dynamic linker. Since this was broken with cross compilers,
16283 # most powerpc-linux boxes support dynamic linking these days and
16284 # people can always --disable-shared, the test was removed, and we
16285 # assume the GNU/Linux dynamic linker is in use.
16286 dynamic_linker='GNU/Linux ld.so'
16287 ;;
16288
Reid Spencer2706f8c2004-09-19 23:53:36 +000016289knetbsd*-gnu)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
16293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
16295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=no
16297 hardcode_into_libs=yes
16298 dynamic_linker='GNU ld.so'
16299 ;;
16300
John Criswell7a73b802003-06-30 21:59:07 +000016301netbsd*)
16302 version_type=sunos
16303 need_lib_prefix=no
16304 need_version=no
16305 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016307 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16308 dynamic_linker='NetBSD (a.out) ld.so'
16309 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016311 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016312 dynamic_linker='NetBSD ld.elf_so'
16313 fi
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes
16316 hardcode_into_libs=yes
16317 ;;
16318
16319newsos6)
16320 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 shlibpath_var=LD_LIBRARY_PATH
16323 shlibpath_overrides_runpath=yes
16324 ;;
16325
Reid Spencer2706f8c2004-09-19 23:53:36 +000016326nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016327 version_type=linux
16328 need_lib_prefix=no
16329 need_version=no
16330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16331 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016332 shlibpath_var=LD_LIBRARY_PATH
16333 shlibpath_overrides_runpath=yes
16334 ;;
16335
16336openbsd*)
16337 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016338 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016339 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016340 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16341 case $host_os in
16342 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16343 *) need_version=no ;;
16344 esac
John Criswell47fdd832003-07-14 16:52:07 +000016345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016348 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 +000016349 case $host_os in
16350 openbsd2.[89] | openbsd2.[89].*)
16351 shlibpath_overrides_runpath=no
16352 ;;
16353 *)
16354 shlibpath_overrides_runpath=yes
16355 ;;
16356 esac
John Criswell7a73b802003-06-30 21:59:07 +000016357 else
16358 shlibpath_overrides_runpath=yes
16359 fi
John Criswell7a73b802003-06-30 21:59:07 +000016360 ;;
16361
16362os2*)
16363 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016364 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016365 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016366 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016367 dynamic_linker='OS/2 ld.exe'
16368 shlibpath_var=LIBPATH
16369 ;;
16370
16371osf3* | osf4* | osf5*)
16372 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016373 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016374 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016375 soname_spec='${libname}${release}${shared_ext}$major'
16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016377 shlibpath_var=LD_LIBRARY_PATH
16378 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16379 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16380 ;;
16381
John Criswell7a73b802003-06-30 21:59:07 +000016382solaris*)
16383 version_type=linux
16384 need_lib_prefix=no
16385 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016388 shlibpath_var=LD_LIBRARY_PATH
16389 shlibpath_overrides_runpath=yes
16390 hardcode_into_libs=yes
16391 # ldd complains unless libraries are executable
16392 postinstall_cmds='chmod +x $lib'
16393 ;;
16394
16395sunos4*)
16396 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16399 shlibpath_var=LD_LIBRARY_PATH
16400 shlibpath_overrides_runpath=yes
16401 if test "$with_gnu_ld" = yes; then
16402 need_lib_prefix=no
16403 fi
16404 need_version=yes
16405 ;;
16406
Reid Spencera773bd52006-08-04 18:18:08 +000016407sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016408 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016411 shlibpath_var=LD_LIBRARY_PATH
16412 case $host_vendor in
16413 sni)
16414 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016415 need_lib_prefix=no
16416 export_dynamic_flag_spec='${wl}-Blargedynsym'
16417 runpath_var=LD_RUN_PATH
16418 ;;
16419 siemens)
16420 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016421 ;;
16422 motorola)
16423 need_lib_prefix=no
16424 need_version=no
16425 shlibpath_overrides_runpath=no
16426 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16427 ;;
16428 esac
16429 ;;
16430
John Criswell7a73b802003-06-30 21:59:07 +000016431sysv4*MP*)
16432 if test -d /usr/nec ;then
16433 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016434 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16435 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016436 shlibpath_var=LD_LIBRARY_PATH
16437 fi
16438 ;;
16439
Reid Spencera773bd52006-08-04 18:18:08 +000016440sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16441 version_type=freebsd-elf
16442 need_lib_prefix=no
16443 need_version=no
16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 shlibpath_var=LD_LIBRARY_PATH
16447 hardcode_into_libs=yes
16448 if test "$with_gnu_ld" = yes; then
16449 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16450 shlibpath_overrides_runpath=no
16451 else
16452 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16453 shlibpath_overrides_runpath=yes
16454 case $host_os in
16455 sco3.2v5*)
16456 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16457 ;;
16458 esac
16459 fi
16460 sys_lib_dlsearch_path_spec='/usr/lib'
16461 ;;
16462
John Criswell47fdd832003-07-14 16:52:07 +000016463uts4*)
16464 version_type=linux
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 soname_spec='${libname}${release}${shared_ext}$major'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 ;;
16469
John Criswell7a73b802003-06-30 21:59:07 +000016470*)
16471 dynamic_linker=no
16472 ;;
16473esac
Reid Spencera773bd52006-08-04 18:18:08 +000016474{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16475echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016476test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016477
Reid Spencera773bd52006-08-04 18:18:08 +000016478variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16479if test "$GCC" = yes; then
16480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16481fi
16482
16483{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16484echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016485hardcode_action=
16486if test -n "$hardcode_libdir_flag_spec" || \
16487 test -n "$runpath_var" || \
16488 test "X$hardcode_automatic" = "Xyes" ; then
16489
16490 # We can hardcode non-existant directories.
16491 if test "$hardcode_direct" != no &&
16492 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16493 # have to relink, otherwise we might link with an installed library
16494 # when we should be linking with a yet-to-be-installed one
16495 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16496 test "$hardcode_minus_L" != no; then
16497 # Linking always hardcodes the temporary library directory.
16498 hardcode_action=relink
16499 else
16500 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16501 hardcode_action=immediate
16502 fi
16503else
16504 # We cannot hardcode anything, or else we can only hardcode existing
16505 # directories.
16506 hardcode_action=unsupported
16507fi
Reid Spencera773bd52006-08-04 18:18:08 +000016508{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16509echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016510
16511if test "$hardcode_action" = relink; then
16512 # Fast installation is not supported
16513 enable_fast_install=no
16514elif test "$shlibpath_overrides_runpath" = yes ||
16515 test "$enable_shared" = no; then
16516 # Fast installation is not necessary
16517 enable_fast_install=needless
16518fi
16519
16520striplib=
16521old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016522{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16523echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016524if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16525 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16526 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016527 { echo "$as_me:$LINENO: result: yes" >&5
16528echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016529else
16530# FIXME - insert some real tests, host_os isn't really good enough
16531 case $host_os in
16532 darwin*)
16533 if test -n "$STRIP" ; then
16534 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016535 { echo "$as_me:$LINENO: result: yes" >&5
16536echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016537 else
Reid Spencera773bd52006-08-04 18:18:08 +000016538 { echo "$as_me:$LINENO: result: no" >&5
16539echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016540fi
16541 ;;
16542 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016543 { echo "$as_me:$LINENO: result: no" >&5
16544echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016545 ;;
16546 esac
16547fi
16548
John Criswell7a73b802003-06-30 21:59:07 +000016549if test "x$enable_dlopen" != xyes; then
16550 enable_dlopen=unknown
16551 enable_dlopen_self=unknown
16552 enable_dlopen_self_static=unknown
16553else
16554 lt_cv_dlopen=no
16555 lt_cv_dlopen_libs=
16556
16557 case $host_os in
16558 beos*)
16559 lt_cv_dlopen="load_add_on"
16560 lt_cv_dlopen_libs=
16561 lt_cv_dlopen_self=yes
16562 ;;
16563
John Criswell47fdd832003-07-14 16:52:07 +000016564 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016565 lt_cv_dlopen="LoadLibrary"
16566 lt_cv_dlopen_libs=
16567 ;;
16568
John Criswell47fdd832003-07-14 16:52:07 +000016569 cygwin*)
16570 lt_cv_dlopen="dlopen"
16571 lt_cv_dlopen_libs=
16572 ;;
16573
16574 darwin*)
16575 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016576 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16577echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016578if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16579 echo $ECHO_N "(cached) $ECHO_C" >&6
16580else
16581 ac_check_lib_save_LIBS=$LIBS
16582LIBS="-ldl $LIBS"
16583cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016584/* confdefs.h. */
16585_ACEOF
16586cat confdefs.h >>conftest.$ac_ext
16587cat >>conftest.$ac_ext <<_ACEOF
16588/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016589
Reid Spencera773bd52006-08-04 18:18:08 +000016590/* Override any GCC internal prototype to avoid an error.
16591 Use char because int might match the return type of a GCC
16592 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016593#ifdef __cplusplus
16594extern "C"
16595#endif
John Criswell47fdd832003-07-14 16:52:07 +000016596char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016597int
16598main ()
16599{
Reid Spencera773bd52006-08-04 18:18:08 +000016600return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016601 ;
16602 return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016606if { (ac_try="$ac_link"
16607case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16610esac
16611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016613 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16623esac
16624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16626 ac_status=$?
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest$ac_exeext'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16633esac
16634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16636 ac_status=$?
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016639 ac_cv_lib_dl_dlopen=yes
16640else
16641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016642sed 's/^/| /' conftest.$ac_ext >&5
16643
Reid Spencera773bd52006-08-04 18:18:08 +000016644 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016645fi
Reid Spencera773bd52006-08-04 18:18:08 +000016646
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016647rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016648 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016649LIBS=$ac_check_lib_save_LIBS
16650fi
Reid Spencera773bd52006-08-04 18:18:08 +000016651{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16652echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016653if test $ac_cv_lib_dl_dlopen = yes; then
16654 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16655else
16656
16657 lt_cv_dlopen="dyld"
16658 lt_cv_dlopen_libs=
16659 lt_cv_dlopen_self=yes
16660
16661fi
16662
16663 ;;
16664
John Criswell7a73b802003-06-30 21:59:07 +000016665 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016666 { echo "$as_me:$LINENO: checking for shl_load" >&5
16667echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016668if test "${ac_cv_func_shl_load+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16670else
16671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016672/* confdefs.h. */
16673_ACEOF
16674cat confdefs.h >>conftest.$ac_ext
16675cat >>conftest.$ac_ext <<_ACEOF
16676/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016677/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16679#define shl_load innocuous_shl_load
16680
John Criswell7a73b802003-06-30 21:59:07 +000016681/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016682 which can conflict with char shl_load (); below.
16683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16684 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016685
John Criswell0c38eaf2003-09-10 15:17:25 +000016686#ifdef __STDC__
16687# include <limits.h>
16688#else
16689# include <assert.h>
16690#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016691
16692#undef shl_load
16693
Reid Spencera773bd52006-08-04 18:18:08 +000016694/* Override any GCC internal prototype to avoid an error.
16695 Use char because int might match the return type of a GCC
16696 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016697#ifdef __cplusplus
16698extern "C"
16699#endif
John Criswell7a73b802003-06-30 21:59:07 +000016700char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016701/* The GNU C library defines this for functions which it implements
16702 to always fail with ENOSYS. Some functions are actually named
16703 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016704#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016705choke me
John Criswell7a73b802003-06-30 21:59:07 +000016706#endif
16707
John Criswell0c38eaf2003-09-10 15:17:25 +000016708int
16709main ()
16710{
Reid Spencera773bd52006-08-04 18:18:08 +000016711return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016712 ;
16713 return 0;
16714}
16715_ACEOF
16716rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016717if { (ac_try="$ac_link"
16718case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721esac
16722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16731 { (case "(($ac_try" in
16732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16734esac
16735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16737 ac_status=$?
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest$ac_exeext'
16741 { (case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744esac
16745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_try") 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016750 ac_cv_func_shl_load=yes
16751else
16752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016753sed 's/^/| /' conftest.$ac_ext >&5
16754
Reid Spencera773bd52006-08-04 18:18:08 +000016755 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016756fi
Reid Spencera773bd52006-08-04 18:18:08 +000016757
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016758rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016759 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016760fi
Reid Spencera773bd52006-08-04 18:18:08 +000016761{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16762echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016763if test $ac_cv_func_shl_load = yes; then
16764 lt_cv_dlopen="shl_load"
16765else
Reid Spencera773bd52006-08-04 18:18:08 +000016766 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16767echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016768if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16769 echo $ECHO_N "(cached) $ECHO_C" >&6
16770else
16771 ac_check_lib_save_LIBS=$LIBS
16772LIBS="-ldld $LIBS"
16773cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016779
Reid Spencera773bd52006-08-04 18:18:08 +000016780/* Override any GCC internal prototype to avoid an error.
16781 Use char because int might match the return type of a GCC
16782 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016783#ifdef __cplusplus
16784extern "C"
16785#endif
John Criswell7a73b802003-06-30 21:59:07 +000016786char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016787int
16788main ()
16789{
Reid Spencera773bd52006-08-04 18:18:08 +000016790return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016791 ;
16792 return 0;
16793}
16794_ACEOF
16795rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016796if { (ac_try="$ac_link"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016808 (exit $ac_status); } &&
16809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_try") 2>&5
16826 ac_status=$?
16827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016829 ac_cv_lib_dld_shl_load=yes
16830else
16831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016832sed 's/^/| /' conftest.$ac_ext >&5
16833
Reid Spencera773bd52006-08-04 18:18:08 +000016834 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016835fi
Reid Spencera773bd52006-08-04 18:18:08 +000016836
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016837rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016838 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016839LIBS=$ac_check_lib_save_LIBS
16840fi
Reid Spencera773bd52006-08-04 18:18:08 +000016841{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16842echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016843if test $ac_cv_lib_dld_shl_load = yes; then
16844 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16845else
Reid Spencera773bd52006-08-04 18:18:08 +000016846 { echo "$as_me:$LINENO: checking for dlopen" >&5
16847echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016848if test "${ac_cv_func_dlopen+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850else
16851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016857/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16859#define dlopen innocuous_dlopen
16860
John Criswell7a73b802003-06-30 21:59:07 +000016861/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016862 which can conflict with char dlopen (); below.
16863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16864 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016865
John Criswell0c38eaf2003-09-10 15:17:25 +000016866#ifdef __STDC__
16867# include <limits.h>
16868#else
16869# include <assert.h>
16870#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016871
16872#undef dlopen
16873
Reid Spencera773bd52006-08-04 18:18:08 +000016874/* Override any GCC internal prototype to avoid an error.
16875 Use char because int might match the return type of a GCC
16876 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016877#ifdef __cplusplus
16878extern "C"
16879#endif
John Criswell7a73b802003-06-30 21:59:07 +000016880char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016881/* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016884#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016885choke me
John Criswell7a73b802003-06-30 21:59:07 +000016886#endif
16887
John Criswell0c38eaf2003-09-10 15:17:25 +000016888int
16889main ()
16890{
Reid Spencera773bd52006-08-04 18:18:08 +000016891return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016892 ;
16893 return 0;
16894}
16895_ACEOF
16896rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016897if { (ac_try="$ac_link"
16898case "(($ac_try" in
16899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16900 *) ac_try_echo=$ac_try;;
16901esac
16902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16903 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905 grep -v '^ *+' conftest.er1 >conftest.err
16906 rm -f conftest.er1
16907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016909 (exit $ac_status); } &&
16910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16911 { (case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914esac
16915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916 (eval "$ac_try") 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; } &&
16920 { ac_try='test -s conftest$ac_exeext'
16921 { (case "(($ac_try" in
16922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923 *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926 (eval "$ac_try") 2>&5
16927 ac_status=$?
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016930 ac_cv_func_dlopen=yes
16931else
16932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016933sed 's/^/| /' conftest.$ac_ext >&5
16934
Reid Spencera773bd52006-08-04 18:18:08 +000016935 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016936fi
Reid Spencera773bd52006-08-04 18:18:08 +000016937
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016938rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016940fi
Reid Spencera773bd52006-08-04 18:18:08 +000016941{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16942echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016943if test $ac_cv_func_dlopen = yes; then
16944 lt_cv_dlopen="dlopen"
16945else
Reid Spencera773bd52006-08-04 18:18:08 +000016946 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16947echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016948if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950else
16951 ac_check_lib_save_LIBS=$LIBS
16952LIBS="-ldl $LIBS"
16953cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016954/* confdefs.h. */
16955_ACEOF
16956cat confdefs.h >>conftest.$ac_ext
16957cat >>conftest.$ac_ext <<_ACEOF
16958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016959
Reid Spencera773bd52006-08-04 18:18:08 +000016960/* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016963#ifdef __cplusplus
16964extern "C"
16965#endif
John Criswell7a73b802003-06-30 21:59:07 +000016966char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016967int
16968main ()
16969{
Reid Spencera773bd52006-08-04 18:18:08 +000016970return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016976if { (ac_try="$ac_link"
16977case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980esac
16981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016983 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016988 (exit $ac_status); } &&
16989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16990 { (case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16993esac
16994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_try") 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17003esac
17004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017009 ac_cv_lib_dl_dlopen=yes
17010else
17011 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017012sed 's/^/| /' conftest.$ac_ext >&5
17013
Reid Spencera773bd52006-08-04 18:18:08 +000017014 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017015fi
Reid Spencera773bd52006-08-04 18:18:08 +000017016
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017017rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017018 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017019LIBS=$ac_check_lib_save_LIBS
17020fi
Reid Spencera773bd52006-08-04 18:18:08 +000017021{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17022echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017023if test $ac_cv_lib_dl_dlopen = yes; then
17024 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17025else
Reid Spencera773bd52006-08-04 18:18:08 +000017026 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17027echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017028if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17029 echo $ECHO_N "(cached) $ECHO_C" >&6
17030else
17031 ac_check_lib_save_LIBS=$LIBS
17032LIBS="-lsvld $LIBS"
17033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017034/* confdefs.h. */
17035_ACEOF
17036cat confdefs.h >>conftest.$ac_ext
17037cat >>conftest.$ac_ext <<_ACEOF
17038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017039
Reid Spencera773bd52006-08-04 18:18:08 +000017040/* Override any GCC internal prototype to avoid an error.
17041 Use char because int might match the return type of a GCC
17042 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017043#ifdef __cplusplus
17044extern "C"
17045#endif
John Criswell7a73b802003-06-30 21:59:07 +000017046char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017047int
17048main ()
17049{
Reid Spencera773bd52006-08-04 18:18:08 +000017050return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017056if { (ac_try="$ac_link"
17057case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17060esac
17061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017063 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017064 grep -v '^ *+' conftest.er1 >conftest.err
17065 rm -f conftest.er1
17066 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017068 (exit $ac_status); } &&
17069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17070 { (case "(($ac_try" in
17071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17073esac
17074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17076 ac_status=$?
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; } &&
17079 { ac_try='test -s conftest$ac_exeext'
17080 { (case "(($ac_try" in
17081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17082 *) ac_try_echo=$ac_try;;
17083esac
17084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17085 (eval "$ac_try") 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017089 ac_cv_lib_svld_dlopen=yes
17090else
17091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017092sed 's/^/| /' conftest.$ac_ext >&5
17093
Reid Spencera773bd52006-08-04 18:18:08 +000017094 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017095fi
Reid Spencera773bd52006-08-04 18:18:08 +000017096
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017097rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017098 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017099LIBS=$ac_check_lib_save_LIBS
17100fi
Reid Spencera773bd52006-08-04 18:18:08 +000017101{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17102echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017103if test $ac_cv_lib_svld_dlopen = yes; then
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17105else
Reid Spencera773bd52006-08-04 18:18:08 +000017106 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17107echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017108if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17110else
17111 ac_check_lib_save_LIBS=$LIBS
17112LIBS="-ldld $LIBS"
17113cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017114/* confdefs.h. */
17115_ACEOF
17116cat confdefs.h >>conftest.$ac_ext
17117cat >>conftest.$ac_ext <<_ACEOF
17118/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017119
Reid Spencera773bd52006-08-04 18:18:08 +000017120/* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017123#ifdef __cplusplus
17124extern "C"
17125#endif
John Criswell7a73b802003-06-30 21:59:07 +000017126char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017127int
17128main ()
17129{
Reid Spencera773bd52006-08-04 18:18:08 +000017130return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017131 ;
17132 return 0;
17133}
17134_ACEOF
17135rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017136if { (ac_try="$ac_link"
17137case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17140esac
17141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017143 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017148 (exit $ac_status); } &&
17149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150 { (case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17153esac
17154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_try") 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; } &&
17159 { ac_try='test -s conftest$ac_exeext'
17160 { (case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17163esac
17164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_try") 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017169 ac_cv_lib_dld_dld_link=yes
17170else
17171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017172sed 's/^/| /' conftest.$ac_ext >&5
17173
Reid Spencera773bd52006-08-04 18:18:08 +000017174 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017175fi
Reid Spencera773bd52006-08-04 18:18:08 +000017176
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017177rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017178 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017179LIBS=$ac_check_lib_save_LIBS
17180fi
Reid Spencera773bd52006-08-04 18:18:08 +000017181{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17182echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017183if test $ac_cv_lib_dld_dld_link = yes; then
17184 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17185fi
17186
17187
17188fi
17189
17190
17191fi
17192
17193
17194fi
17195
17196
17197fi
17198
17199
17200fi
17201
17202 ;;
17203 esac
17204
17205 if test "x$lt_cv_dlopen" != xno; then
17206 enable_dlopen=yes
17207 else
17208 enable_dlopen=no
17209 fi
17210
17211 case $lt_cv_dlopen in
17212 dlopen)
17213 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017214 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017215
17216 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017217 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017218
17219 save_LIBS="$LIBS"
17220 LIBS="$lt_cv_dlopen_libs $LIBS"
17221
Reid Spencera773bd52006-08-04 18:18:08 +000017222 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17223echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017224if test "${lt_cv_dlopen_self+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226else
17227 if test "$cross_compiling" = yes; then :
17228 lt_cv_dlopen_self=cross
17229else
John Criswell47fdd832003-07-14 16:52:07 +000017230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017231 lt_status=$lt_dlunknown
17232 cat > conftest.$ac_ext <<EOF
Bill Wendlinga0833352009-03-12 04:10:09 +000017233#line 17233 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017234#include "confdefs.h"
17235
17236#if HAVE_DLFCN_H
17237#include <dlfcn.h>
17238#endif
17239
17240#include <stdio.h>
17241
17242#ifdef RTLD_GLOBAL
17243# define LT_DLGLOBAL RTLD_GLOBAL
17244#else
17245# ifdef DL_GLOBAL
17246# define LT_DLGLOBAL DL_GLOBAL
17247# else
17248# define LT_DLGLOBAL 0
17249# endif
17250#endif
17251
17252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17253 find out it does not work in some platform. */
17254#ifndef LT_DLLAZY_OR_NOW
17255# ifdef RTLD_LAZY
17256# define LT_DLLAZY_OR_NOW RTLD_LAZY
17257# else
17258# ifdef DL_LAZY
17259# define LT_DLLAZY_OR_NOW DL_LAZY
17260# else
17261# ifdef RTLD_NOW
17262# define LT_DLLAZY_OR_NOW RTLD_NOW
17263# else
17264# ifdef DL_NOW
17265# define LT_DLLAZY_OR_NOW DL_NOW
17266# else
17267# define LT_DLLAZY_OR_NOW 0
17268# endif
17269# endif
17270# endif
17271# endif
17272#endif
17273
17274#ifdef __cplusplus
17275extern "C" void exit (int);
17276#endif
17277
17278void fnord() { int i=42;}
17279int main ()
17280{
17281 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17282 int status = $lt_dlunknown;
17283
17284 if (self)
17285 {
17286 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17287 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17288 /* dlclose (self); */
17289 }
Reid Spencera773bd52006-08-04 18:18:08 +000017290 else
17291 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017292
17293 exit (status);
17294}
17295EOF
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017301 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017302 lt_status=$?
17303 case x$lt_status in
17304 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17305 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017306 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017307 esac
17308 else :
17309 # compilation failed
17310 lt_cv_dlopen_self=no
17311 fi
17312fi
17313rm -fr conftest*
17314
17315
17316fi
Reid Spencera773bd52006-08-04 18:18:08 +000017317{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17318echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017319
17320 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017321 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17322 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17323echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017324if test "${lt_cv_dlopen_self_static+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326else
17327 if test "$cross_compiling" = yes; then :
17328 lt_cv_dlopen_self_static=cross
17329else
John Criswell47fdd832003-07-14 16:52:07 +000017330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017331 lt_status=$lt_dlunknown
17332 cat > conftest.$ac_ext <<EOF
Bill Wendlinga0833352009-03-12 04:10:09 +000017333#line 17333 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017334#include "confdefs.h"
17335
17336#if HAVE_DLFCN_H
17337#include <dlfcn.h>
17338#endif
17339
17340#include <stdio.h>
17341
17342#ifdef RTLD_GLOBAL
17343# define LT_DLGLOBAL RTLD_GLOBAL
17344#else
17345# ifdef DL_GLOBAL
17346# define LT_DLGLOBAL DL_GLOBAL
17347# else
17348# define LT_DLGLOBAL 0
17349# endif
17350#endif
17351
17352/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17353 find out it does not work in some platform. */
17354#ifndef LT_DLLAZY_OR_NOW
17355# ifdef RTLD_LAZY
17356# define LT_DLLAZY_OR_NOW RTLD_LAZY
17357# else
17358# ifdef DL_LAZY
17359# define LT_DLLAZY_OR_NOW DL_LAZY
17360# else
17361# ifdef RTLD_NOW
17362# define LT_DLLAZY_OR_NOW RTLD_NOW
17363# else
17364# ifdef DL_NOW
17365# define LT_DLLAZY_OR_NOW DL_NOW
17366# else
17367# define LT_DLLAZY_OR_NOW 0
17368# endif
17369# endif
17370# endif
17371# endif
17372#endif
17373
17374#ifdef __cplusplus
17375extern "C" void exit (int);
17376#endif
17377
17378void fnord() { int i=42;}
17379int main ()
17380{
17381 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17382 int status = $lt_dlunknown;
17383
17384 if (self)
17385 {
17386 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17387 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17388 /* dlclose (self); */
17389 }
Reid Spencera773bd52006-08-04 18:18:08 +000017390 else
17391 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017392
17393 exit (status);
17394}
17395EOF
17396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17397 (eval $ac_link) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017401 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017402 lt_status=$?
17403 case x$lt_status in
17404 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17405 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017406 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017407 esac
17408 else :
17409 # compilation failed
17410 lt_cv_dlopen_self_static=no
17411 fi
17412fi
17413rm -fr conftest*
17414
17415
17416fi
Reid Spencera773bd52006-08-04 18:18:08 +000017417{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17418echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017419 fi
17420
17421 CPPFLAGS="$save_CPPFLAGS"
17422 LDFLAGS="$save_LDFLAGS"
17423 LIBS="$save_LIBS"
17424 ;;
17425 esac
17426
17427 case $lt_cv_dlopen_self in
17428 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17429 *) enable_dlopen_self=unknown ;;
17430 esac
17431
17432 case $lt_cv_dlopen_self_static in
17433 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17434 *) enable_dlopen_self_static=unknown ;;
17435 esac
17436fi
17437
17438
Reid Spencera773bd52006-08-04 18:18:08 +000017439# Report which library types will actually be built
17440{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17441echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17442{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17443echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017444
Reid Spencera773bd52006-08-04 18:18:08 +000017445{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17446echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017447test "$can_build_shared" = "no" && enable_shared=no
17448
17449# On AIX, shared libraries and static libraries use the same namespace, and
17450# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017451case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017452aix3*)
17453 test "$enable_shared" = yes && enable_static=no
17454 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017455 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017456 postinstall_cmds='$RANLIB $lib'
17457 fi
17458 ;;
17459
Reid Spencer2706f8c2004-09-19 23:53:36 +000017460aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017461 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17462 test "$enable_shared" = yes && enable_static=no
17463 fi
John Criswell7a73b802003-06-30 21:59:07 +000017464 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017465esac
Reid Spencera773bd52006-08-04 18:18:08 +000017466{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17467echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017468
Reid Spencera773bd52006-08-04 18:18:08 +000017469{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17470echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017471# Make sure either enable_shared or enable_static is yes.
17472test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017473{ echo "$as_me:$LINENO: result: $enable_static" >&5
17474echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017475
17476# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017477# libtool distribution, otherwise you forgot to ship ltmain.sh
17478# with your package, and you will get complaints that there are
17479# no rules to generate ltmain.sh.
17480if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017481 # See if we are running on zsh, and set the options which allow our commands through
17482 # without removal of \ escapes.
17483 if test -n "${ZSH_VERSION+set}" ; then
17484 setopt NO_GLOB_SUBST
17485 fi
John Criswell7a73b802003-06-30 21:59:07 +000017486 # Now quote all the things that may contain metacharacters while being
17487 # careful not to overquote the AC_SUBSTed values. We take copies of the
17488 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017489 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 +000017490 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017491 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17492 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17493 deplibs_check_method reload_flag reload_cmds need_locks \
17494 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17495 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017496 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017497 old_postinstall_cmds old_postuninstall_cmds \
17498 compiler \
17499 CC \
17500 LD \
17501 lt_prog_compiler_wl \
17502 lt_prog_compiler_pic \
17503 lt_prog_compiler_static \
17504 lt_prog_compiler_no_builtin_flag \
17505 export_dynamic_flag_spec \
17506 thread_safe_flag_spec \
17507 whole_archive_flag_spec \
17508 enable_shared_with_static_runtimes \
17509 old_archive_cmds \
17510 old_archive_from_new_cmds \
17511 predep_objects \
17512 postdep_objects \
17513 predeps \
17514 postdeps \
17515 compiler_lib_search_path \
17516 archive_cmds \
17517 archive_expsym_cmds \
17518 postinstall_cmds \
17519 postuninstall_cmds \
17520 old_archive_from_expsyms_cmds \
17521 allow_undefined_flag \
17522 no_undefined_flag \
17523 export_symbols_cmds \
17524 hardcode_libdir_flag_spec \
17525 hardcode_libdir_flag_spec_ld \
17526 hardcode_libdir_separator \
17527 hardcode_automatic \
17528 module_cmds \
17529 module_expsym_cmds \
17530 lt_cv_prog_compiler_c_o \
17531 exclude_expsyms \
17532 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017533
17534 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017535 old_archive_cmds | \
17536 old_archive_from_new_cmds | \
17537 archive_cmds | \
17538 archive_expsym_cmds | \
17539 module_cmds | \
17540 module_expsym_cmds | \
17541 old_archive_from_expsyms_cmds | \
17542 export_symbols_cmds | \
17543 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017544 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017545 old_postinstall_cmds | old_postuninstall_cmds | \
17546 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017547 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548 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 +000017549 ;;
17550 *)
17551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17552 ;;
17553 esac
17554 done
17555
John Criswell47fdd832003-07-14 16:52:07 +000017556 case $lt_echo in
17557 *'\$0 --fallback-echo"')
17558 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17559 ;;
17560 esac
17561
17562cfgfile="${ofile}T"
17563 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17564 $rm -f "$cfgfile"
17565 { echo "$as_me:$LINENO: creating $ofile" >&5
17566echo "$as_me: creating $ofile" >&6;}
17567
17568 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017569#! $SHELL
17570
John Criswell47fdd832003-07-14 16:52:07 +000017571# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017572# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17573# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17574#
John Criswell47fdd832003-07-14 16:52:07 +000017575# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17576# Free Software Foundation, Inc.
17577#
17578# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017579# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17580#
17581# This program is free software; you can redistribute it and/or modify
17582# it under the terms of the GNU General Public License as published by
17583# the Free Software Foundation; either version 2 of the License, or
17584# (at your option) any later version.
17585#
17586# This program is distributed in the hope that it will be useful, but
17587# WITHOUT ANY WARRANTY; without even the implied warranty of
17588# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17589# General Public License for more details.
17590#
17591# You should have received a copy of the GNU General Public License
17592# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017593# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017594#
17595# As a special exception to the GNU General Public License, if you
17596# distribute this file as part of a program that contains a
17597# configuration script generated by Autoconf, you may include it under
17598# the same distribution terms that you use for the rest of that program.
17599
John Criswell47fdd832003-07-14 16:52:07 +000017600# A sed program that does not truncate output.
17601SED=$lt_SED
17602
John Criswell7a73b802003-06-30 21:59:07 +000017603# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017604Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017605
17606# The HP-UX ksh and POSIX shell print the target directory to stdout
17607# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017608(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017609
John Criswell47fdd832003-07-14 16:52:07 +000017610# The names of the tagged configurations supported by this script.
17611available_tags=
17612
John Criswell7a73b802003-06-30 21:59:07 +000017613# ### BEGIN LIBTOOL CONFIG
17614
17615# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17616
17617# Shell to use when invoking shell scripts.
17618SHELL=$lt_SHELL
17619
17620# Whether or not to build shared libraries.
17621build_libtool_libs=$enable_shared
17622
17623# Whether or not to build static libraries.
17624build_old_libs=$enable_static
17625
17626# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017627build_libtool_need_lc=$archive_cmds_need_lc
17628
17629# Whether or not to disallow shared libs when runtime libs are static
17630allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017631
17632# Whether or not to optimize for fast installation.
17633fast_install=$enable_fast_install
17634
17635# The host system.
17636host_alias=$host_alias
17637host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017638host_os=$host_os
17639
17640# The build system.
17641build_alias=$build_alias
17642build=$build
17643build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017644
17645# An echo program that does not interpret backslashes.
17646echo=$lt_echo
17647
17648# The archiver.
17649AR=$lt_AR
17650AR_FLAGS=$lt_AR_FLAGS
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652# A C compiler.
17653LTCC=$lt_LTCC
17654
Reid Spencera773bd52006-08-04 18:18:08 +000017655# LTCC compiler flags.
17656LTCFLAGS=$lt_LTCFLAGS
17657
John Criswell47fdd832003-07-14 16:52:07 +000017658# A language-specific compiler.
17659CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017660
17661# Is the compiler the GNU C compiler?
17662with_gcc=$GCC
17663
John Criswell47fdd832003-07-14 16:52:07 +000017664# An ERE matcher.
17665EGREP=$lt_EGREP
17666
John Criswell7a73b802003-06-30 21:59:07 +000017667# The linker used to build libraries.
17668LD=$lt_LD
17669
17670# Whether we need hard or soft links.
17671LN_S=$lt_LN_S
17672
17673# A BSD-compatible nm program.
17674NM=$lt_NM
17675
17676# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017677STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017678
17679# Used to examine libraries when file_magic_cmd begins "file"
17680MAGIC_CMD=$MAGIC_CMD
17681
17682# Used on cygwin: DLL creation program.
17683DLLTOOL="$DLLTOOL"
17684
17685# Used on cygwin: object dumper.
17686OBJDUMP="$OBJDUMP"
17687
17688# Used on cygwin: assembler.
17689AS="$AS"
17690
17691# The name of the directory that contains temporary libtool files.
17692objdir=$objdir
17693
17694# How to create reloadable object files.
17695reload_flag=$lt_reload_flag
17696reload_cmds=$lt_reload_cmds
17697
17698# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017699wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017700
17701# Object file suffix (normally "o").
17702objext="$ac_objext"
17703
17704# Old archive suffix (normally "a").
17705libext="$libext"
17706
John Criswell47fdd832003-07-14 16:52:07 +000017707# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017708shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017709
John Criswell7a73b802003-06-30 21:59:07 +000017710# Executable file suffix (normally "").
17711exeext="$exeext"
17712
17713# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017714pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017715pic_mode=$pic_mode
17716
John Criswell47fdd832003-07-14 16:52:07 +000017717# What is the maximum length of a command?
17718max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017719
John Criswell47fdd832003-07-14 16:52:07 +000017720# Does compiler simultaneously support -c and -o options?
17721compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017722
Reid Spencera773bd52006-08-04 18:18:08 +000017723# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017724need_locks=$lt_need_locks
17725
17726# Do we need the lib prefix for modules?
17727need_lib_prefix=$need_lib_prefix
17728
17729# Do we need a version for libraries?
17730need_version=$need_version
17731
17732# Whether dlopen is supported.
17733dlopen_support=$enable_dlopen
17734
17735# Whether dlopen of programs is supported.
17736dlopen_self=$enable_dlopen_self
17737
17738# Whether dlopen of statically linked programs is supported.
17739dlopen_self_static=$enable_dlopen_self_static
17740
17741# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017742link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017743
17744# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017745no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017746
17747# Compiler flag to allow reflexive dlopens.
17748export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17749
17750# Compiler flag to generate shared objects directly from archives.
17751whole_archive_flag_spec=$lt_whole_archive_flag_spec
17752
17753# Compiler flag to generate thread-safe objects.
17754thread_safe_flag_spec=$lt_thread_safe_flag_spec
17755
17756# Library versioning type.
17757version_type=$version_type
17758
17759# Format of library name prefix.
17760libname_spec=$lt_libname_spec
17761
17762# List of archive names. First name is the real one, the rest are links.
17763# The last name is the one that the linker finds with -lNAME.
17764library_names_spec=$lt_library_names_spec
17765
17766# The coded name of the library, if different from the real name.
17767soname_spec=$lt_soname_spec
17768
17769# Commands used to build and install an old-style archive.
17770RANLIB=$lt_RANLIB
17771old_archive_cmds=$lt_old_archive_cmds
17772old_postinstall_cmds=$lt_old_postinstall_cmds
17773old_postuninstall_cmds=$lt_old_postuninstall_cmds
17774
17775# Create an old-style archive from a shared archive.
17776old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17777
17778# Create a temporary old-style archive to link instead of a shared archive.
17779old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17780
17781# Commands used to build and install a shared archive.
17782archive_cmds=$lt_archive_cmds
17783archive_expsym_cmds=$lt_archive_expsym_cmds
17784postinstall_cmds=$lt_postinstall_cmds
17785postuninstall_cmds=$lt_postuninstall_cmds
17786
John Criswell47fdd832003-07-14 16:52:07 +000017787# Commands used to build a loadable module (assumed same as above if empty)
17788module_cmds=$lt_module_cmds
17789module_expsym_cmds=$lt_module_expsym_cmds
17790
John Criswell7a73b802003-06-30 21:59:07 +000017791# Commands to strip libraries.
17792old_striplib=$lt_old_striplib
17793striplib=$lt_striplib
17794
John Criswell47fdd832003-07-14 16:52:07 +000017795# Dependencies to place before the objects being linked to create a
17796# shared library.
17797predep_objects=$lt_predep_objects
17798
17799# Dependencies to place after the objects being linked to create a
17800# shared library.
17801postdep_objects=$lt_postdep_objects
17802
17803# Dependencies to place before the objects being linked to create a
17804# shared library.
17805predeps=$lt_predeps
17806
17807# Dependencies to place after the objects being linked to create a
17808# shared library.
17809postdeps=$lt_postdeps
17810
17811# The library search path used internally by the compiler when linking
17812# a shared library.
17813compiler_lib_search_path=$lt_compiler_lib_search_path
17814
John Criswell7a73b802003-06-30 21:59:07 +000017815# Method to check whether dependent libraries are shared objects.
17816deplibs_check_method=$lt_deplibs_check_method
17817
17818# Command to use when deplibs_check_method == file_magic.
17819file_magic_cmd=$lt_file_magic_cmd
17820
17821# Flag that allows shared libraries with undefined symbols to be built.
17822allow_undefined_flag=$lt_allow_undefined_flag
17823
17824# Flag that forces no undefined symbols.
17825no_undefined_flag=$lt_no_undefined_flag
17826
17827# Commands used to finish a libtool library installation in a directory.
17828finish_cmds=$lt_finish_cmds
17829
17830# Same as above, but a single script fragment to be evaled but not shown.
17831finish_eval=$lt_finish_eval
17832
17833# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017834global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017835
17836# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017837global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017838
17839# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017840global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017841
17842# This is the shared library runtime path variable.
17843runpath_var=$runpath_var
17844
17845# This is the shared library path variable.
17846shlibpath_var=$shlibpath_var
17847
17848# Is shlibpath searched before the hard-coded library search path?
17849shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17850
17851# How to hardcode a shared library path into an executable.
17852hardcode_action=$hardcode_action
17853
17854# Whether we should hardcode library paths into libraries.
17855hardcode_into_libs=$hardcode_into_libs
17856
17857# Flag to hardcode \$libdir into a binary during linking.
17858# This must work even if \$libdir does not exist.
17859hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17860
John Criswell47fdd832003-07-14 16:52:07 +000017861# If ld is used when linking, flag to hardcode \$libdir into
17862# a binary during linking. This must work even if \$libdir does
17863# not exist.
17864hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17865
John Criswell7a73b802003-06-30 21:59:07 +000017866# Whether we need a single -rpath flag with a separated argument.
17867hardcode_libdir_separator=$lt_hardcode_libdir_separator
17868
John Criswell47fdd832003-07-14 16:52:07 +000017869# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017870# resulting binary.
17871hardcode_direct=$hardcode_direct
17872
17873# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17874# resulting binary.
17875hardcode_minus_L=$hardcode_minus_L
17876
17877# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17878# the resulting binary.
17879hardcode_shlibpath_var=$hardcode_shlibpath_var
17880
John Criswell47fdd832003-07-14 16:52:07 +000017881# Set to yes if building a shared library automatically hardcodes DIR into the library
17882# and all subsequent libraries and executables linked against it.
17883hardcode_automatic=$hardcode_automatic
17884
John Criswell7a73b802003-06-30 21:59:07 +000017885# Variables whose values should be saved in libtool wrapper scripts and
17886# restored at relink time.
17887variables_saved_for_relink="$variables_saved_for_relink"
17888
17889# Whether libtool must link a program against all its dependency libraries.
17890link_all_deplibs=$link_all_deplibs
17891
17892# Compile-time system search path for libraries
17893sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17894
17895# Run-time system search path for libraries
17896sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17897
17898# Fix the shell variable \$srcfile for the compiler.
17899fix_srcfile_path="$fix_srcfile_path"
17900
17901# Set to yes if exported symbols are required.
17902always_export_symbols=$always_export_symbols
17903
17904# The commands to list exported symbols.
17905export_symbols_cmds=$lt_export_symbols_cmds
17906
17907# The commands to extract the exported symbol list from a shared archive.
17908extract_expsyms_cmds=$lt_extract_expsyms_cmds
17909
17910# Symbols that should not be listed in the preloaded symbols.
17911exclude_expsyms=$lt_exclude_expsyms
17912
17913# Symbols that must always be exported.
17914include_expsyms=$lt_include_expsyms
17915
17916# ### END LIBTOOL CONFIG
17917
17918__EOF__
17919
John Criswell47fdd832003-07-14 16:52:07 +000017920
John Criswell7a73b802003-06-30 21:59:07 +000017921 case $host_os in
17922 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017923 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017924
17925# AIX sometimes has problems with the GCC collect2 program. For some
17926# reason, if we set the COLLECT_NAMES environment variable, the problems
17927# vanish in a puff of smoke.
17928if test "X${COLLECT_NAMES+set}" != Xset; then
17929 COLLECT_NAMES=
17930 export COLLECT_NAMES
17931fi
17932EOF
17933 ;;
17934 esac
17935
John Criswell7a73b802003-06-30 21:59:07 +000017936 # We use sed instead of cat because bash on DJGPP gets confused if
17937 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17938 # text mode, it properly converts lines to CR/LF. This bash problem
17939 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017940 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017941
John Criswell47fdd832003-07-14 16:52:07 +000017942 mv -f "$cfgfile" "$ofile" || \
17943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017944 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017945
17946else
17947 # If there is no Makefile yet, we rely on a make rule to execute
17948 # `config.status --recheck' to rerun these tests and create the
17949 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017950 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17951 if test -f "$ltmain_in"; then
17952 test -f Makefile && make "$ltmain"
17953 fi
John Criswell7a73b802003-06-30 21:59:07 +000017954fi
John Criswell7a73b802003-06-30 21:59:07 +000017955
17956
John Criswell47fdd832003-07-14 16:52:07 +000017957ac_ext=c
17958ac_cpp='$CPP $CPPFLAGS'
17959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961ac_compiler_gnu=$ac_cv_c_compiler_gnu
17962
17963CC="$lt_save_CC"
17964
17965
Reid Spencera773bd52006-08-04 18:18:08 +000017966# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017967if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017968 withval=$with_tags; tagnames="$withval"
17969fi
17970
John Criswell47fdd832003-07-14 16:52:07 +000017971
17972if test -f "$ltmain" && test -n "$tagnames"; then
17973 if test ! -f "${ofile}"; then
17974 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17975echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17976 fi
17977
17978 if test -z "$LTCC"; then
17979 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17980 if test -z "$LTCC"; then
17981 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17982echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17983 else
17984 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17985echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17986 fi
17987 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017988 if test -z "$LTCFLAGS"; then
17989 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17990 fi
John Criswell47fdd832003-07-14 16:52:07 +000017991
17992 # Extract list of available tagged configurations in $ofile.
17993 # Note that this assumes the entire list is on one line.
17994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17995
17996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17997 for tagname in $tagnames; do
17998 IFS="$lt_save_ifs"
17999 # Check whether tagname contains only valid characters
18000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18001 "") ;;
18002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18003echo "$as_me: error: invalid tag name: $tagname" >&2;}
18004 { (exit 1); exit 1; }; }
18005 ;;
18006 esac
18007
18008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18009 then
18010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18011echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18012 { (exit 1); exit 1; }; }
18013 fi
18014
18015 # Update the list of available tags.
18016 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018017 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018018
18019 case $tagname in
18020 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018021 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18022 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18023 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018024 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018025ac_cpp='$CXXCPP $CPPFLAGS'
18026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18029
18030
18031
18032
18033archive_cmds_need_lc_CXX=no
18034allow_undefined_flag_CXX=
18035always_export_symbols_CXX=no
18036archive_expsym_cmds_CXX=
18037export_dynamic_flag_spec_CXX=
18038hardcode_direct_CXX=no
18039hardcode_libdir_flag_spec_CXX=
18040hardcode_libdir_flag_spec_ld_CXX=
18041hardcode_libdir_separator_CXX=
18042hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018043hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018044hardcode_automatic_CXX=no
18045module_cmds_CXX=
18046module_expsym_cmds_CXX=
18047link_all_deplibs_CXX=unknown
18048old_archive_cmds_CXX=$old_archive_cmds
18049no_undefined_flag_CXX=
18050whole_archive_flag_spec_CXX=
18051enable_shared_with_static_runtimes_CXX=no
18052
18053# Dependencies to place before and after the object being linked:
18054predep_objects_CXX=
18055postdep_objects_CXX=
18056predeps_CXX=
18057postdeps_CXX=
18058compiler_lib_search_path_CXX=
18059
18060# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018061ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018062
18063# Object file extension for compiled C++ test sources.
18064objext=o
18065objext_CXX=$objext
18066
18067# Code to be used in simple compile tests
18068lt_simple_compile_test_code="int some_variable = 0;\n"
18069
18070# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018071lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018072
18073# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18074
18075# If no C compiler was specified, use CC.
18076LTCC=${LTCC-"$CC"}
18077
Reid Spencera773bd52006-08-04 18:18:08 +000018078# If no C compiler flags were specified, use CFLAGS.
18079LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18080
John Criswell47fdd832003-07-14 16:52:07 +000018081# Allow CC to be a program name with arguments.
18082compiler=$CC
18083
18084
Reid Spencera773bd52006-08-04 18:18:08 +000018085# save warnings/boilerplate of simple test code
18086ac_outfile=conftest.$ac_objext
18087printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18088eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18089_lt_compiler_boilerplate=`cat conftest.err`
18090$rm conftest*
18091
18092ac_outfile=conftest.$ac_objext
18093printf "$lt_simple_link_test_code" >conftest.$ac_ext
18094eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18095_lt_linker_boilerplate=`cat conftest.err`
18096$rm conftest*
18097
18098
John Criswell47fdd832003-07-14 16:52:07 +000018099# Allow CC to be a program name with arguments.
18100lt_save_CC=$CC
18101lt_save_LD=$LD
18102lt_save_GCC=$GCC
18103GCC=$GXX
18104lt_save_with_gnu_ld=$with_gnu_ld
18105lt_save_path_LD=$lt_cv_path_LD
18106if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18107 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18108else
Reid Spencera773bd52006-08-04 18:18:08 +000018109 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018110fi
18111if test -n "${lt_cv_path_LDCXX+set}"; then
18112 lt_cv_path_LD=$lt_cv_path_LDCXX
18113else
Reid Spencera773bd52006-08-04 18:18:08 +000018114 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018115fi
18116test -z "${LDCXX+set}" || LD=$LDCXX
18117CC=${CXX-"c++"}
18118compiler=$CC
18119compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018120for cc_temp in $compiler""; do
18121 case $cc_temp in
18122 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18123 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18124 \-*) ;;
18125 *) break;;
18126 esac
18127done
18128cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18129
John Criswell47fdd832003-07-14 16:52:07 +000018130
18131# We don't want -fno-exception wen compiling C++ code, so set the
18132# no_builtin_flag separately
18133if test "$GXX" = yes; then
18134 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18135else
18136 lt_prog_compiler_no_builtin_flag_CXX=
18137fi
18138
18139if test "$GXX" = yes; then
18140 # Set up default GNU C++ configuration
18141
18142
Reid Spencera773bd52006-08-04 18:18:08 +000018143# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018144if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018145 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018146else
18147 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018148fi
18149
John Criswell47fdd832003-07-14 16:52:07 +000018150ac_prog=ld
18151if test "$GCC" = yes; then
18152 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018153 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18154echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018155 case $host in
18156 *-*-mingw*)
18157 # gcc leaves a trailing carriage return which upsets mingw
18158 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18159 *)
18160 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18161 esac
18162 case $ac_prog in
18163 # Accept absolute paths.
18164 [\\/]* | ?:[\\/]*)
18165 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018166 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018167 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18168 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18169 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18170 done
18171 test -z "$LD" && LD="$ac_prog"
18172 ;;
18173 "")
18174 # If it fails, then pretend we aren't using GCC.
18175 ac_prog=ld
18176 ;;
18177 *)
18178 # If it is relative, then search for the first ld in PATH.
18179 with_gnu_ld=unknown
18180 ;;
18181 esac
18182elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018183 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18184echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018185else
Reid Spencera773bd52006-08-04 18:18:08 +000018186 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18187echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018188fi
18189if test "${lt_cv_path_LD+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
18192 if test -z "$LD"; then
18193 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18194 for ac_dir in $PATH; do
18195 IFS="$lt_save_ifs"
18196 test -z "$ac_dir" && ac_dir=.
18197 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18198 lt_cv_path_LD="$ac_dir/$ac_prog"
18199 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018200 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018201 # Break only if it was the GNU/non-GNU ld that we prefer.
18202 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18203 *GNU* | *'with BFD'*)
18204 test "$with_gnu_ld" != no && break
18205 ;;
18206 *)
18207 test "$with_gnu_ld" != yes && break
18208 ;;
18209 esac
18210 fi
18211 done
18212 IFS="$lt_save_ifs"
18213else
18214 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18215fi
18216fi
18217
18218LD="$lt_cv_path_LD"
18219if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018220 { echo "$as_me:$LINENO: result: $LD" >&5
18221echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018222else
Reid Spencera773bd52006-08-04 18:18:08 +000018223 { echo "$as_me:$LINENO: result: no" >&5
18224echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018225fi
18226test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18227echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18228 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018229{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18230echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018231if test "${lt_cv_prog_gnu_ld+set}" = set; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233else
Reid Spencera773bd52006-08-04 18:18:08 +000018234 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018235case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018236*GNU* | *'with BFD'*)
18237 lt_cv_prog_gnu_ld=yes
18238 ;;
18239*)
18240 lt_cv_prog_gnu_ld=no
18241 ;;
18242esac
18243fi
Reid Spencera773bd52006-08-04 18:18:08 +000018244{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18245echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018246with_gnu_ld=$lt_cv_prog_gnu_ld
18247
18248
18249
18250 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18251 # archiving commands below assume that GNU ld is being used.
18252 if test "$with_gnu_ld" = yes; then
18253 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18254 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'
18255
18256 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18258
18259 # If archive_cmds runs LD, not CC, wlarc should be empty
18260 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18261 # investigate it a little bit more. (MM)
18262 wlarc='${wl}'
18263
18264 # ancient GNU ld didn't support --whole-archive et. al.
18265 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18266 grep 'no-whole-archive' > /dev/null; then
18267 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18268 else
18269 whole_archive_flag_spec_CXX=
18270 fi
18271 else
18272 with_gnu_ld=no
18273 wlarc=
18274
18275 # A generic and very simple default shared library creation
18276 # command for GNU C++ for the case where it uses the native
18277 # linker, instead of GNU ld. If possible, this setting should
18278 # overridden to take advantage of the native linker features on
18279 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018280 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018281 fi
18282
18283 # Commands to make compiler produce verbose output that lists
18284 # what "hidden" libraries, object files and flags are used when
18285 # linking a shared library.
18286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18287
18288else
18289 GXX=no
18290 with_gnu_ld=no
18291 wlarc=
18292fi
18293
18294# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018295{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018297ld_shlibs_CXX=yes
18298case $host_os in
18299 aix3*)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18302 ;;
18303 aix4* | aix5*)
18304 if test "$host_cpu" = ia64; then
18305 # On IA64, the linker does run time linking by default, so we don't
18306 # have to do anything special.
18307 aix_use_runtimelinking=no
18308 exp_sym_flag='-Bexport'
18309 no_entry_flag=""
18310 else
18311 aix_use_runtimelinking=no
18312
18313 # Test if we are trying to use run time linking or normal
18314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18315 # need to do runtime linking.
18316 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18317 for ld_flag in $LDFLAGS; do
18318 case $ld_flag in
18319 *-brtl*)
18320 aix_use_runtimelinking=yes
18321 break
18322 ;;
18323 esac
18324 done
Reid Spencera773bd52006-08-04 18:18:08 +000018325 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018326 esac
18327
18328 exp_sym_flag='-bexport'
18329 no_entry_flag='-bnoentry'
18330 fi
18331
18332 # When large executables or shared objects are built, AIX ld can
18333 # have problems creating the table of contents. If linking a library
18334 # or program results in "error TOC overflow" add -mminimal-toc to
18335 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18336 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18337
18338 archive_cmds_CXX=''
18339 hardcode_direct_CXX=yes
18340 hardcode_libdir_separator_CXX=':'
18341 link_all_deplibs_CXX=yes
18342
18343 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018344 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018345 # We only want to do this on AIX 4.2 and lower, the check
18346 # below for broken collect2 doesn't work under 4.3+
18347 collect2name=`${CC} -print-prog-name=collect2`
18348 if test -f "$collect2name" && \
18349 strings "$collect2name" | grep resolve_lib_name >/dev/null
18350 then
18351 # We have reworked collect2
18352 hardcode_direct_CXX=yes
18353 else
18354 # We have old collect2
18355 hardcode_direct_CXX=unsupported
18356 # It fails to find uninstalled libraries when the uninstalled
18357 # path is not listed in the libpath. Setting hardcode_minus_L
18358 # to unsupported forces relinking
18359 hardcode_minus_L_CXX=yes
18360 hardcode_libdir_flag_spec_CXX='-L$libdir'
18361 hardcode_libdir_separator_CXX=
18362 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018363 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018364 esac
18365 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018366 if test "$aix_use_runtimelinking" = yes; then
18367 shared_flag="$shared_flag "'${wl}-G'
18368 fi
John Criswell47fdd832003-07-14 16:52:07 +000018369 else
18370 # not using gcc
18371 if test "$host_cpu" = ia64; then
18372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18373 # chokes on -Wl,-G. The following line is correct:
18374 shared_flag='-G'
18375 else
18376 if test "$aix_use_runtimelinking" = yes; then
18377 shared_flag='${wl}-G'
18378 else
18379 shared_flag='${wl}-bM:SRE'
18380 fi
18381 fi
18382 fi
18383
18384 # It seems that -bexpall does not export symbols beginning with
18385 # underscore (_), so it is better to generate a list of symbols to export.
18386 always_export_symbols_CXX=yes
18387 if test "$aix_use_runtimelinking" = yes; then
18388 # Warning - without using the other runtime loading flags (-brtl),
18389 # -berok will link without error, but may produce a broken library.
18390 allow_undefined_flag_CXX='-berok'
18391 # Determine the default libpath from the value encoded in an empty executable.
18392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018393/* confdefs.h. */
18394_ACEOF
18395cat confdefs.h >>conftest.$ac_ext
18396cat >>conftest.$ac_ext <<_ACEOF
18397/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018398
John Criswell47fdd832003-07-14 16:52:07 +000018399int
18400main ()
18401{
18402
18403 ;
18404 return 0;
18405}
18406_ACEOF
18407rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018408if { (ac_try="$ac_link"
18409case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18412esac
18413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018420 (exit $ac_status); } &&
18421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18422 { (case "(($ac_try" in
18423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18424 *) ac_try_echo=$ac_try;;
18425esac
18426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18427 (eval "$ac_try") 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest$ac_exeext'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18435esac
18436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18438 ac_status=$?
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018441
18442aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18443}'`
18444# Check for a 64-bit object if we didn't find anything.
18445if 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; }
18446}'`; fi
18447else
18448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018449sed 's/^/| /' conftest.$ac_ext >&5
18450
Reid Spencera773bd52006-08-04 18:18:08 +000018451
John Criswell47fdd832003-07-14 16:52:07 +000018452fi
Reid Spencera773bd52006-08-04 18:18:08 +000018453
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018454rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018455 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18457
18458 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18459
Reid Spencera773bd52006-08-04 18:18:08 +000018460 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 +000018461 else
18462 if test "$host_cpu" = ia64; then
18463 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18464 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018465 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 +000018466 else
18467 # Determine the default libpath from the value encoded in an empty executable.
18468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018469/* confdefs.h. */
18470_ACEOF
18471cat confdefs.h >>conftest.$ac_ext
18472cat >>conftest.$ac_ext <<_ACEOF
18473/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018474
John Criswell47fdd832003-07-14 16:52:07 +000018475int
18476main ()
18477{
18478
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018484if { (ac_try="$ac_link"
18485case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18488esac
18489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018492 grep -v '^ *+' conftest.er1 >conftest.err
18493 rm -f conftest.er1
18494 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018496 (exit $ac_status); } &&
18497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18501esac
18502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; } &&
18507 { ac_try='test -s conftest$ac_exeext'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511esac
18512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18514 ac_status=$?
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018517
18518aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18519}'`
18520# Check for a 64-bit object if we didn't find anything.
18521if 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; }
18522}'`; fi
18523else
18524 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018525sed 's/^/| /' conftest.$ac_ext >&5
18526
Reid Spencera773bd52006-08-04 18:18:08 +000018527
John Criswell47fdd832003-07-14 16:52:07 +000018528fi
Reid Spencera773bd52006-08-04 18:18:08 +000018529
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018530rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018531 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18533
18534 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18535 # Warning - without using the other run time loading flags,
18536 # -berok will link without error, but may produce a broken library.
18537 no_undefined_flag_CXX=' ${wl}-bernotok'
18538 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018539 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018540 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018541 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018542 # This is similar to how AIX traditionally builds its shared libraries.
18543 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 +000018544 fi
18545 fi
18546 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018547
18548 beos*)
18549 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18550 allow_undefined_flag_CXX=unsupported
18551 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18552 # support --undefined. This deserves some investigation. FIXME
18553 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18554 else
18555 ld_shlibs_CXX=no
18556 fi
18557 ;;
18558
John Criswell47fdd832003-07-14 16:52:07 +000018559 chorus*)
18560 case $cc_basename in
18561 *)
18562 # FIXME: insert proper C++ library support
18563 ld_shlibs_CXX=no
18564 ;;
18565 esac
18566 ;;
18567
18568 cygwin* | mingw* | pw32*)
18569 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18570 # as there is no search path for DLLs.
18571 hardcode_libdir_flag_spec_CXX='-L$libdir'
18572 allow_undefined_flag_CXX=unsupported
18573 always_export_symbols_CXX=no
18574 enable_shared_with_static_runtimes_CXX=yes
18575
18576 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018577 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 +000018578 # If the export-symbols file already is a .def file (1st line
18579 # is EXPORTS), use it as is; otherwise, prepend...
18580 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18581 cp $export_symbols $output_objdir/$soname.def;
18582 else
18583 echo EXPORTS > $output_objdir/$soname.def;
18584 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018585 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018586 $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 +000018587 else
18588 ld_shlibs_CXX=no
18589 fi
18590 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018591 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018592 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018593 rhapsody* | darwin1.[012])
18594 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18595 ;;
18596 *) # Darwin 1.3 on
18597 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18598 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18599 else
18600 case ${MACOSX_DEPLOYMENT_TARGET} in
18601 10.[012])
18602 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18603 ;;
18604 10.*)
18605 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18606 ;;
18607 esac
18608 fi
18609 ;;
18610 esac
18611 archive_cmds_need_lc_CXX=no
18612 hardcode_direct_CXX=no
18613 hardcode_automatic_CXX=yes
18614 hardcode_shlibpath_var_CXX=unsupported
18615 whole_archive_flag_spec_CXX=''
18616 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018617
Reid Spencer2706f8c2004-09-19 23:53:36 +000018618 if test "$GXX" = yes ; then
18619 lt_int_apple_cc_single_mod=no
18620 output_verbose_link_cmd='echo'
18621 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18622 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018623 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018624 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018625 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 +000018626 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018627 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 +000018628 fi
18629 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018630 # 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 +000018631 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018632 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 +000018633 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018634 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 +000018635 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018636 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 +000018637 else
Reid Spencera773bd52006-08-04 18:18:08 +000018638 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018639 xlc*)
18640 output_verbose_link_cmd='echo'
18641 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'
18642 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018643 # 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 +000018644 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}'
18645 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 +000018646 ;;
18647 *)
18648 ld_shlibs_CXX=no
18649 ;;
18650 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018651 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018652 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018653
18654 dgux*)
18655 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018656 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018660 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018661 # Green Hills C++ Compiler
18662 # FIXME: insert proper C++ library support
18663 ld_shlibs_CXX=no
18664 ;;
18665 *)
18666 # FIXME: insert proper C++ library support
18667 ld_shlibs_CXX=no
18668 ;;
18669 esac
18670 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018671 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018672 # C++ shared libraries reported to be fairly broken before switch to ELF
18673 ld_shlibs_CXX=no
18674 ;;
18675 freebsd-elf*)
18676 archive_cmds_need_lc_CXX=no
18677 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018678 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018679 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18680 # conventions
18681 ld_shlibs_CXX=yes
18682 ;;
18683 gnu*)
18684 ;;
18685 hpux9*)
18686 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18687 hardcode_libdir_separator_CXX=:
18688 export_dynamic_flag_spec_CXX='${wl}-E'
18689 hardcode_direct_CXX=yes
18690 hardcode_minus_L_CXX=yes # Not in the search PATH,
18691 # but as the default
18692 # location of the library.
18693
18694 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018695 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18698 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018699 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018700 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 +000018701 # Commands to make compiler produce verbose output that lists
18702 # what "hidden" libraries, object files and flags are used when
18703 # linking a shared library.
18704 #
18705 # There doesn't appear to be a way to prevent this compiler from
18706 # explicitly linking system object files so we need to strip them
18707 # from the output so that they don't get included in the library
18708 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018709 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 +000018710 ;;
18711 *)
18712 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018713 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 +000018714 else
18715 # FIXME: insert proper C++ library support
18716 ld_shlibs_CXX=no
18717 fi
18718 ;;
18719 esac
18720 ;;
18721 hpux10*|hpux11*)
18722 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018723 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18724 hardcode_libdir_separator_CXX=:
18725
18726 case $host_cpu in
18727 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018728 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018729 ;;
18730 *)
John Criswell47fdd832003-07-14 16:52:07 +000018731 export_dynamic_flag_spec_CXX='${wl}-E'
18732 ;;
18733 esac
18734 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018735 case $host_cpu in
18736 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018737 hardcode_direct_CXX=no
18738 hardcode_shlibpath_var_CXX=no
18739 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018740 *)
18741 hardcode_direct_CXX=yes
18742 hardcode_minus_L_CXX=yes # Not in the search PATH,
18743 # but as the default
18744 # location of the library.
18745 ;;
18746 esac
18747
18748 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018749 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018750 # FIXME: insert proper C++ library support
18751 ld_shlibs_CXX=no
18752 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018753 aCC*)
18754 case $host_cpu in
18755 hppa*64*)
18756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757 ;;
18758 ia64*)
18759 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 +000018760 ;;
18761 *)
18762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763 ;;
18764 esac
18765 # Commands to make compiler produce verbose output that lists
18766 # what "hidden" libraries, object files and flags are used when
18767 # linking a shared library.
18768 #
18769 # There doesn't appear to be a way to prevent this compiler from
18770 # explicitly linking system object files so we need to strip them
18771 # from the output so that they don't get included in the library
18772 # dependencies.
18773 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'
18774 ;;
18775 *)
18776 if test "$GXX" = yes; then
18777 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018778 case $host_cpu in
18779 hppa*64*)
18780 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18781 ;;
18782 ia64*)
18783 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 +000018784 ;;
18785 *)
18786 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'
18787 ;;
18788 esac
18789 fi
18790 else
18791 # FIXME: insert proper C++ library support
18792 ld_shlibs_CXX=no
18793 fi
18794 ;;
18795 esac
18796 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018797 interix3*)
18798 hardcode_direct_CXX=no
18799 hardcode_shlibpath_var_CXX=no
18800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18801 export_dynamic_flag_spec_CXX='${wl}-E'
18802 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18803 # Instead, shared libraries are loaded at an image base (0x10000000 by
18804 # default) and relocated if they conflict, which is a slow very memory
18805 # consuming and fragmenting process. To avoid this, we pick a random,
18806 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18807 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18808 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'
18809 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'
18810 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018811 irix5* | irix6*)
18812 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018813 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018814 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018815 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 +000018816
18817 # Archives containing C++ object files must be created using
18818 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18819 # necessary to make sure instantiated templates are included
18820 # in the archive.
18821 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18822 ;;
18823 *)
18824 if test "$GXX" = yes; then
18825 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018826 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 +000018827 else
18828 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'
18829 fi
18830 fi
18831 link_all_deplibs_CXX=yes
18832 ;;
18833 esac
18834 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18835 hardcode_libdir_separator_CXX=:
18836 ;;
18837 linux*)
18838 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018839 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018840 # Kuck and Associates, Inc. (KAI) C++ Compiler
18841
18842 # KCC will only create a shared library if the output file
18843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18844 # to its proper name (with version) after linking.
18845 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'
18846 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'
18847 # Commands to make compiler produce verbose output that lists
18848 # what "hidden" libraries, object files and flags are used when
18849 # linking a shared library.
18850 #
18851 # There doesn't appear to be a way to prevent this compiler from
18852 # explicitly linking system object files so we need to strip them
18853 # from the output so that they don't get included in the library
18854 # dependencies.
18855 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'
18856
18857 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18858 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18859
18860 # Archives containing C++ object files must be created using
18861 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18862 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18863 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018864 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018865 # Intel C++
18866 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018867 # version 8.0 and above of icpc choke on multiply defined symbols
18868 # if we add $predep_objects and $postdep_objects, however 7.1 and
18869 # earlier do not add the objects themselves.
18870 case `$CC -V 2>&1` in
18871 *"Version 7."*)
18872 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18873 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'
18874 ;;
18875 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018876 tmp_idyn=
18877 case $host_cpu in
18878 ia64*) tmp_idyn=' -i_dynamic';;
18879 esac
18880 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18881 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 +000018882 ;;
18883 esac
John Criswell47fdd832003-07-14 16:52:07 +000018884 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18887 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18888 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018889 pgCC*)
18890 # Portland Group C++ compiler
18891 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18892 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'
18893
18894 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18895 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18896 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'
18897 ;;
18898 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018899 # Compaq C++
18900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18901 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'
18902
18903 runpath_var=LD_RUN_PATH
18904 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18905 hardcode_libdir_separator_CXX=:
18906
18907 # Commands to make compiler produce verbose output that lists
18908 # what "hidden" libraries, object files and flags are used when
18909 # linking a shared library.
18910 #
18911 # There doesn't appear to be a way to prevent this compiler from
18912 # explicitly linking system object files so we need to strip them
18913 # from the output so that they don't get included in the library
18914 # dependencies.
18915 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'
18916 ;;
18917 esac
18918 ;;
18919 lynxos*)
18920 # FIXME: insert proper C++ library support
18921 ld_shlibs_CXX=no
18922 ;;
18923 m88k*)
18924 # FIXME: insert proper C++ library support
18925 ld_shlibs_CXX=no
18926 ;;
18927 mvs*)
18928 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018929 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018930 # FIXME: insert proper C++ library support
18931 ld_shlibs_CXX=no
18932 ;;
18933 *)
18934 # FIXME: insert proper C++ library support
18935 ld_shlibs_CXX=no
18936 ;;
18937 esac
18938 ;;
18939 netbsd*)
18940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18941 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18942 wlarc=
18943 hardcode_libdir_flag_spec_CXX='-R$libdir'
18944 hardcode_direct_CXX=yes
18945 hardcode_shlibpath_var_CXX=no
18946 fi
18947 # Workaround some broken pre-1.5 toolchains
18948 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18949 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018950 openbsd2*)
18951 # C++ shared libraries are fairly broken
18952 ld_shlibs_CXX=no
18953 ;;
18954 openbsd*)
18955 hardcode_direct_CXX=yes
18956 hardcode_shlibpath_var_CXX=no
18957 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18958 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18959 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18960 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18961 export_dynamic_flag_spec_CXX='${wl}-E'
18962 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18963 fi
18964 output_verbose_link_cmd='echo'
18965 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018966 osf3*)
18967 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018968 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018969 # Kuck and Associates, Inc. (KAI) C++ Compiler
18970
18971 # KCC will only create a shared library if the output file
18972 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18973 # to its proper name (with version) after linking.
18974 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'
18975
18976 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18977 hardcode_libdir_separator_CXX=:
18978
18979 # Archives containing C++ object files must be created using
18980 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18981 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18982
18983 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018984 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018985 # Rational C++ 2.4.1
18986 # FIXME: insert proper C++ library support
18987 ld_shlibs_CXX=no
18988 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018989 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018990 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018991 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 +000018992
18993 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18994 hardcode_libdir_separator_CXX=:
18995
18996 # Commands to make compiler produce verbose output that lists
18997 # what "hidden" libraries, object files and flags are used when
18998 # linking a shared library.
18999 #
19000 # There doesn't appear to be a way to prevent this compiler from
19001 # explicitly linking system object files so we need to strip them
19002 # from the output so that they don't get included in the library
19003 # dependencies.
19004 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'
19005 ;;
19006 *)
19007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019009 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 +000019010
19011 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19013
19014 # Commands to make compiler produce verbose output that lists
19015 # what "hidden" libraries, object files and flags are used when
19016 # linking a shared library.
19017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19018
19019 else
19020 # FIXME: insert proper C++ library support
19021 ld_shlibs_CXX=no
19022 fi
19023 ;;
19024 esac
19025 ;;
19026 osf4* | osf5*)
19027 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019028 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019029 # Kuck and Associates, Inc. (KAI) C++ Compiler
19030
19031 # KCC will only create a shared library if the output file
19032 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19033 # to its proper name (with version) after linking.
19034 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'
19035
19036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19037 hardcode_libdir_separator_CXX=:
19038
19039 # Archives containing C++ object files must be created using
19040 # the KAI C++ compiler.
19041 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19042 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019043 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019044 # Rational C++ 2.4.1
19045 # FIXME: insert proper C++ library support
19046 ld_shlibs_CXX=no
19047 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019048 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019049 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019050 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 +000019051 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19052 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019053 $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 +000019054 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019055
19056 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19057 hardcode_libdir_separator_CXX=:
19058
19059 # Commands to make compiler produce verbose output that lists
19060 # what "hidden" libraries, object files and flags are used when
19061 # linking a shared library.
19062 #
19063 # There doesn't appear to be a way to prevent this compiler from
19064 # explicitly linking system object files so we need to strip them
19065 # from the output so that they don't get included in the library
19066 # dependencies.
19067 output_verbose_link_cmd='templist=`$CC -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'
19068 ;;
19069 *)
19070 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19071 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019072 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 +000019073
19074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19075 hardcode_libdir_separator_CXX=:
19076
19077 # Commands to make compiler produce verbose output that lists
19078 # what "hidden" libraries, object files and flags are used when
19079 # linking a shared library.
19080 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19081
19082 else
19083 # FIXME: insert proper C++ library support
19084 ld_shlibs_CXX=no
19085 fi
19086 ;;
19087 esac
19088 ;;
19089 psos*)
19090 # FIXME: insert proper C++ library support
19091 ld_shlibs_CXX=no
19092 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019093 sunos4*)
19094 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019095 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019096 # Sun C++ 4.x
19097 # FIXME: insert proper C++ library support
19098 ld_shlibs_CXX=no
19099 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019100 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019101 # Lucid
19102 # FIXME: insert proper C++ library support
19103 ld_shlibs_CXX=no
19104 ;;
19105 *)
19106 # FIXME: insert proper C++ library support
19107 ld_shlibs_CXX=no
19108 ;;
19109 esac
19110 ;;
19111 solaris*)
19112 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019113 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019114 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019115 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019116 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019117 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 +000019118 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 +000019119 $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 +000019120
19121 hardcode_libdir_flag_spec_CXX='-R$libdir'
19122 hardcode_shlibpath_var_CXX=no
19123 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019124 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019125 *)
19126 # The C++ compiler is used as linker so we must use $wl
19127 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019128 # linker. We must also pass each convience library through
19129 # to the system linker between allextract/defaultextract.
19130 # The C++ compiler will combine linker options so we
19131 # cannot just pass the convience library names through
19132 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019133 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019134 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 +000019135 ;;
19136 esac
19137 link_all_deplibs_CXX=yes
19138
Reid Spencera773bd52006-08-04 18:18:08 +000019139 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019140
19141 # Archives containing C++ object files must be created using
19142 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19143 # necessary to make sure instantiated templates are included
19144 # in the archive.
19145 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19146 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019147 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019148 # Green Hills C++ Compiler
19149 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19150
19151 # The C++ compiler must be used to create the archive.
19152 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19153 ;;
19154 *)
19155 # GNU C++ compiler with Solaris linker
19156 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19157 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19158 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019159 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 +000019160 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19161 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19162
John Criswell47fdd832003-07-14 16:52:07 +000019163 # Commands to make compiler produce verbose output that lists
19164 # what "hidden" libraries, object files and flags are used when
19165 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019166 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019167 else
19168 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19169 # platform.
19170 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 +000019171 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19172 $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 +000019173
19174 # Commands to make compiler produce verbose output that lists
19175 # what "hidden" libraries, object files and flags are used when
19176 # linking a shared library.
19177 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19178 fi
19179
19180 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19181 fi
19182 ;;
19183 esac
19184 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019185 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19186 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019187 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019188 hardcode_shlibpath_var_CXX=no
19189 runpath_var='LD_RUN_PATH'
19190
19191 case $cc_basename in
19192 CC*)
19193 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19194 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19195 ;;
19196 *)
19197 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19198 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19199 ;;
19200 esac
19201 ;;
19202 sysv5* | sco3.2v5* | sco5v6*)
19203 # Note: We can NOT use -z defs as we might desire, because we do not
19204 # link with -lc, and that would cause any symbols used from libc to
19205 # always be unresolved, which means just about no library would
19206 # ever link correctly. If we're not using GNU ld we use -z text
19207 # though, which does catch some bad symbols but isn't as heavy-handed
19208 # as -z defs.
19209 # For security reasons, it is highly recommended that you always
19210 # use absolute paths for naming shared libraries, and exclude the
19211 # DT_RUNPATH tag from executables and libraries. But doing so
19212 # requires that you compile everything twice, which is a pain.
19213 # So that behaviour is only enabled if SCOABSPATH is set to a
19214 # non-empty value in the environment. Most likely only useful for
19215 # creating official distributions of packages.
19216 # This is a hack until libtool officially supports absolute path
19217 # names for shared libraries.
19218 no_undefined_flag_CXX='${wl}-z,text'
19219 allow_undefined_flag_CXX='${wl}-z,nodefs'
19220 archive_cmds_need_lc_CXX=no
19221 hardcode_shlibpath_var_CXX=no
19222 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19223 hardcode_libdir_separator_CXX=':'
19224 link_all_deplibs_CXX=yes
19225 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19226 runpath_var='LD_RUN_PATH'
19227
19228 case $cc_basename in
19229 CC*)
19230 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19231 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19232 ;;
19233 *)
19234 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19236 ;;
19237 esac
John Criswell47fdd832003-07-14 16:52:07 +000019238 ;;
19239 tandem*)
19240 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019241 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019242 # NonStop-UX NCC 3.20
19243 # FIXME: insert proper C++ library support
19244 ld_shlibs_CXX=no
19245 ;;
19246 *)
19247 # FIXME: insert proper C++ library support
19248 ld_shlibs_CXX=no
19249 ;;
19250 esac
19251 ;;
19252 vxworks*)
19253 # FIXME: insert proper C++ library support
19254 ld_shlibs_CXX=no
19255 ;;
19256 *)
19257 # FIXME: insert proper C++ library support
19258 ld_shlibs_CXX=no
19259 ;;
19260esac
Reid Spencera773bd52006-08-04 18:18:08 +000019261{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19262echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019263test "$ld_shlibs_CXX" = no && can_build_shared=no
19264
19265GCC_CXX="$GXX"
19266LD_CXX="$LD"
19267
John Criswell47fdd832003-07-14 16:52:07 +000019268
19269cat > conftest.$ac_ext <<EOF
19270class Foo
19271{
19272public:
19273 Foo (void) { a = 0; }
19274private:
19275 int a;
19276};
19277EOF
19278
19279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19280 (eval $ac_compile) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; then
19284 # Parse the compiler output and extract the necessary
19285 # objects, libraries and library flags.
19286
19287 # Sentinel used to keep track of whether or not we are before
19288 # the conftest object file.
19289 pre_test_object_deps_done=no
19290
19291 # The `*' in the case matches for architectures that use `case' in
19292 # $output_verbose_cmd can trigger glob expansion during the loop
19293 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019294 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019295
19296 for p in `eval $output_verbose_link_cmd`; do
19297 case $p in
19298
19299 -L* | -R* | -l*)
19300 # Some compilers place space between "-{L,R}" and the path.
19301 # Remove the space.
19302 if test $p = "-L" \
19303 || test $p = "-R"; then
19304 prev=$p
19305 continue
19306 else
19307 prev=
19308 fi
19309
19310 if test "$pre_test_object_deps_done" = no; then
19311 case $p in
19312 -L* | -R*)
19313 # Internal compiler library paths should come after those
19314 # provided the user. The postdeps already come after the
19315 # user supplied libs so there is no need to process them.
19316 if test -z "$compiler_lib_search_path_CXX"; then
19317 compiler_lib_search_path_CXX="${prev}${p}"
19318 else
19319 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19320 fi
19321 ;;
19322 # The "-l" case would never come before the object being
19323 # linked, so don't bother handling this case.
19324 esac
19325 else
19326 if test -z "$postdeps_CXX"; then
19327 postdeps_CXX="${prev}${p}"
19328 else
19329 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19330 fi
19331 fi
19332 ;;
19333
19334 *.$objext)
19335 # This assumes that the test object file only shows up
19336 # once in the compiler output.
19337 if test "$p" = "conftest.$objext"; then
19338 pre_test_object_deps_done=yes
19339 continue
19340 fi
19341
19342 if test "$pre_test_object_deps_done" = no; then
19343 if test -z "$predep_objects_CXX"; then
19344 predep_objects_CXX="$p"
19345 else
19346 predep_objects_CXX="$predep_objects_CXX $p"
19347 fi
19348 else
19349 if test -z "$postdep_objects_CXX"; then
19350 postdep_objects_CXX="$p"
19351 else
19352 postdep_objects_CXX="$postdep_objects_CXX $p"
19353 fi
19354 fi
19355 ;;
19356
19357 *) ;; # Ignore the rest.
19358
19359 esac
19360 done
19361
19362 # Clean up.
19363 rm -f a.out a.exe
19364else
19365 echo "libtool.m4: error: problem compiling CXX test program"
19366fi
19367
19368$rm -f confest.$objext
19369
Reid Spencera773bd52006-08-04 18:18:08 +000019370# PORTME: override above test on systems where it is broken
19371case $host_os in
19372interix3*)
19373 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19374 # hack all around it, let's just trust "g++" to DTRT.
19375 predep_objects_CXX=
19376 postdep_objects_CXX=
19377 postdeps_CXX=
19378 ;;
19379
19380solaris*)
19381 case $cc_basename in
19382 CC*)
19383 # Adding this requires a known-good setup of shared libraries for
19384 # Sun compiler versions before 5.6, else PIC objects from an old
19385 # archive will be linked into the output, leading to subtle bugs.
19386 postdeps_CXX='-lCstd -lCrun'
19387 ;;
19388 esac
19389 ;;
19390esac
19391
19392
John Criswell47fdd832003-07-14 16:52:07 +000019393case " $postdeps_CXX " in
19394*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19395esac
19396
19397lt_prog_compiler_wl_CXX=
19398lt_prog_compiler_pic_CXX=
19399lt_prog_compiler_static_CXX=
19400
Reid Spencera773bd52006-08-04 18:18:08 +000019401{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19402echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019403
19404 # C++ specific cases for pic, static, wl, etc.
19405 if test "$GXX" = yes; then
19406 lt_prog_compiler_wl_CXX='-Wl,'
19407 lt_prog_compiler_static_CXX='-static'
19408
19409 case $host_os in
19410 aix*)
19411 # All AIX code is PIC.
19412 if test "$host_cpu" = ia64; then
19413 # AIX 5 now supports IA64 processor
19414 lt_prog_compiler_static_CXX='-Bstatic'
19415 fi
19416 ;;
19417 amigaos*)
19418 # FIXME: we need at least 68020 code to build shared libraries, but
19419 # adding the `-m68020' flag to GCC prevents building anything better,
19420 # like `-m68040'.
19421 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19422 ;;
19423 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19424 # PIC is the default for these OSes.
19425 ;;
19426 mingw* | os2* | pw32*)
19427 # This hack is so that the source file can tell whether it is being
19428 # built for inclusion in a dll (and should export symbols for example).
19429 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19430 ;;
19431 darwin* | rhapsody*)
19432 # PIC is the default on this platform
19433 # Common symbols not allowed in MH_DYLIB files
19434 lt_prog_compiler_pic_CXX='-fno-common'
19435 ;;
19436 *djgpp*)
19437 # DJGPP does not support shared libraries at all
19438 lt_prog_compiler_pic_CXX=
19439 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019440 interix3*)
19441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19442 # Instead, we relocate shared libraries at runtime.
19443 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019444 sysv4*MP*)
19445 if test -d /usr/nec; then
19446 lt_prog_compiler_pic_CXX=-Kconform_pic
19447 fi
19448 ;;
19449 hpux*)
19450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19451 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019452 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019453 hppa*64*|ia64*)
19454 ;;
19455 *)
19456 lt_prog_compiler_pic_CXX='-fPIC'
19457 ;;
19458 esac
19459 ;;
19460 *)
19461 lt_prog_compiler_pic_CXX='-fPIC'
19462 ;;
19463 esac
19464 else
19465 case $host_os in
19466 aix4* | aix5*)
19467 # All AIX code is PIC.
19468 if test "$host_cpu" = ia64; then
19469 # AIX 5 now supports IA64 processor
19470 lt_prog_compiler_static_CXX='-Bstatic'
19471 else
19472 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19473 fi
19474 ;;
19475 chorus*)
19476 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019477 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019478 # Green Hills C++ Compiler
19479 # _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"
19480 ;;
19481 esac
19482 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019483 darwin*)
19484 # PIC is the default on this platform
19485 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019486 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019487 xlc*)
19488 lt_prog_compiler_pic_CXX='-qnocommon'
19489 lt_prog_compiler_wl_CXX='-Wl,'
19490 ;;
19491 esac
19492 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019493 dgux*)
19494 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019495 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019496 lt_prog_compiler_pic_CXX='-KPIC'
19497 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019498 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019499 # Green Hills C++ Compiler
19500 lt_prog_compiler_pic_CXX='-pic'
19501 ;;
19502 *)
19503 ;;
19504 esac
19505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019506 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019507 # FreeBSD uses GNU C++
19508 ;;
19509 hpux9* | hpux10* | hpux11*)
19510 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019511 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019512 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019513 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019514 if test "$host_cpu" != ia64; then
19515 lt_prog_compiler_pic_CXX='+Z'
19516 fi
19517 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019518 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019519 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019520 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19521 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019522 hppa*64*|ia64*)
19523 # +Z the default
19524 ;;
19525 *)
19526 lt_prog_compiler_pic_CXX='+Z'
19527 ;;
19528 esac
19529 ;;
19530 *)
19531 ;;
19532 esac
19533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019534 interix*)
19535 # This is c89, which is MS Visual C++ (no shared libs)
19536 # Anyone wants to do a port?
19537 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019538 irix5* | irix6* | nonstopux*)
19539 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019540 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019541 lt_prog_compiler_wl_CXX='-Wl,'
19542 lt_prog_compiler_static_CXX='-non_shared'
19543 # CC pic flag -KPIC is the default.
19544 ;;
19545 *)
19546 ;;
19547 esac
19548 ;;
19549 linux*)
19550 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019551 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019552 # KAI C++ Compiler
19553 lt_prog_compiler_wl_CXX='--backend -Wl,'
19554 lt_prog_compiler_pic_CXX='-fPIC'
19555 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019556 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019557 # Intel C++
19558 lt_prog_compiler_wl_CXX='-Wl,'
19559 lt_prog_compiler_pic_CXX='-KPIC'
19560 lt_prog_compiler_static_CXX='-static'
19561 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019562 pgCC*)
19563 # Portland Group C++ compiler.
19564 lt_prog_compiler_wl_CXX='-Wl,'
19565 lt_prog_compiler_pic_CXX='-fpic'
19566 lt_prog_compiler_static_CXX='-Bstatic'
19567 ;;
19568 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019569 # Compaq C++
19570 # Make sure the PIC flag is empty. It appears that all Alpha
19571 # Linux and Compaq Tru64 Unix objects are PIC.
19572 lt_prog_compiler_pic_CXX=
19573 lt_prog_compiler_static_CXX='-non_shared'
19574 ;;
19575 *)
19576 ;;
19577 esac
19578 ;;
19579 lynxos*)
19580 ;;
19581 m88k*)
19582 ;;
19583 mvs*)
19584 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019585 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019586 lt_prog_compiler_pic_CXX='-W c,exportall'
19587 ;;
19588 *)
19589 ;;
19590 esac
19591 ;;
19592 netbsd*)
19593 ;;
19594 osf3* | osf4* | osf5*)
19595 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019596 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019597 lt_prog_compiler_wl_CXX='--backend -Wl,'
19598 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019599 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019600 # Rational C++ 2.4.1
19601 lt_prog_compiler_pic_CXX='-pic'
19602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019603 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019604 # Digital/Compaq C++
19605 lt_prog_compiler_wl_CXX='-Wl,'
19606 # Make sure the PIC flag is empty. It appears that all Alpha
19607 # Linux and Compaq Tru64 Unix objects are PIC.
19608 lt_prog_compiler_pic_CXX=
19609 lt_prog_compiler_static_CXX='-non_shared'
19610 ;;
19611 *)
19612 ;;
19613 esac
19614 ;;
19615 psos*)
19616 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019617 solaris*)
19618 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019619 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019620 # Sun C++ 4.2, 5.x and Centerline C++
19621 lt_prog_compiler_pic_CXX='-KPIC'
19622 lt_prog_compiler_static_CXX='-Bstatic'
19623 lt_prog_compiler_wl_CXX='-Qoption ld '
19624 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019625 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019626 # Green Hills C++ Compiler
19627 lt_prog_compiler_pic_CXX='-PIC'
19628 ;;
19629 *)
19630 ;;
19631 esac
19632 ;;
19633 sunos4*)
19634 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019635 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019636 # Sun C++ 4.x
19637 lt_prog_compiler_pic_CXX='-pic'
19638 lt_prog_compiler_static_CXX='-Bstatic'
19639 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019640 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019641 # Lucid
19642 lt_prog_compiler_pic_CXX='-pic'
19643 ;;
19644 *)
19645 ;;
19646 esac
19647 ;;
19648 tandem*)
19649 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019650 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019651 # NonStop-UX NCC 3.20
19652 lt_prog_compiler_pic_CXX='-KPIC'
19653 ;;
19654 *)
19655 ;;
19656 esac
19657 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019658 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19659 case $cc_basename in
19660 CC*)
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_pic_CXX='-KPIC'
19663 lt_prog_compiler_static_CXX='-Bstatic'
19664 ;;
19665 esac
John Criswell47fdd832003-07-14 16:52:07 +000019666 ;;
19667 vxworks*)
19668 ;;
19669 *)
19670 lt_prog_compiler_can_build_shared_CXX=no
19671 ;;
19672 esac
19673 fi
19674
Reid Spencera773bd52006-08-04 18:18:08 +000019675{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19676echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019677
19678#
19679# Check to make sure the PIC flag actually works.
19680#
19681if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019682
Reid Spencera773bd52006-08-04 18:18:08 +000019683{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19684echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019685if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687else
19688 lt_prog_compiler_pic_works_CXX=no
19689 ac_outfile=conftest.$ac_objext
19690 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19691 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19692 # Insert the option either (1) after the last *FLAGS variable, or
19693 # (2) before a word containing "conftest.", or (3) at the end.
19694 # Note that $ac_compile itself does not contain backslashes and begins
19695 # with a dollar sign (not a hyphen), so the echo should work correctly.
19696 # The option is referenced via a variable to avoid confusing sed.
19697 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19700 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000019701 (eval echo "\"\$as_me:19701: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019702 (eval "$lt_compile" 2>conftest.err)
19703 ac_status=$?
19704 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000019705 echo "$as_me:19705: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019706 if (exit $ac_status) && test -s "$ac_outfile"; then
19707 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019708 # So say no if there are warnings other than the usual output.
19709 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19710 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19711 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019712 lt_prog_compiler_pic_works_CXX=yes
19713 fi
19714 fi
19715 $rm conftest*
19716
19717fi
Reid Spencera773bd52006-08-04 18:18:08 +000019718{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19719echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019720
19721if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19722 case $lt_prog_compiler_pic_CXX in
19723 "" | " "*) ;;
19724 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19725 esac
19726else
19727 lt_prog_compiler_pic_CXX=
19728 lt_prog_compiler_can_build_shared_CXX=no
19729fi
19730
19731fi
Reid Spencera773bd52006-08-04 18:18:08 +000019732case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019733 # For platforms which do not support PIC, -DPIC is meaningless:
19734 *djgpp*)
19735 lt_prog_compiler_pic_CXX=
19736 ;;
19737 *)
19738 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19739 ;;
19740esac
19741
Reid Spencera773bd52006-08-04 18:18:08 +000019742#
19743# Check to make sure the static flag actually works.
19744#
19745wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19746{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19747echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19748if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19750else
19751 lt_prog_compiler_static_works_CXX=no
19752 save_LDFLAGS="$LDFLAGS"
19753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19754 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19756 # The linker can only warn and ignore the option if not recognized
19757 # So say no if there are warnings
19758 if test -s conftest.err; then
19759 # Append any errors to the config.log.
19760 cat conftest.err 1>&5
19761 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19763 if diff conftest.exp conftest.er2 >/dev/null; then
19764 lt_prog_compiler_static_works_CXX=yes
19765 fi
19766 else
19767 lt_prog_compiler_static_works_CXX=yes
19768 fi
19769 fi
19770 $rm conftest*
19771 LDFLAGS="$save_LDFLAGS"
19772
19773fi
19774{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19775echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19776
19777if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19778 :
19779else
19780 lt_prog_compiler_static_CXX=
19781fi
19782
19783
19784{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019786if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788else
19789 lt_cv_prog_compiler_c_o_CXX=no
19790 $rm -r conftest 2>/dev/null
19791 mkdir conftest
19792 cd conftest
19793 mkdir out
19794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19795
John Criswell47fdd832003-07-14 16:52:07 +000019796 lt_compiler_flag="-o out/conftest2.$ac_objext"
19797 # Insert the option either (1) after the last *FLAGS variable, or
19798 # (2) before a word containing "conftest.", or (3) at the end.
19799 # Note that $ac_compile itself does not contain backslashes and begins
19800 # with a dollar sign (not a hyphen), so the echo should work correctly.
19801 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19804 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000019805 (eval echo "\"\$as_me:19805: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019806 (eval "$lt_compile" 2>out/conftest.err)
19807 ac_status=$?
19808 cat out/conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000019809 echo "$as_me:19809: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019810 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19811 then
19812 # The compiler can only warn and ignore the option if not recognized
19813 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019814 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019817 lt_cv_prog_compiler_c_o_CXX=yes
19818 fi
19819 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019820 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019821 $rm conftest*
19822 # SGI C++ compiler will create directory out/ii_files/ for
19823 # template instantiation
19824 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19825 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019826 cd ..
19827 rmdir conftest
19828 $rm conftest*
19829
19830fi
Reid Spencera773bd52006-08-04 18:18:08 +000019831{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19832echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019833
19834
19835hard_links="nottested"
19836if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19837 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019838 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19839echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019840 hard_links=yes
19841 $rm conftest*
19842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19843 touch conftest.a
19844 ln conftest.a conftest.b 2>&5 || hard_links=no
19845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019846 { echo "$as_me:$LINENO: result: $hard_links" >&5
19847echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019848 if test "$hard_links" = no; then
19849 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19850echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19851 need_locks=warn
19852 fi
19853else
19854 need_locks=no
19855fi
19856
Reid Spencera773bd52006-08-04 18:18:08 +000019857{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19858echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019859
19860 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19861 case $host_os in
19862 aix4* | aix5*)
19863 # If we're using GNU nm, then we don't want the "-C" option.
19864 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19865 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19866 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'
19867 else
19868 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'
19869 fi
19870 ;;
19871 pw32*)
19872 export_symbols_cmds_CXX="$ltdll_cmds"
19873 ;;
19874 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019875 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 +000019876 ;;
19877 *)
19878 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19879 ;;
19880 esac
19881
Reid Spencera773bd52006-08-04 18:18:08 +000019882{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19883echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019884test "$ld_shlibs_CXX" = no && can_build_shared=no
19885
John Criswell47fdd832003-07-14 16:52:07 +000019886#
19887# Do we need to explicitly link libc?
19888#
19889case "x$archive_cmds_need_lc_CXX" in
19890x|xyes)
19891 # Assume -lc should be added
19892 archive_cmds_need_lc_CXX=yes
19893
19894 if test "$enable_shared" = yes && test "$GCC" = yes; then
19895 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019896 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019897 # FIXME: we may have to deal with multi-command sequences.
19898 ;;
19899 '$CC '*)
19900 # Test whether the compiler implicitly links with -lc since on some
19901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19902 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019903 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19904echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019905 $rm conftest*
19906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19907
19908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19909 (eval $ac_compile) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } 2>conftest.err; then
19913 soname=conftest
19914 lib=conftest
19915 libobjs=conftest.$ac_objext
19916 deplibs=
19917 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019918 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019919 compiler_flags=-v
19920 linker_flags=-v
19921 verstring=
19922 output_objdir=.
19923 libname=conftest
19924 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19925 allow_undefined_flag_CXX=
19926 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19927 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }
19931 then
19932 archive_cmds_need_lc_CXX=no
19933 else
19934 archive_cmds_need_lc_CXX=yes
19935 fi
19936 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19937 else
19938 cat conftest.err 1>&5
19939 fi
19940 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019941 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19942echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019943 ;;
19944 esac
19945 fi
19946 ;;
19947esac
19948
Reid Spencera773bd52006-08-04 18:18:08 +000019949{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19950echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019951library_names_spec=
19952libname_spec='lib$name'
19953soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019954shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019955postinstall_cmds=
19956postuninstall_cmds=
19957finish_cmds=
19958finish_eval=
19959shlibpath_var=
19960shlibpath_overrides_runpath=unknown
19961version_type=none
19962dynamic_linker="$host_os ld.so"
19963sys_lib_dlsearch_path_spec="/lib /usr/lib"
19964if test "$GCC" = yes; then
19965 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19966 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19967 # if the path contains ";" then we assume it to be the separator
19968 # otherwise default to the standard path separator (i.e. ":") - it is
19969 # assumed that no part of a normal pathname contains ";" but that should
19970 # okay in the real world where ";" in dirpaths is itself problematic.
19971 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19972 else
19973 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19974 fi
19975else
19976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19977fi
19978need_lib_prefix=unknown
19979hardcode_into_libs=no
19980
19981# when you set need_version to no, make sure it does not cause -set_version
19982# flags to be left without arguments
19983need_version=unknown
19984
19985case $host_os in
19986aix3*)
19987 version_type=linux
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19989 shlibpath_var=LIBPATH
19990
19991 # AIX 3 has no versioning support, so we append a major version to the name.
19992 soname_spec='${libname}${release}${shared_ext}$major'
19993 ;;
19994
19995aix4* | aix5*)
19996 version_type=linux
19997 need_lib_prefix=no
19998 need_version=no
19999 hardcode_into_libs=yes
20000 if test "$host_cpu" = ia64; then
20001 # AIX 5 supports IA64
20002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 else
20005 # With GCC up to 2.95.x, collect2 would create an import file
20006 # for dependence libraries. The import file would start with
20007 # the line `#! .'. This would cause the generated library to
20008 # depend on `.', always an invalid library. This was fixed in
20009 # development snapshots of GCC prior to 3.0.
20010 case $host_os in
20011 aix4 | aix4.[01] | aix4.[01].*)
20012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20013 echo ' yes '
20014 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20015 :
20016 else
20017 can_build_shared=no
20018 fi
20019 ;;
20020 esac
20021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20022 # soname into executable. Probably we can add versioning support to
20023 # collect2, so additional links can be useful in future.
20024 if test "$aix_use_runtimelinking" = yes; then
20025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20026 # instead of lib<name>.a to let people know that these are not
20027 # typical AIX shared libraries.
20028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20029 else
20030 # We preserve .a as extension for shared libraries through AIX4.2
20031 # and later when we are not doing run time linking.
20032 library_names_spec='${libname}${release}.a $libname.a'
20033 soname_spec='${libname}${release}${shared_ext}$major'
20034 fi
20035 shlibpath_var=LIBPATH
20036 fi
20037 ;;
20038
20039amigaos*)
20040 library_names_spec='$libname.ixlibrary $libname.a'
20041 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020042 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 +000020043 ;;
20044
20045beos*)
20046 library_names_spec='${libname}${shared_ext}'
20047 dynamic_linker="$host_os ld.so"
20048 shlibpath_var=LIBRARY_PATH
20049 ;;
20050
Reid Spencer2706f8c2004-09-19 23:53:36 +000020051bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020052 version_type=linux
20053 need_version=no
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20055 soname_spec='${libname}${release}${shared_ext}$major'
20056 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20057 shlibpath_var=LD_LIBRARY_PATH
20058 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20059 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20060 # the default ld.so.conf also contains /usr/contrib/lib and
20061 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20062 # libtool to hard-code these into programs
20063 ;;
20064
20065cygwin* | mingw* | pw32*)
20066 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020068 need_version=no
20069 need_lib_prefix=no
20070
20071 case $GCC,$host_os in
20072 yes,cygwin* | yes,mingw* | yes,pw32*)
20073 library_names_spec='$libname.dll.a'
20074 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020075 postinstall_cmds='base_file=`basename \${file}`~
20076 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20077 dldir=$destdir/`dirname \$dlpath`~
20078 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020079 $install_prog $dir/$dlname \$dldir/$dlname~
20080 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20082 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020083 $rm \$dlpath'
20084 shlibpath_overrides_runpath=yes
20085
20086 case $host_os in
20087 cygwin*)
20088 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20089 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 +000020090 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020091 ;;
20092 mingw*)
20093 # MinGW DLLs use traditional 'lib' prefix
20094 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20095 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20096 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20097 # It is most probably a Windows format PATH printed by
20098 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20099 # path with ; separators, and with drive letters. We can handle the
20100 # drive letters (cygwin fileutils understands them), so leave them,
20101 # especially as we might pass files found there to a mingw objdump,
20102 # which wouldn't understand a cygwinified path. Ahh.
20103 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20104 else
20105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20106 fi
20107 ;;
20108 pw32*)
20109 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020110 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 +000020111 ;;
20112 esac
20113 ;;
20114
20115 *)
20116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20117 ;;
20118 esac
20119 dynamic_linker='Win32 ld.exe'
20120 # FIXME: first we should search . and the directory the executable is in
20121 shlibpath_var=PATH
20122 ;;
20123
20124darwin* | rhapsody*)
20125 dynamic_linker="$host_os dyld"
20126 version_type=darwin
20127 need_lib_prefix=no
20128 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020129 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020130 soname_spec='${libname}${release}${major}$shared_ext'
20131 shlibpath_overrides_runpath=yes
20132 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020133 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020134 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020135 if test "$GCC" = yes; then
20136 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"`
20137 else
20138 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020139 fi
20140 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20141 ;;
20142
20143dgux*)
20144 version_type=linux
20145 need_lib_prefix=no
20146 need_version=no
20147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20148 soname_spec='${libname}${release}${shared_ext}$major'
20149 shlibpath_var=LD_LIBRARY_PATH
20150 ;;
20151
20152freebsd1*)
20153 dynamic_linker=no
20154 ;;
20155
Reid Spencer2706f8c2004-09-19 23:53:36 +000020156kfreebsd*-gnu)
20157 version_type=linux
20158 need_lib_prefix=no
20159 need_version=no
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=no
20164 hardcode_into_libs=yes
20165 dynamic_linker='GNU ld.so'
20166 ;;
20167
Reid Spencera773bd52006-08-04 18:18:08 +000020168freebsd* | dragonfly*)
20169 # DragonFly does not have aout. When/if they implement a new
20170 # versioning mechanism, adjust this.
20171 if test -x /usr/bin/objformat; then
20172 objformat=`/usr/bin/objformat`
20173 else
20174 case $host_os in
20175 freebsd[123]*) objformat=aout ;;
20176 *) objformat=elf ;;
20177 esac
20178 fi
John Criswell47fdd832003-07-14 16:52:07 +000020179 version_type=freebsd-$objformat
20180 case $version_type in
20181 freebsd-elf*)
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20183 need_version=no
20184 need_lib_prefix=no
20185 ;;
20186 freebsd-*)
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20188 need_version=yes
20189 ;;
20190 esac
20191 shlibpath_var=LD_LIBRARY_PATH
20192 case $host_os in
20193 freebsd2*)
20194 shlibpath_overrides_runpath=yes
20195 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020196 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020197 shlibpath_overrides_runpath=yes
20198 hardcode_into_libs=yes
20199 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020200 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20201 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020202 shlibpath_overrides_runpath=no
20203 hardcode_into_libs=yes
20204 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020205 freebsd*) # from 4.6 on
20206 shlibpath_overrides_runpath=yes
20207 hardcode_into_libs=yes
20208 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020209 esac
20210 ;;
20211
20212gnu*)
20213 version_type=linux
20214 need_lib_prefix=no
20215 need_version=no
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 shlibpath_var=LD_LIBRARY_PATH
20219 hardcode_into_libs=yes
20220 ;;
20221
20222hpux9* | hpux10* | hpux11*)
20223 # Give a soname corresponding to the major version so that dld.sl refuses to
20224 # link against other versions.
20225 version_type=sunos
20226 need_lib_prefix=no
20227 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020228 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020229 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020231 hardcode_into_libs=yes
20232 dynamic_linker="$host_os dld.so"
20233 shlibpath_var=LD_LIBRARY_PATH
20234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20236 soname_spec='${libname}${release}${shared_ext}$major'
20237 if test "X$HPUX_IA64_MODE" = X32; then
20238 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20239 else
20240 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20241 fi
20242 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20243 ;;
20244 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020246 hardcode_into_libs=yes
20247 dynamic_linker="$host_os dld.sl"
20248 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20254 ;;
20255 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020256 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020257 dynamic_linker="$host_os dld.sl"
20258 shlibpath_var=SHLIB_PATH
20259 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20261 soname_spec='${libname}${release}${shared_ext}$major'
20262 ;;
20263 esac
20264 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20265 postinstall_cmds='chmod 555 $lib'
20266 ;;
20267
Reid Spencera773bd52006-08-04 18:18:08 +000020268interix3*)
20269 version_type=linux
20270 need_lib_prefix=no
20271 need_version=no
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20273 soname_spec='${libname}${release}${shared_ext}$major'
20274 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20275 shlibpath_var=LD_LIBRARY_PATH
20276 shlibpath_overrides_runpath=no
20277 hardcode_into_libs=yes
20278 ;;
20279
John Criswell47fdd832003-07-14 16:52:07 +000020280irix5* | irix6* | nonstopux*)
20281 case $host_os in
20282 nonstopux*) version_type=nonstopux ;;
20283 *)
20284 if test "$lt_cv_prog_gnu_ld" = yes; then
20285 version_type=linux
20286 else
20287 version_type=irix
20288 fi ;;
20289 esac
20290 need_lib_prefix=no
20291 need_version=no
20292 soname_spec='${libname}${release}${shared_ext}$major'
20293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20294 case $host_os in
20295 irix5* | nonstopux*)
20296 libsuff= shlibsuff=
20297 ;;
20298 *)
20299 case $LD in # libtool.m4 will add one of these switches to LD
20300 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20301 libsuff= shlibsuff= libmagic=32-bit;;
20302 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20303 libsuff=32 shlibsuff=N32 libmagic=N32;;
20304 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20305 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20306 *) libsuff= shlibsuff= libmagic=never-match;;
20307 esac
20308 ;;
20309 esac
20310 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20311 shlibpath_overrides_runpath=no
20312 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20313 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20314 hardcode_into_libs=yes
20315 ;;
20316
20317# No shared lib support for Linux oldld, aout, or coff.
20318linux*oldld* | linux*aout* | linux*coff*)
20319 dynamic_linker=no
20320 ;;
20321
20322# This must be Linux ELF.
20323linux*)
20324 version_type=linux
20325 need_lib_prefix=no
20326 need_version=no
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 shlibpath_overrides_runpath=no
20332 # This implies no fast_install, which is unacceptable.
20333 # Some rework will be needed to allow for fast_install
20334 # before this can be enabled.
20335 hardcode_into_libs=yes
20336
Reid Spencer2706f8c2004-09-19 23:53:36 +000020337 # Append ld.so.conf contents to the search path
20338 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020339 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 +000020340 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20341 fi
20342
John Criswell47fdd832003-07-14 16:52:07 +000020343 # We used to test for /lib/ld.so.1 and disable shared libraries on
20344 # powerpc, because MkLinux only supported shared libraries with the
20345 # GNU dynamic linker. Since this was broken with cross compilers,
20346 # most powerpc-linux boxes support dynamic linking these days and
20347 # people can always --disable-shared, the test was removed, and we
20348 # assume the GNU/Linux dynamic linker is in use.
20349 dynamic_linker='GNU/Linux ld.so'
20350 ;;
20351
Reid Spencer2706f8c2004-09-19 23:53:36 +000020352knetbsd*-gnu)
20353 version_type=linux
20354 need_lib_prefix=no
20355 need_version=no
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20357 soname_spec='${libname}${release}${shared_ext}$major'
20358 shlibpath_var=LD_LIBRARY_PATH
20359 shlibpath_overrides_runpath=no
20360 hardcode_into_libs=yes
20361 dynamic_linker='GNU ld.so'
20362 ;;
20363
John Criswell47fdd832003-07-14 16:52:07 +000020364netbsd*)
20365 version_type=sunos
20366 need_lib_prefix=no
20367 need_version=no
20368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20371 dynamic_linker='NetBSD (a.out) ld.so'
20372 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020374 soname_spec='${libname}${release}${shared_ext}$major'
20375 dynamic_linker='NetBSD ld.elf_so'
20376 fi
20377 shlibpath_var=LD_LIBRARY_PATH
20378 shlibpath_overrides_runpath=yes
20379 hardcode_into_libs=yes
20380 ;;
20381
20382newsos6)
20383 version_type=linux
20384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20385 shlibpath_var=LD_LIBRARY_PATH
20386 shlibpath_overrides_runpath=yes
20387 ;;
20388
Reid Spencer2706f8c2004-09-19 23:53:36 +000020389nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020390 version_type=linux
20391 need_lib_prefix=no
20392 need_version=no
20393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20394 soname_spec='${libname}${release}${shared_ext}$major'
20395 shlibpath_var=LD_LIBRARY_PATH
20396 shlibpath_overrides_runpath=yes
20397 ;;
20398
20399openbsd*)
20400 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020401 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020402 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20404 case $host_os in
20405 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20406 *) need_version=no ;;
20407 esac
John Criswell47fdd832003-07-14 16:52:07 +000020408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20410 shlibpath_var=LD_LIBRARY_PATH
20411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20412 case $host_os in
20413 openbsd2.[89] | openbsd2.[89].*)
20414 shlibpath_overrides_runpath=no
20415 ;;
20416 *)
20417 shlibpath_overrides_runpath=yes
20418 ;;
20419 esac
20420 else
20421 shlibpath_overrides_runpath=yes
20422 fi
20423 ;;
20424
20425os2*)
20426 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020427 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020428 need_lib_prefix=no
20429 library_names_spec='$libname${shared_ext} $libname.a'
20430 dynamic_linker='OS/2 ld.exe'
20431 shlibpath_var=LIBPATH
20432 ;;
20433
20434osf3* | osf4* | osf5*)
20435 version_type=osf
20436 need_lib_prefix=no
20437 need_version=no
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20443 ;;
20444
John Criswell47fdd832003-07-14 16:52:07 +000020445solaris*)
20446 version_type=linux
20447 need_lib_prefix=no
20448 need_version=no
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20450 soname_spec='${libname}${release}${shared_ext}$major'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20453 hardcode_into_libs=yes
20454 # ldd complains unless libraries are executable
20455 postinstall_cmds='chmod +x $lib'
20456 ;;
20457
20458sunos4*)
20459 version_type=sunos
20460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20461 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20462 shlibpath_var=LD_LIBRARY_PATH
20463 shlibpath_overrides_runpath=yes
20464 if test "$with_gnu_ld" = yes; then
20465 need_lib_prefix=no
20466 fi
20467 need_version=yes
20468 ;;
20469
Reid Spencera773bd52006-08-04 18:18:08 +000020470sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020471 version_type=linux
20472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20473 soname_spec='${libname}${release}${shared_ext}$major'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 case $host_vendor in
20476 sni)
20477 shlibpath_overrides_runpath=no
20478 need_lib_prefix=no
20479 export_dynamic_flag_spec='${wl}-Blargedynsym'
20480 runpath_var=LD_RUN_PATH
20481 ;;
20482 siemens)
20483 need_lib_prefix=no
20484 ;;
20485 motorola)
20486 need_lib_prefix=no
20487 need_version=no
20488 shlibpath_overrides_runpath=no
20489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20490 ;;
20491 esac
20492 ;;
20493
20494sysv4*MP*)
20495 if test -d /usr/nec ;then
20496 version_type=linux
20497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20498 soname_spec='$libname${shared_ext}.$major'
20499 shlibpath_var=LD_LIBRARY_PATH
20500 fi
20501 ;;
20502
Reid Spencera773bd52006-08-04 18:18:08 +000020503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20504 version_type=freebsd-elf
20505 need_lib_prefix=no
20506 need_version=no
20507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20508 soname_spec='${libname}${release}${shared_ext}$major'
20509 shlibpath_var=LD_LIBRARY_PATH
20510 hardcode_into_libs=yes
20511 if test "$with_gnu_ld" = yes; then
20512 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20513 shlibpath_overrides_runpath=no
20514 else
20515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20516 shlibpath_overrides_runpath=yes
20517 case $host_os in
20518 sco3.2v5*)
20519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20520 ;;
20521 esac
20522 fi
20523 sys_lib_dlsearch_path_spec='/usr/lib'
20524 ;;
20525
John Criswell47fdd832003-07-14 16:52:07 +000020526uts4*)
20527 version_type=linux
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 soname_spec='${libname}${release}${shared_ext}$major'
20530 shlibpath_var=LD_LIBRARY_PATH
20531 ;;
20532
20533*)
20534 dynamic_linker=no
20535 ;;
20536esac
Reid Spencera773bd52006-08-04 18:18:08 +000020537{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20538echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020539test "$dynamic_linker" = no && can_build_shared=no
20540
Reid Spencera773bd52006-08-04 18:18:08 +000020541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20542if test "$GCC" = yes; then
20543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20544fi
20545
20546{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20547echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020548hardcode_action_CXX=
20549if test -n "$hardcode_libdir_flag_spec_CXX" || \
20550 test -n "$runpath_var_CXX" || \
20551 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20552
20553 # We can hardcode non-existant directories.
20554 if test "$hardcode_direct_CXX" != no &&
20555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20556 # have to relink, otherwise we might link with an installed library
20557 # when we should be linking with a yet-to-be-installed one
20558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20559 test "$hardcode_minus_L_CXX" != no; then
20560 # Linking always hardcodes the temporary library directory.
20561 hardcode_action_CXX=relink
20562 else
20563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20564 hardcode_action_CXX=immediate
20565 fi
20566else
20567 # We cannot hardcode anything, or else we can only hardcode existing
20568 # directories.
20569 hardcode_action_CXX=unsupported
20570fi
Reid Spencera773bd52006-08-04 18:18:08 +000020571{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20572echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020573
20574if test "$hardcode_action_CXX" = relink; then
20575 # Fast installation is not supported
20576 enable_fast_install=no
20577elif test "$shlibpath_overrides_runpath" = yes ||
20578 test "$enable_shared" = no; then
20579 # Fast installation is not necessary
20580 enable_fast_install=needless
20581fi
20582
John Criswell47fdd832003-07-14 16:52:07 +000020583
20584# The else clause should only fire when bootstrapping the
20585# libtool distribution, otherwise you forgot to ship ltmain.sh
20586# with your package, and you will get complaints that there are
20587# no rules to generate ltmain.sh.
20588if test -f "$ltmain"; then
20589 # See if we are running on zsh, and set the options which allow our commands through
20590 # without removal of \ escapes.
20591 if test -n "${ZSH_VERSION+set}" ; then
20592 setopt NO_GLOB_SUBST
20593 fi
20594 # Now quote all the things that may contain metacharacters while being
20595 # careful not to overquote the AC_SUBSTed values. We take copies of the
20596 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020597 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 +000020598 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020599 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20600 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20601 deplibs_check_method reload_flag reload_cmds need_locks \
20602 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20603 lt_cv_sys_global_symbol_to_c_name_address \
20604 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20605 old_postinstall_cmds old_postuninstall_cmds \
20606 compiler_CXX \
20607 CC_CXX \
20608 LD_CXX \
20609 lt_prog_compiler_wl_CXX \
20610 lt_prog_compiler_pic_CXX \
20611 lt_prog_compiler_static_CXX \
20612 lt_prog_compiler_no_builtin_flag_CXX \
20613 export_dynamic_flag_spec_CXX \
20614 thread_safe_flag_spec_CXX \
20615 whole_archive_flag_spec_CXX \
20616 enable_shared_with_static_runtimes_CXX \
20617 old_archive_cmds_CXX \
20618 old_archive_from_new_cmds_CXX \
20619 predep_objects_CXX \
20620 postdep_objects_CXX \
20621 predeps_CXX \
20622 postdeps_CXX \
20623 compiler_lib_search_path_CXX \
20624 archive_cmds_CXX \
20625 archive_expsym_cmds_CXX \
20626 postinstall_cmds_CXX \
20627 postuninstall_cmds_CXX \
20628 old_archive_from_expsyms_cmds_CXX \
20629 allow_undefined_flag_CXX \
20630 no_undefined_flag_CXX \
20631 export_symbols_cmds_CXX \
20632 hardcode_libdir_flag_spec_CXX \
20633 hardcode_libdir_flag_spec_ld_CXX \
20634 hardcode_libdir_separator_CXX \
20635 hardcode_automatic_CXX \
20636 module_cmds_CXX \
20637 module_expsym_cmds_CXX \
20638 lt_cv_prog_compiler_c_o_CXX \
20639 exclude_expsyms_CXX \
20640 include_expsyms_CXX; do
20641
20642 case $var in
20643 old_archive_cmds_CXX | \
20644 old_archive_from_new_cmds_CXX | \
20645 archive_cmds_CXX | \
20646 archive_expsym_cmds_CXX | \
20647 module_cmds_CXX | \
20648 module_expsym_cmds_CXX | \
20649 old_archive_from_expsyms_cmds_CXX | \
20650 export_symbols_cmds_CXX | \
20651 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20652 postinstall_cmds | postuninstall_cmds | \
20653 old_postinstall_cmds | old_postuninstall_cmds | \
20654 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20655 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020656 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 +000020657 ;;
20658 *)
20659 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20660 ;;
20661 esac
20662 done
20663
20664 case $lt_echo in
20665 *'\$0 --fallback-echo"')
20666 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20667 ;;
20668 esac
20669
20670cfgfile="$ofile"
20671
20672 cat <<__EOF__ >> "$cfgfile"
20673# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20674
20675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20676
20677# Shell to use when invoking shell scripts.
20678SHELL=$lt_SHELL
20679
20680# Whether or not to build shared libraries.
20681build_libtool_libs=$enable_shared
20682
20683# Whether or not to build static libraries.
20684build_old_libs=$enable_static
20685
20686# Whether or not to add -lc for building shared libraries.
20687build_libtool_need_lc=$archive_cmds_need_lc_CXX
20688
20689# Whether or not to disallow shared libs when runtime libs are static
20690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20691
20692# Whether or not to optimize for fast installation.
20693fast_install=$enable_fast_install
20694
20695# The host system.
20696host_alias=$host_alias
20697host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020698host_os=$host_os
20699
20700# The build system.
20701build_alias=$build_alias
20702build=$build
20703build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020704
20705# An echo program that does not interpret backslashes.
20706echo=$lt_echo
20707
20708# The archiver.
20709AR=$lt_AR
20710AR_FLAGS=$lt_AR_FLAGS
20711
20712# A C compiler.
20713LTCC=$lt_LTCC
20714
Reid Spencera773bd52006-08-04 18:18:08 +000020715# LTCC compiler flags.
20716LTCFLAGS=$lt_LTCFLAGS
20717
John Criswell47fdd832003-07-14 16:52:07 +000020718# A language-specific compiler.
20719CC=$lt_compiler_CXX
20720
20721# Is the compiler the GNU C compiler?
20722with_gcc=$GCC_CXX
20723
20724# An ERE matcher.
20725EGREP=$lt_EGREP
20726
20727# The linker used to build libraries.
20728LD=$lt_LD_CXX
20729
20730# Whether we need hard or soft links.
20731LN_S=$lt_LN_S
20732
20733# A BSD-compatible nm program.
20734NM=$lt_NM
20735
20736# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020738
20739# Used to examine libraries when file_magic_cmd begins "file"
20740MAGIC_CMD=$MAGIC_CMD
20741
20742# Used on cygwin: DLL creation program.
20743DLLTOOL="$DLLTOOL"
20744
20745# Used on cygwin: object dumper.
20746OBJDUMP="$OBJDUMP"
20747
20748# Used on cygwin: assembler.
20749AS="$AS"
20750
20751# The name of the directory that contains temporary libtool files.
20752objdir=$objdir
20753
20754# How to create reloadable object files.
20755reload_flag=$lt_reload_flag
20756reload_cmds=$lt_reload_cmds
20757
20758# How to pass a linker flag through the compiler.
20759wl=$lt_lt_prog_compiler_wl_CXX
20760
20761# Object file suffix (normally "o").
20762objext="$ac_objext"
20763
20764# Old archive suffix (normally "a").
20765libext="$libext"
20766
20767# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020769
20770# Executable file suffix (normally "").
20771exeext="$exeext"
20772
20773# Additional compiler flags for building library objects.
20774pic_flag=$lt_lt_prog_compiler_pic_CXX
20775pic_mode=$pic_mode
20776
20777# What is the maximum length of a command?
20778max_cmd_len=$lt_cv_sys_max_cmd_len
20779
20780# Does compiler simultaneously support -c and -o options?
20781compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20782
Reid Spencera773bd52006-08-04 18:18:08 +000020783# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020784need_locks=$lt_need_locks
20785
20786# Do we need the lib prefix for modules?
20787need_lib_prefix=$need_lib_prefix
20788
20789# Do we need a version for libraries?
20790need_version=$need_version
20791
20792# Whether dlopen is supported.
20793dlopen_support=$enable_dlopen
20794
20795# Whether dlopen of programs is supported.
20796dlopen_self=$enable_dlopen_self
20797
20798# Whether dlopen of statically linked programs is supported.
20799dlopen_self_static=$enable_dlopen_self_static
20800
20801# Compiler flag to prevent dynamic linking.
20802link_static_flag=$lt_lt_prog_compiler_static_CXX
20803
20804# Compiler flag to turn off builtin functions.
20805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20806
20807# Compiler flag to allow reflexive dlopens.
20808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20809
20810# Compiler flag to generate shared objects directly from archives.
20811whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20812
20813# Compiler flag to generate thread-safe objects.
20814thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20815
20816# Library versioning type.
20817version_type=$version_type
20818
20819# Format of library name prefix.
20820libname_spec=$lt_libname_spec
20821
20822# List of archive names. First name is the real one, the rest are links.
20823# The last name is the one that the linker finds with -lNAME.
20824library_names_spec=$lt_library_names_spec
20825
20826# The coded name of the library, if different from the real name.
20827soname_spec=$lt_soname_spec
20828
20829# Commands used to build and install an old-style archive.
20830RANLIB=$lt_RANLIB
20831old_archive_cmds=$lt_old_archive_cmds_CXX
20832old_postinstall_cmds=$lt_old_postinstall_cmds
20833old_postuninstall_cmds=$lt_old_postuninstall_cmds
20834
20835# Create an old-style archive from a shared archive.
20836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20837
20838# Create a temporary old-style archive to link instead of a shared archive.
20839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20840
20841# Commands used to build and install a shared archive.
20842archive_cmds=$lt_archive_cmds_CXX
20843archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20844postinstall_cmds=$lt_postinstall_cmds
20845postuninstall_cmds=$lt_postuninstall_cmds
20846
20847# Commands used to build a loadable module (assumed same as above if empty)
20848module_cmds=$lt_module_cmds_CXX
20849module_expsym_cmds=$lt_module_expsym_cmds_CXX
20850
20851# Commands to strip libraries.
20852old_striplib=$lt_old_striplib
20853striplib=$lt_striplib
20854
20855# Dependencies to place before the objects being linked to create a
20856# shared library.
20857predep_objects=$lt_predep_objects_CXX
20858
20859# Dependencies to place after the objects being linked to create a
20860# shared library.
20861postdep_objects=$lt_postdep_objects_CXX
20862
20863# Dependencies to place before the objects being linked to create a
20864# shared library.
20865predeps=$lt_predeps_CXX
20866
20867# Dependencies to place after the objects being linked to create a
20868# shared library.
20869postdeps=$lt_postdeps_CXX
20870
20871# The library search path used internally by the compiler when linking
20872# a shared library.
20873compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20874
20875# Method to check whether dependent libraries are shared objects.
20876deplibs_check_method=$lt_deplibs_check_method
20877
20878# Command to use when deplibs_check_method == file_magic.
20879file_magic_cmd=$lt_file_magic_cmd
20880
20881# Flag that allows shared libraries with undefined symbols to be built.
20882allow_undefined_flag=$lt_allow_undefined_flag_CXX
20883
20884# Flag that forces no undefined symbols.
20885no_undefined_flag=$lt_no_undefined_flag_CXX
20886
20887# Commands used to finish a libtool library installation in a directory.
20888finish_cmds=$lt_finish_cmds
20889
20890# Same as above, but a single script fragment to be evaled but not shown.
20891finish_eval=$lt_finish_eval
20892
20893# Take the output of nm and produce a listing of raw symbols and C names.
20894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20895
20896# Transform the output of nm in a proper C declaration
20897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20898
20899# Transform the output of nm in a C name address pair
20900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20901
20902# This is the shared library runtime path variable.
20903runpath_var=$runpath_var
20904
20905# This is the shared library path variable.
20906shlibpath_var=$shlibpath_var
20907
20908# Is shlibpath searched before the hard-coded library search path?
20909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20910
20911# How to hardcode a shared library path into an executable.
20912hardcode_action=$hardcode_action_CXX
20913
20914# Whether we should hardcode library paths into libraries.
20915hardcode_into_libs=$hardcode_into_libs
20916
20917# Flag to hardcode \$libdir into a binary during linking.
20918# This must work even if \$libdir does not exist.
20919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20920
20921# If ld is used when linking, flag to hardcode \$libdir into
20922# a binary during linking. This must work even if \$libdir does
20923# not exist.
20924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20925
20926# Whether we need a single -rpath flag with a separated argument.
20927hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20928
20929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20930# resulting binary.
20931hardcode_direct=$hardcode_direct_CXX
20932
20933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20934# resulting binary.
20935hardcode_minus_L=$hardcode_minus_L_CXX
20936
20937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20938# the resulting binary.
20939hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20940
20941# Set to yes if building a shared library automatically hardcodes DIR into the library
20942# and all subsequent libraries and executables linked against it.
20943hardcode_automatic=$hardcode_automatic_CXX
20944
20945# Variables whose values should be saved in libtool wrapper scripts and
20946# restored at relink time.
20947variables_saved_for_relink="$variables_saved_for_relink"
20948
20949# Whether libtool must link a program against all its dependency libraries.
20950link_all_deplibs=$link_all_deplibs_CXX
20951
20952# Compile-time system search path for libraries
20953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20954
20955# Run-time system search path for libraries
20956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20957
20958# Fix the shell variable \$srcfile for the compiler.
20959fix_srcfile_path="$fix_srcfile_path_CXX"
20960
20961# Set to yes if exported symbols are required.
20962always_export_symbols=$always_export_symbols_CXX
20963
20964# The commands to list exported symbols.
20965export_symbols_cmds=$lt_export_symbols_cmds_CXX
20966
20967# The commands to extract the exported symbol list from a shared archive.
20968extract_expsyms_cmds=$lt_extract_expsyms_cmds
20969
20970# Symbols that should not be listed in the preloaded symbols.
20971exclude_expsyms=$lt_exclude_expsyms_CXX
20972
20973# Symbols that must always be exported.
20974include_expsyms=$lt_include_expsyms_CXX
20975
20976# ### END LIBTOOL TAG CONFIG: $tagname
20977
20978__EOF__
20979
20980
20981else
20982 # If there is no Makefile yet, we rely on a make rule to execute
20983 # `config.status --recheck' to rerun these tests and create the
20984 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020985 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20986 if test -f "$ltmain_in"; then
20987 test -f Makefile && make "$ltmain"
20988 fi
John Criswell47fdd832003-07-14 16:52:07 +000020989fi
20990
20991
20992ac_ext=c
20993ac_cpp='$CPP $CPPFLAGS'
20994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20996ac_compiler_gnu=$ac_cv_c_compiler_gnu
20997
20998CC=$lt_save_CC
20999LDCXX=$LD
21000LD=$lt_save_LD
21001GCC=$lt_save_GCC
21002with_gnu_ldcxx=$with_gnu_ld
21003with_gnu_ld=$lt_save_with_gnu_ld
21004lt_cv_path_LDCXX=$lt_cv_path_LD
21005lt_cv_path_LD=$lt_save_path_LD
21006lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21007lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21008
21009 else
21010 tagname=""
21011 fi
21012 ;;
21013
21014 F77)
21015 if test -n "$F77" && test "X$F77" != "Xno"; then
21016
21017ac_ext=f
21018ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21019ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21020ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21021
21022
21023archive_cmds_need_lc_F77=no
21024allow_undefined_flag_F77=
21025always_export_symbols_F77=no
21026archive_expsym_cmds_F77=
21027export_dynamic_flag_spec_F77=
21028hardcode_direct_F77=no
21029hardcode_libdir_flag_spec_F77=
21030hardcode_libdir_flag_spec_ld_F77=
21031hardcode_libdir_separator_F77=
21032hardcode_minus_L_F77=no
21033hardcode_automatic_F77=no
21034module_cmds_F77=
21035module_expsym_cmds_F77=
21036link_all_deplibs_F77=unknown
21037old_archive_cmds_F77=$old_archive_cmds
21038no_undefined_flag_F77=
21039whole_archive_flag_spec_F77=
21040enable_shared_with_static_runtimes_F77=no
21041
21042# Source file extension for f77 test sources.
21043ac_ext=f
21044
21045# Object file extension for compiled f77 test sources.
21046objext=o
21047objext_F77=$objext
21048
21049# Code to be used in simple compile tests
21050lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21051
21052# Code to be used in simple link tests
21053lt_simple_link_test_code=" program t\n end\n"
21054
21055# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21056
21057# If no C compiler was specified, use CC.
21058LTCC=${LTCC-"$CC"}
21059
Reid Spencera773bd52006-08-04 18:18:08 +000021060# If no C compiler flags were specified, use CFLAGS.
21061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21062
John Criswell47fdd832003-07-14 16:52:07 +000021063# Allow CC to be a program name with arguments.
21064compiler=$CC
21065
21066
Reid Spencera773bd52006-08-04 18:18:08 +000021067# save warnings/boilerplate of simple test code
21068ac_outfile=conftest.$ac_objext
21069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21071_lt_compiler_boilerplate=`cat conftest.err`
21072$rm conftest*
21073
21074ac_outfile=conftest.$ac_objext
21075printf "$lt_simple_link_test_code" >conftest.$ac_ext
21076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21077_lt_linker_boilerplate=`cat conftest.err`
21078$rm conftest*
21079
21080
John Criswell47fdd832003-07-14 16:52:07 +000021081# Allow CC to be a program name with arguments.
21082lt_save_CC="$CC"
21083CC=${F77-"f77"}
21084compiler=$CC
21085compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021086for cc_temp in $compiler""; do
21087 case $cc_temp in
21088 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21089 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21090 \-*) ;;
21091 *) break;;
21092 esac
21093done
21094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021095
John Criswell47fdd832003-07-14 16:52:07 +000021096
Reid Spencera773bd52006-08-04 18:18:08 +000021097{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21098echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21099{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21100echo "${ECHO_T}$can_build_shared" >&6; }
21101
21102{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21103echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021104test "$can_build_shared" = "no" && enable_shared=no
21105
21106# On AIX, shared libraries and static libraries use the same namespace, and
21107# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021108case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021109aix3*)
21110 test "$enable_shared" = yes && enable_static=no
21111 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021112 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021113 postinstall_cmds='$RANLIB $lib'
21114 fi
21115 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021116aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021117 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21118 test "$enable_shared" = yes && enable_static=no
21119 fi
John Criswell47fdd832003-07-14 16:52:07 +000021120 ;;
21121esac
Reid Spencera773bd52006-08-04 18:18:08 +000021122{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21123echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021124
Reid Spencera773bd52006-08-04 18:18:08 +000021125{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21126echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021127# Make sure either enable_shared or enable_static is yes.
21128test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021129{ echo "$as_me:$LINENO: result: $enable_static" >&5
21130echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021131
21132GCC_F77="$G77"
21133LD_F77="$LD"
21134
21135lt_prog_compiler_wl_F77=
21136lt_prog_compiler_pic_F77=
21137lt_prog_compiler_static_F77=
21138
Reid Spencera773bd52006-08-04 18:18:08 +000021139{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21140echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021141
21142 if test "$GCC" = yes; then
21143 lt_prog_compiler_wl_F77='-Wl,'
21144 lt_prog_compiler_static_F77='-static'
21145
21146 case $host_os in
21147 aix*)
21148 # All AIX code is PIC.
21149 if test "$host_cpu" = ia64; then
21150 # AIX 5 now supports IA64 processor
21151 lt_prog_compiler_static_F77='-Bstatic'
21152 fi
21153 ;;
21154
21155 amigaos*)
21156 # FIXME: we need at least 68020 code to build shared libraries, but
21157 # adding the `-m68020' flag to GCC prevents building anything better,
21158 # like `-m68040'.
21159 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21160 ;;
21161
21162 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21163 # PIC is the default for these OSes.
21164 ;;
21165
21166 mingw* | pw32* | os2*)
21167 # This hack is so that the source file can tell whether it is being
21168 # built for inclusion in a dll (and should export symbols for example).
21169 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21170 ;;
21171
21172 darwin* | rhapsody*)
21173 # PIC is the default on this platform
21174 # Common symbols not allowed in MH_DYLIB files
21175 lt_prog_compiler_pic_F77='-fno-common'
21176 ;;
21177
Reid Spencera773bd52006-08-04 18:18:08 +000021178 interix3*)
21179 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21180 # Instead, we relocate shared libraries at runtime.
21181 ;;
21182
John Criswell47fdd832003-07-14 16:52:07 +000021183 msdosdjgpp*)
21184 # Just because we use GCC doesn't mean we suddenly get shared libraries
21185 # on systems that don't support them.
21186 lt_prog_compiler_can_build_shared_F77=no
21187 enable_shared=no
21188 ;;
21189
21190 sysv4*MP*)
21191 if test -d /usr/nec; then
21192 lt_prog_compiler_pic_F77=-Kconform_pic
21193 fi
21194 ;;
21195
21196 hpux*)
21197 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21198 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021199 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021200 hppa*64*|ia64*)
21201 # +Z the default
21202 ;;
21203 *)
21204 lt_prog_compiler_pic_F77='-fPIC'
21205 ;;
21206 esac
21207 ;;
21208
21209 *)
21210 lt_prog_compiler_pic_F77='-fPIC'
21211 ;;
21212 esac
21213 else
21214 # PORTME Check for flag to pass linker flags through the system compiler.
21215 case $host_os in
21216 aix*)
21217 lt_prog_compiler_wl_F77='-Wl,'
21218 if test "$host_cpu" = ia64; then
21219 # AIX 5 now supports IA64 processor
21220 lt_prog_compiler_static_F77='-Bstatic'
21221 else
21222 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21223 fi
21224 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021225 darwin*)
21226 # PIC is the default on this platform
21227 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021228 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021229 xlc*)
21230 lt_prog_compiler_pic_F77='-qnocommon'
21231 lt_prog_compiler_wl_F77='-Wl,'
21232 ;;
21233 esac
21234 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021235
21236 mingw* | pw32* | os2*)
21237 # This hack is so that the source file can tell whether it is being
21238 # built for inclusion in a dll (and should export symbols for example).
21239 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21240 ;;
21241
21242 hpux9* | hpux10* | hpux11*)
21243 lt_prog_compiler_wl_F77='-Wl,'
21244 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21245 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021246 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021247 hppa*64*|ia64*)
21248 # +Z the default
21249 ;;
21250 *)
21251 lt_prog_compiler_pic_F77='+Z'
21252 ;;
21253 esac
21254 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21255 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21256 ;;
21257
21258 irix5* | irix6* | nonstopux*)
21259 lt_prog_compiler_wl_F77='-Wl,'
21260 # PIC (with -KPIC) is the default.
21261 lt_prog_compiler_static_F77='-non_shared'
21262 ;;
21263
21264 newsos6)
21265 lt_prog_compiler_pic_F77='-KPIC'
21266 lt_prog_compiler_static_F77='-Bstatic'
21267 ;;
21268
21269 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021270 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021271 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021272 lt_prog_compiler_wl_F77='-Wl,'
21273 lt_prog_compiler_pic_F77='-KPIC'
21274 lt_prog_compiler_static_F77='-static'
21275 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021276 pgcc* | pgf77* | pgf90* | pgf95*)
21277 # Portland Group compilers (*not* the Pentium gcc compiler,
21278 # which looks to be a dead project)
21279 lt_prog_compiler_wl_F77='-Wl,'
21280 lt_prog_compiler_pic_F77='-fpic'
21281 lt_prog_compiler_static_F77='-Bstatic'
21282 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021283 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021284 lt_prog_compiler_wl_F77='-Wl,'
21285 # All Alpha code is PIC.
21286 lt_prog_compiler_static_F77='-non_shared'
21287 ;;
21288 esac
21289 ;;
21290
21291 osf3* | osf4* | osf5*)
21292 lt_prog_compiler_wl_F77='-Wl,'
21293 # All OSF/1 code is PIC.
21294 lt_prog_compiler_static_F77='-non_shared'
21295 ;;
21296
John Criswell47fdd832003-07-14 16:52:07 +000021297 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021298 lt_prog_compiler_pic_F77='-KPIC'
21299 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021300 case $cc_basename in
21301 f77* | f90* | f95*)
21302 lt_prog_compiler_wl_F77='-Qoption ld ';;
21303 *)
21304 lt_prog_compiler_wl_F77='-Wl,';;
21305 esac
John Criswell47fdd832003-07-14 16:52:07 +000021306 ;;
21307
21308 sunos4*)
21309 lt_prog_compiler_wl_F77='-Qoption ld '
21310 lt_prog_compiler_pic_F77='-PIC'
21311 lt_prog_compiler_static_F77='-Bstatic'
21312 ;;
21313
Reid Spencera773bd52006-08-04 18:18:08 +000021314 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021315 lt_prog_compiler_wl_F77='-Wl,'
21316 lt_prog_compiler_pic_F77='-KPIC'
21317 lt_prog_compiler_static_F77='-Bstatic'
21318 ;;
21319
21320 sysv4*MP*)
21321 if test -d /usr/nec ;then
21322 lt_prog_compiler_pic_F77='-Kconform_pic'
21323 lt_prog_compiler_static_F77='-Bstatic'
21324 fi
21325 ;;
21326
Reid Spencera773bd52006-08-04 18:18:08 +000021327 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21328 lt_prog_compiler_wl_F77='-Wl,'
21329 lt_prog_compiler_pic_F77='-KPIC'
21330 lt_prog_compiler_static_F77='-Bstatic'
21331 ;;
21332
21333 unicos*)
21334 lt_prog_compiler_wl_F77='-Wl,'
21335 lt_prog_compiler_can_build_shared_F77=no
21336 ;;
21337
John Criswell47fdd832003-07-14 16:52:07 +000021338 uts4*)
21339 lt_prog_compiler_pic_F77='-pic'
21340 lt_prog_compiler_static_F77='-Bstatic'
21341 ;;
21342
21343 *)
21344 lt_prog_compiler_can_build_shared_F77=no
21345 ;;
21346 esac
21347 fi
21348
Reid Spencera773bd52006-08-04 18:18:08 +000021349{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21350echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021351
21352#
21353# Check to make sure the PIC flag actually works.
21354#
21355if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021356
Reid Spencera773bd52006-08-04 18:18:08 +000021357{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21358echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021359if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21361else
21362 lt_prog_compiler_pic_works_F77=no
21363 ac_outfile=conftest.$ac_objext
21364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21365 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21366 # Insert the option either (1) after the last *FLAGS variable, or
21367 # (2) before a word containing "conftest.", or (3) at the end.
21368 # Note that $ac_compile itself does not contain backslashes and begins
21369 # with a dollar sign (not a hyphen), so the echo should work correctly.
21370 # The option is referenced via a variable to avoid confusing sed.
21371 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21374 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000021375 (eval echo "\"\$as_me:21375: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021376 (eval "$lt_compile" 2>conftest.err)
21377 ac_status=$?
21378 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000021379 echo "$as_me:21379: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021380 if (exit $ac_status) && test -s "$ac_outfile"; then
21381 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021382 # So say no if there are warnings other than the usual output.
21383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021386 lt_prog_compiler_pic_works_F77=yes
21387 fi
21388 fi
21389 $rm conftest*
21390
21391fi
Reid Spencera773bd52006-08-04 18:18:08 +000021392{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21393echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021394
21395if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21396 case $lt_prog_compiler_pic_F77 in
21397 "" | " "*) ;;
21398 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21399 esac
21400else
21401 lt_prog_compiler_pic_F77=
21402 lt_prog_compiler_can_build_shared_F77=no
21403fi
21404
21405fi
Reid Spencera773bd52006-08-04 18:18:08 +000021406case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021407 # For platforms which do not support PIC, -DPIC is meaningless:
21408 *djgpp*)
21409 lt_prog_compiler_pic_F77=
21410 ;;
21411 *)
21412 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21413 ;;
21414esac
21415
Reid Spencera773bd52006-08-04 18:18:08 +000021416#
21417# Check to make sure the static flag actually works.
21418#
21419wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21420{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21421echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21422if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21423 echo $ECHO_N "(cached) $ECHO_C" >&6
21424else
21425 lt_prog_compiler_static_works_F77=no
21426 save_LDFLAGS="$LDFLAGS"
21427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21428 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21430 # The linker can only warn and ignore the option if not recognized
21431 # So say no if there are warnings
21432 if test -s conftest.err; then
21433 # Append any errors to the config.log.
21434 cat conftest.err 1>&5
21435 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21437 if diff conftest.exp conftest.er2 >/dev/null; then
21438 lt_prog_compiler_static_works_F77=yes
21439 fi
21440 else
21441 lt_prog_compiler_static_works_F77=yes
21442 fi
21443 fi
21444 $rm conftest*
21445 LDFLAGS="$save_LDFLAGS"
21446
21447fi
21448{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21449echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21450
21451if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21452 :
21453else
21454 lt_prog_compiler_static_F77=
21455fi
21456
21457
21458{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21459echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021460if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21461 echo $ECHO_N "(cached) $ECHO_C" >&6
21462else
21463 lt_cv_prog_compiler_c_o_F77=no
21464 $rm -r conftest 2>/dev/null
21465 mkdir conftest
21466 cd conftest
21467 mkdir out
21468 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21469
John Criswell47fdd832003-07-14 16:52:07 +000021470 lt_compiler_flag="-o out/conftest2.$ac_objext"
21471 # Insert the option either (1) after the last *FLAGS variable, or
21472 # (2) before a word containing "conftest.", or (3) at the end.
21473 # Note that $ac_compile itself does not contain backslashes and begins
21474 # with a dollar sign (not a hyphen), so the echo should work correctly.
21475 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21478 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000021479 (eval echo "\"\$as_me:21479: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021480 (eval "$lt_compile" 2>out/conftest.err)
21481 ac_status=$?
21482 cat out/conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000021483 echo "$as_me:21483: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21485 then
21486 # The compiler can only warn and ignore the option if not recognized
21487 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021488 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021491 lt_cv_prog_compiler_c_o_F77=yes
21492 fi
21493 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021494 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021495 $rm conftest*
21496 # SGI C++ compiler will create directory out/ii_files/ for
21497 # template instantiation
21498 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21499 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021500 cd ..
21501 rmdir conftest
21502 $rm conftest*
21503
21504fi
Reid Spencera773bd52006-08-04 18:18:08 +000021505{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21506echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021507
21508
21509hard_links="nottested"
21510if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21511 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021512 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21513echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021514 hard_links=yes
21515 $rm conftest*
21516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21517 touch conftest.a
21518 ln conftest.a conftest.b 2>&5 || hard_links=no
21519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021520 { echo "$as_me:$LINENO: result: $hard_links" >&5
21521echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021522 if test "$hard_links" = no; then
21523 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21524echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21525 need_locks=warn
21526 fi
21527else
21528 need_locks=no
21529fi
21530
Reid Spencera773bd52006-08-04 18:18:08 +000021531{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21532echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021533
21534 runpath_var=
21535 allow_undefined_flag_F77=
21536 enable_shared_with_static_runtimes_F77=no
21537 archive_cmds_F77=
21538 archive_expsym_cmds_F77=
21539 old_archive_From_new_cmds_F77=
21540 old_archive_from_expsyms_cmds_F77=
21541 export_dynamic_flag_spec_F77=
21542 whole_archive_flag_spec_F77=
21543 thread_safe_flag_spec_F77=
21544 hardcode_libdir_flag_spec_F77=
21545 hardcode_libdir_flag_spec_ld_F77=
21546 hardcode_libdir_separator_F77=
21547 hardcode_direct_F77=no
21548 hardcode_minus_L_F77=no
21549 hardcode_shlibpath_var_F77=unsupported
21550 link_all_deplibs_F77=unknown
21551 hardcode_automatic_F77=no
21552 module_cmds_F77=
21553 module_expsym_cmds_F77=
21554 always_export_symbols_F77=no
21555 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21556 # include_expsyms should be a list of space-separated symbols to be *always*
21557 # included in the symbol list
21558 include_expsyms_F77=
21559 # exclude_expsyms can be an extended regexp of symbols to exclude
21560 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21561 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21562 # as well as any symbol that contains `d'.
21563 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21564 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21565 # platforms (ab)use it in PIC code, but their linkers get confused if
21566 # the symbol is explicitly referenced. Since portable code cannot
21567 # rely on this symbol name, it's probably fine to never include it in
21568 # preloaded symbol tables.
21569 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021570 # Just being paranoid about ensuring that cc_basename is set.
21571 for cc_temp in $compiler""; do
21572 case $cc_temp in
21573 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21574 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21575 \-*) ;;
21576 *) break;;
21577 esac
21578done
21579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021580
21581 case $host_os in
21582 cygwin* | mingw* | pw32*)
21583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21584 # When not using gcc, we currently assume that we are using
21585 # Microsoft Visual C++.
21586 if test "$GCC" != yes; then
21587 with_gnu_ld=no
21588 fi
21589 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021590 interix*)
21591 # we just hope/assume this is gcc and not c89 (= MSVC++)
21592 with_gnu_ld=yes
21593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021594 openbsd*)
21595 with_gnu_ld=no
21596 ;;
21597 esac
21598
21599 ld_shlibs_F77=yes
21600 if test "$with_gnu_ld" = yes; then
21601 # If archive_cmds runs LD, not CC, wlarc should be empty
21602 wlarc='${wl}'
21603
Reid Spencera773bd52006-08-04 18:18:08 +000021604 # Set some defaults for GNU ld with shared library support. These
21605 # are reset later if shared libraries are not supported. Putting them
21606 # here allows them to be overridden if necessary.
21607 runpath_var=LD_RUN_PATH
21608 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21609 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21610 # ancient GNU ld didn't support --whole-archive et. al.
21611 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21612 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21613 else
21614 whole_archive_flag_spec_F77=
21615 fi
21616 supports_anon_versioning=no
21617 case `$LD -v 2>/dev/null` in
21618 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21619 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21620 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21621 *\ 2.11.*) ;; # other 2.11 versions
21622 *) supports_anon_versioning=yes ;;
21623 esac
21624
John Criswell47fdd832003-07-14 16:52:07 +000021625 # See if GNU ld supports shared libraries.
21626 case $host_os in
21627 aix3* | aix4* | aix5*)
21628 # On AIX/PPC, the GNU linker is very broken
21629 if test "$host_cpu" != ia64; then
21630 ld_shlibs_F77=no
21631 cat <<EOF 1>&2
21632
21633*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21634*** to be unable to reliably create shared libraries on AIX.
21635*** Therefore, libtool is disabling shared libraries support. If you
21636*** really care for shared libraries, you may want to modify your PATH
21637*** so that a non-GNU linker is found, and then restart.
21638
21639EOF
21640 fi
21641 ;;
21642
21643 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021644 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 +000021645 hardcode_libdir_flag_spec_F77='-L$libdir'
21646 hardcode_minus_L_F77=yes
21647
21648 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21649 # that the semantics of dynamic libraries on AmigaOS, at least up
21650 # to version 4, is to share data among multiple programs linked
21651 # with the same dynamic library. Since this doesn't match the
21652 # behavior of shared libraries on other platforms, we can't use
21653 # them.
21654 ld_shlibs_F77=no
21655 ;;
21656
21657 beos*)
21658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21659 allow_undefined_flag_F77=unsupported
21660 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21661 # support --undefined. This deserves some investigation. FIXME
21662 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21663 else
21664 ld_shlibs_F77=no
21665 fi
21666 ;;
21667
21668 cygwin* | mingw* | pw32*)
21669 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21670 # as there is no search path for DLLs.
21671 hardcode_libdir_flag_spec_F77='-L$libdir'
21672 allow_undefined_flag_F77=unsupported
21673 always_export_symbols_F77=no
21674 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021675 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 +000021676
21677 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021678 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 +000021679 # If the export-symbols file already is a .def file (1st line
21680 # is EXPORTS), use it as is; otherwise, prepend...
21681 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21682 cp $export_symbols $output_objdir/$soname.def;
21683 else
21684 echo EXPORTS > $output_objdir/$soname.def;
21685 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021686 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021687 $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 +000021688 else
Reid Spencera773bd52006-08-04 18:18:08 +000021689 ld_shlibs_F77=no
21690 fi
21691 ;;
21692
21693 interix3*)
21694 hardcode_direct_F77=no
21695 hardcode_shlibpath_var_F77=no
21696 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21697 export_dynamic_flag_spec_F77='${wl}-E'
21698 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21699 # Instead, shared libraries are loaded at an image base (0x10000000 by
21700 # default) and relocated if they conflict, which is a slow very memory
21701 # consuming and fragmenting process. To avoid this, we pick a random,
21702 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21703 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21704 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'
21705 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'
21706 ;;
21707
21708 linux*)
21709 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21710 tmp_addflag=
21711 case $cc_basename,$host_cpu in
21712 pgcc*) # Portland Group C compiler
21713 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'
21714 tmp_addflag=' $pic_flag'
21715 ;;
21716 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21717 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'
21718 tmp_addflag=' $pic_flag -Mnomain' ;;
21719 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21720 tmp_addflag=' -i_dynamic' ;;
21721 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21722 tmp_addflag=' -i_dynamic -nofor_main' ;;
21723 ifc* | ifort*) # Intel Fortran compiler
21724 tmp_addflag=' -nofor_main' ;;
21725 esac
21726 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21727
21728 if test $supports_anon_versioning = yes; then
21729 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21730 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21731 $echo "local: *; };" >> $output_objdir/$libname.ver~
21732 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21733 fi
21734 else
21735 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021736 fi
21737 ;;
21738
21739 netbsd*)
21740 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21741 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21742 wlarc=
21743 else
21744 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21745 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21746 fi
21747 ;;
21748
Reid Spencera773bd52006-08-04 18:18:08 +000021749 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021750 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21751 ld_shlibs_F77=no
21752 cat <<EOF 1>&2
21753
21754*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21755*** create shared libraries on Solaris systems. Therefore, libtool
21756*** is disabling shared libraries support. We urge you to upgrade GNU
21757*** binutils to release 2.9.1 or newer. Another option is to modify
21758*** your PATH or compiler configuration so that the native linker is
21759*** used, and then restart.
21760
21761EOF
21762 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21763 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21764 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21765 else
21766 ld_shlibs_F77=no
21767 fi
21768 ;;
21769
Reid Spencera773bd52006-08-04 18:18:08 +000021770 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21771 case `$LD -v 2>&1` in
21772 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21773 ld_shlibs_F77=no
21774 cat <<_LT_EOF 1>&2
21775
21776*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21777*** reliably create shared libraries on SCO systems. Therefore, libtool
21778*** is disabling shared libraries support. We urge you to upgrade GNU
21779*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21780*** your PATH or compiler configuration so that the native linker is
21781*** used, and then restart.
21782
21783_LT_EOF
21784 ;;
21785 *)
21786 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21787 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21788 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21789 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21790 else
21791 ld_shlibs_F77=no
21792 fi
21793 ;;
21794 esac
21795 ;;
21796
John Criswell47fdd832003-07-14 16:52:07 +000021797 sunos4*)
21798 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21799 wlarc=
21800 hardcode_direct_F77=yes
21801 hardcode_shlibpath_var_F77=no
21802 ;;
21803
21804 *)
21805 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21806 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21807 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21808 else
21809 ld_shlibs_F77=no
21810 fi
21811 ;;
21812 esac
21813
Reid Spencera773bd52006-08-04 18:18:08 +000021814 if test "$ld_shlibs_F77" = no; then
21815 runpath_var=
21816 hardcode_libdir_flag_spec_F77=
21817 export_dynamic_flag_spec_F77=
21818 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021819 fi
21820 else
21821 # PORTME fill in a description of your system's linker (not GNU ld)
21822 case $host_os in
21823 aix3*)
21824 allow_undefined_flag_F77=unsupported
21825 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021826 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 +000021827 # Note: this linker hardcodes the directories in LIBPATH if there
21828 # are no directories specified by -L.
21829 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021830 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021831 # Neither direct hardcoding nor static linking is supported with a
21832 # broken collect2.
21833 hardcode_direct_F77=unsupported
21834 fi
21835 ;;
21836
21837 aix4* | aix5*)
21838 if test "$host_cpu" = ia64; then
21839 # On IA64, the linker does run time linking by default, so we don't
21840 # have to do anything special.
21841 aix_use_runtimelinking=no
21842 exp_sym_flag='-Bexport'
21843 no_entry_flag=""
21844 else
21845 # If we're using GNU nm, then we don't want the "-C" option.
21846 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21847 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21848 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'
21849 else
21850 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'
21851 fi
21852 aix_use_runtimelinking=no
21853
21854 # Test if we are trying to use run time linking or normal
21855 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21856 # need to do runtime linking.
21857 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21858 for ld_flag in $LDFLAGS; do
21859 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21860 aix_use_runtimelinking=yes
21861 break
21862 fi
21863 done
Reid Spencera773bd52006-08-04 18:18:08 +000021864 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021865 esac
21866
21867 exp_sym_flag='-bexport'
21868 no_entry_flag='-bnoentry'
21869 fi
21870
21871 # When large executables or shared objects are built, AIX ld can
21872 # have problems creating the table of contents. If linking a library
21873 # or program results in "error TOC overflow" add -mminimal-toc to
21874 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21875 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21876
21877 archive_cmds_F77=''
21878 hardcode_direct_F77=yes
21879 hardcode_libdir_separator_F77=':'
21880 link_all_deplibs_F77=yes
21881
21882 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021883 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021884 # We only want to do this on AIX 4.2 and lower, the check
21885 # below for broken collect2 doesn't work under 4.3+
21886 collect2name=`${CC} -print-prog-name=collect2`
21887 if test -f "$collect2name" && \
21888 strings "$collect2name" | grep resolve_lib_name >/dev/null
21889 then
21890 # We have reworked collect2
21891 hardcode_direct_F77=yes
21892 else
21893 # We have old collect2
21894 hardcode_direct_F77=unsupported
21895 # It fails to find uninstalled libraries when the uninstalled
21896 # path is not listed in the libpath. Setting hardcode_minus_L
21897 # to unsupported forces relinking
21898 hardcode_minus_L_F77=yes
21899 hardcode_libdir_flag_spec_F77='-L$libdir'
21900 hardcode_libdir_separator_F77=
21901 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021902 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021903 esac
21904 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021905 if test "$aix_use_runtimelinking" = yes; then
21906 shared_flag="$shared_flag "'${wl}-G'
21907 fi
John Criswell47fdd832003-07-14 16:52:07 +000021908 else
21909 # not using gcc
21910 if test "$host_cpu" = ia64; then
21911 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21912 # chokes on -Wl,-G. The following line is correct:
21913 shared_flag='-G'
21914 else
Reid Spencera773bd52006-08-04 18:18:08 +000021915 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021916 shared_flag='${wl}-G'
21917 else
21918 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021919 fi
John Criswell47fdd832003-07-14 16:52:07 +000021920 fi
21921 fi
21922
21923 # It seems that -bexpall does not export symbols beginning with
21924 # underscore (_), so it is better to generate a list of symbols to export.
21925 always_export_symbols_F77=yes
21926 if test "$aix_use_runtimelinking" = yes; then
21927 # Warning - without using the other runtime loading flags (-brtl),
21928 # -berok will link without error, but may produce a broken library.
21929 allow_undefined_flag_F77='-berok'
21930 # Determine the default libpath from the value encoded in an empty executable.
21931 cat >conftest.$ac_ext <<_ACEOF
21932 program main
21933
21934 end
21935_ACEOF
21936rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021937if { (ac_try="$ac_link"
21938case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21941esac
21942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021949 (exit $ac_status); } &&
21950 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21951 { (case "(($ac_try" in
21952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21953 *) ac_try_echo=$ac_try;;
21954esac
21955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21956 (eval "$ac_try") 2>&5
21957 ac_status=$?
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); }; } &&
21960 { ac_try='test -s conftest$ac_exeext'
21961 { (case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21964esac
21965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_try") 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021970
21971aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21972}'`
21973# Check for a 64-bit object if we didn't find anything.
21974if 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; }
21975}'`; fi
21976else
21977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021978sed 's/^/| /' conftest.$ac_ext >&5
21979
Reid Spencera773bd52006-08-04 18:18:08 +000021980
John Criswell47fdd832003-07-14 16:52:07 +000021981fi
Reid Spencera773bd52006-08-04 18:18:08 +000021982
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021983rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021984 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21986
21987 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021988 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 +000021989 else
21990 if test "$host_cpu" = ia64; then
21991 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21992 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021993 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 +000021994 else
21995 # Determine the default libpath from the value encoded in an empty executable.
21996 cat >conftest.$ac_ext <<_ACEOF
21997 program main
21998
21999 end
22000_ACEOF
22001rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022002if { (ac_try="$ac_link"
22003case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22006esac
22007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022010 grep -v '^ *+' conftest.er1 >conftest.err
22011 rm -f conftest.er1
22012 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022014 (exit $ac_status); } &&
22015 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22019esac
22020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22022 ac_status=$?
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; } &&
22025 { ac_try='test -s conftest$ac_exeext'
22026 { (case "(($ac_try" in
22027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22028 *) ac_try_echo=$ac_try;;
22029esac
22030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22031 (eval "$ac_try") 2>&5
22032 ac_status=$?
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022035
22036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22037}'`
22038# Check for a 64-bit object if we didn't find anything.
22039if 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; }
22040}'`; fi
22041else
22042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022043sed 's/^/| /' conftest.$ac_ext >&5
22044
Reid Spencera773bd52006-08-04 18:18:08 +000022045
John Criswell47fdd832003-07-14 16:52:07 +000022046fi
Reid Spencera773bd52006-08-04 18:18:08 +000022047
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000022048rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022049 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22051
22052 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22053 # Warning - without using the other run time loading flags,
22054 # -berok will link without error, but may produce a broken library.
22055 no_undefined_flag_F77=' ${wl}-bernotok'
22056 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022057 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022058 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022059 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022060 # This is similar to how AIX traditionally builds its shared libraries.
22061 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 +000022062 fi
22063 fi
22064 ;;
22065
22066 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022067 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 +000022068 hardcode_libdir_flag_spec_F77='-L$libdir'
22069 hardcode_minus_L_F77=yes
22070 # see comment about different semantics on the GNU ld section
22071 ld_shlibs_F77=no
22072 ;;
22073
Reid Spencer2706f8c2004-09-19 23:53:36 +000022074 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022075 export_dynamic_flag_spec_F77=-rdynamic
22076 ;;
22077
22078 cygwin* | mingw* | pw32*)
22079 # When not using gcc, we currently assume that we are using
22080 # Microsoft Visual C++.
22081 # hardcode_libdir_flag_spec is actually meaningless, as there is
22082 # no search path for DLLs.
22083 hardcode_libdir_flag_spec_F77=' '
22084 allow_undefined_flag_F77=unsupported
22085 # Tell ltmain to make .lib files, not .a files.
22086 libext=lib
22087 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022088 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022089 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022090 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 +000022091 # The linker will automatically build a .lib file if we build a DLL.
22092 old_archive_From_new_cmds_F77='true'
22093 # FIXME: Should let the user specify the lib program.
22094 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022095 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022096 enable_shared_with_static_runtimes_F77=yes
22097 ;;
22098
22099 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022100 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022101 rhapsody* | darwin1.[012])
22102 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22103 ;;
22104 *) # Darwin 1.3 on
22105 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22106 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22107 else
22108 case ${MACOSX_DEPLOYMENT_TARGET} in
22109 10.[012])
22110 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22111 ;;
22112 10.*)
22113 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22114 ;;
22115 esac
22116 fi
22117 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022118 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022119 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022120 hardcode_direct_F77=no
22121 hardcode_automatic_F77=yes
22122 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022123 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022124 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022125 if test "$GCC" = yes ; then
22126 output_verbose_link_cmd='echo'
22127 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22128 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022129 # 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 +000022130 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}'
22131 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 +000022132 else
Reid Spencera773bd52006-08-04 18:18:08 +000022133 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022134 xlc*)
22135 output_verbose_link_cmd='echo'
22136 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22137 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022138 # 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 +000022139 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}'
22140 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 +000022141 ;;
22142 *)
22143 ld_shlibs_F77=no
22144 ;;
22145 esac
John Criswell47fdd832003-07-14 16:52:07 +000022146 fi
22147 ;;
22148
22149 dgux*)
22150 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22151 hardcode_libdir_flag_spec_F77='-L$libdir'
22152 hardcode_shlibpath_var_F77=no
22153 ;;
22154
22155 freebsd1*)
22156 ld_shlibs_F77=no
22157 ;;
22158
22159 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22160 # support. Future versions do this automatically, but an explicit c++rt0.o
22161 # does not break anything, and helps significantly (at the cost of a little
22162 # extra space).
22163 freebsd2.2*)
22164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22165 hardcode_libdir_flag_spec_F77='-R$libdir'
22166 hardcode_direct_F77=yes
22167 hardcode_shlibpath_var_F77=no
22168 ;;
22169
22170 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22171 freebsd2*)
22172 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22173 hardcode_direct_F77=yes
22174 hardcode_minus_L_F77=yes
22175 hardcode_shlibpath_var_F77=no
22176 ;;
22177
22178 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022179 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022180 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22181 hardcode_libdir_flag_spec_F77='-R$libdir'
22182 hardcode_direct_F77=yes
22183 hardcode_shlibpath_var_F77=no
22184 ;;
22185
22186 hpux9*)
22187 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022188 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 +000022189 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022190 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 +000022191 fi
22192 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22193 hardcode_libdir_separator_F77=:
22194 hardcode_direct_F77=yes
22195
22196 # hardcode_minus_L: Not really in the search PATH,
22197 # but as the default location of the library.
22198 hardcode_minus_L_F77=yes
22199 export_dynamic_flag_spec_F77='${wl}-E'
22200 ;;
22201
Reid Spencera773bd52006-08-04 18:18:08 +000022202 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022203 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022204 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22205 else
22206 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22207 fi
22208 if test "$with_gnu_ld" = no; then
22209 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22210 hardcode_libdir_separator_F77=:
22211
22212 hardcode_direct_F77=yes
22213 export_dynamic_flag_spec_F77='${wl}-E'
22214
22215 # hardcode_minus_L: Not really in the search PATH,
22216 # but as the default location of the library.
22217 hardcode_minus_L_F77=yes
22218 fi
22219 ;;
22220
22221 hpux11*)
22222 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22223 case $host_cpu in
22224 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022225 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022227 ia64*)
22228 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22229 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022230 *)
22231 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22232 ;;
22233 esac
22234 else
Reid Spencera773bd52006-08-04 18:18:08 +000022235 case $host_cpu in
22236 hppa*64*)
22237 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22238 ;;
22239 ia64*)
22240 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022241 ;;
22242 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022243 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 +000022244 ;;
22245 esac
22246 fi
22247 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022248 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22249 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022250
Reid Spencera773bd52006-08-04 18:18:08 +000022251 case $host_cpu in
22252 hppa*64*|ia64*)
22253 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22254 hardcode_direct_F77=no
22255 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022256 ;;
22257 *)
John Criswell47fdd832003-07-14 16:52:07 +000022258 hardcode_direct_F77=yes
22259 export_dynamic_flag_spec_F77='${wl}-E'
22260
22261 # hardcode_minus_L: Not really in the search PATH,
22262 # but as the default location of the library.
22263 hardcode_minus_L_F77=yes
22264 ;;
22265 esac
22266 fi
22267 ;;
22268
22269 irix5* | irix6* | nonstopux*)
22270 if test "$GCC" = yes; then
22271 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'
22272 else
22273 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'
22274 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22275 fi
22276 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22277 hardcode_libdir_separator_F77=:
22278 link_all_deplibs_F77=yes
22279 ;;
22280
22281 netbsd*)
22282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22283 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22284 else
22285 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22286 fi
22287 hardcode_libdir_flag_spec_F77='-R$libdir'
22288 hardcode_direct_F77=yes
22289 hardcode_shlibpath_var_F77=no
22290 ;;
22291
22292 newsos6)
22293 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22294 hardcode_direct_F77=yes
22295 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22296 hardcode_libdir_separator_F77=:
22297 hardcode_shlibpath_var_F77=no
22298 ;;
22299
22300 openbsd*)
22301 hardcode_direct_F77=yes
22302 hardcode_shlibpath_var_F77=no
22303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22304 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022305 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 +000022306 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22307 export_dynamic_flag_spec_F77='${wl}-E'
22308 else
22309 case $host_os in
22310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22311 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22312 hardcode_libdir_flag_spec_F77='-R$libdir'
22313 ;;
22314 *)
22315 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22316 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22317 ;;
22318 esac
22319 fi
22320 ;;
22321
22322 os2*)
22323 hardcode_libdir_flag_spec_F77='-L$libdir'
22324 hardcode_minus_L_F77=yes
22325 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022326 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 +000022327 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22328 ;;
22329
22330 osf3*)
22331 if test "$GCC" = yes; then
22332 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22333 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'
22334 else
22335 allow_undefined_flag_F77=' -expect_unresolved \*'
22336 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'
22337 fi
22338 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22339 hardcode_libdir_separator_F77=:
22340 ;;
22341
22342 osf4* | osf5*) # as osf3* with the addition of -msym flag
22343 if test "$GCC" = yes; then
22344 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22345 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'
22346 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22347 else
22348 allow_undefined_flag_F77=' -expect_unresolved \*'
22349 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 +000022350 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 +000022351 $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 +000022352
John Criswell47fdd832003-07-14 16:52:07 +000022353 # Both c and cxx compiler support -rpath directly
22354 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22355 fi
22356 hardcode_libdir_separator_F77=:
22357 ;;
22358
John Criswell47fdd832003-07-14 16:52:07 +000022359 solaris*)
22360 no_undefined_flag_F77=' -z text'
22361 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022362 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022363 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022364 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22365 $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 +000022366 else
Reid Spencera773bd52006-08-04 18:18:08 +000022367 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022368 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022369 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22370 $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 +000022371 fi
22372 hardcode_libdir_flag_spec_F77='-R$libdir'
22373 hardcode_shlibpath_var_F77=no
22374 case $host_os in
22375 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022376 *)
22377 # The compiler driver will combine linker options so we
22378 # cannot just pass the convience library names through
22379 # without $wl, iff we do not link with $LD.
22380 # Luckily, gcc supports the same syntax we need for Sun Studio.
22381 # Supported since Solaris 2.6 (maybe 2.5.1?)
22382 case $wlarc in
22383 '')
22384 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22385 *)
22386 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' ;;
22387 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022388 esac
22389 link_all_deplibs_F77=yes
22390 ;;
22391
22392 sunos4*)
22393 if test "x$host_vendor" = xsequent; then
22394 # Use $CC to link under sequent, because it throws in some extra .o
22395 # files that make .init and .fini sections work.
22396 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22397 else
22398 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22399 fi
22400 hardcode_libdir_flag_spec_F77='-L$libdir'
22401 hardcode_direct_F77=yes
22402 hardcode_minus_L_F77=yes
22403 hardcode_shlibpath_var_F77=no
22404 ;;
22405
22406 sysv4)
22407 case $host_vendor in
22408 sni)
22409 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22410 hardcode_direct_F77=yes # is this really true???
22411 ;;
22412 siemens)
22413 ## LD is ld it makes a PLAMLIB
22414 ## CC just makes a GrossModule.
22415 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22416 reload_cmds_F77='$CC -r -o $output$reload_objs'
22417 hardcode_direct_F77=no
22418 ;;
22419 motorola)
22420 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22421 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22422 ;;
22423 esac
22424 runpath_var='LD_RUN_PATH'
22425 hardcode_shlibpath_var_F77=no
22426 ;;
22427
22428 sysv4.3*)
22429 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22430 hardcode_shlibpath_var_F77=no
22431 export_dynamic_flag_spec_F77='-Bexport'
22432 ;;
22433
22434 sysv4*MP*)
22435 if test -d /usr/nec; then
22436 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22437 hardcode_shlibpath_var_F77=no
22438 runpath_var=LD_RUN_PATH
22439 hardcode_runpath_var=yes
22440 ld_shlibs_F77=yes
22441 fi
22442 ;;
22443
Reid Spencera773bd52006-08-04 18:18:08 +000022444 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22445 no_undefined_flag_F77='${wl}-z,text'
22446 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022447 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022448 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022449
John Criswell47fdd832003-07-14 16:52:07 +000022450 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022451 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22452 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 +000022453 else
Reid Spencera773bd52006-08-04 18:18:08 +000022454 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22455 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 +000022456 fi
John Criswell47fdd832003-07-14 16:52:07 +000022457 ;;
22458
Reid Spencera773bd52006-08-04 18:18:08 +000022459 sysv5* | sco3.2v5* | sco5v6*)
22460 # Note: We can NOT use -z defs as we might desire, because we do not
22461 # link with -lc, and that would cause any symbols used from libc to
22462 # always be unresolved, which means just about no library would
22463 # ever link correctly. If we're not using GNU ld we use -z text
22464 # though, which does catch some bad symbols but isn't as heavy-handed
22465 # as -z defs.
22466 no_undefined_flag_F77='${wl}-z,text'
22467 allow_undefined_flag_F77='${wl}-z,nodefs'
22468 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022469 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022470 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22471 hardcode_libdir_separator_F77=':'
22472 link_all_deplibs_F77=yes
22473 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022474 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022475
22476 if test "$GCC" = yes; then
22477 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22478 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22479 else
22480 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22481 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22482 fi
John Criswell47fdd832003-07-14 16:52:07 +000022483 ;;
22484
22485 uts4*)
22486 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22487 hardcode_libdir_flag_spec_F77='-L$libdir'
22488 hardcode_shlibpath_var_F77=no
22489 ;;
22490
22491 *)
22492 ld_shlibs_F77=no
22493 ;;
22494 esac
22495 fi
22496
Reid Spencera773bd52006-08-04 18:18:08 +000022497{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22498echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022499test "$ld_shlibs_F77" = no && can_build_shared=no
22500
John Criswell47fdd832003-07-14 16:52:07 +000022501#
22502# Do we need to explicitly link libc?
22503#
22504case "x$archive_cmds_need_lc_F77" in
22505x|xyes)
22506 # Assume -lc should be added
22507 archive_cmds_need_lc_F77=yes
22508
22509 if test "$enable_shared" = yes && test "$GCC" = yes; then
22510 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022512 # FIXME: we may have to deal with multi-command sequences.
22513 ;;
22514 '$CC '*)
22515 # Test whether the compiler implicitly links with -lc since on some
22516 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22517 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022518 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22519echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022520 $rm conftest*
22521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22522
22523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22524 (eval $ac_compile) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); } 2>conftest.err; then
22528 soname=conftest
22529 lib=conftest
22530 libobjs=conftest.$ac_objext
22531 deplibs=
22532 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022533 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022534 compiler_flags=-v
22535 linker_flags=-v
22536 verstring=
22537 output_objdir=.
22538 libname=conftest
22539 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22540 allow_undefined_flag_F77=
22541 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22542 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22543 ac_status=$?
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }
22546 then
22547 archive_cmds_need_lc_F77=no
22548 else
22549 archive_cmds_need_lc_F77=yes
22550 fi
22551 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22552 else
22553 cat conftest.err 1>&5
22554 fi
22555 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022556 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22557echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022558 ;;
22559 esac
22560 fi
22561 ;;
22562esac
22563
Reid Spencera773bd52006-08-04 18:18:08 +000022564{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22565echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022566library_names_spec=
22567libname_spec='lib$name'
22568soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022569shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022570postinstall_cmds=
22571postuninstall_cmds=
22572finish_cmds=
22573finish_eval=
22574shlibpath_var=
22575shlibpath_overrides_runpath=unknown
22576version_type=none
22577dynamic_linker="$host_os ld.so"
22578sys_lib_dlsearch_path_spec="/lib /usr/lib"
22579if test "$GCC" = yes; then
22580 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22581 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22582 # if the path contains ";" then we assume it to be the separator
22583 # otherwise default to the standard path separator (i.e. ":") - it is
22584 # assumed that no part of a normal pathname contains ";" but that should
22585 # okay in the real world where ";" in dirpaths is itself problematic.
22586 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22587 else
22588 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22589 fi
22590else
22591 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22592fi
22593need_lib_prefix=unknown
22594hardcode_into_libs=no
22595
22596# when you set need_version to no, make sure it does not cause -set_version
22597# flags to be left without arguments
22598need_version=unknown
22599
22600case $host_os in
22601aix3*)
22602 version_type=linux
22603 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22604 shlibpath_var=LIBPATH
22605
22606 # AIX 3 has no versioning support, so we append a major version to the name.
22607 soname_spec='${libname}${release}${shared_ext}$major'
22608 ;;
22609
22610aix4* | aix5*)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 hardcode_into_libs=yes
22615 if test "$host_cpu" = ia64; then
22616 # AIX 5 supports IA64
22617 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 else
22620 # With GCC up to 2.95.x, collect2 would create an import file
22621 # for dependence libraries. The import file would start with
22622 # the line `#! .'. This would cause the generated library to
22623 # depend on `.', always an invalid library. This was fixed in
22624 # development snapshots of GCC prior to 3.0.
22625 case $host_os in
22626 aix4 | aix4.[01] | aix4.[01].*)
22627 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22628 echo ' yes '
22629 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22630 :
22631 else
22632 can_build_shared=no
22633 fi
22634 ;;
22635 esac
22636 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22637 # soname into executable. Probably we can add versioning support to
22638 # collect2, so additional links can be useful in future.
22639 if test "$aix_use_runtimelinking" = yes; then
22640 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22641 # instead of lib<name>.a to let people know that these are not
22642 # typical AIX shared libraries.
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22644 else
22645 # We preserve .a as extension for shared libraries through AIX4.2
22646 # and later when we are not doing run time linking.
22647 library_names_spec='${libname}${release}.a $libname.a'
22648 soname_spec='${libname}${release}${shared_ext}$major'
22649 fi
22650 shlibpath_var=LIBPATH
22651 fi
22652 ;;
22653
22654amigaos*)
22655 library_names_spec='$libname.ixlibrary $libname.a'
22656 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 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 +000022658 ;;
22659
22660beos*)
22661 library_names_spec='${libname}${shared_ext}'
22662 dynamic_linker="$host_os ld.so"
22663 shlibpath_var=LIBRARY_PATH
22664 ;;
22665
Reid Spencer2706f8c2004-09-19 23:53:36 +000022666bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022667 version_type=linux
22668 need_version=no
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22670 soname_spec='${libname}${release}${shared_ext}$major'
22671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22675 # the default ld.so.conf also contains /usr/contrib/lib and
22676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22677 # libtool to hard-code these into programs
22678 ;;
22679
22680cygwin* | mingw* | pw32*)
22681 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022682 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022683 need_version=no
22684 need_lib_prefix=no
22685
22686 case $GCC,$host_os in
22687 yes,cygwin* | yes,mingw* | yes,pw32*)
22688 library_names_spec='$libname.dll.a'
22689 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022690 postinstall_cmds='base_file=`basename \${file}`~
22691 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22692 dldir=$destdir/`dirname \$dlpath`~
22693 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022694 $install_prog $dir/$dlname \$dldir/$dlname~
22695 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022696 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22697 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022698 $rm \$dlpath'
22699 shlibpath_overrides_runpath=yes
22700
22701 case $host_os in
22702 cygwin*)
22703 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22704 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 +000022705 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022706 ;;
22707 mingw*)
22708 # MinGW DLLs use traditional 'lib' prefix
22709 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22711 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22712 # It is most probably a Windows format PATH printed by
22713 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22714 # path with ; separators, and with drive letters. We can handle the
22715 # drive letters (cygwin fileutils understands them), so leave them,
22716 # especially as we might pass files found there to a mingw objdump,
22717 # which wouldn't understand a cygwinified path. Ahh.
22718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22719 else
22720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22721 fi
22722 ;;
22723 pw32*)
22724 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022725 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 +000022726 ;;
22727 esac
22728 ;;
22729
22730 *)
22731 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22732 ;;
22733 esac
22734 dynamic_linker='Win32 ld.exe'
22735 # FIXME: first we should search . and the directory the executable is in
22736 shlibpath_var=PATH
22737 ;;
22738
22739darwin* | rhapsody*)
22740 dynamic_linker="$host_os dyld"
22741 version_type=darwin
22742 need_lib_prefix=no
22743 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022744 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022745 soname_spec='${libname}${release}${major}$shared_ext'
22746 shlibpath_overrides_runpath=yes
22747 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022748 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022749 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022750 if test "$GCC" = yes; then
22751 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"`
22752 else
22753 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022754 fi
22755 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22756 ;;
22757
22758dgux*)
22759 version_type=linux
22760 need_lib_prefix=no
22761 need_version=no
22762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22763 soname_spec='${libname}${release}${shared_ext}$major'
22764 shlibpath_var=LD_LIBRARY_PATH
22765 ;;
22766
22767freebsd1*)
22768 dynamic_linker=no
22769 ;;
22770
Reid Spencer2706f8c2004-09-19 23:53:36 +000022771kfreebsd*-gnu)
22772 version_type=linux
22773 need_lib_prefix=no
22774 need_version=no
22775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22776 soname_spec='${libname}${release}${shared_ext}$major'
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=no
22779 hardcode_into_libs=yes
22780 dynamic_linker='GNU ld.so'
22781 ;;
22782
Reid Spencera773bd52006-08-04 18:18:08 +000022783freebsd* | dragonfly*)
22784 # DragonFly does not have aout. When/if they implement a new
22785 # versioning mechanism, adjust this.
22786 if test -x /usr/bin/objformat; then
22787 objformat=`/usr/bin/objformat`
22788 else
22789 case $host_os in
22790 freebsd[123]*) objformat=aout ;;
22791 *) objformat=elf ;;
22792 esac
22793 fi
John Criswell47fdd832003-07-14 16:52:07 +000022794 version_type=freebsd-$objformat
22795 case $version_type in
22796 freebsd-elf*)
22797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22798 need_version=no
22799 need_lib_prefix=no
22800 ;;
22801 freebsd-*)
22802 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22803 need_version=yes
22804 ;;
22805 esac
22806 shlibpath_var=LD_LIBRARY_PATH
22807 case $host_os in
22808 freebsd2*)
22809 shlibpath_overrides_runpath=yes
22810 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022811 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022812 shlibpath_overrides_runpath=yes
22813 hardcode_into_libs=yes
22814 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022815 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22816 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022817 shlibpath_overrides_runpath=no
22818 hardcode_into_libs=yes
22819 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022820 freebsd*) # from 4.6 on
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022824 esac
22825 ;;
22826
22827gnu*)
22828 version_type=linux
22829 need_lib_prefix=no
22830 need_version=no
22831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22832 soname_spec='${libname}${release}${shared_ext}$major'
22833 shlibpath_var=LD_LIBRARY_PATH
22834 hardcode_into_libs=yes
22835 ;;
22836
22837hpux9* | hpux10* | hpux11*)
22838 # Give a soname corresponding to the major version so that dld.sl refuses to
22839 # link against other versions.
22840 version_type=sunos
22841 need_lib_prefix=no
22842 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022843 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022844 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022845 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022846 hardcode_into_libs=yes
22847 dynamic_linker="$host_os dld.so"
22848 shlibpath_var=LD_LIBRARY_PATH
22849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22851 soname_spec='${libname}${release}${shared_ext}$major'
22852 if test "X$HPUX_IA64_MODE" = X32; then
22853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22854 else
22855 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22856 fi
22857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22858 ;;
22859 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022860 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022861 hardcode_into_libs=yes
22862 dynamic_linker="$host_os dld.sl"
22863 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22864 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22866 soname_spec='${libname}${release}${shared_ext}$major'
22867 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22868 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22869 ;;
22870 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022871 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022872 dynamic_linker="$host_os dld.sl"
22873 shlibpath_var=SHLIB_PATH
22874 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22876 soname_spec='${libname}${release}${shared_ext}$major'
22877 ;;
22878 esac
22879 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22880 postinstall_cmds='chmod 555 $lib'
22881 ;;
22882
Reid Spencera773bd52006-08-04 18:18:08 +000022883interix3*)
22884 version_type=linux
22885 need_lib_prefix=no
22886 need_version=no
22887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22888 soname_spec='${libname}${release}${shared_ext}$major'
22889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22890 shlibpath_var=LD_LIBRARY_PATH
22891 shlibpath_overrides_runpath=no
22892 hardcode_into_libs=yes
22893 ;;
22894
John Criswell47fdd832003-07-14 16:52:07 +000022895irix5* | irix6* | nonstopux*)
22896 case $host_os in
22897 nonstopux*) version_type=nonstopux ;;
22898 *)
22899 if test "$lt_cv_prog_gnu_ld" = yes; then
22900 version_type=linux
22901 else
22902 version_type=irix
22903 fi ;;
22904 esac
22905 need_lib_prefix=no
22906 need_version=no
22907 soname_spec='${libname}${release}${shared_ext}$major'
22908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22909 case $host_os in
22910 irix5* | nonstopux*)
22911 libsuff= shlibsuff=
22912 ;;
22913 *)
22914 case $LD in # libtool.m4 will add one of these switches to LD
22915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22916 libsuff= shlibsuff= libmagic=32-bit;;
22917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22918 libsuff=32 shlibsuff=N32 libmagic=N32;;
22919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22920 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22921 *) libsuff= shlibsuff= libmagic=never-match;;
22922 esac
22923 ;;
22924 esac
22925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22926 shlibpath_overrides_runpath=no
22927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22929 hardcode_into_libs=yes
22930 ;;
22931
22932# No shared lib support for Linux oldld, aout, or coff.
22933linux*oldld* | linux*aout* | linux*coff*)
22934 dynamic_linker=no
22935 ;;
22936
22937# This must be Linux ELF.
22938linux*)
22939 version_type=linux
22940 need_lib_prefix=no
22941 need_version=no
22942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22943 soname_spec='${libname}${release}${shared_ext}$major'
22944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22945 shlibpath_var=LD_LIBRARY_PATH
22946 shlibpath_overrides_runpath=no
22947 # This implies no fast_install, which is unacceptable.
22948 # Some rework will be needed to allow for fast_install
22949 # before this can be enabled.
22950 hardcode_into_libs=yes
22951
Reid Spencer2706f8c2004-09-19 23:53:36 +000022952 # Append ld.so.conf contents to the search path
22953 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022954 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 +000022955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22956 fi
22957
John Criswell47fdd832003-07-14 16:52:07 +000022958 # We used to test for /lib/ld.so.1 and disable shared libraries on
22959 # powerpc, because MkLinux only supported shared libraries with the
22960 # GNU dynamic linker. Since this was broken with cross compilers,
22961 # most powerpc-linux boxes support dynamic linking these days and
22962 # people can always --disable-shared, the test was removed, and we
22963 # assume the GNU/Linux dynamic linker is in use.
22964 dynamic_linker='GNU/Linux ld.so'
22965 ;;
22966
Reid Spencer2706f8c2004-09-19 23:53:36 +000022967knetbsd*-gnu)
22968 version_type=linux
22969 need_lib_prefix=no
22970 need_version=no
22971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22972 soname_spec='${libname}${release}${shared_ext}$major'
22973 shlibpath_var=LD_LIBRARY_PATH
22974 shlibpath_overrides_runpath=no
22975 hardcode_into_libs=yes
22976 dynamic_linker='GNU ld.so'
22977 ;;
22978
John Criswell47fdd832003-07-14 16:52:07 +000022979netbsd*)
22980 version_type=sunos
22981 need_lib_prefix=no
22982 need_version=no
22983 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22986 dynamic_linker='NetBSD (a.out) ld.so'
22987 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022989 soname_spec='${libname}${release}${shared_ext}$major'
22990 dynamic_linker='NetBSD ld.elf_so'
22991 fi
22992 shlibpath_var=LD_LIBRARY_PATH
22993 shlibpath_overrides_runpath=yes
22994 hardcode_into_libs=yes
22995 ;;
22996
22997newsos6)
22998 version_type=linux
22999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23000 shlibpath_var=LD_LIBRARY_PATH
23001 shlibpath_overrides_runpath=yes
23002 ;;
23003
Reid Spencer2706f8c2004-09-19 23:53:36 +000023004nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023005 version_type=linux
23006 need_lib_prefix=no
23007 need_version=no
23008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23009 soname_spec='${libname}${release}${shared_ext}$major'
23010 shlibpath_var=LD_LIBRARY_PATH
23011 shlibpath_overrides_runpath=yes
23012 ;;
23013
23014openbsd*)
23015 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023016 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023017 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23019 case $host_os in
23020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23021 *) need_version=no ;;
23022 esac
John Criswell47fdd832003-07-14 16:52:07 +000023023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23025 shlibpath_var=LD_LIBRARY_PATH
23026 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23027 case $host_os in
23028 openbsd2.[89] | openbsd2.[89].*)
23029 shlibpath_overrides_runpath=no
23030 ;;
23031 *)
23032 shlibpath_overrides_runpath=yes
23033 ;;
23034 esac
23035 else
23036 shlibpath_overrides_runpath=yes
23037 fi
23038 ;;
23039
23040os2*)
23041 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023043 need_lib_prefix=no
23044 library_names_spec='$libname${shared_ext} $libname.a'
23045 dynamic_linker='OS/2 ld.exe'
23046 shlibpath_var=LIBPATH
23047 ;;
23048
23049osf3* | osf4* | osf5*)
23050 version_type=osf
23051 need_lib_prefix=no
23052 need_version=no
23053 soname_spec='${libname}${release}${shared_ext}$major'
23054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23055 shlibpath_var=LD_LIBRARY_PATH
23056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23058 ;;
23059
John Criswell47fdd832003-07-14 16:52:07 +000023060solaris*)
23061 version_type=linux
23062 need_lib_prefix=no
23063 need_version=no
23064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23065 soname_spec='${libname}${release}${shared_ext}$major'
23066 shlibpath_var=LD_LIBRARY_PATH
23067 shlibpath_overrides_runpath=yes
23068 hardcode_into_libs=yes
23069 # ldd complains unless libraries are executable
23070 postinstall_cmds='chmod +x $lib'
23071 ;;
23072
23073sunos4*)
23074 version_type=sunos
23075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23077 shlibpath_var=LD_LIBRARY_PATH
23078 shlibpath_overrides_runpath=yes
23079 if test "$with_gnu_ld" = yes; then
23080 need_lib_prefix=no
23081 fi
23082 need_version=yes
23083 ;;
23084
Reid Spencera773bd52006-08-04 18:18:08 +000023085sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023086 version_type=linux
23087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23088 soname_spec='${libname}${release}${shared_ext}$major'
23089 shlibpath_var=LD_LIBRARY_PATH
23090 case $host_vendor in
23091 sni)
23092 shlibpath_overrides_runpath=no
23093 need_lib_prefix=no
23094 export_dynamic_flag_spec='${wl}-Blargedynsym'
23095 runpath_var=LD_RUN_PATH
23096 ;;
23097 siemens)
23098 need_lib_prefix=no
23099 ;;
23100 motorola)
23101 need_lib_prefix=no
23102 need_version=no
23103 shlibpath_overrides_runpath=no
23104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23105 ;;
23106 esac
23107 ;;
23108
23109sysv4*MP*)
23110 if test -d /usr/nec ;then
23111 version_type=linux
23112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23113 soname_spec='$libname${shared_ext}.$major'
23114 shlibpath_var=LD_LIBRARY_PATH
23115 fi
23116 ;;
23117
Reid Spencera773bd52006-08-04 18:18:08 +000023118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23119 version_type=freebsd-elf
23120 need_lib_prefix=no
23121 need_version=no
23122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23123 soname_spec='${libname}${release}${shared_ext}$major'
23124 shlibpath_var=LD_LIBRARY_PATH
23125 hardcode_into_libs=yes
23126 if test "$with_gnu_ld" = yes; then
23127 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23128 shlibpath_overrides_runpath=no
23129 else
23130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23131 shlibpath_overrides_runpath=yes
23132 case $host_os in
23133 sco3.2v5*)
23134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23135 ;;
23136 esac
23137 fi
23138 sys_lib_dlsearch_path_spec='/usr/lib'
23139 ;;
23140
John Criswell47fdd832003-07-14 16:52:07 +000023141uts4*)
23142 version_type=linux
23143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23144 soname_spec='${libname}${release}${shared_ext}$major'
23145 shlibpath_var=LD_LIBRARY_PATH
23146 ;;
23147
23148*)
23149 dynamic_linker=no
23150 ;;
23151esac
Reid Spencera773bd52006-08-04 18:18:08 +000023152{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23153echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023154test "$dynamic_linker" = no && can_build_shared=no
23155
Reid Spencera773bd52006-08-04 18:18:08 +000023156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23157if test "$GCC" = yes; then
23158 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23159fi
23160
23161{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23162echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023163hardcode_action_F77=
23164if test -n "$hardcode_libdir_flag_spec_F77" || \
23165 test -n "$runpath_var_F77" || \
23166 test "X$hardcode_automatic_F77" = "Xyes" ; then
23167
23168 # We can hardcode non-existant directories.
23169 if test "$hardcode_direct_F77" != no &&
23170 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23171 # have to relink, otherwise we might link with an installed library
23172 # when we should be linking with a yet-to-be-installed one
23173 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23174 test "$hardcode_minus_L_F77" != no; then
23175 # Linking always hardcodes the temporary library directory.
23176 hardcode_action_F77=relink
23177 else
23178 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23179 hardcode_action_F77=immediate
23180 fi
23181else
23182 # We cannot hardcode anything, or else we can only hardcode existing
23183 # directories.
23184 hardcode_action_F77=unsupported
23185fi
Reid Spencera773bd52006-08-04 18:18:08 +000023186{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23187echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188
23189if test "$hardcode_action_F77" = relink; then
23190 # Fast installation is not supported
23191 enable_fast_install=no
23192elif test "$shlibpath_overrides_runpath" = yes ||
23193 test "$enable_shared" = no; then
23194 # Fast installation is not necessary
23195 enable_fast_install=needless
23196fi
23197
John Criswell47fdd832003-07-14 16:52:07 +000023198
23199# The else clause should only fire when bootstrapping the
23200# libtool distribution, otherwise you forgot to ship ltmain.sh
23201# with your package, and you will get complaints that there are
23202# no rules to generate ltmain.sh.
23203if test -f "$ltmain"; then
23204 # See if we are running on zsh, and set the options which allow our commands through
23205 # without removal of \ escapes.
23206 if test -n "${ZSH_VERSION+set}" ; then
23207 setopt NO_GLOB_SUBST
23208 fi
23209 # Now quote all the things that may contain metacharacters while being
23210 # careful not to overquote the AC_SUBSTed values. We take copies of the
23211 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023212 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 +000023213 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023214 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23215 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23216 deplibs_check_method reload_flag reload_cmds need_locks \
23217 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23218 lt_cv_sys_global_symbol_to_c_name_address \
23219 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23220 old_postinstall_cmds old_postuninstall_cmds \
23221 compiler_F77 \
23222 CC_F77 \
23223 LD_F77 \
23224 lt_prog_compiler_wl_F77 \
23225 lt_prog_compiler_pic_F77 \
23226 lt_prog_compiler_static_F77 \
23227 lt_prog_compiler_no_builtin_flag_F77 \
23228 export_dynamic_flag_spec_F77 \
23229 thread_safe_flag_spec_F77 \
23230 whole_archive_flag_spec_F77 \
23231 enable_shared_with_static_runtimes_F77 \
23232 old_archive_cmds_F77 \
23233 old_archive_from_new_cmds_F77 \
23234 predep_objects_F77 \
23235 postdep_objects_F77 \
23236 predeps_F77 \
23237 postdeps_F77 \
23238 compiler_lib_search_path_F77 \
23239 archive_cmds_F77 \
23240 archive_expsym_cmds_F77 \
23241 postinstall_cmds_F77 \
23242 postuninstall_cmds_F77 \
23243 old_archive_from_expsyms_cmds_F77 \
23244 allow_undefined_flag_F77 \
23245 no_undefined_flag_F77 \
23246 export_symbols_cmds_F77 \
23247 hardcode_libdir_flag_spec_F77 \
23248 hardcode_libdir_flag_spec_ld_F77 \
23249 hardcode_libdir_separator_F77 \
23250 hardcode_automatic_F77 \
23251 module_cmds_F77 \
23252 module_expsym_cmds_F77 \
23253 lt_cv_prog_compiler_c_o_F77 \
23254 exclude_expsyms_F77 \
23255 include_expsyms_F77; do
23256
23257 case $var in
23258 old_archive_cmds_F77 | \
23259 old_archive_from_new_cmds_F77 | \
23260 archive_cmds_F77 | \
23261 archive_expsym_cmds_F77 | \
23262 module_cmds_F77 | \
23263 module_expsym_cmds_F77 | \
23264 old_archive_from_expsyms_cmds_F77 | \
23265 export_symbols_cmds_F77 | \
23266 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23267 postinstall_cmds | postuninstall_cmds | \
23268 old_postinstall_cmds | old_postuninstall_cmds | \
23269 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23270 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023271 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 +000023272 ;;
23273 *)
23274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23275 ;;
23276 esac
23277 done
23278
23279 case $lt_echo in
23280 *'\$0 --fallback-echo"')
23281 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23282 ;;
23283 esac
23284
23285cfgfile="$ofile"
23286
23287 cat <<__EOF__ >> "$cfgfile"
23288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23289
23290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23291
23292# Shell to use when invoking shell scripts.
23293SHELL=$lt_SHELL
23294
23295# Whether or not to build shared libraries.
23296build_libtool_libs=$enable_shared
23297
23298# Whether or not to build static libraries.
23299build_old_libs=$enable_static
23300
23301# Whether or not to add -lc for building shared libraries.
23302build_libtool_need_lc=$archive_cmds_need_lc_F77
23303
23304# Whether or not to disallow shared libs when runtime libs are static
23305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23306
23307# Whether or not to optimize for fast installation.
23308fast_install=$enable_fast_install
23309
23310# The host system.
23311host_alias=$host_alias
23312host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023313host_os=$host_os
23314
23315# The build system.
23316build_alias=$build_alias
23317build=$build
23318build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023319
23320# An echo program that does not interpret backslashes.
23321echo=$lt_echo
23322
23323# The archiver.
23324AR=$lt_AR
23325AR_FLAGS=$lt_AR_FLAGS
23326
23327# A C compiler.
23328LTCC=$lt_LTCC
23329
Reid Spencera773bd52006-08-04 18:18:08 +000023330# LTCC compiler flags.
23331LTCFLAGS=$lt_LTCFLAGS
23332
John Criswell47fdd832003-07-14 16:52:07 +000023333# A language-specific compiler.
23334CC=$lt_compiler_F77
23335
23336# Is the compiler the GNU C compiler?
23337with_gcc=$GCC_F77
23338
23339# An ERE matcher.
23340EGREP=$lt_EGREP
23341
23342# The linker used to build libraries.
23343LD=$lt_LD_F77
23344
23345# Whether we need hard or soft links.
23346LN_S=$lt_LN_S
23347
23348# A BSD-compatible nm program.
23349NM=$lt_NM
23350
23351# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023353
23354# Used to examine libraries when file_magic_cmd begins "file"
23355MAGIC_CMD=$MAGIC_CMD
23356
23357# Used on cygwin: DLL creation program.
23358DLLTOOL="$DLLTOOL"
23359
23360# Used on cygwin: object dumper.
23361OBJDUMP="$OBJDUMP"
23362
23363# Used on cygwin: assembler.
23364AS="$AS"
23365
23366# The name of the directory that contains temporary libtool files.
23367objdir=$objdir
23368
23369# How to create reloadable object files.
23370reload_flag=$lt_reload_flag
23371reload_cmds=$lt_reload_cmds
23372
23373# How to pass a linker flag through the compiler.
23374wl=$lt_lt_prog_compiler_wl_F77
23375
23376# Object file suffix (normally "o").
23377objext="$ac_objext"
23378
23379# Old archive suffix (normally "a").
23380libext="$libext"
23381
23382# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023383shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023384
23385# Executable file suffix (normally "").
23386exeext="$exeext"
23387
23388# Additional compiler flags for building library objects.
23389pic_flag=$lt_lt_prog_compiler_pic_F77
23390pic_mode=$pic_mode
23391
23392# What is the maximum length of a command?
23393max_cmd_len=$lt_cv_sys_max_cmd_len
23394
23395# Does compiler simultaneously support -c and -o options?
23396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23397
Reid Spencera773bd52006-08-04 18:18:08 +000023398# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023399need_locks=$lt_need_locks
23400
23401# Do we need the lib prefix for modules?
23402need_lib_prefix=$need_lib_prefix
23403
23404# Do we need a version for libraries?
23405need_version=$need_version
23406
23407# Whether dlopen is supported.
23408dlopen_support=$enable_dlopen
23409
23410# Whether dlopen of programs is supported.
23411dlopen_self=$enable_dlopen_self
23412
23413# Whether dlopen of statically linked programs is supported.
23414dlopen_self_static=$enable_dlopen_self_static
23415
23416# Compiler flag to prevent dynamic linking.
23417link_static_flag=$lt_lt_prog_compiler_static_F77
23418
23419# Compiler flag to turn off builtin functions.
23420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23421
23422# Compiler flag to allow reflexive dlopens.
23423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23424
23425# Compiler flag to generate shared objects directly from archives.
23426whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23427
23428# Compiler flag to generate thread-safe objects.
23429thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23430
23431# Library versioning type.
23432version_type=$version_type
23433
23434# Format of library name prefix.
23435libname_spec=$lt_libname_spec
23436
23437# List of archive names. First name is the real one, the rest are links.
23438# The last name is the one that the linker finds with -lNAME.
23439library_names_spec=$lt_library_names_spec
23440
23441# The coded name of the library, if different from the real name.
23442soname_spec=$lt_soname_spec
23443
23444# Commands used to build and install an old-style archive.
23445RANLIB=$lt_RANLIB
23446old_archive_cmds=$lt_old_archive_cmds_F77
23447old_postinstall_cmds=$lt_old_postinstall_cmds
23448old_postuninstall_cmds=$lt_old_postuninstall_cmds
23449
23450# Create an old-style archive from a shared archive.
23451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23452
23453# Create a temporary old-style archive to link instead of a shared archive.
23454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23455
23456# Commands used to build and install a shared archive.
23457archive_cmds=$lt_archive_cmds_F77
23458archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23459postinstall_cmds=$lt_postinstall_cmds
23460postuninstall_cmds=$lt_postuninstall_cmds
23461
23462# Commands used to build a loadable module (assumed same as above if empty)
23463module_cmds=$lt_module_cmds_F77
23464module_expsym_cmds=$lt_module_expsym_cmds_F77
23465
23466# Commands to strip libraries.
23467old_striplib=$lt_old_striplib
23468striplib=$lt_striplib
23469
23470# Dependencies to place before the objects being linked to create a
23471# shared library.
23472predep_objects=$lt_predep_objects_F77
23473
23474# Dependencies to place after the objects being linked to create a
23475# shared library.
23476postdep_objects=$lt_postdep_objects_F77
23477
23478# Dependencies to place before the objects being linked to create a
23479# shared library.
23480predeps=$lt_predeps_F77
23481
23482# Dependencies to place after the objects being linked to create a
23483# shared library.
23484postdeps=$lt_postdeps_F77
23485
23486# The library search path used internally by the compiler when linking
23487# a shared library.
23488compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23489
23490# Method to check whether dependent libraries are shared objects.
23491deplibs_check_method=$lt_deplibs_check_method
23492
23493# Command to use when deplibs_check_method == file_magic.
23494file_magic_cmd=$lt_file_magic_cmd
23495
23496# Flag that allows shared libraries with undefined symbols to be built.
23497allow_undefined_flag=$lt_allow_undefined_flag_F77
23498
23499# Flag that forces no undefined symbols.
23500no_undefined_flag=$lt_no_undefined_flag_F77
23501
23502# Commands used to finish a libtool library installation in a directory.
23503finish_cmds=$lt_finish_cmds
23504
23505# Same as above, but a single script fragment to be evaled but not shown.
23506finish_eval=$lt_finish_eval
23507
23508# Take the output of nm and produce a listing of raw symbols and C names.
23509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23510
23511# Transform the output of nm in a proper C declaration
23512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23513
23514# Transform the output of nm in a C name address pair
23515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23516
23517# This is the shared library runtime path variable.
23518runpath_var=$runpath_var
23519
23520# This is the shared library path variable.
23521shlibpath_var=$shlibpath_var
23522
23523# Is shlibpath searched before the hard-coded library search path?
23524shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23525
23526# How to hardcode a shared library path into an executable.
23527hardcode_action=$hardcode_action_F77
23528
23529# Whether we should hardcode library paths into libraries.
23530hardcode_into_libs=$hardcode_into_libs
23531
23532# Flag to hardcode \$libdir into a binary during linking.
23533# This must work even if \$libdir does not exist.
23534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23535
23536# If ld is used when linking, flag to hardcode \$libdir into
23537# a binary during linking. This must work even if \$libdir does
23538# not exist.
23539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23540
23541# Whether we need a single -rpath flag with a separated argument.
23542hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23543
23544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23545# resulting binary.
23546hardcode_direct=$hardcode_direct_F77
23547
23548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23549# resulting binary.
23550hardcode_minus_L=$hardcode_minus_L_F77
23551
23552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23553# the resulting binary.
23554hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23555
23556# Set to yes if building a shared library automatically hardcodes DIR into the library
23557# and all subsequent libraries and executables linked against it.
23558hardcode_automatic=$hardcode_automatic_F77
23559
23560# Variables whose values should be saved in libtool wrapper scripts and
23561# restored at relink time.
23562variables_saved_for_relink="$variables_saved_for_relink"
23563
23564# Whether libtool must link a program against all its dependency libraries.
23565link_all_deplibs=$link_all_deplibs_F77
23566
23567# Compile-time system search path for libraries
23568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23569
23570# Run-time system search path for libraries
23571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23572
23573# Fix the shell variable \$srcfile for the compiler.
23574fix_srcfile_path="$fix_srcfile_path_F77"
23575
23576# Set to yes if exported symbols are required.
23577always_export_symbols=$always_export_symbols_F77
23578
23579# The commands to list exported symbols.
23580export_symbols_cmds=$lt_export_symbols_cmds_F77
23581
23582# The commands to extract the exported symbol list from a shared archive.
23583extract_expsyms_cmds=$lt_extract_expsyms_cmds
23584
23585# Symbols that should not be listed in the preloaded symbols.
23586exclude_expsyms=$lt_exclude_expsyms_F77
23587
23588# Symbols that must always be exported.
23589include_expsyms=$lt_include_expsyms_F77
23590
23591# ### END LIBTOOL TAG CONFIG: $tagname
23592
23593__EOF__
23594
23595
23596else
23597 # If there is no Makefile yet, we rely on a make rule to execute
23598 # `config.status --recheck' to rerun these tests and create the
23599 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023600 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23601 if test -f "$ltmain_in"; then
23602 test -f Makefile && make "$ltmain"
23603 fi
John Criswell47fdd832003-07-14 16:52:07 +000023604fi
23605
23606
23607ac_ext=c
23608ac_cpp='$CPP $CPPFLAGS'
23609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23611ac_compiler_gnu=$ac_cv_c_compiler_gnu
23612
23613CC="$lt_save_CC"
23614
23615 else
23616 tagname=""
23617 fi
23618 ;;
23619
23620 GCJ)
23621 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023622 ac_ext=c
23623ac_cpp='$CPP $CPPFLAGS'
23624ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23625ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23626ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023627
23628
23629# Source file extension for Java test sources.
23630ac_ext=java
23631
23632# Object file extension for compiled Java test sources.
23633objext=o
23634objext_GCJ=$objext
23635
23636# Code to be used in simple compile tests
23637lt_simple_compile_test_code="class foo {}\n"
23638
23639# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023640lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023641
23642# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23643
23644# If no C compiler was specified, use CC.
23645LTCC=${LTCC-"$CC"}
23646
Reid Spencera773bd52006-08-04 18:18:08 +000023647# If no C compiler flags were specified, use CFLAGS.
23648LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23649
John Criswell47fdd832003-07-14 16:52:07 +000023650# Allow CC to be a program name with arguments.
23651compiler=$CC
23652
23653
Reid Spencera773bd52006-08-04 18:18:08 +000023654# save warnings/boilerplate of simple test code
23655ac_outfile=conftest.$ac_objext
23656printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23657eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23658_lt_compiler_boilerplate=`cat conftest.err`
23659$rm conftest*
23660
23661ac_outfile=conftest.$ac_objext
23662printf "$lt_simple_link_test_code" >conftest.$ac_ext
23663eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23664_lt_linker_boilerplate=`cat conftest.err`
23665$rm conftest*
23666
23667
John Criswell47fdd832003-07-14 16:52:07 +000023668# Allow CC to be a program name with arguments.
23669lt_save_CC="$CC"
23670CC=${GCJ-"gcj"}
23671compiler=$CC
23672compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023673for cc_temp in $compiler""; do
23674 case $cc_temp in
23675 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23676 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23677 \-*) ;;
23678 *) break;;
23679 esac
23680done
23681cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23682
John Criswell47fdd832003-07-14 16:52:07 +000023683
23684# GCJ did not exist at the time GCC didn't implicitly link libc in.
23685archive_cmds_need_lc_GCJ=no
23686
Reid Spencera773bd52006-08-04 18:18:08 +000023687old_archive_cmds_GCJ=$old_archive_cmds
23688
John Criswell47fdd832003-07-14 16:52:07 +000023689
23690lt_prog_compiler_no_builtin_flag_GCJ=
23691
23692if test "$GCC" = yes; then
23693 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23694
Reid Spencer2706f8c2004-09-19 23:53:36 +000023695
Reid Spencera773bd52006-08-04 18:18:08 +000023696{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23697echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023698if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23700else
23701 lt_cv_prog_compiler_rtti_exceptions=no
23702 ac_outfile=conftest.$ac_objext
23703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23704 lt_compiler_flag="-fno-rtti -fno-exceptions"
23705 # Insert the option either (1) after the last *FLAGS variable, or
23706 # (2) before a word containing "conftest.", or (3) at the end.
23707 # Note that $ac_compile itself does not contain backslashes and begins
23708 # with a dollar sign (not a hyphen), so the echo should work correctly.
23709 # The option is referenced via a variable to avoid confusing sed.
23710 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23713 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000023714 (eval echo "\"\$as_me:23714: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023715 (eval "$lt_compile" 2>conftest.err)
23716 ac_status=$?
23717 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000023718 echo "$as_me:23718: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023719 if (exit $ac_status) && test -s "$ac_outfile"; then
23720 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023721 # So say no if there are warnings other than the usual output.
23722 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023725 lt_cv_prog_compiler_rtti_exceptions=yes
23726 fi
23727 fi
23728 $rm conftest*
23729
23730fi
Reid Spencera773bd52006-08-04 18:18:08 +000023731{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23732echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023733
23734if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23735 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23736else
23737 :
23738fi
23739
23740fi
23741
23742lt_prog_compiler_wl_GCJ=
23743lt_prog_compiler_pic_GCJ=
23744lt_prog_compiler_static_GCJ=
23745
Reid Spencera773bd52006-08-04 18:18:08 +000023746{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23747echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023748
23749 if test "$GCC" = yes; then
23750 lt_prog_compiler_wl_GCJ='-Wl,'
23751 lt_prog_compiler_static_GCJ='-static'
23752
23753 case $host_os in
23754 aix*)
23755 # All AIX code is PIC.
23756 if test "$host_cpu" = ia64; then
23757 # AIX 5 now supports IA64 processor
23758 lt_prog_compiler_static_GCJ='-Bstatic'
23759 fi
23760 ;;
23761
23762 amigaos*)
23763 # FIXME: we need at least 68020 code to build shared libraries, but
23764 # adding the `-m68020' flag to GCC prevents building anything better,
23765 # like `-m68040'.
23766 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23767 ;;
23768
23769 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23770 # PIC is the default for these OSes.
23771 ;;
23772
23773 mingw* | pw32* | os2*)
23774 # This hack is so that the source file can tell whether it is being
23775 # built for inclusion in a dll (and should export symbols for example).
23776 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23777 ;;
23778
23779 darwin* | rhapsody*)
23780 # PIC is the default on this platform
23781 # Common symbols not allowed in MH_DYLIB files
23782 lt_prog_compiler_pic_GCJ='-fno-common'
23783 ;;
23784
Reid Spencera773bd52006-08-04 18:18:08 +000023785 interix3*)
23786 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23787 # Instead, we relocate shared libraries at runtime.
23788 ;;
23789
John Criswell47fdd832003-07-14 16:52:07 +000023790 msdosdjgpp*)
23791 # Just because we use GCC doesn't mean we suddenly get shared libraries
23792 # on systems that don't support them.
23793 lt_prog_compiler_can_build_shared_GCJ=no
23794 enable_shared=no
23795 ;;
23796
23797 sysv4*MP*)
23798 if test -d /usr/nec; then
23799 lt_prog_compiler_pic_GCJ=-Kconform_pic
23800 fi
23801 ;;
23802
23803 hpux*)
23804 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23805 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023806 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023807 hppa*64*|ia64*)
23808 # +Z the default
23809 ;;
23810 *)
23811 lt_prog_compiler_pic_GCJ='-fPIC'
23812 ;;
23813 esac
23814 ;;
23815
23816 *)
23817 lt_prog_compiler_pic_GCJ='-fPIC'
23818 ;;
23819 esac
23820 else
23821 # PORTME Check for flag to pass linker flags through the system compiler.
23822 case $host_os in
23823 aix*)
23824 lt_prog_compiler_wl_GCJ='-Wl,'
23825 if test "$host_cpu" = ia64; then
23826 # AIX 5 now supports IA64 processor
23827 lt_prog_compiler_static_GCJ='-Bstatic'
23828 else
23829 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23830 fi
23831 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023832 darwin*)
23833 # PIC is the default on this platform
23834 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023835 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023836 xlc*)
23837 lt_prog_compiler_pic_GCJ='-qnocommon'
23838 lt_prog_compiler_wl_GCJ='-Wl,'
23839 ;;
23840 esac
23841 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023842
23843 mingw* | pw32* | os2*)
23844 # This hack is so that the source file can tell whether it is being
23845 # built for inclusion in a dll (and should export symbols for example).
23846 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23847 ;;
23848
23849 hpux9* | hpux10* | hpux11*)
23850 lt_prog_compiler_wl_GCJ='-Wl,'
23851 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23852 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023853 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023854 hppa*64*|ia64*)
23855 # +Z the default
23856 ;;
23857 *)
23858 lt_prog_compiler_pic_GCJ='+Z'
23859 ;;
23860 esac
23861 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23862 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23863 ;;
23864
23865 irix5* | irix6* | nonstopux*)
23866 lt_prog_compiler_wl_GCJ='-Wl,'
23867 # PIC (with -KPIC) is the default.
23868 lt_prog_compiler_static_GCJ='-non_shared'
23869 ;;
23870
23871 newsos6)
23872 lt_prog_compiler_pic_GCJ='-KPIC'
23873 lt_prog_compiler_static_GCJ='-Bstatic'
23874 ;;
23875
23876 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023877 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023878 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023879 lt_prog_compiler_wl_GCJ='-Wl,'
23880 lt_prog_compiler_pic_GCJ='-KPIC'
23881 lt_prog_compiler_static_GCJ='-static'
23882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023883 pgcc* | pgf77* | pgf90* | pgf95*)
23884 # Portland Group compilers (*not* the Pentium gcc compiler,
23885 # which looks to be a dead project)
23886 lt_prog_compiler_wl_GCJ='-Wl,'
23887 lt_prog_compiler_pic_GCJ='-fpic'
23888 lt_prog_compiler_static_GCJ='-Bstatic'
23889 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023890 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023891 lt_prog_compiler_wl_GCJ='-Wl,'
23892 # All Alpha code is PIC.
23893 lt_prog_compiler_static_GCJ='-non_shared'
23894 ;;
23895 esac
23896 ;;
23897
23898 osf3* | osf4* | osf5*)
23899 lt_prog_compiler_wl_GCJ='-Wl,'
23900 # All OSF/1 code is PIC.
23901 lt_prog_compiler_static_GCJ='-non_shared'
23902 ;;
23903
John Criswell47fdd832003-07-14 16:52:07 +000023904 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023905 lt_prog_compiler_pic_GCJ='-KPIC'
23906 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023907 case $cc_basename in
23908 f77* | f90* | f95*)
23909 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23910 *)
23911 lt_prog_compiler_wl_GCJ='-Wl,';;
23912 esac
John Criswell47fdd832003-07-14 16:52:07 +000023913 ;;
23914
23915 sunos4*)
23916 lt_prog_compiler_wl_GCJ='-Qoption ld '
23917 lt_prog_compiler_pic_GCJ='-PIC'
23918 lt_prog_compiler_static_GCJ='-Bstatic'
23919 ;;
23920
Reid Spencera773bd52006-08-04 18:18:08 +000023921 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023922 lt_prog_compiler_wl_GCJ='-Wl,'
23923 lt_prog_compiler_pic_GCJ='-KPIC'
23924 lt_prog_compiler_static_GCJ='-Bstatic'
23925 ;;
23926
23927 sysv4*MP*)
23928 if test -d /usr/nec ;then
23929 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23930 lt_prog_compiler_static_GCJ='-Bstatic'
23931 fi
23932 ;;
23933
Reid Spencera773bd52006-08-04 18:18:08 +000023934 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23935 lt_prog_compiler_wl_GCJ='-Wl,'
23936 lt_prog_compiler_pic_GCJ='-KPIC'
23937 lt_prog_compiler_static_GCJ='-Bstatic'
23938 ;;
23939
23940 unicos*)
23941 lt_prog_compiler_wl_GCJ='-Wl,'
23942 lt_prog_compiler_can_build_shared_GCJ=no
23943 ;;
23944
John Criswell47fdd832003-07-14 16:52:07 +000023945 uts4*)
23946 lt_prog_compiler_pic_GCJ='-pic'
23947 lt_prog_compiler_static_GCJ='-Bstatic'
23948 ;;
23949
23950 *)
23951 lt_prog_compiler_can_build_shared_GCJ=no
23952 ;;
23953 esac
23954 fi
23955
Reid Spencera773bd52006-08-04 18:18:08 +000023956{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23957echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023958
23959#
23960# Check to make sure the PIC flag actually works.
23961#
23962if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023963
Reid Spencera773bd52006-08-04 18:18:08 +000023964{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23965echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023966if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968else
23969 lt_prog_compiler_pic_works_GCJ=no
23970 ac_outfile=conftest.$ac_objext
23971 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23972 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23973 # Insert the option either (1) after the last *FLAGS variable, or
23974 # (2) before a word containing "conftest.", or (3) at the end.
23975 # Note that $ac_compile itself does not contain backslashes and begins
23976 # with a dollar sign (not a hyphen), so the echo should work correctly.
23977 # The option is referenced via a variable to avoid confusing sed.
23978 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23981 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000023982 (eval echo "\"\$as_me:23982: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023983 (eval "$lt_compile" 2>conftest.err)
23984 ac_status=$?
23985 cat conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000023986 echo "$as_me:23986: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023987 if (exit $ac_status) && test -s "$ac_outfile"; then
23988 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023989 # So say no if there are warnings other than the usual output.
23990 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023993 lt_prog_compiler_pic_works_GCJ=yes
23994 fi
23995 fi
23996 $rm conftest*
23997
23998fi
Reid Spencera773bd52006-08-04 18:18:08 +000023999{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24000echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024001
24002if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24003 case $lt_prog_compiler_pic_GCJ in
24004 "" | " "*) ;;
24005 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24006 esac
24007else
24008 lt_prog_compiler_pic_GCJ=
24009 lt_prog_compiler_can_build_shared_GCJ=no
24010fi
24011
24012fi
Reid Spencera773bd52006-08-04 18:18:08 +000024013case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024014 # For platforms which do not support PIC, -DPIC is meaningless:
24015 *djgpp*)
24016 lt_prog_compiler_pic_GCJ=
24017 ;;
24018 *)
24019 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24020 ;;
24021esac
24022
Reid Spencera773bd52006-08-04 18:18:08 +000024023#
24024# Check to make sure the static flag actually works.
24025#
24026wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24027{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24028echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24029if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24030 echo $ECHO_N "(cached) $ECHO_C" >&6
24031else
24032 lt_prog_compiler_static_works_GCJ=no
24033 save_LDFLAGS="$LDFLAGS"
24034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24035 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24037 # The linker can only warn and ignore the option if not recognized
24038 # So say no if there are warnings
24039 if test -s conftest.err; then
24040 # Append any errors to the config.log.
24041 cat conftest.err 1>&5
24042 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24044 if diff conftest.exp conftest.er2 >/dev/null; then
24045 lt_prog_compiler_static_works_GCJ=yes
24046 fi
24047 else
24048 lt_prog_compiler_static_works_GCJ=yes
24049 fi
24050 fi
24051 $rm conftest*
24052 LDFLAGS="$save_LDFLAGS"
24053
24054fi
24055{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24056echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24057
24058if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24059 :
24060else
24061 lt_prog_compiler_static_GCJ=
24062fi
24063
24064
24065{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24066echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024067if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24068 echo $ECHO_N "(cached) $ECHO_C" >&6
24069else
24070 lt_cv_prog_compiler_c_o_GCJ=no
24071 $rm -r conftest 2>/dev/null
24072 mkdir conftest
24073 cd conftest
24074 mkdir out
24075 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24076
John Criswell47fdd832003-07-14 16:52:07 +000024077 lt_compiler_flag="-o out/conftest2.$ac_objext"
24078 # Insert the option either (1) after the last *FLAGS variable, or
24079 # (2) before a word containing "conftest.", or (3) at the end.
24080 # Note that $ac_compile itself does not contain backslashes and begins
24081 # with a dollar sign (not a hyphen), so the echo should work correctly.
24082 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24085 -e 's:$: $lt_compiler_flag:'`
Bill Wendlinga0833352009-03-12 04:10:09 +000024086 (eval echo "\"\$as_me:24086: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024087 (eval "$lt_compile" 2>out/conftest.err)
24088 ac_status=$?
24089 cat out/conftest.err >&5
Bill Wendlinga0833352009-03-12 04:10:09 +000024090 echo "$as_me:24090: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24092 then
24093 # The compiler can only warn and ignore the option if not recognized
24094 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024095 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024098 lt_cv_prog_compiler_c_o_GCJ=yes
24099 fi
24100 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024101 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024102 $rm conftest*
24103 # SGI C++ compiler will create directory out/ii_files/ for
24104 # template instantiation
24105 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24106 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024107 cd ..
24108 rmdir conftest
24109 $rm conftest*
24110
24111fi
Reid Spencera773bd52006-08-04 18:18:08 +000024112{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24113echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024114
24115
24116hard_links="nottested"
24117if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24118 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024119 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24120echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024121 hard_links=yes
24122 $rm conftest*
24123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24124 touch conftest.a
24125 ln conftest.a conftest.b 2>&5 || hard_links=no
24126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024127 { echo "$as_me:$LINENO: result: $hard_links" >&5
24128echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024129 if test "$hard_links" = no; then
24130 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24131echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24132 need_locks=warn
24133 fi
24134else
24135 need_locks=no
24136fi
24137
Reid Spencera773bd52006-08-04 18:18:08 +000024138{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24139echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024140
24141 runpath_var=
24142 allow_undefined_flag_GCJ=
24143 enable_shared_with_static_runtimes_GCJ=no
24144 archive_cmds_GCJ=
24145 archive_expsym_cmds_GCJ=
24146 old_archive_From_new_cmds_GCJ=
24147 old_archive_from_expsyms_cmds_GCJ=
24148 export_dynamic_flag_spec_GCJ=
24149 whole_archive_flag_spec_GCJ=
24150 thread_safe_flag_spec_GCJ=
24151 hardcode_libdir_flag_spec_GCJ=
24152 hardcode_libdir_flag_spec_ld_GCJ=
24153 hardcode_libdir_separator_GCJ=
24154 hardcode_direct_GCJ=no
24155 hardcode_minus_L_GCJ=no
24156 hardcode_shlibpath_var_GCJ=unsupported
24157 link_all_deplibs_GCJ=unknown
24158 hardcode_automatic_GCJ=no
24159 module_cmds_GCJ=
24160 module_expsym_cmds_GCJ=
24161 always_export_symbols_GCJ=no
24162 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24163 # include_expsyms should be a list of space-separated symbols to be *always*
24164 # included in the symbol list
24165 include_expsyms_GCJ=
24166 # exclude_expsyms can be an extended regexp of symbols to exclude
24167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24169 # as well as any symbol that contains `d'.
24170 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24172 # platforms (ab)use it in PIC code, but their linkers get confused if
24173 # the symbol is explicitly referenced. Since portable code cannot
24174 # rely on this symbol name, it's probably fine to never include it in
24175 # preloaded symbol tables.
24176 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024177 # Just being paranoid about ensuring that cc_basename is set.
24178 for cc_temp in $compiler""; do
24179 case $cc_temp in
24180 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24181 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24182 \-*) ;;
24183 *) break;;
24184 esac
24185done
24186cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024187
24188 case $host_os in
24189 cygwin* | mingw* | pw32*)
24190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24191 # When not using gcc, we currently assume that we are using
24192 # Microsoft Visual C++.
24193 if test "$GCC" != yes; then
24194 with_gnu_ld=no
24195 fi
24196 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024197 interix*)
24198 # we just hope/assume this is gcc and not c89 (= MSVC++)
24199 with_gnu_ld=yes
24200 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024201 openbsd*)
24202 with_gnu_ld=no
24203 ;;
24204 esac
24205
24206 ld_shlibs_GCJ=yes
24207 if test "$with_gnu_ld" = yes; then
24208 # If archive_cmds runs LD, not CC, wlarc should be empty
24209 wlarc='${wl}'
24210
Reid Spencera773bd52006-08-04 18:18:08 +000024211 # Set some defaults for GNU ld with shared library support. These
24212 # are reset later if shared libraries are not supported. Putting them
24213 # here allows them to be overridden if necessary.
24214 runpath_var=LD_RUN_PATH
24215 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24216 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24217 # ancient GNU ld didn't support --whole-archive et. al.
24218 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24219 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24220 else
24221 whole_archive_flag_spec_GCJ=
24222 fi
24223 supports_anon_versioning=no
24224 case `$LD -v 2>/dev/null` in
24225 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24226 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24227 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24228 *\ 2.11.*) ;; # other 2.11 versions
24229 *) supports_anon_versioning=yes ;;
24230 esac
24231
John Criswell47fdd832003-07-14 16:52:07 +000024232 # See if GNU ld supports shared libraries.
24233 case $host_os in
24234 aix3* | aix4* | aix5*)
24235 # On AIX/PPC, the GNU linker is very broken
24236 if test "$host_cpu" != ia64; then
24237 ld_shlibs_GCJ=no
24238 cat <<EOF 1>&2
24239
24240*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24241*** to be unable to reliably create shared libraries on AIX.
24242*** Therefore, libtool is disabling shared libraries support. If you
24243*** really care for shared libraries, you may want to modify your PATH
24244*** so that a non-GNU linker is found, and then restart.
24245
24246EOF
24247 fi
24248 ;;
24249
24250 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024251 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 +000024252 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24253 hardcode_minus_L_GCJ=yes
24254
24255 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24256 # that the semantics of dynamic libraries on AmigaOS, at least up
24257 # to version 4, is to share data among multiple programs linked
24258 # with the same dynamic library. Since this doesn't match the
24259 # behavior of shared libraries on other platforms, we can't use
24260 # them.
24261 ld_shlibs_GCJ=no
24262 ;;
24263
24264 beos*)
24265 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24266 allow_undefined_flag_GCJ=unsupported
24267 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24268 # support --undefined. This deserves some investigation. FIXME
24269 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24270 else
24271 ld_shlibs_GCJ=no
24272 fi
24273 ;;
24274
24275 cygwin* | mingw* | pw32*)
24276 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24277 # as there is no search path for DLLs.
24278 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24279 allow_undefined_flag_GCJ=unsupported
24280 always_export_symbols_GCJ=no
24281 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024282 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 +000024283
24284 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024285 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 +000024286 # If the export-symbols file already is a .def file (1st line
24287 # is EXPORTS), use it as is; otherwise, prepend...
24288 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24289 cp $export_symbols $output_objdir/$soname.def;
24290 else
24291 echo EXPORTS > $output_objdir/$soname.def;
24292 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024293 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024294 $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 +000024295 else
Reid Spencera773bd52006-08-04 18:18:08 +000024296 ld_shlibs_GCJ=no
24297 fi
24298 ;;
24299
24300 interix3*)
24301 hardcode_direct_GCJ=no
24302 hardcode_shlibpath_var_GCJ=no
24303 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24304 export_dynamic_flag_spec_GCJ='${wl}-E'
24305 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24306 # Instead, shared libraries are loaded at an image base (0x10000000 by
24307 # default) and relocated if they conflict, which is a slow very memory
24308 # consuming and fragmenting process. To avoid this, we pick a random,
24309 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24310 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24311 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'
24312 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'
24313 ;;
24314
24315 linux*)
24316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24317 tmp_addflag=
24318 case $cc_basename,$host_cpu in
24319 pgcc*) # Portland Group C compiler
24320 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'
24321 tmp_addflag=' $pic_flag'
24322 ;;
24323 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24324 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'
24325 tmp_addflag=' $pic_flag -Mnomain' ;;
24326 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24327 tmp_addflag=' -i_dynamic' ;;
24328 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24329 tmp_addflag=' -i_dynamic -nofor_main' ;;
24330 ifc* | ifort*) # Intel Fortran compiler
24331 tmp_addflag=' -nofor_main' ;;
24332 esac
24333 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24334
24335 if test $supports_anon_versioning = yes; then
24336 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24338 $echo "local: *; };" >> $output_objdir/$libname.ver~
24339 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24340 fi
24341 else
24342 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024343 fi
24344 ;;
24345
24346 netbsd*)
24347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24348 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24349 wlarc=
24350 else
24351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24353 fi
24354 ;;
24355
Reid Spencera773bd52006-08-04 18:18:08 +000024356 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024357 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24358 ld_shlibs_GCJ=no
24359 cat <<EOF 1>&2
24360
24361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24362*** create shared libraries on Solaris systems. Therefore, libtool
24363*** is disabling shared libraries support. We urge you to upgrade GNU
24364*** binutils to release 2.9.1 or newer. Another option is to modify
24365*** your PATH or compiler configuration so that the native linker is
24366*** used, and then restart.
24367
24368EOF
24369 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24370 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24371 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24372 else
24373 ld_shlibs_GCJ=no
24374 fi
24375 ;;
24376
Reid Spencera773bd52006-08-04 18:18:08 +000024377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24378 case `$LD -v 2>&1` in
24379 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24380 ld_shlibs_GCJ=no
24381 cat <<_LT_EOF 1>&2
24382
24383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24384*** reliably create shared libraries on SCO systems. Therefore, libtool
24385*** is disabling shared libraries support. We urge you to upgrade GNU
24386*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24387*** your PATH or compiler configuration so that the native linker is
24388*** used, and then restart.
24389
24390_LT_EOF
24391 ;;
24392 *)
24393 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24394 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24395 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24396 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24397 else
24398 ld_shlibs_GCJ=no
24399 fi
24400 ;;
24401 esac
24402 ;;
24403
John Criswell47fdd832003-07-14 16:52:07 +000024404 sunos4*)
24405 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24406 wlarc=
24407 hardcode_direct_GCJ=yes
24408 hardcode_shlibpath_var_GCJ=no
24409 ;;
24410
24411 *)
24412 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24413 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24414 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24415 else
24416 ld_shlibs_GCJ=no
24417 fi
24418 ;;
24419 esac
24420
Reid Spencera773bd52006-08-04 18:18:08 +000024421 if test "$ld_shlibs_GCJ" = no; then
24422 runpath_var=
24423 hardcode_libdir_flag_spec_GCJ=
24424 export_dynamic_flag_spec_GCJ=
24425 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024426 fi
24427 else
24428 # PORTME fill in a description of your system's linker (not GNU ld)
24429 case $host_os in
24430 aix3*)
24431 allow_undefined_flag_GCJ=unsupported
24432 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024433 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 +000024434 # Note: this linker hardcodes the directories in LIBPATH if there
24435 # are no directories specified by -L.
24436 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024437 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024438 # Neither direct hardcoding nor static linking is supported with a
24439 # broken collect2.
24440 hardcode_direct_GCJ=unsupported
24441 fi
24442 ;;
24443
24444 aix4* | aix5*)
24445 if test "$host_cpu" = ia64; then
24446 # On IA64, the linker does run time linking by default, so we don't
24447 # have to do anything special.
24448 aix_use_runtimelinking=no
24449 exp_sym_flag='-Bexport'
24450 no_entry_flag=""
24451 else
24452 # If we're using GNU nm, then we don't want the "-C" option.
24453 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24454 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24455 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'
24456 else
24457 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'
24458 fi
24459 aix_use_runtimelinking=no
24460
24461 # Test if we are trying to use run time linking or normal
24462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24463 # need to do runtime linking.
24464 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24465 for ld_flag in $LDFLAGS; do
24466 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24467 aix_use_runtimelinking=yes
24468 break
24469 fi
24470 done
Reid Spencera773bd52006-08-04 18:18:08 +000024471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024472 esac
24473
24474 exp_sym_flag='-bexport'
24475 no_entry_flag='-bnoentry'
24476 fi
24477
24478 # When large executables or shared objects are built, AIX ld can
24479 # have problems creating the table of contents. If linking a library
24480 # or program results in "error TOC overflow" add -mminimal-toc to
24481 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24482 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24483
24484 archive_cmds_GCJ=''
24485 hardcode_direct_GCJ=yes
24486 hardcode_libdir_separator_GCJ=':'
24487 link_all_deplibs_GCJ=yes
24488
24489 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024490 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024491 # We only want to do this on AIX 4.2 and lower, the check
24492 # below for broken collect2 doesn't work under 4.3+
24493 collect2name=`${CC} -print-prog-name=collect2`
24494 if test -f "$collect2name" && \
24495 strings "$collect2name" | grep resolve_lib_name >/dev/null
24496 then
24497 # We have reworked collect2
24498 hardcode_direct_GCJ=yes
24499 else
24500 # We have old collect2
24501 hardcode_direct_GCJ=unsupported
24502 # It fails to find uninstalled libraries when the uninstalled
24503 # path is not listed in the libpath. Setting hardcode_minus_L
24504 # to unsupported forces relinking
24505 hardcode_minus_L_GCJ=yes
24506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24507 hardcode_libdir_separator_GCJ=
24508 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024509 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024510 esac
24511 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024512 if test "$aix_use_runtimelinking" = yes; then
24513 shared_flag="$shared_flag "'${wl}-G'
24514 fi
John Criswell47fdd832003-07-14 16:52:07 +000024515 else
24516 # not using gcc
24517 if test "$host_cpu" = ia64; then
24518 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24519 # chokes on -Wl,-G. The following line is correct:
24520 shared_flag='-G'
24521 else
Reid Spencera773bd52006-08-04 18:18:08 +000024522 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024523 shared_flag='${wl}-G'
24524 else
24525 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024526 fi
John Criswell47fdd832003-07-14 16:52:07 +000024527 fi
24528 fi
24529
24530 # It seems that -bexpall does not export symbols beginning with
24531 # underscore (_), so it is better to generate a list of symbols to export.
24532 always_export_symbols_GCJ=yes
24533 if test "$aix_use_runtimelinking" = yes; then
24534 # Warning - without using the other runtime loading flags (-brtl),
24535 # -berok will link without error, but may produce a broken library.
24536 allow_undefined_flag_GCJ='-berok'
24537 # Determine the default libpath from the value encoded in an empty executable.
24538 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024539/* confdefs.h. */
24540_ACEOF
24541cat confdefs.h >>conftest.$ac_ext
24542cat >>conftest.$ac_ext <<_ACEOF
24543/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024544
John Criswell47fdd832003-07-14 16:52:07 +000024545int
24546main ()
24547{
24548
24549 ;
24550 return 0;
24551}
24552_ACEOF
24553rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024554if { (ac_try="$ac_link"
24555case "(($ac_try" in
24556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557 *) ac_try_echo=$ac_try;;
24558esac
24559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24560 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024562 grep -v '^ *+' conftest.er1 >conftest.err
24563 rm -f conftest.er1
24564 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024566 (exit $ac_status); } &&
24567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24568 { (case "(($ac_try" in
24569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24570 *) ac_try_echo=$ac_try;;
24571esac
24572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24573 (eval "$ac_try") 2>&5
24574 ac_status=$?
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); }; } &&
24577 { ac_try='test -s conftest$ac_exeext'
24578 { (case "(($ac_try" in
24579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24580 *) ac_try_echo=$ac_try;;
24581esac
24582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24583 (eval "$ac_try") 2>&5
24584 ac_status=$?
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024587
24588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24589}'`
24590# Check for a 64-bit object if we didn't find anything.
24591if 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; }
24592}'`; fi
24593else
24594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024595sed 's/^/| /' conftest.$ac_ext >&5
24596
Reid Spencera773bd52006-08-04 18:18:08 +000024597
John Criswell47fdd832003-07-14 16:52:07 +000024598fi
Reid Spencera773bd52006-08-04 18:18:08 +000024599
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024600rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024601 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024602if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24603
24604 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024605 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 +000024606 else
24607 if test "$host_cpu" = ia64; then
24608 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24609 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024610 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 +000024611 else
24612 # Determine the default libpath from the value encoded in an empty executable.
24613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024614/* confdefs.h. */
24615_ACEOF
24616cat confdefs.h >>conftest.$ac_ext
24617cat >>conftest.$ac_ext <<_ACEOF
24618/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024619
John Criswell47fdd832003-07-14 16:52:07 +000024620int
24621main ()
24622{
24623
24624 ;
24625 return 0;
24626}
24627_ACEOF
24628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024629if { (ac_try="$ac_link"
24630case "(($ac_try" in
24631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632 *) ac_try_echo=$ac_try;;
24633esac
24634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024637 grep -v '^ *+' conftest.er1 >conftest.err
24638 rm -f conftest.er1
24639 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024641 (exit $ac_status); } &&
24642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643 { (case "(($ac_try" in
24644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645 *) ac_try_echo=$ac_try;;
24646esac
24647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648 (eval "$ac_try") 2>&5
24649 ac_status=$?
24650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651 (exit $ac_status); }; } &&
24652 { ac_try='test -s conftest$ac_exeext'
24653 { (case "(($ac_try" in
24654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655 *) ac_try_echo=$ac_try;;
24656esac
24657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658 (eval "$ac_try") 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024662
24663aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24664}'`
24665# Check for a 64-bit object if we didn't find anything.
24666if 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; }
24667}'`; fi
24668else
24669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024670sed 's/^/| /' conftest.$ac_ext >&5
24671
Reid Spencera773bd52006-08-04 18:18:08 +000024672
John Criswell47fdd832003-07-14 16:52:07 +000024673fi
Reid Spencera773bd52006-08-04 18:18:08 +000024674
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024675rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024676 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024677if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24678
24679 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24680 # Warning - without using the other run time loading flags,
24681 # -berok will link without error, but may produce a broken library.
24682 no_undefined_flag_GCJ=' ${wl}-bernotok'
24683 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024684 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024685 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024686 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024687 # This is similar to how AIX traditionally builds its shared libraries.
24688 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 +000024689 fi
24690 fi
24691 ;;
24692
24693 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024694 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 +000024695 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24696 hardcode_minus_L_GCJ=yes
24697 # see comment about different semantics on the GNU ld section
24698 ld_shlibs_GCJ=no
24699 ;;
24700
Reid Spencer2706f8c2004-09-19 23:53:36 +000024701 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024702 export_dynamic_flag_spec_GCJ=-rdynamic
24703 ;;
24704
24705 cygwin* | mingw* | pw32*)
24706 # When not using gcc, we currently assume that we are using
24707 # Microsoft Visual C++.
24708 # hardcode_libdir_flag_spec is actually meaningless, as there is
24709 # no search path for DLLs.
24710 hardcode_libdir_flag_spec_GCJ=' '
24711 allow_undefined_flag_GCJ=unsupported
24712 # Tell ltmain to make .lib files, not .a files.
24713 libext=lib
24714 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024715 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024716 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024717 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 +000024718 # The linker will automatically build a .lib file if we build a DLL.
24719 old_archive_From_new_cmds_GCJ='true'
24720 # FIXME: Should let the user specify the lib program.
24721 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024722 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024723 enable_shared_with_static_runtimes_GCJ=yes
24724 ;;
24725
24726 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024727 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024728 rhapsody* | darwin1.[012])
24729 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24730 ;;
24731 *) # Darwin 1.3 on
24732 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24733 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24734 else
24735 case ${MACOSX_DEPLOYMENT_TARGET} in
24736 10.[012])
24737 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24738 ;;
24739 10.*)
24740 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24741 ;;
24742 esac
24743 fi
24744 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024745 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024746 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024747 hardcode_direct_GCJ=no
24748 hardcode_automatic_GCJ=yes
24749 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024750 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024751 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024752 if test "$GCC" = yes ; then
24753 output_verbose_link_cmd='echo'
24754 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24755 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024756 # 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 +000024757 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}'
24758 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 +000024759 else
Reid Spencera773bd52006-08-04 18:18:08 +000024760 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024761 xlc*)
24762 output_verbose_link_cmd='echo'
24763 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24764 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024765 # 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 +000024766 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}'
24767 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 +000024768 ;;
24769 *)
24770 ld_shlibs_GCJ=no
24771 ;;
24772 esac
John Criswell47fdd832003-07-14 16:52:07 +000024773 fi
24774 ;;
24775
24776 dgux*)
24777 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24778 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24779 hardcode_shlibpath_var_GCJ=no
24780 ;;
24781
24782 freebsd1*)
24783 ld_shlibs_GCJ=no
24784 ;;
24785
24786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24787 # support. Future versions do this automatically, but an explicit c++rt0.o
24788 # does not break anything, and helps significantly (at the cost of a little
24789 # extra space).
24790 freebsd2.2*)
24791 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24792 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24793 hardcode_direct_GCJ=yes
24794 hardcode_shlibpath_var_GCJ=no
24795 ;;
24796
24797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24798 freebsd2*)
24799 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24800 hardcode_direct_GCJ=yes
24801 hardcode_minus_L_GCJ=yes
24802 hardcode_shlibpath_var_GCJ=no
24803 ;;
24804
24805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024806 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024807 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24808 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24809 hardcode_direct_GCJ=yes
24810 hardcode_shlibpath_var_GCJ=no
24811 ;;
24812
24813 hpux9*)
24814 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024815 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 +000024816 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024817 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 +000024818 fi
24819 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24820 hardcode_libdir_separator_GCJ=:
24821 hardcode_direct_GCJ=yes
24822
24823 # hardcode_minus_L: Not really in the search PATH,
24824 # but as the default location of the library.
24825 hardcode_minus_L_GCJ=yes
24826 export_dynamic_flag_spec_GCJ='${wl}-E'
24827 ;;
24828
Reid Spencera773bd52006-08-04 18:18:08 +000024829 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024830 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024831 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24832 else
24833 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24834 fi
24835 if test "$with_gnu_ld" = no; then
24836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24837 hardcode_libdir_separator_GCJ=:
24838
24839 hardcode_direct_GCJ=yes
24840 export_dynamic_flag_spec_GCJ='${wl}-E'
24841
24842 # hardcode_minus_L: Not really in the search PATH,
24843 # but as the default location of the library.
24844 hardcode_minus_L_GCJ=yes
24845 fi
24846 ;;
24847
24848 hpux11*)
24849 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24850 case $host_cpu in
24851 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024852 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024854 ia64*)
24855 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24856 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024857 *)
24858 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24859 ;;
24860 esac
24861 else
Reid Spencera773bd52006-08-04 18:18:08 +000024862 case $host_cpu in
24863 hppa*64*)
24864 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24865 ;;
24866 ia64*)
24867 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024868 ;;
24869 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024870 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 +000024871 ;;
24872 esac
24873 fi
24874 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024875 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24876 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024877
Reid Spencera773bd52006-08-04 18:18:08 +000024878 case $host_cpu in
24879 hppa*64*|ia64*)
24880 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24881 hardcode_direct_GCJ=no
24882 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024883 ;;
24884 *)
John Criswell47fdd832003-07-14 16:52:07 +000024885 hardcode_direct_GCJ=yes
24886 export_dynamic_flag_spec_GCJ='${wl}-E'
24887
24888 # hardcode_minus_L: Not really in the search PATH,
24889 # but as the default location of the library.
24890 hardcode_minus_L_GCJ=yes
24891 ;;
24892 esac
24893 fi
24894 ;;
24895
24896 irix5* | irix6* | nonstopux*)
24897 if test "$GCC" = yes; then
24898 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'
24899 else
24900 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'
24901 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24902 fi
24903 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24904 hardcode_libdir_separator_GCJ=:
24905 link_all_deplibs_GCJ=yes
24906 ;;
24907
24908 netbsd*)
24909 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24910 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24911 else
24912 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24913 fi
24914 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24915 hardcode_direct_GCJ=yes
24916 hardcode_shlibpath_var_GCJ=no
24917 ;;
24918
24919 newsos6)
24920 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24921 hardcode_direct_GCJ=yes
24922 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24923 hardcode_libdir_separator_GCJ=:
24924 hardcode_shlibpath_var_GCJ=no
24925 ;;
24926
24927 openbsd*)
24928 hardcode_direct_GCJ=yes
24929 hardcode_shlibpath_var_GCJ=no
24930 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24931 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024932 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 +000024933 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24934 export_dynamic_flag_spec_GCJ='${wl}-E'
24935 else
24936 case $host_os in
24937 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24939 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24940 ;;
24941 *)
24942 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24943 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24944 ;;
24945 esac
24946 fi
24947 ;;
24948
24949 os2*)
24950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24951 hardcode_minus_L_GCJ=yes
24952 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024953 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 +000024954 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24955 ;;
24956
24957 osf3*)
24958 if test "$GCC" = yes; then
24959 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24960 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'
24961 else
24962 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24963 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'
24964 fi
24965 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24966 hardcode_libdir_separator_GCJ=:
24967 ;;
24968
24969 osf4* | osf5*) # as osf3* with the addition of -msym flag
24970 if test "$GCC" = yes; then
24971 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24972 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'
24973 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24974 else
24975 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24976 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 +000024977 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 +000024978 $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 +000024979
John Criswell47fdd832003-07-14 16:52:07 +000024980 # Both c and cxx compiler support -rpath directly
24981 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24982 fi
24983 hardcode_libdir_separator_GCJ=:
24984 ;;
24985
John Criswell47fdd832003-07-14 16:52:07 +000024986 solaris*)
24987 no_undefined_flag_GCJ=' -z text'
24988 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024989 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024990 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024991 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24992 $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 +000024993 else
Reid Spencera773bd52006-08-04 18:18:08 +000024994 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024995 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024996 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24997 $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 +000024998 fi
24999 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25000 hardcode_shlibpath_var_GCJ=no
25001 case $host_os in
25002 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025003 *)
25004 # The compiler driver will combine linker options so we
25005 # cannot just pass the convience library names through
25006 # without $wl, iff we do not link with $LD.
25007 # Luckily, gcc supports the same syntax we need for Sun Studio.
25008 # Supported since Solaris 2.6 (maybe 2.5.1?)
25009 case $wlarc in
25010 '')
25011 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25012 *)
25013 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' ;;
25014 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025015 esac
25016 link_all_deplibs_GCJ=yes
25017 ;;
25018
25019 sunos4*)
25020 if test "x$host_vendor" = xsequent; then
25021 # Use $CC to link under sequent, because it throws in some extra .o
25022 # files that make .init and .fini sections work.
25023 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25024 else
25025 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25026 fi
25027 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25028 hardcode_direct_GCJ=yes
25029 hardcode_minus_L_GCJ=yes
25030 hardcode_shlibpath_var_GCJ=no
25031 ;;
25032
25033 sysv4)
25034 case $host_vendor in
25035 sni)
25036 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25037 hardcode_direct_GCJ=yes # is this really true???
25038 ;;
25039 siemens)
25040 ## LD is ld it makes a PLAMLIB
25041 ## CC just makes a GrossModule.
25042 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25043 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25044 hardcode_direct_GCJ=no
25045 ;;
25046 motorola)
25047 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25048 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25049 ;;
25050 esac
25051 runpath_var='LD_RUN_PATH'
25052 hardcode_shlibpath_var_GCJ=no
25053 ;;
25054
25055 sysv4.3*)
25056 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25057 hardcode_shlibpath_var_GCJ=no
25058 export_dynamic_flag_spec_GCJ='-Bexport'
25059 ;;
25060
25061 sysv4*MP*)
25062 if test -d /usr/nec; then
25063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25064 hardcode_shlibpath_var_GCJ=no
25065 runpath_var=LD_RUN_PATH
25066 hardcode_runpath_var=yes
25067 ld_shlibs_GCJ=yes
25068 fi
25069 ;;
25070
Reid Spencera773bd52006-08-04 18:18:08 +000025071 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25072 no_undefined_flag_GCJ='${wl}-z,text'
25073 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025074 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025075 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025076
John Criswell47fdd832003-07-14 16:52:07 +000025077 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025078 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25079 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 +000025080 else
Reid Spencera773bd52006-08-04 18:18:08 +000025081 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25082 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 +000025083 fi
John Criswell47fdd832003-07-14 16:52:07 +000025084 ;;
25085
Reid Spencera773bd52006-08-04 18:18:08 +000025086 sysv5* | sco3.2v5* | sco5v6*)
25087 # Note: We can NOT use -z defs as we might desire, because we do not
25088 # link with -lc, and that would cause any symbols used from libc to
25089 # always be unresolved, which means just about no library would
25090 # ever link correctly. If we're not using GNU ld we use -z text
25091 # though, which does catch some bad symbols but isn't as heavy-handed
25092 # as -z defs.
25093 no_undefined_flag_GCJ='${wl}-z,text'
25094 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25095 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025096 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025097 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25098 hardcode_libdir_separator_GCJ=':'
25099 link_all_deplibs_GCJ=yes
25100 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025101 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025102
25103 if test "$GCC" = yes; then
25104 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25105 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25106 else
25107 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25108 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25109 fi
John Criswell47fdd832003-07-14 16:52:07 +000025110 ;;
25111
25112 uts4*)
25113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25115 hardcode_shlibpath_var_GCJ=no
25116 ;;
25117
25118 *)
25119 ld_shlibs_GCJ=no
25120 ;;
25121 esac
25122 fi
25123
Reid Spencera773bd52006-08-04 18:18:08 +000025124{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25125echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025126test "$ld_shlibs_GCJ" = no && can_build_shared=no
25127
John Criswell47fdd832003-07-14 16:52:07 +000025128#
25129# Do we need to explicitly link libc?
25130#
25131case "x$archive_cmds_need_lc_GCJ" in
25132x|xyes)
25133 # Assume -lc should be added
25134 archive_cmds_need_lc_GCJ=yes
25135
25136 if test "$enable_shared" = yes && test "$GCC" = yes; then
25137 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025139 # FIXME: we may have to deal with multi-command sequences.
25140 ;;
25141 '$CC '*)
25142 # Test whether the compiler implicitly links with -lc since on some
25143 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25144 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025145 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25146echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025147 $rm conftest*
25148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25149
25150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25151 (eval $ac_compile) 2>&5
25152 ac_status=$?
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } 2>conftest.err; then
25155 soname=conftest
25156 lib=conftest
25157 libobjs=conftest.$ac_objext
25158 deplibs=
25159 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025160 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025161 compiler_flags=-v
25162 linker_flags=-v
25163 verstring=
25164 output_objdir=.
25165 libname=conftest
25166 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25167 allow_undefined_flag_GCJ=
25168 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25169 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }
25173 then
25174 archive_cmds_need_lc_GCJ=no
25175 else
25176 archive_cmds_need_lc_GCJ=yes
25177 fi
25178 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25179 else
25180 cat conftest.err 1>&5
25181 fi
25182 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025183 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25184echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025185 ;;
25186 esac
25187 fi
25188 ;;
25189esac
25190
Reid Spencera773bd52006-08-04 18:18:08 +000025191{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25192echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025193library_names_spec=
25194libname_spec='lib$name'
25195soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025196shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025197postinstall_cmds=
25198postuninstall_cmds=
25199finish_cmds=
25200finish_eval=
25201shlibpath_var=
25202shlibpath_overrides_runpath=unknown
25203version_type=none
25204dynamic_linker="$host_os ld.so"
25205sys_lib_dlsearch_path_spec="/lib /usr/lib"
25206if test "$GCC" = yes; then
25207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25208 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25209 # if the path contains ";" then we assume it to be the separator
25210 # otherwise default to the standard path separator (i.e. ":") - it is
25211 # assumed that no part of a normal pathname contains ";" but that should
25212 # okay in the real world where ";" in dirpaths is itself problematic.
25213 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25214 else
25215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25216 fi
25217else
25218 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25219fi
25220need_lib_prefix=unknown
25221hardcode_into_libs=no
25222
25223# when you set need_version to no, make sure it does not cause -set_version
25224# flags to be left without arguments
25225need_version=unknown
25226
25227case $host_os in
25228aix3*)
25229 version_type=linux
25230 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25231 shlibpath_var=LIBPATH
25232
25233 # AIX 3 has no versioning support, so we append a major version to the name.
25234 soname_spec='${libname}${release}${shared_ext}$major'
25235 ;;
25236
25237aix4* | aix5*)
25238 version_type=linux
25239 need_lib_prefix=no
25240 need_version=no
25241 hardcode_into_libs=yes
25242 if test "$host_cpu" = ia64; then
25243 # AIX 5 supports IA64
25244 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25245 shlibpath_var=LD_LIBRARY_PATH
25246 else
25247 # With GCC up to 2.95.x, collect2 would create an import file
25248 # for dependence libraries. The import file would start with
25249 # the line `#! .'. This would cause the generated library to
25250 # depend on `.', always an invalid library. This was fixed in
25251 # development snapshots of GCC prior to 3.0.
25252 case $host_os in
25253 aix4 | aix4.[01] | aix4.[01].*)
25254 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25255 echo ' yes '
25256 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25257 :
25258 else
25259 can_build_shared=no
25260 fi
25261 ;;
25262 esac
25263 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25264 # soname into executable. Probably we can add versioning support to
25265 # collect2, so additional links can be useful in future.
25266 if test "$aix_use_runtimelinking" = yes; then
25267 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25268 # instead of lib<name>.a to let people know that these are not
25269 # typical AIX shared libraries.
25270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25271 else
25272 # We preserve .a as extension for shared libraries through AIX4.2
25273 # and later when we are not doing run time linking.
25274 library_names_spec='${libname}${release}.a $libname.a'
25275 soname_spec='${libname}${release}${shared_ext}$major'
25276 fi
25277 shlibpath_var=LIBPATH
25278 fi
25279 ;;
25280
25281amigaos*)
25282 library_names_spec='$libname.ixlibrary $libname.a'
25283 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025284 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 +000025285 ;;
25286
25287beos*)
25288 library_names_spec='${libname}${shared_ext}'
25289 dynamic_linker="$host_os ld.so"
25290 shlibpath_var=LIBRARY_PATH
25291 ;;
25292
Reid Spencer2706f8c2004-09-19 23:53:36 +000025293bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025294 version_type=linux
25295 need_version=no
25296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25297 soname_spec='${libname}${release}${shared_ext}$major'
25298 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25299 shlibpath_var=LD_LIBRARY_PATH
25300 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25301 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25302 # the default ld.so.conf also contains /usr/contrib/lib and
25303 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25304 # libtool to hard-code these into programs
25305 ;;
25306
25307cygwin* | mingw* | pw32*)
25308 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025309 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025310 need_version=no
25311 need_lib_prefix=no
25312
25313 case $GCC,$host_os in
25314 yes,cygwin* | yes,mingw* | yes,pw32*)
25315 library_names_spec='$libname.dll.a'
25316 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025317 postinstall_cmds='base_file=`basename \${file}`~
25318 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25319 dldir=$destdir/`dirname \$dlpath`~
25320 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025321 $install_prog $dir/$dlname \$dldir/$dlname~
25322 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025323 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25324 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025325 $rm \$dlpath'
25326 shlibpath_overrides_runpath=yes
25327
25328 case $host_os in
25329 cygwin*)
25330 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25331 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 +000025332 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025333 ;;
25334 mingw*)
25335 # MinGW DLLs use traditional 'lib' prefix
25336 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25337 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25338 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25339 # It is most probably a Windows format PATH printed by
25340 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25341 # path with ; separators, and with drive letters. We can handle the
25342 # drive letters (cygwin fileutils understands them), so leave them,
25343 # especially as we might pass files found there to a mingw objdump,
25344 # which wouldn't understand a cygwinified path. Ahh.
25345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25346 else
25347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25348 fi
25349 ;;
25350 pw32*)
25351 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025352 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 +000025353 ;;
25354 esac
25355 ;;
25356
25357 *)
25358 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25359 ;;
25360 esac
25361 dynamic_linker='Win32 ld.exe'
25362 # FIXME: first we should search . and the directory the executable is in
25363 shlibpath_var=PATH
25364 ;;
25365
25366darwin* | rhapsody*)
25367 dynamic_linker="$host_os dyld"
25368 version_type=darwin
25369 need_lib_prefix=no
25370 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025371 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025372 soname_spec='${libname}${release}${major}$shared_ext'
25373 shlibpath_overrides_runpath=yes
25374 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025375 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025376 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377 if test "$GCC" = yes; then
25378 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"`
25379 else
25380 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025381 fi
25382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25383 ;;
25384
25385dgux*)
25386 version_type=linux
25387 need_lib_prefix=no
25388 need_version=no
25389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25390 soname_spec='${libname}${release}${shared_ext}$major'
25391 shlibpath_var=LD_LIBRARY_PATH
25392 ;;
25393
25394freebsd1*)
25395 dynamic_linker=no
25396 ;;
25397
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398kfreebsd*-gnu)
25399 version_type=linux
25400 need_lib_prefix=no
25401 need_version=no
25402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25403 soname_spec='${libname}${release}${shared_ext}$major'
25404 shlibpath_var=LD_LIBRARY_PATH
25405 shlibpath_overrides_runpath=no
25406 hardcode_into_libs=yes
25407 dynamic_linker='GNU ld.so'
25408 ;;
25409
Reid Spencera773bd52006-08-04 18:18:08 +000025410freebsd* | dragonfly*)
25411 # DragonFly does not have aout. When/if they implement a new
25412 # versioning mechanism, adjust this.
25413 if test -x /usr/bin/objformat; then
25414 objformat=`/usr/bin/objformat`
25415 else
25416 case $host_os in
25417 freebsd[123]*) objformat=aout ;;
25418 *) objformat=elf ;;
25419 esac
25420 fi
John Criswell47fdd832003-07-14 16:52:07 +000025421 version_type=freebsd-$objformat
25422 case $version_type in
25423 freebsd-elf*)
25424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25425 need_version=no
25426 need_lib_prefix=no
25427 ;;
25428 freebsd-*)
25429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25430 need_version=yes
25431 ;;
25432 esac
25433 shlibpath_var=LD_LIBRARY_PATH
25434 case $host_os in
25435 freebsd2*)
25436 shlibpath_overrides_runpath=yes
25437 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025438 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025439 shlibpath_overrides_runpath=yes
25440 hardcode_into_libs=yes
25441 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025442 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25443 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025444 shlibpath_overrides_runpath=no
25445 hardcode_into_libs=yes
25446 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025447 freebsd*) # from 4.6 on
25448 shlibpath_overrides_runpath=yes
25449 hardcode_into_libs=yes
25450 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025451 esac
25452 ;;
25453
25454gnu*)
25455 version_type=linux
25456 need_lib_prefix=no
25457 need_version=no
25458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25459 soname_spec='${libname}${release}${shared_ext}$major'
25460 shlibpath_var=LD_LIBRARY_PATH
25461 hardcode_into_libs=yes
25462 ;;
25463
25464hpux9* | hpux10* | hpux11*)
25465 # Give a soname corresponding to the major version so that dld.sl refuses to
25466 # link against other versions.
25467 version_type=sunos
25468 need_lib_prefix=no
25469 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025470 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025471 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025472 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025473 hardcode_into_libs=yes
25474 dynamic_linker="$host_os dld.so"
25475 shlibpath_var=LD_LIBRARY_PATH
25476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25478 soname_spec='${libname}${release}${shared_ext}$major'
25479 if test "X$HPUX_IA64_MODE" = X32; then
25480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25481 else
25482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25483 fi
25484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25485 ;;
25486 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025487 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025488 hardcode_into_libs=yes
25489 dynamic_linker="$host_os dld.sl"
25490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25493 soname_spec='${libname}${release}${shared_ext}$major'
25494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25496 ;;
25497 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025498 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025499 dynamic_linker="$host_os dld.sl"
25500 shlibpath_var=SHLIB_PATH
25501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25503 soname_spec='${libname}${release}${shared_ext}$major'
25504 ;;
25505 esac
25506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25507 postinstall_cmds='chmod 555 $lib'
25508 ;;
25509
Reid Spencera773bd52006-08-04 18:18:08 +000025510interix3*)
25511 version_type=linux
25512 need_lib_prefix=no
25513 need_version=no
25514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25515 soname_spec='${libname}${release}${shared_ext}$major'
25516 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25517 shlibpath_var=LD_LIBRARY_PATH
25518 shlibpath_overrides_runpath=no
25519 hardcode_into_libs=yes
25520 ;;
25521
John Criswell47fdd832003-07-14 16:52:07 +000025522irix5* | irix6* | nonstopux*)
25523 case $host_os in
25524 nonstopux*) version_type=nonstopux ;;
25525 *)
25526 if test "$lt_cv_prog_gnu_ld" = yes; then
25527 version_type=linux
25528 else
25529 version_type=irix
25530 fi ;;
25531 esac
25532 need_lib_prefix=no
25533 need_version=no
25534 soname_spec='${libname}${release}${shared_ext}$major'
25535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25536 case $host_os in
25537 irix5* | nonstopux*)
25538 libsuff= shlibsuff=
25539 ;;
25540 *)
25541 case $LD in # libtool.m4 will add one of these switches to LD
25542 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25543 libsuff= shlibsuff= libmagic=32-bit;;
25544 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25545 libsuff=32 shlibsuff=N32 libmagic=N32;;
25546 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25547 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25548 *) libsuff= shlibsuff= libmagic=never-match;;
25549 esac
25550 ;;
25551 esac
25552 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25553 shlibpath_overrides_runpath=no
25554 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25555 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25556 hardcode_into_libs=yes
25557 ;;
25558
25559# No shared lib support for Linux oldld, aout, or coff.
25560linux*oldld* | linux*aout* | linux*coff*)
25561 dynamic_linker=no
25562 ;;
25563
25564# This must be Linux ELF.
25565linux*)
25566 version_type=linux
25567 need_lib_prefix=no
25568 need_version=no
25569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25570 soname_spec='${libname}${release}${shared_ext}$major'
25571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25572 shlibpath_var=LD_LIBRARY_PATH
25573 shlibpath_overrides_runpath=no
25574 # This implies no fast_install, which is unacceptable.
25575 # Some rework will be needed to allow for fast_install
25576 # before this can be enabled.
25577 hardcode_into_libs=yes
25578
Reid Spencer2706f8c2004-09-19 23:53:36 +000025579 # Append ld.so.conf contents to the search path
25580 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025581 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 +000025582 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25583 fi
25584
John Criswell47fdd832003-07-14 16:52:07 +000025585 # We used to test for /lib/ld.so.1 and disable shared libraries on
25586 # powerpc, because MkLinux only supported shared libraries with the
25587 # GNU dynamic linker. Since this was broken with cross compilers,
25588 # most powerpc-linux boxes support dynamic linking these days and
25589 # people can always --disable-shared, the test was removed, and we
25590 # assume the GNU/Linux dynamic linker is in use.
25591 dynamic_linker='GNU/Linux ld.so'
25592 ;;
25593
Reid Spencer2706f8c2004-09-19 23:53:36 +000025594knetbsd*-gnu)
25595 version_type=linux
25596 need_lib_prefix=no
25597 need_version=no
25598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25599 soname_spec='${libname}${release}${shared_ext}$major'
25600 shlibpath_var=LD_LIBRARY_PATH
25601 shlibpath_overrides_runpath=no
25602 hardcode_into_libs=yes
25603 dynamic_linker='GNU ld.so'
25604 ;;
25605
John Criswell47fdd832003-07-14 16:52:07 +000025606netbsd*)
25607 version_type=sunos
25608 need_lib_prefix=no
25609 need_version=no
25610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25613 dynamic_linker='NetBSD (a.out) ld.so'
25614 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025616 soname_spec='${libname}${release}${shared_ext}$major'
25617 dynamic_linker='NetBSD ld.elf_so'
25618 fi
25619 shlibpath_var=LD_LIBRARY_PATH
25620 shlibpath_overrides_runpath=yes
25621 hardcode_into_libs=yes
25622 ;;
25623
25624newsos6)
25625 version_type=linux
25626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25627 shlibpath_var=LD_LIBRARY_PATH
25628 shlibpath_overrides_runpath=yes
25629 ;;
25630
Reid Spencer2706f8c2004-09-19 23:53:36 +000025631nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025632 version_type=linux
25633 need_lib_prefix=no
25634 need_version=no
25635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25636 soname_spec='${libname}${release}${shared_ext}$major'
25637 shlibpath_var=LD_LIBRARY_PATH
25638 shlibpath_overrides_runpath=yes
25639 ;;
25640
25641openbsd*)
25642 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025643 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025644 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25646 case $host_os in
25647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25648 *) need_version=no ;;
25649 esac
John Criswell47fdd832003-07-14 16:52:07 +000025650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25652 shlibpath_var=LD_LIBRARY_PATH
25653 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25654 case $host_os in
25655 openbsd2.[89] | openbsd2.[89].*)
25656 shlibpath_overrides_runpath=no
25657 ;;
25658 *)
25659 shlibpath_overrides_runpath=yes
25660 ;;
25661 esac
25662 else
25663 shlibpath_overrides_runpath=yes
25664 fi
25665 ;;
25666
25667os2*)
25668 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025669 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025670 need_lib_prefix=no
25671 library_names_spec='$libname${shared_ext} $libname.a'
25672 dynamic_linker='OS/2 ld.exe'
25673 shlibpath_var=LIBPATH
25674 ;;
25675
25676osf3* | osf4* | osf5*)
25677 version_type=osf
25678 need_lib_prefix=no
25679 need_version=no
25680 soname_spec='${libname}${release}${shared_ext}$major'
25681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25682 shlibpath_var=LD_LIBRARY_PATH
25683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25685 ;;
25686
John Criswell47fdd832003-07-14 16:52:07 +000025687solaris*)
25688 version_type=linux
25689 need_lib_prefix=no
25690 need_version=no
25691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25692 soname_spec='${libname}${release}${shared_ext}$major'
25693 shlibpath_var=LD_LIBRARY_PATH
25694 shlibpath_overrides_runpath=yes
25695 hardcode_into_libs=yes
25696 # ldd complains unless libraries are executable
25697 postinstall_cmds='chmod +x $lib'
25698 ;;
25699
25700sunos4*)
25701 version_type=sunos
25702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25704 shlibpath_var=LD_LIBRARY_PATH
25705 shlibpath_overrides_runpath=yes
25706 if test "$with_gnu_ld" = yes; then
25707 need_lib_prefix=no
25708 fi
25709 need_version=yes
25710 ;;
25711
Reid Spencera773bd52006-08-04 18:18:08 +000025712sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025713 version_type=linux
25714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25715 soname_spec='${libname}${release}${shared_ext}$major'
25716 shlibpath_var=LD_LIBRARY_PATH
25717 case $host_vendor in
25718 sni)
25719 shlibpath_overrides_runpath=no
25720 need_lib_prefix=no
25721 export_dynamic_flag_spec='${wl}-Blargedynsym'
25722 runpath_var=LD_RUN_PATH
25723 ;;
25724 siemens)
25725 need_lib_prefix=no
25726 ;;
25727 motorola)
25728 need_lib_prefix=no
25729 need_version=no
25730 shlibpath_overrides_runpath=no
25731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25732 ;;
25733 esac
25734 ;;
25735
25736sysv4*MP*)
25737 if test -d /usr/nec ;then
25738 version_type=linux
25739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25740 soname_spec='$libname${shared_ext}.$major'
25741 shlibpath_var=LD_LIBRARY_PATH
25742 fi
25743 ;;
25744
Reid Spencera773bd52006-08-04 18:18:08 +000025745sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25746 version_type=freebsd-elf
25747 need_lib_prefix=no
25748 need_version=no
25749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25750 soname_spec='${libname}${release}${shared_ext}$major'
25751 shlibpath_var=LD_LIBRARY_PATH
25752 hardcode_into_libs=yes
25753 if test "$with_gnu_ld" = yes; then
25754 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25755 shlibpath_overrides_runpath=no
25756 else
25757 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25758 shlibpath_overrides_runpath=yes
25759 case $host_os in
25760 sco3.2v5*)
25761 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25762 ;;
25763 esac
25764 fi
25765 sys_lib_dlsearch_path_spec='/usr/lib'
25766 ;;
25767
John Criswell47fdd832003-07-14 16:52:07 +000025768uts4*)
25769 version_type=linux
25770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25771 soname_spec='${libname}${release}${shared_ext}$major'
25772 shlibpath_var=LD_LIBRARY_PATH
25773 ;;
25774
25775*)
25776 dynamic_linker=no
25777 ;;
25778esac
Reid Spencera773bd52006-08-04 18:18:08 +000025779{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25780echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025781test "$dynamic_linker" = no && can_build_shared=no
25782
Reid Spencera773bd52006-08-04 18:18:08 +000025783variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25784if test "$GCC" = yes; then
25785 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25786fi
25787
25788{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25789echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025790hardcode_action_GCJ=
25791if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25792 test -n "$runpath_var_GCJ" || \
25793 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25794
25795 # We can hardcode non-existant directories.
25796 if test "$hardcode_direct_GCJ" != no &&
25797 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25798 # have to relink, otherwise we might link with an installed library
25799 # when we should be linking with a yet-to-be-installed one
25800 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25801 test "$hardcode_minus_L_GCJ" != no; then
25802 # Linking always hardcodes the temporary library directory.
25803 hardcode_action_GCJ=relink
25804 else
25805 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25806 hardcode_action_GCJ=immediate
25807 fi
25808else
25809 # We cannot hardcode anything, or else we can only hardcode existing
25810 # directories.
25811 hardcode_action_GCJ=unsupported
25812fi
Reid Spencera773bd52006-08-04 18:18:08 +000025813{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25814echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025815
25816if test "$hardcode_action_GCJ" = relink; then
25817 # Fast installation is not supported
25818 enable_fast_install=no
25819elif test "$shlibpath_overrides_runpath" = yes ||
25820 test "$enable_shared" = no; then
25821 # Fast installation is not necessary
25822 enable_fast_install=needless
25823fi
25824
John Criswell47fdd832003-07-14 16:52:07 +000025825
25826# The else clause should only fire when bootstrapping the
25827# libtool distribution, otherwise you forgot to ship ltmain.sh
25828# with your package, and you will get complaints that there are
25829# no rules to generate ltmain.sh.
25830if test -f "$ltmain"; then
25831 # See if we are running on zsh, and set the options which allow our commands through
25832 # without removal of \ escapes.
25833 if test -n "${ZSH_VERSION+set}" ; then
25834 setopt NO_GLOB_SUBST
25835 fi
25836 # Now quote all the things that may contain metacharacters while being
25837 # careful not to overquote the AC_SUBSTed values. We take copies of the
25838 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025839 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 +000025840 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025841 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25842 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25843 deplibs_check_method reload_flag reload_cmds need_locks \
25844 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25845 lt_cv_sys_global_symbol_to_c_name_address \
25846 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25847 old_postinstall_cmds old_postuninstall_cmds \
25848 compiler_GCJ \
25849 CC_GCJ \
25850 LD_GCJ \
25851 lt_prog_compiler_wl_GCJ \
25852 lt_prog_compiler_pic_GCJ \
25853 lt_prog_compiler_static_GCJ \
25854 lt_prog_compiler_no_builtin_flag_GCJ \
25855 export_dynamic_flag_spec_GCJ \
25856 thread_safe_flag_spec_GCJ \
25857 whole_archive_flag_spec_GCJ \
25858 enable_shared_with_static_runtimes_GCJ \
25859 old_archive_cmds_GCJ \
25860 old_archive_from_new_cmds_GCJ \
25861 predep_objects_GCJ \
25862 postdep_objects_GCJ \
25863 predeps_GCJ \
25864 postdeps_GCJ \
25865 compiler_lib_search_path_GCJ \
25866 archive_cmds_GCJ \
25867 archive_expsym_cmds_GCJ \
25868 postinstall_cmds_GCJ \
25869 postuninstall_cmds_GCJ \
25870 old_archive_from_expsyms_cmds_GCJ \
25871 allow_undefined_flag_GCJ \
25872 no_undefined_flag_GCJ \
25873 export_symbols_cmds_GCJ \
25874 hardcode_libdir_flag_spec_GCJ \
25875 hardcode_libdir_flag_spec_ld_GCJ \
25876 hardcode_libdir_separator_GCJ \
25877 hardcode_automatic_GCJ \
25878 module_cmds_GCJ \
25879 module_expsym_cmds_GCJ \
25880 lt_cv_prog_compiler_c_o_GCJ \
25881 exclude_expsyms_GCJ \
25882 include_expsyms_GCJ; do
25883
25884 case $var in
25885 old_archive_cmds_GCJ | \
25886 old_archive_from_new_cmds_GCJ | \
25887 archive_cmds_GCJ | \
25888 archive_expsym_cmds_GCJ | \
25889 module_cmds_GCJ | \
25890 module_expsym_cmds_GCJ | \
25891 old_archive_from_expsyms_cmds_GCJ | \
25892 export_symbols_cmds_GCJ | \
25893 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25894 postinstall_cmds | postuninstall_cmds | \
25895 old_postinstall_cmds | old_postuninstall_cmds | \
25896 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25897 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025898 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 +000025899 ;;
25900 *)
25901 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25902 ;;
25903 esac
25904 done
25905
25906 case $lt_echo in
25907 *'\$0 --fallback-echo"')
25908 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25909 ;;
25910 esac
25911
25912cfgfile="$ofile"
25913
25914 cat <<__EOF__ >> "$cfgfile"
25915# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25916
25917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25918
25919# Shell to use when invoking shell scripts.
25920SHELL=$lt_SHELL
25921
25922# Whether or not to build shared libraries.
25923build_libtool_libs=$enable_shared
25924
25925# Whether or not to build static libraries.
25926build_old_libs=$enable_static
25927
25928# Whether or not to add -lc for building shared libraries.
25929build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25930
25931# Whether or not to disallow shared libs when runtime libs are static
25932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25933
25934# Whether or not to optimize for fast installation.
25935fast_install=$enable_fast_install
25936
25937# The host system.
25938host_alias=$host_alias
25939host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025940host_os=$host_os
25941
25942# The build system.
25943build_alias=$build_alias
25944build=$build
25945build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025946
25947# An echo program that does not interpret backslashes.
25948echo=$lt_echo
25949
25950# The archiver.
25951AR=$lt_AR
25952AR_FLAGS=$lt_AR_FLAGS
25953
25954# A C compiler.
25955LTCC=$lt_LTCC
25956
Reid Spencera773bd52006-08-04 18:18:08 +000025957# LTCC compiler flags.
25958LTCFLAGS=$lt_LTCFLAGS
25959
John Criswell47fdd832003-07-14 16:52:07 +000025960# A language-specific compiler.
25961CC=$lt_compiler_GCJ
25962
25963# Is the compiler the GNU C compiler?
25964with_gcc=$GCC_GCJ
25965
25966# An ERE matcher.
25967EGREP=$lt_EGREP
25968
25969# The linker used to build libraries.
25970LD=$lt_LD_GCJ
25971
25972# Whether we need hard or soft links.
25973LN_S=$lt_LN_S
25974
25975# A BSD-compatible nm program.
25976NM=$lt_NM
25977
25978# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025979STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025980
25981# Used to examine libraries when file_magic_cmd begins "file"
25982MAGIC_CMD=$MAGIC_CMD
25983
25984# Used on cygwin: DLL creation program.
25985DLLTOOL="$DLLTOOL"
25986
25987# Used on cygwin: object dumper.
25988OBJDUMP="$OBJDUMP"
25989
25990# Used on cygwin: assembler.
25991AS="$AS"
25992
25993# The name of the directory that contains temporary libtool files.
25994objdir=$objdir
25995
25996# How to create reloadable object files.
25997reload_flag=$lt_reload_flag
25998reload_cmds=$lt_reload_cmds
25999
26000# How to pass a linker flag through the compiler.
26001wl=$lt_lt_prog_compiler_wl_GCJ
26002
26003# Object file suffix (normally "o").
26004objext="$ac_objext"
26005
26006# Old archive suffix (normally "a").
26007libext="$libext"
26008
26009# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026010shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026011
26012# Executable file suffix (normally "").
26013exeext="$exeext"
26014
26015# Additional compiler flags for building library objects.
26016pic_flag=$lt_lt_prog_compiler_pic_GCJ
26017pic_mode=$pic_mode
26018
26019# What is the maximum length of a command?
26020max_cmd_len=$lt_cv_sys_max_cmd_len
26021
26022# Does compiler simultaneously support -c and -o options?
26023compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26024
Reid Spencera773bd52006-08-04 18:18:08 +000026025# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026026need_locks=$lt_need_locks
26027
26028# Do we need the lib prefix for modules?
26029need_lib_prefix=$need_lib_prefix
26030
26031# Do we need a version for libraries?
26032need_version=$need_version
26033
26034# Whether dlopen is supported.
26035dlopen_support=$enable_dlopen
26036
26037# Whether dlopen of programs is supported.
26038dlopen_self=$enable_dlopen_self
26039
26040# Whether dlopen of statically linked programs is supported.
26041dlopen_self_static=$enable_dlopen_self_static
26042
26043# Compiler flag to prevent dynamic linking.
26044link_static_flag=$lt_lt_prog_compiler_static_GCJ
26045
26046# Compiler flag to turn off builtin functions.
26047no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26048
26049# Compiler flag to allow reflexive dlopens.
26050export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26051
26052# Compiler flag to generate shared objects directly from archives.
26053whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26054
26055# Compiler flag to generate thread-safe objects.
26056thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26057
26058# Library versioning type.
26059version_type=$version_type
26060
26061# Format of library name prefix.
26062libname_spec=$lt_libname_spec
26063
26064# List of archive names. First name is the real one, the rest are links.
26065# The last name is the one that the linker finds with -lNAME.
26066library_names_spec=$lt_library_names_spec
26067
26068# The coded name of the library, if different from the real name.
26069soname_spec=$lt_soname_spec
26070
26071# Commands used to build and install an old-style archive.
26072RANLIB=$lt_RANLIB
26073old_archive_cmds=$lt_old_archive_cmds_GCJ
26074old_postinstall_cmds=$lt_old_postinstall_cmds
26075old_postuninstall_cmds=$lt_old_postuninstall_cmds
26076
26077# Create an old-style archive from a shared archive.
26078old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26079
26080# Create a temporary old-style archive to link instead of a shared archive.
26081old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26082
26083# Commands used to build and install a shared archive.
26084archive_cmds=$lt_archive_cmds_GCJ
26085archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26086postinstall_cmds=$lt_postinstall_cmds
26087postuninstall_cmds=$lt_postuninstall_cmds
26088
26089# Commands used to build a loadable module (assumed same as above if empty)
26090module_cmds=$lt_module_cmds_GCJ
26091module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26092
26093# Commands to strip libraries.
26094old_striplib=$lt_old_striplib
26095striplib=$lt_striplib
26096
26097# Dependencies to place before the objects being linked to create a
26098# shared library.
26099predep_objects=$lt_predep_objects_GCJ
26100
26101# Dependencies to place after the objects being linked to create a
26102# shared library.
26103postdep_objects=$lt_postdep_objects_GCJ
26104
26105# Dependencies to place before the objects being linked to create a
26106# shared library.
26107predeps=$lt_predeps_GCJ
26108
26109# Dependencies to place after the objects being linked to create a
26110# shared library.
26111postdeps=$lt_postdeps_GCJ
26112
26113# The library search path used internally by the compiler when linking
26114# a shared library.
26115compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26116
26117# Method to check whether dependent libraries are shared objects.
26118deplibs_check_method=$lt_deplibs_check_method
26119
26120# Command to use when deplibs_check_method == file_magic.
26121file_magic_cmd=$lt_file_magic_cmd
26122
26123# Flag that allows shared libraries with undefined symbols to be built.
26124allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26125
26126# Flag that forces no undefined symbols.
26127no_undefined_flag=$lt_no_undefined_flag_GCJ
26128
26129# Commands used to finish a libtool library installation in a directory.
26130finish_cmds=$lt_finish_cmds
26131
26132# Same as above, but a single script fragment to be evaled but not shown.
26133finish_eval=$lt_finish_eval
26134
26135# Take the output of nm and produce a listing of raw symbols and C names.
26136global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26137
26138# Transform the output of nm in a proper C declaration
26139global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26140
26141# Transform the output of nm in a C name address pair
26142global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26143
26144# This is the shared library runtime path variable.
26145runpath_var=$runpath_var
26146
26147# This is the shared library path variable.
26148shlibpath_var=$shlibpath_var
26149
26150# Is shlibpath searched before the hard-coded library search path?
26151shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26152
26153# How to hardcode a shared library path into an executable.
26154hardcode_action=$hardcode_action_GCJ
26155
26156# Whether we should hardcode library paths into libraries.
26157hardcode_into_libs=$hardcode_into_libs
26158
26159# Flag to hardcode \$libdir into a binary during linking.
26160# This must work even if \$libdir does not exist.
26161hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26162
26163# If ld is used when linking, flag to hardcode \$libdir into
26164# a binary during linking. This must work even if \$libdir does
26165# not exist.
26166hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26167
26168# Whether we need a single -rpath flag with a separated argument.
26169hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26170
26171# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26172# resulting binary.
26173hardcode_direct=$hardcode_direct_GCJ
26174
26175# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26176# resulting binary.
26177hardcode_minus_L=$hardcode_minus_L_GCJ
26178
26179# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26180# the resulting binary.
26181hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26182
26183# Set to yes if building a shared library automatically hardcodes DIR into the library
26184# and all subsequent libraries and executables linked against it.
26185hardcode_automatic=$hardcode_automatic_GCJ
26186
26187# Variables whose values should be saved in libtool wrapper scripts and
26188# restored at relink time.
26189variables_saved_for_relink="$variables_saved_for_relink"
26190
26191# Whether libtool must link a program against all its dependency libraries.
26192link_all_deplibs=$link_all_deplibs_GCJ
26193
26194# Compile-time system search path for libraries
26195sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26196
26197# Run-time system search path for libraries
26198sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26199
26200# Fix the shell variable \$srcfile for the compiler.
26201fix_srcfile_path="$fix_srcfile_path_GCJ"
26202
26203# Set to yes if exported symbols are required.
26204always_export_symbols=$always_export_symbols_GCJ
26205
26206# The commands to list exported symbols.
26207export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26208
26209# The commands to extract the exported symbol list from a shared archive.
26210extract_expsyms_cmds=$lt_extract_expsyms_cmds
26211
26212# Symbols that should not be listed in the preloaded symbols.
26213exclude_expsyms=$lt_exclude_expsyms_GCJ
26214
26215# Symbols that must always be exported.
26216include_expsyms=$lt_include_expsyms_GCJ
26217
26218# ### END LIBTOOL TAG CONFIG: $tagname
26219
26220__EOF__
26221
26222
26223else
26224 # If there is no Makefile yet, we rely on a make rule to execute
26225 # `config.status --recheck' to rerun these tests and create the
26226 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026227 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26228 if test -f "$ltmain_in"; then
26229 test -f Makefile && make "$ltmain"
26230 fi
John Criswell47fdd832003-07-14 16:52:07 +000026231fi
26232
26233
26234ac_ext=c
26235ac_cpp='$CPP $CPPFLAGS'
26236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26238ac_compiler_gnu=$ac_cv_c_compiler_gnu
26239
26240CC="$lt_save_CC"
26241
26242 else
26243 tagname=""
26244 fi
26245 ;;
26246
26247 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026248 ac_ext=c
26249ac_cpp='$CPP $CPPFLAGS'
26250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26252ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026253
26254
26255# Source file extension for RC test sources.
26256ac_ext=rc
26257
26258# Object file extension for compiled RC test sources.
26259objext=o
26260objext_RC=$objext
26261
26262# Code to be used in simple compile tests
26263lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26264
26265# Code to be used in simple link tests
26266lt_simple_link_test_code="$lt_simple_compile_test_code"
26267
26268# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26269
26270# If no C compiler was specified, use CC.
26271LTCC=${LTCC-"$CC"}
26272
Reid Spencera773bd52006-08-04 18:18:08 +000026273# If no C compiler flags were specified, use CFLAGS.
26274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26275
John Criswell47fdd832003-07-14 16:52:07 +000026276# Allow CC to be a program name with arguments.
26277compiler=$CC
26278
26279
Reid Spencera773bd52006-08-04 18:18:08 +000026280# save warnings/boilerplate of simple test code
26281ac_outfile=conftest.$ac_objext
26282printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26284_lt_compiler_boilerplate=`cat conftest.err`
26285$rm conftest*
26286
26287ac_outfile=conftest.$ac_objext
26288printf "$lt_simple_link_test_code" >conftest.$ac_ext
26289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26290_lt_linker_boilerplate=`cat conftest.err`
26291$rm conftest*
26292
26293
John Criswell47fdd832003-07-14 16:52:07 +000026294# Allow CC to be a program name with arguments.
26295lt_save_CC="$CC"
26296CC=${RC-"windres"}
26297compiler=$CC
26298compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026299for cc_temp in $compiler""; do
26300 case $cc_temp in
26301 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26302 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26303 \-*) ;;
26304 *) break;;
26305 esac
26306done
26307cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26308
John Criswell47fdd832003-07-14 16:52:07 +000026309lt_cv_prog_compiler_c_o_RC=yes
26310
26311# The else clause should only fire when bootstrapping the
26312# libtool distribution, otherwise you forgot to ship ltmain.sh
26313# with your package, and you will get complaints that there are
26314# no rules to generate ltmain.sh.
26315if test -f "$ltmain"; then
26316 # See if we are running on zsh, and set the options which allow our commands through
26317 # without removal of \ escapes.
26318 if test -n "${ZSH_VERSION+set}" ; then
26319 setopt NO_GLOB_SUBST
26320 fi
26321 # Now quote all the things that may contain metacharacters while being
26322 # careful not to overquote the AC_SUBSTed values. We take copies of the
26323 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026324 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 +000026325 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026326 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26327 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26328 deplibs_check_method reload_flag reload_cmds need_locks \
26329 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26330 lt_cv_sys_global_symbol_to_c_name_address \
26331 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26332 old_postinstall_cmds old_postuninstall_cmds \
26333 compiler_RC \
26334 CC_RC \
26335 LD_RC \
26336 lt_prog_compiler_wl_RC \
26337 lt_prog_compiler_pic_RC \
26338 lt_prog_compiler_static_RC \
26339 lt_prog_compiler_no_builtin_flag_RC \
26340 export_dynamic_flag_spec_RC \
26341 thread_safe_flag_spec_RC \
26342 whole_archive_flag_spec_RC \
26343 enable_shared_with_static_runtimes_RC \
26344 old_archive_cmds_RC \
26345 old_archive_from_new_cmds_RC \
26346 predep_objects_RC \
26347 postdep_objects_RC \
26348 predeps_RC \
26349 postdeps_RC \
26350 compiler_lib_search_path_RC \
26351 archive_cmds_RC \
26352 archive_expsym_cmds_RC \
26353 postinstall_cmds_RC \
26354 postuninstall_cmds_RC \
26355 old_archive_from_expsyms_cmds_RC \
26356 allow_undefined_flag_RC \
26357 no_undefined_flag_RC \
26358 export_symbols_cmds_RC \
26359 hardcode_libdir_flag_spec_RC \
26360 hardcode_libdir_flag_spec_ld_RC \
26361 hardcode_libdir_separator_RC \
26362 hardcode_automatic_RC \
26363 module_cmds_RC \
26364 module_expsym_cmds_RC \
26365 lt_cv_prog_compiler_c_o_RC \
26366 exclude_expsyms_RC \
26367 include_expsyms_RC; do
26368
26369 case $var in
26370 old_archive_cmds_RC | \
26371 old_archive_from_new_cmds_RC | \
26372 archive_cmds_RC | \
26373 archive_expsym_cmds_RC | \
26374 module_cmds_RC | \
26375 module_expsym_cmds_RC | \
26376 old_archive_from_expsyms_cmds_RC | \
26377 export_symbols_cmds_RC | \
26378 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26379 postinstall_cmds | postuninstall_cmds | \
26380 old_postinstall_cmds | old_postuninstall_cmds | \
26381 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26382 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026383 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 +000026384 ;;
26385 *)
26386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26387 ;;
26388 esac
26389 done
26390
26391 case $lt_echo in
26392 *'\$0 --fallback-echo"')
26393 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26394 ;;
26395 esac
26396
26397cfgfile="$ofile"
26398
26399 cat <<__EOF__ >> "$cfgfile"
26400# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26401
26402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26403
26404# Shell to use when invoking shell scripts.
26405SHELL=$lt_SHELL
26406
26407# Whether or not to build shared libraries.
26408build_libtool_libs=$enable_shared
26409
26410# Whether or not to build static libraries.
26411build_old_libs=$enable_static
26412
26413# Whether or not to add -lc for building shared libraries.
26414build_libtool_need_lc=$archive_cmds_need_lc_RC
26415
26416# Whether or not to disallow shared libs when runtime libs are static
26417allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26418
26419# Whether or not to optimize for fast installation.
26420fast_install=$enable_fast_install
26421
26422# The host system.
26423host_alias=$host_alias
26424host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026425host_os=$host_os
26426
26427# The build system.
26428build_alias=$build_alias
26429build=$build
26430build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026431
26432# An echo program that does not interpret backslashes.
26433echo=$lt_echo
26434
26435# The archiver.
26436AR=$lt_AR
26437AR_FLAGS=$lt_AR_FLAGS
26438
26439# A C compiler.
26440LTCC=$lt_LTCC
26441
Reid Spencera773bd52006-08-04 18:18:08 +000026442# LTCC compiler flags.
26443LTCFLAGS=$lt_LTCFLAGS
26444
John Criswell47fdd832003-07-14 16:52:07 +000026445# A language-specific compiler.
26446CC=$lt_compiler_RC
26447
26448# Is the compiler the GNU C compiler?
26449with_gcc=$GCC_RC
26450
26451# An ERE matcher.
26452EGREP=$lt_EGREP
26453
26454# The linker used to build libraries.
26455LD=$lt_LD_RC
26456
26457# Whether we need hard or soft links.
26458LN_S=$lt_LN_S
26459
26460# A BSD-compatible nm program.
26461NM=$lt_NM
26462
26463# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026464STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026465
26466# Used to examine libraries when file_magic_cmd begins "file"
26467MAGIC_CMD=$MAGIC_CMD
26468
26469# Used on cygwin: DLL creation program.
26470DLLTOOL="$DLLTOOL"
26471
26472# Used on cygwin: object dumper.
26473OBJDUMP="$OBJDUMP"
26474
26475# Used on cygwin: assembler.
26476AS="$AS"
26477
26478# The name of the directory that contains temporary libtool files.
26479objdir=$objdir
26480
26481# How to create reloadable object files.
26482reload_flag=$lt_reload_flag
26483reload_cmds=$lt_reload_cmds
26484
26485# How to pass a linker flag through the compiler.
26486wl=$lt_lt_prog_compiler_wl_RC
26487
26488# Object file suffix (normally "o").
26489objext="$ac_objext"
26490
26491# Old archive suffix (normally "a").
26492libext="$libext"
26493
26494# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026495shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026496
26497# Executable file suffix (normally "").
26498exeext="$exeext"
26499
26500# Additional compiler flags for building library objects.
26501pic_flag=$lt_lt_prog_compiler_pic_RC
26502pic_mode=$pic_mode
26503
26504# What is the maximum length of a command?
26505max_cmd_len=$lt_cv_sys_max_cmd_len
26506
26507# Does compiler simultaneously support -c and -o options?
26508compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26509
Reid Spencera773bd52006-08-04 18:18:08 +000026510# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026511need_locks=$lt_need_locks
26512
26513# Do we need the lib prefix for modules?
26514need_lib_prefix=$need_lib_prefix
26515
26516# Do we need a version for libraries?
26517need_version=$need_version
26518
26519# Whether dlopen is supported.
26520dlopen_support=$enable_dlopen
26521
26522# Whether dlopen of programs is supported.
26523dlopen_self=$enable_dlopen_self
26524
26525# Whether dlopen of statically linked programs is supported.
26526dlopen_self_static=$enable_dlopen_self_static
26527
26528# Compiler flag to prevent dynamic linking.
26529link_static_flag=$lt_lt_prog_compiler_static_RC
26530
26531# Compiler flag to turn off builtin functions.
26532no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26533
26534# Compiler flag to allow reflexive dlopens.
26535export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26536
26537# Compiler flag to generate shared objects directly from archives.
26538whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26539
26540# Compiler flag to generate thread-safe objects.
26541thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26542
26543# Library versioning type.
26544version_type=$version_type
26545
26546# Format of library name prefix.
26547libname_spec=$lt_libname_spec
26548
26549# List of archive names. First name is the real one, the rest are links.
26550# The last name is the one that the linker finds with -lNAME.
26551library_names_spec=$lt_library_names_spec
26552
26553# The coded name of the library, if different from the real name.
26554soname_spec=$lt_soname_spec
26555
26556# Commands used to build and install an old-style archive.
26557RANLIB=$lt_RANLIB
26558old_archive_cmds=$lt_old_archive_cmds_RC
26559old_postinstall_cmds=$lt_old_postinstall_cmds
26560old_postuninstall_cmds=$lt_old_postuninstall_cmds
26561
26562# Create an old-style archive from a shared archive.
26563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26564
26565# Create a temporary old-style archive to link instead of a shared archive.
26566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26567
26568# Commands used to build and install a shared archive.
26569archive_cmds=$lt_archive_cmds_RC
26570archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26571postinstall_cmds=$lt_postinstall_cmds
26572postuninstall_cmds=$lt_postuninstall_cmds
26573
26574# Commands used to build a loadable module (assumed same as above if empty)
26575module_cmds=$lt_module_cmds_RC
26576module_expsym_cmds=$lt_module_expsym_cmds_RC
26577
26578# Commands to strip libraries.
26579old_striplib=$lt_old_striplib
26580striplib=$lt_striplib
26581
26582# Dependencies to place before the objects being linked to create a
26583# shared library.
26584predep_objects=$lt_predep_objects_RC
26585
26586# Dependencies to place after the objects being linked to create a
26587# shared library.
26588postdep_objects=$lt_postdep_objects_RC
26589
26590# Dependencies to place before the objects being linked to create a
26591# shared library.
26592predeps=$lt_predeps_RC
26593
26594# Dependencies to place after the objects being linked to create a
26595# shared library.
26596postdeps=$lt_postdeps_RC
26597
26598# The library search path used internally by the compiler when linking
26599# a shared library.
26600compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26601
26602# Method to check whether dependent libraries are shared objects.
26603deplibs_check_method=$lt_deplibs_check_method
26604
26605# Command to use when deplibs_check_method == file_magic.
26606file_magic_cmd=$lt_file_magic_cmd
26607
26608# Flag that allows shared libraries with undefined symbols to be built.
26609allow_undefined_flag=$lt_allow_undefined_flag_RC
26610
26611# Flag that forces no undefined symbols.
26612no_undefined_flag=$lt_no_undefined_flag_RC
26613
26614# Commands used to finish a libtool library installation in a directory.
26615finish_cmds=$lt_finish_cmds
26616
26617# Same as above, but a single script fragment to be evaled but not shown.
26618finish_eval=$lt_finish_eval
26619
26620# Take the output of nm and produce a listing of raw symbols and C names.
26621global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26622
26623# Transform the output of nm in a proper C declaration
26624global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26625
26626# Transform the output of nm in a C name address pair
26627global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26628
26629# This is the shared library runtime path variable.
26630runpath_var=$runpath_var
26631
26632# This is the shared library path variable.
26633shlibpath_var=$shlibpath_var
26634
26635# Is shlibpath searched before the hard-coded library search path?
26636shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26637
26638# How to hardcode a shared library path into an executable.
26639hardcode_action=$hardcode_action_RC
26640
26641# Whether we should hardcode library paths into libraries.
26642hardcode_into_libs=$hardcode_into_libs
26643
26644# Flag to hardcode \$libdir into a binary during linking.
26645# This must work even if \$libdir does not exist.
26646hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26647
26648# If ld is used when linking, flag to hardcode \$libdir into
26649# a binary during linking. This must work even if \$libdir does
26650# not exist.
26651hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26652
26653# Whether we need a single -rpath flag with a separated argument.
26654hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26655
26656# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26657# resulting binary.
26658hardcode_direct=$hardcode_direct_RC
26659
26660# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26661# resulting binary.
26662hardcode_minus_L=$hardcode_minus_L_RC
26663
26664# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26665# the resulting binary.
26666hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26667
26668# Set to yes if building a shared library automatically hardcodes DIR into the library
26669# and all subsequent libraries and executables linked against it.
26670hardcode_automatic=$hardcode_automatic_RC
26671
26672# Variables whose values should be saved in libtool wrapper scripts and
26673# restored at relink time.
26674variables_saved_for_relink="$variables_saved_for_relink"
26675
26676# Whether libtool must link a program against all its dependency libraries.
26677link_all_deplibs=$link_all_deplibs_RC
26678
26679# Compile-time system search path for libraries
26680sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26681
26682# Run-time system search path for libraries
26683sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26684
26685# Fix the shell variable \$srcfile for the compiler.
26686fix_srcfile_path="$fix_srcfile_path_RC"
26687
26688# Set to yes if exported symbols are required.
26689always_export_symbols=$always_export_symbols_RC
26690
26691# The commands to list exported symbols.
26692export_symbols_cmds=$lt_export_symbols_cmds_RC
26693
26694# The commands to extract the exported symbol list from a shared archive.
26695extract_expsyms_cmds=$lt_extract_expsyms_cmds
26696
26697# Symbols that should not be listed in the preloaded symbols.
26698exclude_expsyms=$lt_exclude_expsyms_RC
26699
26700# Symbols that must always be exported.
26701include_expsyms=$lt_include_expsyms_RC
26702
26703# ### END LIBTOOL TAG CONFIG: $tagname
26704
26705__EOF__
26706
26707
26708else
26709 # If there is no Makefile yet, we rely on a make rule to execute
26710 # `config.status --recheck' to rerun these tests and create the
26711 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026712 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26713 if test -f "$ltmain_in"; then
26714 test -f Makefile && make "$ltmain"
26715 fi
John Criswell47fdd832003-07-14 16:52:07 +000026716fi
26717
26718
26719ac_ext=c
26720ac_cpp='$CPP $CPPFLAGS'
26721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26723ac_compiler_gnu=$ac_cv_c_compiler_gnu
26724
26725CC="$lt_save_CC"
26726
26727 ;;
26728
26729 *)
26730 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26731echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26732 { (exit 1); exit 1; }; }
26733 ;;
26734 esac
26735
26736 # Append the new tag name to the list of available tags.
26737 if test -n "$tagname" ; then
26738 available_tags="$available_tags $tagname"
26739 fi
26740 fi
26741 done
26742 IFS="$lt_save_ifs"
26743
26744 # Now substitute the updated list of available tags.
26745 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26746 mv "${ofile}T" "$ofile"
26747 chmod +x "$ofile"
26748 else
26749 rm -f "${ofile}T"
26750 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26751echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26752 { (exit 1); exit 1; }; }
26753 fi
26754fi
John Criswell7a73b802003-06-30 21:59:07 +000026755
26756
26757
26758# This can be used to rebuild libtool when needed
26759LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26760
26761# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026762LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026763
26764# Prevent multiple expansion
26765
26766
26767
John Criswell47fdd832003-07-14 16:52:07 +000026768
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026785
Reid Spencer582a23c2004-12-29 07:07:57 +000026786if test "$lt_cv_dlopen_self" = "yes" ; then
26787
26788cat >>confdefs.h <<\_ACEOF
26789#define CAN_DLOPEN_SELF 1
26790_ACEOF
26791
26792fi
26793
Reid Spencer7931a782004-12-27 06:15:02 +000026794if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026795 LLVMGCC="llvm-gcc${EXEEXT}"
26796 LLVMGXX="llvm-g++${EXEEXT}"
26797 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26798set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026801if test "${ac_cv_path_LLVMGCC+set}" = set; then
26802 echo $ECHO_N "(cached) $ECHO_C" >&6
26803else
26804 case $LLVMGCC in
26805 [\\/]* | ?:[\\/]*)
26806 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26807 ;;
26808 *)
26809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26810for as_dir in $PATH
26811do
26812 IFS=$as_save_IFS
26813 test -z "$as_dir" && as_dir=.
26814 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026815 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 +000026816 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26818 break 2
26819 fi
26820done
26821done
Reid Spencera773bd52006-08-04 18:18:08 +000026822IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026823
Reid Spencer59473af2004-12-25 07:31:29 +000026824 ;;
26825esac
26826fi
26827LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026828if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026829 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26830echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026831else
Reid Spencera773bd52006-08-04 18:18:08 +000026832 { echo "$as_me:$LINENO: result: no" >&5
26833echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026834fi
26835
Reid Spencera773bd52006-08-04 18:18:08 +000026836
Reid Spencerc84492c2005-06-02 22:34:49 +000026837 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26838set dummy $LLVMGXX; 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_LLVMGXX+set}" = set; then
26842 echo $ECHO_N "(cached) $ECHO_C" >&6
26843else
26844 case $LLVMGXX in
26845 [\\/]* | ?:[\\/]*)
26846 ac_cv_path_LLVMGXX="$LLVMGXX" # 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 Lattnerf9eb2d82009-01-22 05:17:59 +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_LLVMGXX="$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
26867LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026868if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026869 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26870echo "${ECHO_T}$LLVMGXX" >&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 Spencer59473af2004-12-25 07:31:29 +000026877else
Devang Patel5d28b882007-12-04 22:54:47 +000026878 if test -z "$LLVMGCC"; then
26879 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26880 fi
26881 if test -z "$LLVMGXX"; then
26882 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26883 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026884 LLVMGCC=$LLVMGCC
26885
26886 LLVMGXX=$LLVMGXX
26887
26888fi
26889
Reid Spencera773bd52006-08-04 18:18:08 +000026890{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26891echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026892
Reid Spencer86901802004-12-08 23:07:27 +000026893ICC=no
26894IXX=no
26895case $CC in
26896 icc*|icpc*)
26897 ICC=yes
26898 IXX=yes
26899 ;;
26900 *)
26901 ;;
26902esac
26903
Duraid Madina937c60a2006-02-15 07:57:42 +000026904if test "$GCC" != "yes" && test "$ICC" != "yes"
26905then
26906 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26907echo "$as_me: error: gcc|icc required but not found" >&2;}
26908 { (exit 1); exit 1; }; }
26909fi
26910
26911if test "$GXX" != "yes" && test "$IXX" != "yes"
26912then
26913 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26914echo "$as_me: error: g++|icc required but not found" >&2;}
26915 { (exit 1); exit 1; }; }
26916fi
26917
Reid Spencer86901802004-12-08 23:07:27 +000026918if test "$GCC" = "yes"
26919then
Chris Lattner399c7c72008-02-05 19:43:53 +000026920 cat >conftest.$ac_ext <<_ACEOF
26921#if !defined(__GNUC__) || __GNUC__ < 3
26922#error Unsupported GCC version
26923#endif
26924
26925_ACEOF
26926rm -f conftest.$ac_objext
26927if { (ac_try="$ac_compile"
26928case "(($ac_try" in
26929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26930 *) ac_try_echo=$ac_try;;
26931esac
26932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26933 (eval "$ac_compile") 2>conftest.er1
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026939 (exit $ac_status); } &&
26940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26941 { (case "(($ac_try" in
26942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26943 *) ac_try_echo=$ac_try;;
26944esac
26945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26946 (eval "$ac_try") 2>&5
26947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; } &&
26950 { ac_try='test -s conftest.$ac_objext'
26951 { (case "(($ac_try" in
26952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26953 *) ac_try_echo=$ac_try;;
26954esac
26955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26956 (eval "$ac_try") 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000026960 :
26961else
26962 echo "$as_me: failed program was:" >&5
26963sed 's/^/| /' conftest.$ac_ext >&5
26964
26965 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026966echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26967 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026968fi
26969
26970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026971fi
26972
26973if test -z "$llvm_cv_gnu_make_command"
26974then
26975 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26976echo "$as_me: error: GNU Make required but not found" >&2;}
26977 { (exit 1); exit 1; }; }
26978fi
26979
Reid Spencera773bd52006-08-04 18:18:08 +000026980{ echo "$as_me:$LINENO: result: ok" >&5
26981echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026983
John Criswell7a73b802003-06-30 21:59:07 +000026984
Reid Spencera773bd52006-08-04 18:18:08 +000026985{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26986echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026987if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26989else
26990 ac_check_lib_save_LIBS=$LIBS
26991LIBS="-lelf $LIBS"
26992cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026998
Reid Spencera773bd52006-08-04 18:18:08 +000026999/* Override any GCC internal prototype to avoid an error.
27000 Use char because int might match the return type of a GCC
27001 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027002#ifdef __cplusplus
27003extern "C"
27004#endif
John Criswell7a73b802003-06-30 21:59:07 +000027005char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027006int
27007main ()
27008{
Reid Spencera773bd52006-08-04 18:18:08 +000027009return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027010 ;
27011 return 0;
27012}
27013_ACEOF
27014rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027015if { (ac_try="$ac_link"
27016case "(($ac_try" in
27017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27018 *) ac_try_echo=$ac_try;;
27019esac
27020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27021 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027022 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027023 grep -v '^ *+' conftest.er1 >conftest.err
27024 rm -f conftest.er1
27025 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027027 (exit $ac_status); } &&
27028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27029 { (case "(($ac_try" in
27030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27031 *) ac_try_echo=$ac_try;;
27032esac
27033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27034 (eval "$ac_try") 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); }; } &&
27038 { ac_try='test -s conftest$ac_exeext'
27039 { (case "(($ac_try" in
27040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27041 *) ac_try_echo=$ac_try;;
27042esac
27043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27044 (eval "$ac_try") 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027048 ac_cv_lib_elf_elf_begin=yes
27049else
27050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027051sed 's/^/| /' conftest.$ac_ext >&5
27052
Reid Spencera773bd52006-08-04 18:18:08 +000027053 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027054fi
Reid Spencera773bd52006-08-04 18:18:08 +000027055
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027056rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027057 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027058LIBS=$ac_check_lib_save_LIBS
27059fi
Reid Spencera773bd52006-08-04 18:18:08 +000027060{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27061echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027062if test $ac_cv_lib_elf_elf_begin = yes; then
27063 cat >>confdefs.h <<_ACEOF
27064#define HAVE_LIBELF 1
27065_ACEOF
27066
27067 LIBS="-lelf $LIBS"
27068
27069fi
27070
27071
Reid Spencera773bd52006-08-04 18:18:08 +000027072{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27073echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027074if test "${ac_cv_lib_m_sin+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076else
27077 ac_check_lib_save_LIBS=$LIBS
27078LIBS="-lm $LIBS"
27079cat >conftest.$ac_ext <<_ACEOF
27080/* confdefs.h. */
27081_ACEOF
27082cat confdefs.h >>conftest.$ac_ext
27083cat >>conftest.$ac_ext <<_ACEOF
27084/* end confdefs.h. */
27085
Reid Spencera773bd52006-08-04 18:18:08 +000027086/* Override any GCC internal prototype to avoid an error.
27087 Use char because int might match the return type of a GCC
27088 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027089#ifdef __cplusplus
27090extern "C"
27091#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027092char sin ();
27093int
27094main ()
27095{
Reid Spencera773bd52006-08-04 18:18:08 +000027096return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027097 ;
27098 return 0;
27099}
27100_ACEOF
27101rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027102if { (ac_try="$ac_link"
27103case "(($ac_try" in
27104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105 *) ac_try_echo=$ac_try;;
27106esac
27107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027109 ac_status=$?
27110 grep -v '^ *+' conftest.er1 >conftest.err
27111 rm -f conftest.er1
27112 cat conftest.err >&5
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027114 (exit $ac_status); } &&
27115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116 { (case "(($ac_try" in
27117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118 *) ac_try_echo=$ac_try;;
27119esac
27120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121 (eval "$ac_try") 2>&5
27122 ac_status=$?
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); }; } &&
27125 { ac_try='test -s conftest$ac_exeext'
27126 { (case "(($ac_try" in
27127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128 *) ac_try_echo=$ac_try;;
27129esac
27130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131 (eval "$ac_try") 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027135 ac_cv_lib_m_sin=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
Reid Spencera773bd52006-08-04 18:18:08 +000027140 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027141fi
Reid Spencera773bd52006-08-04 18:18:08 +000027142
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027143rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027144 conftest$ac_exeext conftest.$ac_ext
27145LIBS=$ac_check_lib_save_LIBS
27146fi
Reid Spencera773bd52006-08-04 18:18:08 +000027147{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27148echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027149if test $ac_cv_lib_m_sin = yes; then
27150 cat >>confdefs.h <<_ACEOF
27151#define HAVE_LIBM 1
27152_ACEOF
27153
27154 LIBS="-lm $LIBS"
27155
27156fi
27157
Jeff Cohen28783c32007-01-12 18:22:38 +000027158if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027159
Reid Spencera773bd52006-08-04 18:18:08 +000027160{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27161echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027162if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027163 echo $ECHO_N "(cached) $ECHO_C" >&6
27164else
27165 ac_check_lib_save_LIBS=$LIBS
27166LIBS="-limagehlp $LIBS"
27167cat >conftest.$ac_ext <<_ACEOF
27168/* confdefs.h. */
27169_ACEOF
27170cat confdefs.h >>conftest.$ac_ext
27171cat >>conftest.$ac_ext <<_ACEOF
27172/* end confdefs.h. */
27173
Reid Spencer48fdf912006-06-01 19:03:21 +000027174
Reid Spencer484fc8e2006-06-01 16:55:59 +000027175int
27176main ()
27177{
Reid Spencera773bd52006-08-04 18:18:08 +000027178return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027179 ;
27180 return 0;
27181}
27182_ACEOF
27183rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027184if { (ac_try="$ac_link"
27185case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027191 ac_status=$?
27192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
27195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027196 (exit $ac_status); } &&
27197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198 { (case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27201esac
27202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_try") 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest$ac_exeext'
27208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27211esac
27212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027217 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027218else
27219 echo "$as_me: failed program was:" >&5
27220sed 's/^/| /' conftest.$ac_ext >&5
27221
Reid Spencera773bd52006-08-04 18:18:08 +000027222 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027223fi
Reid Spencera773bd52006-08-04 18:18:08 +000027224
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027225rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027226 conftest$ac_exeext conftest.$ac_ext
27227LIBS=$ac_check_lib_save_LIBS
27228fi
Reid Spencera773bd52006-08-04 18:18:08 +000027229{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27230echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027231if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027232 cat >>confdefs.h <<_ACEOF
27233#define HAVE_LIBIMAGEHLP 1
27234_ACEOF
27235
27236 LIBS="-limagehlp $LIBS"
27237
27238fi
27239
27240
Reid Spencera773bd52006-08-04 18:18:08 +000027241{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27242echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027243if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
27246 ac_check_lib_save_LIBS=$LIBS
27247LIBS="-lpsapi $LIBS"
27248cat >conftest.$ac_ext <<_ACEOF
27249/* confdefs.h. */
27250_ACEOF
27251cat confdefs.h >>conftest.$ac_ext
27252cat >>conftest.$ac_ext <<_ACEOF
27253/* end confdefs.h. */
27254
Reid Spencer48fdf912006-06-01 19:03:21 +000027255
Reid Spencer484fc8e2006-06-01 16:55:59 +000027256int
27257main ()
27258{
Reid Spencera773bd52006-08-04 18:18:08 +000027259return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027260 ;
27261 return 0;
27262}
27263_ACEOF
27264rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027265if { (ac_try="$ac_link"
27266case "(($ac_try" in
27267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268 *) ac_try_echo=$ac_try;;
27269esac
27270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027272 ac_status=$?
27273 grep -v '^ *+' conftest.er1 >conftest.err
27274 rm -f conftest.er1
27275 cat conftest.err >&5
27276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027277 (exit $ac_status); } &&
27278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279 { (case "(($ac_try" in
27280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281 *) ac_try_echo=$ac_try;;
27282esac
27283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284 (eval "$ac_try") 2>&5
27285 ac_status=$?
27286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287 (exit $ac_status); }; } &&
27288 { ac_try='test -s conftest$ac_exeext'
27289 { (case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27292esac
27293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294 (eval "$ac_try") 2>&5
27295 ac_status=$?
27296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027298 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027299else
27300 echo "$as_me: failed program was:" >&5
27301sed 's/^/| /' conftest.$ac_ext >&5
27302
Reid Spencera773bd52006-08-04 18:18:08 +000027303 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027304fi
Reid Spencera773bd52006-08-04 18:18:08 +000027305
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027306rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027307 conftest$ac_exeext conftest.$ac_ext
27308LIBS=$ac_check_lib_save_LIBS
27309fi
Reid Spencera773bd52006-08-04 18:18:08 +000027310{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27311echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027312if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027313 cat >>confdefs.h <<_ACEOF
27314#define HAVE_LIBPSAPI 1
27315_ACEOF
27316
27317 LIBS="-lpsapi $LIBS"
27318
27319fi
27320
27321fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027322
Reid Spencera773bd52006-08-04 18:18:08 +000027323{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27324echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027325if test "${ac_cv_search_dlopen+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
27327else
27328 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027329cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027330/* confdefs.h. */
27331_ACEOF
27332cat confdefs.h >>conftest.$ac_ext
27333cat >>conftest.$ac_ext <<_ACEOF
27334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027335
Reid Spencera773bd52006-08-04 18:18:08 +000027336/* Override any GCC internal prototype to avoid an error.
27337 Use char because int might match the return type of a GCC
27338 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027339#ifdef __cplusplus
27340extern "C"
27341#endif
John Criswell7a73b802003-06-30 21:59:07 +000027342char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027343int
27344main ()
27345{
Reid Spencera773bd52006-08-04 18:18:08 +000027346return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027347 ;
27348 return 0;
27349}
27350_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027351for ac_lib in '' dl; do
27352 if test -z "$ac_lib"; then
27353 ac_res="none required"
27354 else
27355 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027356 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027357 fi
27358 rm -f conftest.$ac_objext conftest$ac_exeext
27359if { (ac_try="$ac_link"
27360case "(($ac_try" in
27361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362 *) ac_try_echo=$ac_try;;
27363esac
27364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027367 grep -v '^ *+' conftest.er1 >conftest.err
27368 rm -f conftest.er1
27369 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27373 { (case "(($ac_try" in
27374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27375 *) ac_try_echo=$ac_try;;
27376esac
27377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27378 (eval "$ac_try") 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; } &&
27382 { ac_try='test -s conftest$ac_exeext'
27383 { (case "(($ac_try" in
27384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27385 *) ac_try_echo=$ac_try;;
27386esac
27387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27388 (eval "$ac_try") 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027392 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027393else
27394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027395sed 's/^/| /' conftest.$ac_ext >&5
27396
Reid Spencera773bd52006-08-04 18:18:08 +000027397
John Criswell7a73b802003-06-30 21:59:07 +000027398fi
Reid Spencera773bd52006-08-04 18:18:08 +000027399
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027400rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027401 conftest$ac_exeext
27402 if test "${ac_cv_search_dlopen+set}" = set; then
27403 break
John Criswell7a73b802003-06-30 21:59:07 +000027404fi
Reid Spencera773bd52006-08-04 18:18:08 +000027405done
27406if test "${ac_cv_search_dlopen+set}" = set; then
27407 :
27408else
27409 ac_cv_search_dlopen=no
27410fi
27411rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027412LIBS=$ac_func_search_save_LIBS
27413fi
Reid Spencera773bd52006-08-04 18:18:08 +000027414{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27415echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27416ac_res=$ac_cv_search_dlopen
27417if test "$ac_res" != no; then
27418 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027419
27420cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027421#define HAVE_DLOPEN 1
27422_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027423
27424else
Brian Gaekec45be042003-10-07 06:01:34 +000027425 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27426echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027427fi
27428
27429
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027430{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27431echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27432if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27433 echo $ECHO_N "(cached) $ECHO_C" >&6
27434else
27435 ac_check_lib_save_LIBS=$LIBS
27436LIBS="-lffi $LIBS"
27437cat >conftest.$ac_ext <<_ACEOF
27438/* confdefs.h. */
27439_ACEOF
27440cat confdefs.h >>conftest.$ac_ext
27441cat >>conftest.$ac_ext <<_ACEOF
27442/* end confdefs.h. */
27443
27444/* Override any GCC internal prototype to avoid an error.
27445 Use char because int might match the return type of a GCC
27446 builtin and then its argument prototype would still apply. */
27447#ifdef __cplusplus
27448extern "C"
27449#endif
27450char ffi_call ();
27451int
27452main ()
27453{
27454return ffi_call ();
27455 ;
27456 return 0;
27457}
27458_ACEOF
27459rm -f conftest.$ac_objext conftest$ac_exeext
27460if { (ac_try="$ac_link"
27461case "(($ac_try" in
27462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463 *) ac_try_echo=$ac_try;;
27464esac
27465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466 (eval "$ac_link") 2>conftest.er1
27467 ac_status=$?
27468 grep -v '^ *+' conftest.er1 >conftest.err
27469 rm -f conftest.er1
27470 cat conftest.err >&5
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); } &&
27473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27474 { (case "(($ac_try" in
27475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476 *) ac_try_echo=$ac_try;;
27477esac
27478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479 (eval "$ac_try") 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; } &&
27483 { ac_try='test -s conftest$ac_exeext'
27484 { (case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27487esac
27488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489 (eval "$ac_try") 2>&5
27490 ac_status=$?
27491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492 (exit $ac_status); }; }; then
27493 ac_cv_lib_ffi_ffi_call=yes
27494else
27495 echo "$as_me: failed program was:" >&5
27496sed 's/^/| /' conftest.$ac_ext >&5
27497
27498 ac_cv_lib_ffi_ffi_call=no
27499fi
27500
27501rm -f core conftest.err conftest.$ac_objext \
27502 conftest$ac_exeext conftest.$ac_ext
27503LIBS=$ac_check_lib_save_LIBS
27504fi
27505{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27506echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27507if test $ac_cv_lib_ffi_ffi_call = yes; then
27508 have_libffi=1
27509else
27510 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27511echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27512fi
27513
27514
Reid Spencera773bd52006-08-04 18:18:08 +000027515{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27516echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027517if test "${ac_cv_search_mallinfo+set}" = set; then
27518 echo $ECHO_N "(cached) $ECHO_C" >&6
27519else
27520 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027521cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027522/* confdefs.h. */
27523_ACEOF
27524cat confdefs.h >>conftest.$ac_ext
27525cat >>conftest.$ac_ext <<_ACEOF
27526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027527
Reid Spencera773bd52006-08-04 18:18:08 +000027528/* Override any GCC internal prototype to avoid an error.
27529 Use char because int might match the return type of a GCC
27530 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027531#ifdef __cplusplus
27532extern "C"
27533#endif
John Criswell7a73b802003-06-30 21:59:07 +000027534char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027535int
27536main ()
27537{
Reid Spencera773bd52006-08-04 18:18:08 +000027538return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027539 ;
27540 return 0;
27541}
27542_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027543for ac_lib in '' malloc; do
27544 if test -z "$ac_lib"; then
27545 ac_res="none required"
27546 else
27547 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027548 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027549 fi
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551if { (ac_try="$ac_link"
27552case "(($ac_try" in
27553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27554 *) ac_try_echo=$ac_try;;
27555esac
27556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27557 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027559 grep -v '^ *+' conftest.er1 >conftest.err
27560 rm -f conftest.er1
27561 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027563 (exit $ac_status); } &&
27564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27565 { (case "(($ac_try" in
27566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27567 *) ac_try_echo=$ac_try;;
27568esac
27569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27570 (eval "$ac_try") 2>&5
27571 ac_status=$?
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; } &&
27574 { ac_try='test -s conftest$ac_exeext'
27575 { (case "(($ac_try" in
27576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27577 *) ac_try_echo=$ac_try;;
27578esac
27579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27580 (eval "$ac_try") 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027584 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027585else
27586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027587sed 's/^/| /' conftest.$ac_ext >&5
27588
Reid Spencera773bd52006-08-04 18:18:08 +000027589
John Criswell7a73b802003-06-30 21:59:07 +000027590fi
Reid Spencera773bd52006-08-04 18:18:08 +000027591
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027592rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027593 conftest$ac_exeext
27594 if test "${ac_cv_search_mallinfo+set}" = set; then
27595 break
John Criswell7a73b802003-06-30 21:59:07 +000027596fi
Reid Spencera773bd52006-08-04 18:18:08 +000027597done
27598if test "${ac_cv_search_mallinfo+set}" = set; then
27599 :
27600else
27601 ac_cv_search_mallinfo=no
27602fi
27603rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027604LIBS=$ac_func_search_save_LIBS
27605fi
Reid Spencera773bd52006-08-04 18:18:08 +000027606{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27607echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27608ac_res=$ac_cv_search_mallinfo
27609if test "$ac_res" != no; then
27610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027611
27612cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027613#define HAVE_MALLINFO 1
27614_ACEOF
27615
27616fi
27617
27618
Reid Spencer0a262ba2005-08-24 10:07:20 +000027619if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027620
Reid Spencera773bd52006-08-04 18:18:08 +000027621{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27622echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027623if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27624 echo $ECHO_N "(cached) $ECHO_C" >&6
27625else
27626 ac_check_lib_save_LIBS=$LIBS
27627LIBS="-lpthread $LIBS"
27628cat >conftest.$ac_ext <<_ACEOF
27629/* confdefs.h. */
27630_ACEOF
27631cat confdefs.h >>conftest.$ac_ext
27632cat >>conftest.$ac_ext <<_ACEOF
27633/* end confdefs.h. */
27634
Reid Spencera773bd52006-08-04 18:18:08 +000027635/* Override any GCC internal prototype to avoid an error.
27636 Use char because int might match the return type of a GCC
27637 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027638#ifdef __cplusplus
27639extern "C"
27640#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027641char pthread_mutex_init ();
27642int
27643main ()
27644{
Reid Spencera773bd52006-08-04 18:18:08 +000027645return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027646 ;
27647 return 0;
27648}
27649_ACEOF
27650rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027651if { (ac_try="$ac_link"
27652case "(($ac_try" in
27653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27654 *) ac_try_echo=$ac_try;;
27655esac
27656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27657 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027658 ac_status=$?
27659 grep -v '^ *+' conftest.er1 >conftest.err
27660 rm -f conftest.er1
27661 cat conftest.err >&5
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027663 (exit $ac_status); } &&
27664 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27665 { (case "(($ac_try" in
27666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27667 *) ac_try_echo=$ac_try;;
27668esac
27669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27670 (eval "$ac_try") 2>&5
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); }; } &&
27674 { ac_try='test -s conftest$ac_exeext'
27675 { (case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27678esac
27679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_try") 2>&5
27681 ac_status=$?
27682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027684 ac_cv_lib_pthread_pthread_mutex_init=yes
27685else
27686 echo "$as_me: failed program was:" >&5
27687sed 's/^/| /' conftest.$ac_ext >&5
27688
Reid Spencera773bd52006-08-04 18:18:08 +000027689 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027690fi
Reid Spencera773bd52006-08-04 18:18:08 +000027691
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027692rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027693 conftest$ac_exeext conftest.$ac_ext
27694LIBS=$ac_check_lib_save_LIBS
27695fi
Reid Spencera773bd52006-08-04 18:18:08 +000027696{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27697echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027698if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27699 cat >>confdefs.h <<_ACEOF
27700#define HAVE_LIBPTHREAD 1
27701_ACEOF
27702
27703 LIBS="-lpthread $LIBS"
27704
27705fi
27706
Reid Spencera773bd52006-08-04 18:18:08 +000027707 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27708echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027709if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27710 echo $ECHO_N "(cached) $ECHO_C" >&6
27711else
27712 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027713cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027714/* confdefs.h. */
27715_ACEOF
27716cat confdefs.h >>conftest.$ac_ext
27717cat >>conftest.$ac_ext <<_ACEOF
27718/* end confdefs.h. */
27719
Reid Spencera773bd52006-08-04 18:18:08 +000027720/* Override any GCC internal prototype to avoid an error.
27721 Use char because int might match the return type of a GCC
27722 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027723#ifdef __cplusplus
27724extern "C"
27725#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027726char pthread_mutex_lock ();
27727int
27728main ()
27729{
Reid Spencera773bd52006-08-04 18:18:08 +000027730return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027731 ;
27732 return 0;
27733}
27734_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027735for ac_lib in '' pthread; do
27736 if test -z "$ac_lib"; then
27737 ac_res="none required"
27738 else
27739 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027740 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027741 fi
27742 rm -f conftest.$ac_objext conftest$ac_exeext
27743if { (ac_try="$ac_link"
27744case "(($ac_try" in
27745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27746 *) ac_try_echo=$ac_try;;
27747esac
27748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27749 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027750 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027751 grep -v '^ *+' conftest.er1 >conftest.err
27752 rm -f conftest.er1
27753 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027755 (exit $ac_status); } &&
27756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27757 { (case "(($ac_try" in
27758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27759 *) ac_try_echo=$ac_try;;
27760esac
27761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27762 (eval "$ac_try") 2>&5
27763 ac_status=$?
27764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27765 (exit $ac_status); }; } &&
27766 { ac_try='test -s conftest$ac_exeext'
27767 { (case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27770esac
27771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_try") 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027776 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027777else
27778 echo "$as_me: failed program was:" >&5
27779sed 's/^/| /' conftest.$ac_ext >&5
27780
Reid Spencera773bd52006-08-04 18:18:08 +000027781
Brian Gaeke5f268f72003-12-05 19:29:01 +000027782fi
Reid Spencera773bd52006-08-04 18:18:08 +000027783
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027784rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027785 conftest$ac_exeext
27786 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27787 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027788fi
Reid Spencera773bd52006-08-04 18:18:08 +000027789done
27790if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27791 :
27792else
27793 ac_cv_search_pthread_mutex_lock=no
27794fi
27795rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027796LIBS=$ac_func_search_save_LIBS
27797fi
Reid Spencera773bd52006-08-04 18:18:08 +000027798{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27799echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27800ac_res=$ac_cv_search_pthread_mutex_lock
27801if test "$ac_res" != no; then
27802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027803
John Criswell40468462004-09-24 21:19:06 +000027804cat >>confdefs.h <<\_ACEOF
27805#define HAVE_PTHREAD_MUTEX_LOCK 1
27806_ACEOF
27807
27808fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027809
Reid Spencer0a262ba2005-08-24 10:07:20 +000027810fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027811
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027812
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027813# Check whether --with-udis86 was given.
27814if test "${with_udis86+set}" = set; then
27815 withval=$with_udis86;
27816 USE_UDIS86=1
27817
27818 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027819 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027820 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27821 esac
27822
27823{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27824echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27825if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 ac_check_lib_save_LIBS=$LIBS
27829LIBS="-ludis86 $LIBS"
27830cat >conftest.$ac_ext <<_ACEOF
27831/* confdefs.h. */
27832_ACEOF
27833cat confdefs.h >>conftest.$ac_ext
27834cat >>conftest.$ac_ext <<_ACEOF
27835/* end confdefs.h. */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char ud_init ();
27844int
27845main ()
27846{
27847return ud_init ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
27852rm -f conftest.$ac_objext conftest$ac_exeext
27853if { (ac_try="$ac_link"
27854case "(($ac_try" in
27855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27856 *) ac_try_echo=$ac_try;;
27857esac
27858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27859 (eval "$ac_link") 2>conftest.er1
27860 ac_status=$?
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027865 (exit $ac_status); } &&
27866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27867 { (case "(($ac_try" in
27868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27869 *) ac_try_echo=$ac_try;;
27870esac
27871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27872 (eval "$ac_try") 2>&5
27873 ac_status=$?
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); }; } &&
27876 { ac_try='test -s conftest$ac_exeext'
27877 { (case "(($ac_try" in
27878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879 *) ac_try_echo=$ac_try;;
27880esac
27881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882 (eval "$ac_try") 2>&5
27883 ac_status=$?
27884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027886 ac_cv_lib_udis86_ud_init=yes
27887else
27888 echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891 ac_cv_lib_udis86_ud_init=no
27892fi
27893
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027894rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027895 conftest$ac_exeext conftest.$ac_ext
27896LIBS=$ac_check_lib_save_LIBS
27897fi
27898{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27899echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27900if test $ac_cv_lib_udis86_ud_init = yes; then
27901 cat >>confdefs.h <<_ACEOF
27902#define HAVE_LIBUDIS86 1
27903_ACEOF
27904
27905 LIBS="-ludis86 $LIBS"
27906
27907else
27908
27909 echo "Error! You need to have libudis86 around."
27910 exit -1
27911
27912fi
27913
27914
27915else
27916 USE_UDIS86=0
27917
27918fi
27919
27920
27921cat >>confdefs.h <<_ACEOF
27922#define USE_UDIS86 $USE_UDIS86
27923_ACEOF
27924
27925
27926
Reid Spencer59473af2004-12-25 07:31:29 +000027927
27928
27929
27930
27931
27932ac_header_dirent=no
27933for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27934 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027935{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27936echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027938 echo $ECHO_N "(cached) $ECHO_C" >&6
27939else
27940 cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h. */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
27945/* end confdefs.h. */
27946#include <sys/types.h>
27947#include <$ac_hdr>
27948
27949int
27950main ()
27951{
27952if ((DIR *) 0)
27953return 0;
27954 ;
27955 return 0;
27956}
27957_ACEOF
27958rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027959if { (ac_try="$ac_compile"
27960case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027966 ac_status=$?
27967 grep -v '^ *+' conftest.er1 >conftest.err
27968 rm -f conftest.er1
27969 cat conftest.err >&5
27970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027971 (exit $ac_status); } &&
27972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27973 { (case "(($ac_try" in
27974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975 *) ac_try_echo=$ac_try;;
27976esac
27977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27978 (eval "$ac_try") 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest.$ac_objext'
27983 { (case "(($ac_try" in
27984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27985 *) ac_try_echo=$ac_try;;
27986esac
27987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27988 (eval "$ac_try") 2>&5
27989 ac_status=$?
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027992 eval "$as_ac_Header=yes"
27993else
27994 echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
Reid Spencera773bd52006-08-04 18:18:08 +000027997 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027998fi
Reid Spencera773bd52006-08-04 18:18:08 +000027999
28000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028001fi
Reid Spencera773bd52006-08-04 18:18:08 +000028002ac_res=`eval echo '${'$as_ac_Header'}'`
28003 { echo "$as_me:$LINENO: result: $ac_res" >&5
28004echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028005if test `eval echo '${'$as_ac_Header'}'` = yes; then
28006 cat >>confdefs.h <<_ACEOF
28007#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28008_ACEOF
28009
28010ac_header_dirent=$ac_hdr; break
28011fi
28012
28013done
28014# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28015if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028016 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28017echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028018if test "${ac_cv_search_opendir+set}" = set; then
28019 echo $ECHO_N "(cached) $ECHO_C" >&6
28020else
28021 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028022cat >conftest.$ac_ext <<_ACEOF
28023/* confdefs.h. */
28024_ACEOF
28025cat confdefs.h >>conftest.$ac_ext
28026cat >>conftest.$ac_ext <<_ACEOF
28027/* end confdefs.h. */
28028
Reid Spencera773bd52006-08-04 18:18:08 +000028029/* Override any GCC internal prototype to avoid an error.
28030 Use char because int might match the return type of a GCC
28031 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028032#ifdef __cplusplus
28033extern "C"
28034#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028035char opendir ();
28036int
28037main ()
28038{
Reid Spencera773bd52006-08-04 18:18:08 +000028039return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028040 ;
28041 return 0;
28042}
28043_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028044for ac_lib in '' dir; do
28045 if test -z "$ac_lib"; then
28046 ac_res="none required"
28047 else
28048 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028049 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028050 fi
28051 rm -f conftest.$ac_objext conftest$ac_exeext
28052if { (ac_try="$ac_link"
28053case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28056esac
28057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028059 ac_status=$?
28060 grep -v '^ *+' conftest.er1 >conftest.err
28061 rm -f conftest.er1
28062 cat conftest.err >&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028064 (exit $ac_status); } &&
28065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28066 { (case "(($ac_try" in
28067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068 *) ac_try_echo=$ac_try;;
28069esac
28070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071 (eval "$ac_try") 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest$ac_exeext'
28076 { (case "(($ac_try" in
28077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078 *) ac_try_echo=$ac_try;;
28079esac
28080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081 (eval "$ac_try") 2>&5
28082 ac_status=$?
28083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028085 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028086else
28087 echo "$as_me: failed program was:" >&5
28088sed 's/^/| /' conftest.$ac_ext >&5
28089
Reid Spencera773bd52006-08-04 18:18:08 +000028090
Reid Spencer59473af2004-12-25 07:31:29 +000028091fi
Reid Spencera773bd52006-08-04 18:18:08 +000028092
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028093rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028094 conftest$ac_exeext
28095 if test "${ac_cv_search_opendir+set}" = set; then
28096 break
Reid Spencer59473af2004-12-25 07:31:29 +000028097fi
Reid Spencera773bd52006-08-04 18:18:08 +000028098done
28099if test "${ac_cv_search_opendir+set}" = set; then
28100 :
28101else
28102 ac_cv_search_opendir=no
28103fi
28104rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028105LIBS=$ac_func_search_save_LIBS
28106fi
Reid Spencera773bd52006-08-04 18:18:08 +000028107{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28108echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28109ac_res=$ac_cv_search_opendir
28110if test "$ac_res" != no; then
28111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028112
28113fi
28114
28115else
Reid Spencera773bd52006-08-04 18:18:08 +000028116 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28117echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028118if test "${ac_cv_search_opendir+set}" = set; then
28119 echo $ECHO_N "(cached) $ECHO_C" >&6
28120else
28121 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028122cat >conftest.$ac_ext <<_ACEOF
28123/* confdefs.h. */
28124_ACEOF
28125cat confdefs.h >>conftest.$ac_ext
28126cat >>conftest.$ac_ext <<_ACEOF
28127/* end confdefs.h. */
28128
Reid Spencera773bd52006-08-04 18:18:08 +000028129/* Override any GCC internal prototype to avoid an error.
28130 Use char because int might match the return type of a GCC
28131 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028132#ifdef __cplusplus
28133extern "C"
28134#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028135char opendir ();
28136int
28137main ()
28138{
Reid Spencera773bd52006-08-04 18:18:08 +000028139return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028140 ;
28141 return 0;
28142}
28143_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028144for ac_lib in '' x; do
28145 if test -z "$ac_lib"; then
28146 ac_res="none required"
28147 else
28148 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028149 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028150 fi
28151 rm -f conftest.$ac_objext conftest$ac_exeext
28152if { (ac_try="$ac_link"
28153case "(($ac_try" in
28154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28155 *) ac_try_echo=$ac_try;;
28156esac
28157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28158 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028159 ac_status=$?
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028164 (exit $ac_status); } &&
28165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28166 { (case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_try") 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest$ac_exeext'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028185 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028186else
28187 echo "$as_me: failed program was:" >&5
28188sed 's/^/| /' conftest.$ac_ext >&5
28189
Reid Spencera773bd52006-08-04 18:18:08 +000028190
Reid Spencer59473af2004-12-25 07:31:29 +000028191fi
Reid Spencera773bd52006-08-04 18:18:08 +000028192
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028193rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028194 conftest$ac_exeext
28195 if test "${ac_cv_search_opendir+set}" = set; then
28196 break
Reid Spencer59473af2004-12-25 07:31:29 +000028197fi
Reid Spencera773bd52006-08-04 18:18:08 +000028198done
28199if test "${ac_cv_search_opendir+set}" = set; then
28200 :
28201else
28202 ac_cv_search_opendir=no
28203fi
28204rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028205LIBS=$ac_func_search_save_LIBS
28206fi
Reid Spencera773bd52006-08-04 18:18:08 +000028207{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28208echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28209ac_res=$ac_cv_search_opendir
28210if test "$ac_res" != no; then
28211 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028212
28213fi
28214
28215fi
28216
Reid Spencera773bd52006-08-04 18:18:08 +000028217{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28218echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028219if test "${ac_cv_header_mmap_anon+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28221else
28222 ac_ext=c
28223ac_cpp='$CPP $CPPFLAGS'
28224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28226ac_compiler_gnu=$ac_cv_c_compiler_gnu
28227
28228 cat >conftest.$ac_ext <<_ACEOF
28229/* confdefs.h. */
28230_ACEOF
28231cat confdefs.h >>conftest.$ac_ext
28232cat >>conftest.$ac_ext <<_ACEOF
28233/* end confdefs.h. */
28234#include <sys/mman.h>
28235#include <unistd.h>
28236#include <fcntl.h>
28237int
28238main ()
28239{
28240mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28241 ;
28242 return 0;
28243}
28244_ACEOF
28245rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028246if { (ac_try="$ac_compile"
28247case "(($ac_try" in
28248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28249 *) ac_try_echo=$ac_try;;
28250esac
28251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28252 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028258 (exit $ac_status); } &&
28259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28260 { (case "(($ac_try" in
28261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28262 *) ac_try_echo=$ac_try;;
28263esac
28264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28265 (eval "$ac_try") 2>&5
28266 ac_status=$?
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); }; } &&
28269 { ac_try='test -s conftest.$ac_objext'
28270 { (case "(($ac_try" in
28271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272 *) ac_try_echo=$ac_try;;
28273esac
28274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275 (eval "$ac_try") 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028279 ac_cv_header_mmap_anon=yes
28280else
28281 echo "$as_me: failed program was:" >&5
28282sed 's/^/| /' conftest.$ac_ext >&5
28283
Reid Spencera773bd52006-08-04 18:18:08 +000028284 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028285fi
Reid Spencera773bd52006-08-04 18:18:08 +000028286
28287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028288 ac_ext=c
28289ac_cpp='$CPP $CPPFLAGS'
28290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28292ac_compiler_gnu=$ac_cv_c_compiler_gnu
28293
28294
28295fi
Reid Spencera773bd52006-08-04 18:18:08 +000028296{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28297echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028298if test "$ac_cv_header_mmap_anon" = yes; then
28299
28300cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028301#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028302_ACEOF
28303
28304fi
28305
Reid Spencera773bd52006-08-04 18:18:08 +000028306{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28307echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028308if test "${ac_cv_header_stat_broken+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310else
28311 cat >conftest.$ac_ext <<_ACEOF
28312/* confdefs.h. */
28313_ACEOF
28314cat confdefs.h >>conftest.$ac_ext
28315cat >>conftest.$ac_ext <<_ACEOF
28316/* end confdefs.h. */
28317#include <sys/types.h>
28318#include <sys/stat.h>
28319
Reid Spencera773bd52006-08-04 18:18:08 +000028320#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028321# if S_ISBLK (S_IFDIR)
28322You lose.
28323# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028324#endif
28325
Reid Spencera773bd52006-08-04 18:18:08 +000028326#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028327# if S_ISBLK (S_IFCHR)
28328You lose.
28329# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028330#endif
28331
Reid Spencera773bd52006-08-04 18:18:08 +000028332#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028333# if S_ISLNK (S_IFREG)
28334You lose.
28335# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028336#endif
28337
Reid Spencera773bd52006-08-04 18:18:08 +000028338#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028339# if S_ISSOCK (S_IFREG)
28340You lose.
28341# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028342#endif
28343
28344_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28346 $EGREP "You lose" >/dev/null 2>&1; then
28347 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028348else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028349 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028350fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028351rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028352
Reid Spencer59473af2004-12-25 07:31:29 +000028353fi
Reid Spencera773bd52006-08-04 18:18:08 +000028354{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28355echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028356if test $ac_cv_header_stat_broken = yes; then
28357
28358cat >>confdefs.h <<\_ACEOF
28359#define STAT_MACROS_BROKEN 1
28360_ACEOF
28361
28362fi
28363
Reid Spencera773bd52006-08-04 18:18:08 +000028364{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28365echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028366if test "${ac_cv_header_stdc+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028370/* confdefs.h. */
28371_ACEOF
28372cat confdefs.h >>conftest.$ac_ext
28373cat >>conftest.$ac_ext <<_ACEOF
28374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028375#include <stdlib.h>
28376#include <stdarg.h>
28377#include <string.h>
28378#include <float.h>
28379
John Criswell0c38eaf2003-09-10 15:17:25 +000028380int
28381main ()
28382{
28383
28384 ;
28385 return 0;
28386}
John Criswell7a73b802003-06-30 21:59:07 +000028387_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028388rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028389if { (ac_try="$ac_compile"
28390case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028397 grep -v '^ *+' conftest.er1 >conftest.err
28398 rm -f conftest.er1
28399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028401 (exit $ac_status); } &&
28402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28403 { (case "(($ac_try" in
28404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405 *) ac_try_echo=$ac_try;;
28406esac
28407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408 (eval "$ac_try") 2>&5
28409 ac_status=$?
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); }; } &&
28412 { ac_try='test -s conftest.$ac_objext'
28413 { (case "(($ac_try" in
28414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415 *) ac_try_echo=$ac_try;;
28416esac
28417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418 (eval "$ac_try") 2>&5
28419 ac_status=$?
28420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028422 ac_cv_header_stdc=yes
28423else
28424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028425sed 's/^/| /' conftest.$ac_ext >&5
28426
Reid Spencera773bd52006-08-04 18:18:08 +000028427 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028428fi
Reid Spencera773bd52006-08-04 18:18:08 +000028429
28430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028431
28432if test $ac_cv_header_stdc = yes; then
28433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 <string.h>
28441
28442_ACEOF
28443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028444 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028445 :
28446else
28447 ac_cv_header_stdc=no
28448fi
28449rm -f conftest*
28450
28451fi
28452
28453if test $ac_cv_header_stdc = yes; then
28454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028461#include <stdlib.h>
28462
28463_ACEOF
28464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028465 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028466 :
28467else
28468 ac_cv_header_stdc=no
28469fi
28470rm -f conftest*
28471
28472fi
28473
28474if test $ac_cv_header_stdc = yes; then
28475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28476 if test "$cross_compiling" = yes; then
28477 :
28478else
28479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028480/* confdefs.h. */
28481_ACEOF
28482cat confdefs.h >>conftest.$ac_ext
28483cat >>conftest.$ac_ext <<_ACEOF
28484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028485#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028486#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028487#if ((' ' & 0x0FF) == 0x020)
28488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28490#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028491# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028492 (('a' <= (c) && (c) <= 'i') \
28493 || ('j' <= (c) && (c) <= 'r') \
28494 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28496#endif
28497
28498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28499int
28500main ()
28501{
28502 int i;
28503 for (i = 0; i < 256; i++)
28504 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028505 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028506 return 2;
28507 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028508}
28509_ACEOF
28510rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028511if { (ac_try="$ac_link"
28512case "(($ac_try" in
28513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514 *) ac_try_echo=$ac_try;;
28515esac
28516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028518 ac_status=$?
28519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028521 { (case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524esac
28525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028527 ac_status=$?
28528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529 (exit $ac_status); }; }; then
28530 :
28531else
28532 echo "$as_me: program exited with status $ac_status" >&5
28533echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028534sed 's/^/| /' conftest.$ac_ext >&5
28535
John Criswell7a73b802003-06-30 21:59:07 +000028536( exit $ac_status )
28537ac_cv_header_stdc=no
28538fi
Reid Spencera773bd52006-08-04 18:18:08 +000028539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28540fi
28541
28542
John Criswell7a73b802003-06-30 21:59:07 +000028543fi
28544fi
Reid Spencera773bd52006-08-04 18:18:08 +000028545{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28546echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028547if test $ac_cv_header_stdc = yes; then
28548
28549cat >>confdefs.h <<\_ACEOF
28550#define STDC_HEADERS 1
28551_ACEOF
28552
28553fi
28554
Reid Spencera773bd52006-08-04 18:18:08 +000028555{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28556echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028557if test "${ac_cv_header_sys_wait_h+set}" = set; then
28558 echo $ECHO_N "(cached) $ECHO_C" >&6
28559else
28560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028566#include <sys/types.h>
28567#include <sys/wait.h>
28568#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028569# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028570#endif
28571#ifndef WIFEXITED
28572# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28573#endif
28574
John Criswell7a73b802003-06-30 21:59:07 +000028575int
28576main ()
28577{
28578 int s;
28579 wait (&s);
28580 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28581 ;
28582 return 0;
28583}
28584_ACEOF
28585rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028586if { (ac_try="$ac_compile"
28587case "(($ac_try" in
28588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28589 *) ac_try_echo=$ac_try;;
28590esac
28591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28592 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028593 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028598 (exit $ac_status); } &&
28599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28600 { (case "(($ac_try" in
28601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602 *) ac_try_echo=$ac_try;;
28603esac
28604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605 (eval "$ac_try") 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
28610 { (case "(($ac_try" in
28611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28612 *) ac_try_echo=$ac_try;;
28613esac
28614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28615 (eval "$ac_try") 2>&5
28616 ac_status=$?
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028619 ac_cv_header_sys_wait_h=yes
28620else
28621 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028622sed 's/^/| /' conftest.$ac_ext >&5
28623
Reid Spencera773bd52006-08-04 18:18:08 +000028624 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028625fi
Reid Spencera773bd52006-08-04 18:18:08 +000028626
28627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028628fi
Reid Spencera773bd52006-08-04 18:18:08 +000028629{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28630echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028631if test $ac_cv_header_sys_wait_h = yes; then
28632
28633cat >>confdefs.h <<\_ACEOF
28634#define HAVE_SYS_WAIT_H 1
28635_ACEOF
28636
28637fi
28638
Reid Spencera773bd52006-08-04 18:18:08 +000028639{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28640echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028641if test "${ac_cv_header_time+set}" = set; then
28642 echo $ECHO_N "(cached) $ECHO_C" >&6
28643else
28644 cat >conftest.$ac_ext <<_ACEOF
28645/* confdefs.h. */
28646_ACEOF
28647cat confdefs.h >>conftest.$ac_ext
28648cat >>conftest.$ac_ext <<_ACEOF
28649/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028650#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651#include <sys/time.h>
28652#include <time.h>
28653
28654int
28655main ()
28656{
28657if ((struct tm *) 0)
28658return 0;
28659 ;
28660 return 0;
28661}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028662_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028663rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028664if { (ac_try="$ac_compile"
28665case "(($ac_try" in
28666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667 *) ac_try_echo=$ac_try;;
28668esac
28669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28670 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028671 ac_status=$?
28672 grep -v '^ *+' conftest.er1 >conftest.err
28673 rm -f conftest.er1
28674 cat conftest.err >&5
28675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028676 (exit $ac_status); } &&
28677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28678 { (case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28681esac
28682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_try") 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } &&
28687 { ac_try='test -s conftest.$ac_objext'
28688 { (case "(($ac_try" in
28689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28690 *) ac_try_echo=$ac_try;;
28691esac
28692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28693 (eval "$ac_try") 2>&5
28694 ac_status=$?
28695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028697 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028698else
28699 echo "$as_me: failed program was:" >&5
28700sed 's/^/| /' conftest.$ac_ext >&5
28701
Reid Spencera773bd52006-08-04 18:18:08 +000028702 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028703fi
Reid Spencera773bd52006-08-04 18:18:08 +000028704
28705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028706fi
Reid Spencera773bd52006-08-04 18:18:08 +000028707{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28708echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028709if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028710
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028711cat >>confdefs.h <<\_ACEOF
28712#define TIME_WITH_SYS_TIME 1
28713_ACEOF
28714
28715fi
28716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028717
Reid Spencer59473af2004-12-25 07:31:29 +000028718
28719
28720
28721
28722
28723
28724for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28725do
28726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028731 echo $ECHO_N "(cached) $ECHO_C" >&6
28732fi
Reid Spencera773bd52006-08-04 18:18:08 +000028733ac_res=`eval echo '${'$as_ac_Header'}'`
28734 { echo "$as_me:$LINENO: result: $ac_res" >&5
28735echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028736else
28737 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028738{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28739echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028740cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028741/* confdefs.h. */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028746$ac_includes_default
28747#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028748_ACEOF
28749rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028750if { (ac_try="$ac_compile"
28751case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028757 ac_status=$?
28758 grep -v '^ *+' conftest.er1 >conftest.err
28759 rm -f conftest.er1
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28764 { (case "(($ac_try" in
28765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28766 *) ac_try_echo=$ac_try;;
28767esac
28768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28769 (eval "$ac_try") 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
28774 { (case "(($ac_try" in
28775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28776 *) ac_try_echo=$ac_try;;
28777esac
28778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28779 (eval "$ac_try") 2>&5
28780 ac_status=$?
28781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028783 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028784else
28785 echo "$as_me: failed program was:" >&5
28786sed 's/^/| /' conftest.$ac_ext >&5
28787
Reid Spencera773bd52006-08-04 18:18:08 +000028788 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028789fi
Reid Spencera773bd52006-08-04 18:18:08 +000028790
28791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28792{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28793echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028794
Reid Spencer59473af2004-12-25 07:31:29 +000028795# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028796{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28797echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028798cat >conftest.$ac_ext <<_ACEOF
28799/* confdefs.h. */
28800_ACEOF
28801cat confdefs.h >>conftest.$ac_ext
28802cat >>conftest.$ac_ext <<_ACEOF
28803/* end confdefs.h. */
28804#include <$ac_header>
28805_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028806if { (ac_try="$ac_cpp conftest.$ac_ext"
28807case "(($ac_try" in
28808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28809 *) ac_try_echo=$ac_try;;
28810esac
28811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028813 ac_status=$?
28814 grep -v '^ *+' conftest.er1 >conftest.err
28815 rm -f conftest.er1
28816 cat conftest.err >&5
28817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028818 (exit $ac_status); } >/dev/null; then
28819 if test -s conftest.err; then
28820 ac_cpp_err=$ac_c_preproc_warn_flag
28821 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28822 else
28823 ac_cpp_err=
28824 fi
28825else
28826 ac_cpp_err=yes
28827fi
28828if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028829 ac_header_preproc=yes
28830else
28831 echo "$as_me: failed program was:" >&5
28832sed 's/^/| /' conftest.$ac_ext >&5
28833
28834 ac_header_preproc=no
28835fi
Reid Spencera773bd52006-08-04 18:18:08 +000028836
Reid Spencer59473af2004-12-25 07:31:29 +000028837rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028838{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28839echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028840
28841# So? What about this header?
28842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28843 yes:no: )
28844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28848 ac_header_preproc=yes
28849 ;;
28850 no:yes:* )
28851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028863 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028864## ----------------------------------- ##
28865## Report this to llvmbugs@cs.uiuc.edu ##
28866## ----------------------------------- ##
28867_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028868 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028869 ;;
28870esac
Reid Spencera773bd52006-08-04 18:18:08 +000028871{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28873if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028874 echo $ECHO_N "(cached) $ECHO_C" >&6
28875else
28876 eval "$as_ac_Header=\$ac_header_preproc"
28877fi
Reid Spencera773bd52006-08-04 18:18:08 +000028878ac_res=`eval echo '${'$as_ac_Header'}'`
28879 { echo "$as_me:$LINENO: result: $ac_res" >&5
28880echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028881
28882fi
Reid Spencer59473af2004-12-25 07:31:29 +000028883if test `eval echo '${'$as_ac_Header'}'` = yes; then
28884 cat >>confdefs.h <<_ACEOF
28885#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028886_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028887
28888fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028889
Reid Spencer59473af2004-12-25 07:31:29 +000028890done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028891
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028892
28893
Reid Spencer59473af2004-12-25 07:31:29 +000028894
28895
28896
28897
Reid Spencercdb08a32006-06-05 16:11:07 +000028898for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028899do
28900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028901if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28904if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028905 echo $ECHO_N "(cached) $ECHO_C" >&6
28906fi
Reid Spencera773bd52006-08-04 18:18:08 +000028907ac_res=`eval echo '${'$as_ac_Header'}'`
28908 { echo "$as_me:$LINENO: result: $ac_res" >&5
28909echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028910else
28911 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028912{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028914cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
28920$ac_includes_default
28921#include <$ac_header>
28922_ACEOF
28923rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028924if { (ac_try="$ac_compile"
28925case "(($ac_try" in
28926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28927 *) ac_try_echo=$ac_try;;
28928esac
28929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28930 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028931 ac_status=$?
28932 grep -v '^ *+' conftest.er1 >conftest.err
28933 rm -f conftest.er1
28934 cat conftest.err >&5
28935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028936 (exit $ac_status); } &&
28937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28938 { (case "(($ac_try" in
28939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28940 *) ac_try_echo=$ac_try;;
28941esac
28942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28943 (eval "$ac_try") 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest.$ac_objext'
28948 { (case "(($ac_try" in
28949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950 *) ac_try_echo=$ac_try;;
28951esac
28952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953 (eval "$ac_try") 2>&5
28954 ac_status=$?
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028957 ac_header_compiler=yes
28958else
28959 echo "$as_me: failed program was:" >&5
28960sed 's/^/| /' conftest.$ac_ext >&5
28961
Reid Spencera773bd52006-08-04 18:18:08 +000028962 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028963fi
Reid Spencera773bd52006-08-04 18:18:08 +000028964
28965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28966{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28967echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028968
28969# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028970{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028972cat >conftest.$ac_ext <<_ACEOF
28973/* confdefs.h. */
28974_ACEOF
28975cat confdefs.h >>conftest.$ac_ext
28976cat >>conftest.$ac_ext <<_ACEOF
28977/* end confdefs.h. */
28978#include <$ac_header>
28979_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028980if { (ac_try="$ac_cpp conftest.$ac_ext"
28981case "(($ac_try" in
28982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983 *) ac_try_echo=$ac_try;;
28984esac
28985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028987 ac_status=$?
28988 grep -v '^ *+' conftest.er1 >conftest.err
28989 rm -f conftest.er1
28990 cat conftest.err >&5
28991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028992 (exit $ac_status); } >/dev/null; then
28993 if test -s conftest.err; then
28994 ac_cpp_err=$ac_c_preproc_warn_flag
28995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28996 else
28997 ac_cpp_err=
28998 fi
28999else
29000 ac_cpp_err=yes
29001fi
29002if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029003 ac_header_preproc=yes
29004else
29005 echo "$as_me: failed program was:" >&5
29006sed 's/^/| /' conftest.$ac_ext >&5
29007
29008 ac_header_preproc=no
29009fi
Reid Spencera773bd52006-08-04 18:18:08 +000029010
Reid Spencer59473af2004-12-25 07:31:29 +000029011rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029012{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29013echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029014
29015# So? What about this header?
29016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29017 yes:no: )
29018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29022 ac_header_preproc=yes
29023 ;;
29024 no:yes:* )
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029037 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029038## ----------------------------------- ##
29039## Report this to llvmbugs@cs.uiuc.edu ##
29040## ----------------------------------- ##
29041_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029042 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029043 ;;
29044esac
Reid Spencera773bd52006-08-04 18:18:08 +000029045{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29046echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29047if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029048 echo $ECHO_N "(cached) $ECHO_C" >&6
29049else
29050 eval "$as_ac_Header=\$ac_header_preproc"
29051fi
Reid Spencera773bd52006-08-04 18:18:08 +000029052ac_res=`eval echo '${'$as_ac_Header'}'`
29053 { echo "$as_me:$LINENO: result: $ac_res" >&5
29054echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029055
29056fi
29057if test `eval echo '${'$as_ac_Header'}'` = yes; then
29058 cat >>confdefs.h <<_ACEOF
29059#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29060_ACEOF
29061
29062fi
29063
29064done
29065
29066
Reid Spencerbe3e4192007-08-17 05:45:26 +000029067for ac_header in windows.h
29068do
29069as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29075fi
29076ac_res=`eval echo '${'$as_ac_Header'}'`
29077 { echo "$as_me:$LINENO: result: $ac_res" >&5
29078echo "${ECHO_T}$ac_res" >&6; }
29079else
29080 # Is the header compilable?
29081{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29082echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29083cat >conftest.$ac_ext <<_ACEOF
29084/* confdefs.h. */
29085_ACEOF
29086cat confdefs.h >>conftest.$ac_ext
29087cat >>conftest.$ac_ext <<_ACEOF
29088/* end confdefs.h. */
29089$ac_includes_default
29090#include <$ac_header>
29091_ACEOF
29092rm -f conftest.$ac_objext
29093if { (ac_try="$ac_compile"
29094case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_compile") 2>conftest.er1
29100 ac_status=$?
29101 grep -v '^ *+' conftest.er1 >conftest.err
29102 rm -f conftest.er1
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029105 (exit $ac_status); } &&
29106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29107 { (case "(($ac_try" in
29108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29109 *) ac_try_echo=$ac_try;;
29110esac
29111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29112 (eval "$ac_try") 2>&5
29113 ac_status=$?
29114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29115 (exit $ac_status); }; } &&
29116 { ac_try='test -s conftest.$ac_objext'
29117 { (case "(($ac_try" in
29118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29119 *) ac_try_echo=$ac_try;;
29120esac
29121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29122 (eval "$ac_try") 2>&5
29123 ac_status=$?
29124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029126 ac_header_compiler=yes
29127else
29128 echo "$as_me: failed program was:" >&5
29129sed 's/^/| /' conftest.$ac_ext >&5
29130
29131 ac_header_compiler=no
29132fi
29133
29134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29135{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29136echo "${ECHO_T}$ac_header_compiler" >&6; }
29137
29138# Is the header present?
29139{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29141cat >conftest.$ac_ext <<_ACEOF
29142/* confdefs.h. */
29143_ACEOF
29144cat confdefs.h >>conftest.$ac_ext
29145cat >>conftest.$ac_ext <<_ACEOF
29146/* end confdefs.h. */
29147#include <$ac_header>
29148_ACEOF
29149if { (ac_try="$ac_cpp conftest.$ac_ext"
29150case "(($ac_try" in
29151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152 *) ac_try_echo=$ac_try;;
29153esac
29154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29156 ac_status=$?
29157 grep -v '^ *+' conftest.er1 >conftest.err
29158 rm -f conftest.er1
29159 cat conftest.err >&5
29160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029161 (exit $ac_status); } >/dev/null; then
29162 if test -s conftest.err; then
29163 ac_cpp_err=$ac_c_preproc_warn_flag
29164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29165 else
29166 ac_cpp_err=
29167 fi
29168else
29169 ac_cpp_err=yes
29170fi
29171if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029172 ac_header_preproc=yes
29173else
29174 echo "$as_me: failed program was:" >&5
29175sed 's/^/| /' conftest.$ac_ext >&5
29176
29177 ac_header_preproc=no
29178fi
29179
29180rm -f conftest.err conftest.$ac_ext
29181{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29182echo "${ECHO_T}$ac_header_preproc" >&6; }
29183
29184# So? What about this header?
29185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29186 yes:no: )
29187 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29191 ac_header_preproc=yes
29192 ;;
29193 no:yes:* )
29194 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29197echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29200 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29201echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29204 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29206 ( cat <<\_ASBOX
29207## ----------------------------------- ##
29208## Report this to llvmbugs@cs.uiuc.edu ##
29209## ----------------------------------- ##
29210_ASBOX
29211 ) | sed "s/^/$as_me: WARNING: /" >&2
29212 ;;
29213esac
29214{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29217 echo $ECHO_N "(cached) $ECHO_C" >&6
29218else
29219 eval "$as_ac_Header=\$ac_header_preproc"
29220fi
29221ac_res=`eval echo '${'$as_ac_Header'}'`
29222 { echo "$as_me:$LINENO: result: $ac_res" >&5
29223echo "${ECHO_T}$ac_res" >&6; }
29224
29225fi
29226if test `eval echo '${'$as_ac_Header'}'` = yes; then
29227 cat >>confdefs.h <<_ACEOF
29228#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29229_ACEOF
29230
29231fi
29232
29233done
Reid Spencer59473af2004-12-25 07:31:29 +000029234
29235
29236
29237
Reid Spencerbe3e4192007-08-17 05:45:26 +000029238
29239for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029240do
29241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29243 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29244echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29245if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029246 echo $ECHO_N "(cached) $ECHO_C" >&6
29247fi
Reid Spencera773bd52006-08-04 18:18:08 +000029248ac_res=`eval echo '${'$as_ac_Header'}'`
29249 { echo "$as_me:$LINENO: result: $ac_res" >&5
29250echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029251else
29252 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029253{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29254echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029255cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029256/* confdefs.h. */
29257_ACEOF
29258cat confdefs.h >>conftest.$ac_ext
29259cat >>conftest.$ac_ext <<_ACEOF
29260/* end confdefs.h. */
29261$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029262#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029263_ACEOF
29264rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029265if { (ac_try="$ac_compile"
29266case "(($ac_try" in
29267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268 *) ac_try_echo=$ac_try;;
29269esac
29270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029272 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029273 grep -v '^ *+' conftest.er1 >conftest.err
29274 rm -f conftest.er1
29275 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029277 (exit $ac_status); } &&
29278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29279 { (case "(($ac_try" in
29280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281 *) ac_try_echo=$ac_try;;
29282esac
29283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284 (eval "$ac_try") 2>&5
29285 ac_status=$?
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); }; } &&
29288 { ac_try='test -s conftest.$ac_objext'
29289 { (case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29292esac
29293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_try") 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029298 ac_header_compiler=yes
29299else
29300 echo "$as_me: failed program was:" >&5
29301sed 's/^/| /' conftest.$ac_ext >&5
29302
Reid Spencera773bd52006-08-04 18:18:08 +000029303 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029304fi
Reid Spencera773bd52006-08-04 18:18:08 +000029305
29306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29307{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29308echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029309
29310# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029311{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029313cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029314/* confdefs.h. */
29315_ACEOF
29316cat confdefs.h >>conftest.$ac_ext
29317cat >>conftest.$ac_ext <<_ACEOF
29318/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029319#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029320_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029321if { (ac_try="$ac_cpp conftest.$ac_ext"
29322case "(($ac_try" in
29323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324 *) ac_try_echo=$ac_try;;
29325esac
29326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029328 ac_status=$?
29329 grep -v '^ *+' conftest.er1 >conftest.err
29330 rm -f conftest.er1
29331 cat conftest.err >&5
29332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029333 (exit $ac_status); } >/dev/null; then
29334 if test -s conftest.err; then
29335 ac_cpp_err=$ac_c_preproc_warn_flag
29336 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29337 else
29338 ac_cpp_err=
29339 fi
29340else
29341 ac_cpp_err=yes
29342fi
29343if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029344 ac_header_preproc=yes
29345else
29346 echo "$as_me: failed program was:" >&5
29347sed 's/^/| /' conftest.$ac_ext >&5
29348
29349 ac_header_preproc=no
29350fi
Reid Spencera773bd52006-08-04 18:18:08 +000029351
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029352rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029353{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29354echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029355
29356# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29358 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029363 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029364 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029365 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029378 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029379## ----------------------------------- ##
29380## Report this to llvmbugs@cs.uiuc.edu ##
29381## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029382_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029383 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029384 ;;
29385esac
Reid Spencera773bd52006-08-04 18:18:08 +000029386{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29388if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029389 echo $ECHO_N "(cached) $ECHO_C" >&6
29390else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029391 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029392fi
Reid Spencera773bd52006-08-04 18:18:08 +000029393ac_res=`eval echo '${'$as_ac_Header'}'`
29394 { echo "$as_me:$LINENO: result: $ac_res" >&5
29395echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029396
29397fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029398if test `eval echo '${'$as_ac_Header'}'` = yes; then
29399 cat >>confdefs.h <<_ACEOF
29400#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029401_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029402
29403fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029405done
29406
John Criswell7ed43ad2004-07-19 16:12:29 +000029407
Reid Spencercdb08a32006-06-05 16:11:07 +000029408
Reid Spencera6d990a2006-09-14 06:17:21 +000029409
29410for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029411do
29412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029417 echo $ECHO_N "(cached) $ECHO_C" >&6
29418fi
Reid Spencera773bd52006-08-04 18:18:08 +000029419ac_res=`eval echo '${'$as_ac_Header'}'`
29420 { echo "$as_me:$LINENO: result: $ac_res" >&5
29421echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029422else
29423 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029424{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029426cat >conftest.$ac_ext <<_ACEOF
29427/* confdefs.h. */
29428_ACEOF
29429cat confdefs.h >>conftest.$ac_ext
29430cat >>conftest.$ac_ext <<_ACEOF
29431/* end confdefs.h. */
29432$ac_includes_default
29433#include <$ac_header>
29434_ACEOF
29435rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029436if { (ac_try="$ac_compile"
29437case "(($ac_try" in
29438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439 *) ac_try_echo=$ac_try;;
29440esac
29441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29442 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029443 ac_status=$?
29444 grep -v '^ *+' conftest.er1 >conftest.err
29445 rm -f conftest.er1
29446 cat conftest.err >&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029448 (exit $ac_status); } &&
29449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29450 { (case "(($ac_try" in
29451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452 *) ac_try_echo=$ac_try;;
29453esac
29454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455 (eval "$ac_try") 2>&5
29456 ac_status=$?
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest.$ac_objext'
29460 { (case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29463esac
29464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_try") 2>&5
29466 ac_status=$?
29467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029469 ac_header_compiler=yes
29470else
29471 echo "$as_me: failed program was:" >&5
29472sed 's/^/| /' conftest.$ac_ext >&5
29473
Reid Spencera773bd52006-08-04 18:18:08 +000029474 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029475fi
Reid Spencera773bd52006-08-04 18:18:08 +000029476
29477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29478{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29479echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029480
29481# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029482{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029484cat >conftest.$ac_ext <<_ACEOF
29485/* confdefs.h. */
29486_ACEOF
29487cat confdefs.h >>conftest.$ac_ext
29488cat >>conftest.$ac_ext <<_ACEOF
29489/* end confdefs.h. */
29490#include <$ac_header>
29491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029492if { (ac_try="$ac_cpp conftest.$ac_ext"
29493case "(($ac_try" in
29494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495 *) ac_try_echo=$ac_try;;
29496esac
29497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029499 ac_status=$?
29500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029504 (exit $ac_status); } >/dev/null; then
29505 if test -s conftest.err; then
29506 ac_cpp_err=$ac_c_preproc_warn_flag
29507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29508 else
29509 ac_cpp_err=
29510 fi
29511else
29512 ac_cpp_err=yes
29513fi
29514if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029515 ac_header_preproc=yes
29516else
29517 echo "$as_me: failed program was:" >&5
29518sed 's/^/| /' conftest.$ac_ext >&5
29519
29520 ac_header_preproc=no
29521fi
Reid Spencera773bd52006-08-04 18:18:08 +000029522
Chris Lattner0b142592005-11-14 06:57:34 +000029523rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029524{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29525echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029526
29527# So? What about this header?
29528case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29529 yes:no: )
29530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29534 ac_header_preproc=yes
29535 ;;
29536 no:yes:* )
29537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29540echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29544echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029549 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029550## ----------------------------------- ##
29551## Report this to llvmbugs@cs.uiuc.edu ##
29552## ----------------------------------- ##
29553_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029554 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029555 ;;
29556esac
Reid Spencera773bd52006-08-04 18:18:08 +000029557{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29559if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029560 echo $ECHO_N "(cached) $ECHO_C" >&6
29561else
29562 eval "$as_ac_Header=\$ac_header_preproc"
29563fi
Reid Spencera773bd52006-08-04 18:18:08 +000029564ac_res=`eval echo '${'$as_ac_Header'}'`
29565 { echo "$as_me:$LINENO: result: $ac_res" >&5
29566echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029567
29568fi
29569if test `eval echo '${'$as_ac_Header'}'` = yes; then
29570 cat >>confdefs.h <<_ACEOF
29571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29572_ACEOF
29573
29574fi
29575
29576done
29577
Reid Spencer0a262ba2005-08-24 10:07:20 +000029578if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029579
29580for ac_header in pthread.h
29581do
29582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29583if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29586if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029587 echo $ECHO_N "(cached) $ECHO_C" >&6
29588fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029589ac_res=`eval echo '${'$as_ac_Header'}'`
29590 { echo "$as_me:$LINENO: result: $ac_res" >&5
29591echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029592else
29593 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029594{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029596cat >conftest.$ac_ext <<_ACEOF
29597/* confdefs.h. */
29598_ACEOF
29599cat confdefs.h >>conftest.$ac_ext
29600cat >>conftest.$ac_ext <<_ACEOF
29601/* end confdefs.h. */
29602$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029603#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029604_ACEOF
29605rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029606if { (ac_try="$ac_compile"
29607case "(($ac_try" in
29608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609 *) ac_try_echo=$ac_try;;
29610esac
29611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029613 ac_status=$?
29614 grep -v '^ *+' conftest.er1 >conftest.err
29615 rm -f conftest.er1
29616 cat conftest.err >&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029618 (exit $ac_status); } &&
29619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29620 { (case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_try") 2>&5
29626 ac_status=$?
29627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); }; } &&
29629 { ac_try='test -s conftest.$ac_objext'
29630 { (case "(($ac_try" in
29631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29632 *) ac_try_echo=$ac_try;;
29633esac
29634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29635 (eval "$ac_try") 2>&5
29636 ac_status=$?
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029639 ac_header_compiler=yes
29640else
29641 echo "$as_me: failed program was:" >&5
29642sed 's/^/| /' conftest.$ac_ext >&5
29643
Reid Spencera773bd52006-08-04 18:18:08 +000029644 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029645fi
Reid Spencera773bd52006-08-04 18:18:08 +000029646
29647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029650
29651# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029652{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029654cat >conftest.$ac_ext <<_ACEOF
29655/* confdefs.h. */
29656_ACEOF
29657cat confdefs.h >>conftest.$ac_ext
29658cat >>conftest.$ac_ext <<_ACEOF
29659/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029660#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029661_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029662if { (ac_try="$ac_cpp conftest.$ac_ext"
29663case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029669 ac_status=$?
29670 grep -v '^ *+' conftest.er1 >conftest.err
29671 rm -f conftest.er1
29672 cat conftest.err >&5
29673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029674 (exit $ac_status); } >/dev/null; then
29675 if test -s conftest.err; then
29676 ac_cpp_err=$ac_c_preproc_warn_flag
29677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29678 else
29679 ac_cpp_err=
29680 fi
29681else
29682 ac_cpp_err=yes
29683fi
29684if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029685 ac_header_preproc=yes
29686else
29687 echo "$as_me: failed program was:" >&5
29688sed 's/^/| /' conftest.$ac_ext >&5
29689
29690 ac_header_preproc=no
29691fi
Reid Spencera773bd52006-08-04 18:18:08 +000029692
Reid Spencer0a262ba2005-08-24 10:07:20 +000029693rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029694{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029696
29697# So? What about this header?
29698case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29699 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29701echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29703echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029704 ac_header_preproc=yes
29705 ;;
29706 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29712echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29714echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29716echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29718echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029719 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029720## ----------------------------------- ##
29721## Report this to llvmbugs@cs.uiuc.edu ##
29722## ----------------------------------- ##
29723_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029724 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029725 ;;
29726esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029727{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029730 echo $ECHO_N "(cached) $ECHO_C" >&6
29731else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029732 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029733fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029734ac_res=`eval echo '${'$as_ac_Header'}'`
29735 { echo "$as_me:$LINENO: result: $ac_res" >&5
29736echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029737
29738fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029739if test `eval echo '${'$as_ac_Header'}'` = yes; then
29740 cat >>confdefs.h <<_ACEOF
29741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29742_ACEOF
29743 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029744
29745else
29746 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029747
29748fi
29749
Reid Spencerbe3e4192007-08-17 05:45:26 +000029750done
Reid Spencer1000b732006-12-01 00:37:14 +000029751
29752else
29753 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029754
29755fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029756
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029757if test -n "$have_libffi" ; then
29758
29759
29760for ac_header in ffi.h ffi/ffi.h
29761do
29762as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29765echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29767 echo $ECHO_N "(cached) $ECHO_C" >&6
29768fi
29769ac_res=`eval echo '${'$as_ac_Header'}'`
29770 { echo "$as_me:$LINENO: result: $ac_res" >&5
29771echo "${ECHO_T}$ac_res" >&6; }
29772else
29773 # Is the header compilable?
29774{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29776cat >conftest.$ac_ext <<_ACEOF
29777/* confdefs.h. */
29778_ACEOF
29779cat confdefs.h >>conftest.$ac_ext
29780cat >>conftest.$ac_ext <<_ACEOF
29781/* end confdefs.h. */
29782$ac_includes_default
29783#include <$ac_header>
29784_ACEOF
29785rm -f conftest.$ac_objext
29786if { (ac_try="$ac_compile"
29787case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_compile") 2>conftest.er1
29793 ac_status=$?
29794 grep -v '^ *+' conftest.er1 >conftest.err
29795 rm -f conftest.er1
29796 cat conftest.err >&5
29797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798 (exit $ac_status); } &&
29799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29800 { (case "(($ac_try" in
29801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29802 *) ac_try_echo=$ac_try;;
29803esac
29804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29805 (eval "$ac_try") 2>&5
29806 ac_status=$?
29807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808 (exit $ac_status); }; } &&
29809 { ac_try='test -s conftest.$ac_objext'
29810 { (case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_try") 2>&5
29816 ac_status=$?
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; }; then
29819 ac_header_compiler=yes
29820else
29821 echo "$as_me: failed program was:" >&5
29822sed 's/^/| /' conftest.$ac_ext >&5
29823
29824 ac_header_compiler=no
29825fi
29826
29827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29828{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29829echo "${ECHO_T}$ac_header_compiler" >&6; }
29830
29831# Is the header present?
29832{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29833echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29834cat >conftest.$ac_ext <<_ACEOF
29835/* confdefs.h. */
29836_ACEOF
29837cat confdefs.h >>conftest.$ac_ext
29838cat >>conftest.$ac_ext <<_ACEOF
29839/* end confdefs.h. */
29840#include <$ac_header>
29841_ACEOF
29842if { (ac_try="$ac_cpp conftest.$ac_ext"
29843case "(($ac_try" in
29844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845 *) ac_try_echo=$ac_try;;
29846esac
29847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29849 ac_status=$?
29850 grep -v '^ *+' conftest.er1 >conftest.err
29851 rm -f conftest.er1
29852 cat conftest.err >&5
29853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854 (exit $ac_status); } >/dev/null; then
29855 if test -s conftest.err; then
29856 ac_cpp_err=$ac_c_preproc_warn_flag
29857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29858 else
29859 ac_cpp_err=
29860 fi
29861else
29862 ac_cpp_err=yes
29863fi
29864if test -z "$ac_cpp_err"; then
29865 ac_header_preproc=yes
29866else
29867 echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
29870 ac_header_preproc=no
29871fi
29872
29873rm -f conftest.err conftest.$ac_ext
29874{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29875echo "${ECHO_T}$ac_header_preproc" >&6; }
29876
29877# So? What about this header?
29878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29879 yes:no: )
29880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29881echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29883echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29884 ac_header_preproc=yes
29885 ;;
29886 no:yes:* )
29887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29888echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29890echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29892echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29894echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29896echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29898echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29899 ( cat <<\_ASBOX
29900## ----------------------------------- ##
29901## Report this to llvmbugs@cs.uiuc.edu ##
29902## ----------------------------------- ##
29903_ASBOX
29904 ) | sed "s/^/$as_me: WARNING: /" >&2
29905 ;;
29906esac
29907{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29911else
29912 eval "$as_ac_Header=\$ac_header_preproc"
29913fi
29914ac_res=`eval echo '${'$as_ac_Header'}'`
29915 { echo "$as_me:$LINENO: result: $ac_res" >&5
29916echo "${ECHO_T}$ac_res" >&6; }
29917
29918fi
29919if test `eval echo '${'$as_ac_Header'}'` = yes; then
29920 cat >>confdefs.h <<_ACEOF
29921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29922_ACEOF
29923 HAVE_FFI=1
29924
29925fi
29926
29927done
29928
29929fi
29930
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029931
Reid Spencer8085cff2005-01-16 02:58:39 +000029932
Reid Spencerb2ed05262006-11-03 18:04:08 +000029933 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29934echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29935if test "${ac_cv_huge_val_sanity+set}" = set; then
29936 echo $ECHO_N "(cached) $ECHO_C" >&6
29937else
29938
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029939 ac_ext=cpp
29940ac_cpp='$CXXCPP $CPPFLAGS'
29941ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29942ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29943ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029944
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029945 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029946 if test "$cross_compiling" = yes; then
29947 ac_cv_huge_val_sanity=yes
29948else
29949 cat >conftest.$ac_ext <<_ACEOF
29950/* confdefs.h. */
29951_ACEOF
29952cat confdefs.h >>conftest.$ac_ext
29953cat >>conftest.$ac_ext <<_ACEOF
29954/* end confdefs.h. */
29955#include <math.h>
29956int
29957main ()
29958{
29959double x = HUGE_VAL; return x != x;
29960 ;
29961 return 0;
29962}
29963_ACEOF
29964rm -f conftest$ac_exeext
29965if { (ac_try="$ac_link"
29966case "(($ac_try" in
29967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29968 *) ac_try_echo=$ac_try;;
29969esac
29970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29971 (eval "$ac_link") 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29975 { (case "(($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_try") 2>&5
29981 ac_status=$?
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); }; }; then
29984 ac_cv_huge_val_sanity=yes
29985else
29986 echo "$as_me: program exited with status $ac_status" >&5
29987echo "$as_me: failed program was:" >&5
29988sed 's/^/| /' conftest.$ac_ext >&5
29989
29990( exit $ac_status )
29991ac_cv_huge_val_sanity=no
29992fi
29993rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29994fi
29995
29996
29997 ac_ext=c
29998ac_cpp='$CPP $CPPFLAGS'
29999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001ac_compiler_gnu=$ac_cv_c_compiler_gnu
30002
30003
30004fi
30005{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30006echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30007 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30008
30009
Reid Spencera773bd52006-08-04 18:18:08 +000030010{ echo "$as_me:$LINENO: checking for pid_t" >&5
30011echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030012if test "${ac_cv_type_pid_t+set}" = set; then
30013 echo $ECHO_N "(cached) $ECHO_C" >&6
30014else
30015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030016/* confdefs.h. */
30017_ACEOF
30018cat confdefs.h >>conftest.$ac_ext
30019cat >>conftest.$ac_ext <<_ACEOF
30020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030021$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030022typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030023int
30024main ()
30025{
Reid Spencera773bd52006-08-04 18:18:08 +000030026if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030027 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030028if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030029 return 0;
30030 ;
30031 return 0;
30032}
30033_ACEOF
30034rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030035if { (ac_try="$ac_compile"
30036case "(($ac_try" in
30037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30038 *) ac_try_echo=$ac_try;;
30039esac
30040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30041 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030043 grep -v '^ *+' conftest.er1 >conftest.err
30044 rm -f conftest.er1
30045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030047 (exit $ac_status); } &&
30048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30049 { (case "(($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_try") 2>&5
30055 ac_status=$?
30056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30057 (exit $ac_status); }; } &&
30058 { ac_try='test -s conftest.$ac_objext'
30059 { (case "(($ac_try" in
30060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30061 *) ac_try_echo=$ac_try;;
30062esac
30063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30064 (eval "$ac_try") 2>&5
30065 ac_status=$?
30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30067 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030068 ac_cv_type_pid_t=yes
30069else
30070 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030071sed 's/^/| /' conftest.$ac_ext >&5
30072
Reid Spencera773bd52006-08-04 18:18:08 +000030073 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030074fi
Reid Spencera773bd52006-08-04 18:18:08 +000030075
30076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030077fi
Reid Spencera773bd52006-08-04 18:18:08 +000030078{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30079echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030080if test $ac_cv_type_pid_t = yes; then
30081 :
30082else
30083
30084cat >>confdefs.h <<_ACEOF
30085#define pid_t int
30086_ACEOF
30087
30088fi
30089
Reid Spencera773bd52006-08-04 18:18:08 +000030090{ echo "$as_me:$LINENO: checking for size_t" >&5
30091echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030092if test "${ac_cv_type_size_t+set}" = set; then
30093 echo $ECHO_N "(cached) $ECHO_C" >&6
30094else
30095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030096/* confdefs.h. */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030101$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030102typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030103int
30104main ()
30105{
Reid Spencera773bd52006-08-04 18:18:08 +000030106if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030107 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030108if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030109 return 0;
30110 ;
30111 return 0;
30112}
30113_ACEOF
30114rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030115if { (ac_try="$ac_compile"
30116case "(($ac_try" in
30117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118 *) ac_try_echo=$ac_try;;
30119esac
30120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030122 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030123 grep -v '^ *+' conftest.er1 >conftest.err
30124 rm -f conftest.er1
30125 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030127 (exit $ac_status); } &&
30128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30129 { (case "(($ac_try" in
30130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30131 *) ac_try_echo=$ac_try;;
30132esac
30133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30134 (eval "$ac_try") 2>&5
30135 ac_status=$?
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); }; } &&
30138 { ac_try='test -s conftest.$ac_objext'
30139 { (case "(($ac_try" in
30140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30141 *) ac_try_echo=$ac_try;;
30142esac
30143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30144 (eval "$ac_try") 2>&5
30145 ac_status=$?
30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30147 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030148 ac_cv_type_size_t=yes
30149else
30150 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030151sed 's/^/| /' conftest.$ac_ext >&5
30152
Reid Spencera773bd52006-08-04 18:18:08 +000030153 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030154fi
Reid Spencera773bd52006-08-04 18:18:08 +000030155
30156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030157fi
Reid Spencera773bd52006-08-04 18:18:08 +000030158{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30159echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030160if test $ac_cv_type_size_t = yes; then
30161 :
30162else
30163
30164cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030165#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030166_ACEOF
30167
30168fi
30169
Reid Spencera773bd52006-08-04 18:18:08 +000030170{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30171echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030172if test "${ac_cv_type_signal+set}" = set; then
30173 echo $ECHO_N "(cached) $ECHO_C" >&6
30174else
30175 cat >conftest.$ac_ext <<_ACEOF
30176/* confdefs.h. */
30177_ACEOF
30178cat confdefs.h >>conftest.$ac_ext
30179cat >>conftest.$ac_ext <<_ACEOF
30180/* end confdefs.h. */
30181#include <sys/types.h>
30182#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030183
30184int
30185main ()
30186{
Reid Spencera773bd52006-08-04 18:18:08 +000030187return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030188 ;
30189 return 0;
30190}
30191_ACEOF
30192rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030193if { (ac_try="$ac_compile"
30194case "(($ac_try" in
30195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30196 *) ac_try_echo=$ac_try;;
30197esac
30198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30199 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200 ac_status=$?
30201 grep -v '^ *+' conftest.er1 >conftest.err
30202 rm -f conftest.er1
30203 cat conftest.err >&5
30204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030205 (exit $ac_status); } &&
30206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30207 { (case "(($ac_try" in
30208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209 *) ac_try_echo=$ac_try;;
30210esac
30211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212 (eval "$ac_try") 2>&5
30213 ac_status=$?
30214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); }; } &&
30216 { ac_try='test -s conftest.$ac_objext'
30217 { (case "(($ac_try" in
30218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30219 *) ac_try_echo=$ac_try;;
30220esac
30221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30222 (eval "$ac_try") 2>&5
30223 ac_status=$?
30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030226 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030227else
30228 echo "$as_me: failed program was:" >&5
30229sed 's/^/| /' conftest.$ac_ext >&5
30230
Reid Spencera773bd52006-08-04 18:18:08 +000030231 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030232fi
Reid Spencera773bd52006-08-04 18:18:08 +000030233
30234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030235fi
Reid Spencera773bd52006-08-04 18:18:08 +000030236{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30237echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030238
30239cat >>confdefs.h <<_ACEOF
30240#define RETSIGTYPE $ac_cv_type_signal
30241_ACEOF
30242
30243
Reid Spencera773bd52006-08-04 18:18:08 +000030244{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30245echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030246if test "${ac_cv_struct_tm+set}" = set; then
30247 echo $ECHO_N "(cached) $ECHO_C" >&6
30248else
30249 cat >conftest.$ac_ext <<_ACEOF
30250/* confdefs.h. */
30251_ACEOF
30252cat confdefs.h >>conftest.$ac_ext
30253cat >>conftest.$ac_ext <<_ACEOF
30254/* end confdefs.h. */
30255#include <sys/types.h>
30256#include <time.h>
30257
30258int
30259main ()
30260{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030261struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030262 ;
30263 return 0;
30264}
30265_ACEOF
30266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030267if { (ac_try="$ac_compile"
30268case "(($ac_try" in
30269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30270 *) ac_try_echo=$ac_try;;
30271esac
30272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30273 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030274 ac_status=$?
30275 grep -v '^ *+' conftest.er1 >conftest.err
30276 rm -f conftest.er1
30277 cat conftest.err >&5
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030279 (exit $ac_status); } &&
30280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30281 { (case "(($ac_try" in
30282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30283 *) ac_try_echo=$ac_try;;
30284esac
30285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30286 (eval "$ac_try") 2>&5
30287 ac_status=$?
30288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289 (exit $ac_status); }; } &&
30290 { ac_try='test -s conftest.$ac_objext'
30291 { (case "(($ac_try" in
30292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30293 *) ac_try_echo=$ac_try;;
30294esac
30295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30296 (eval "$ac_try") 2>&5
30297 ac_status=$?
30298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30299 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030300 ac_cv_struct_tm=time.h
30301else
30302 echo "$as_me: failed program was:" >&5
30303sed 's/^/| /' conftest.$ac_ext >&5
30304
Reid Spencera773bd52006-08-04 18:18:08 +000030305 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030306fi
Reid Spencera773bd52006-08-04 18:18:08 +000030307
30308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030309fi
Reid Spencera773bd52006-08-04 18:18:08 +000030310{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30311echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030312if test $ac_cv_struct_tm = sys/time.h; then
30313
30314cat >>confdefs.h <<\_ACEOF
30315#define TM_IN_SYS_TIME 1
30316_ACEOF
30317
30318fi
30319
Reid Spencera773bd52006-08-04 18:18:08 +000030320{ echo "$as_me:$LINENO: checking for int64_t" >&5
30321echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030322if test "${ac_cv_type_int64_t+set}" = set; then
30323 echo $ECHO_N "(cached) $ECHO_C" >&6
30324else
30325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030326/* confdefs.h. */
30327_ACEOF
30328cat confdefs.h >>conftest.$ac_ext
30329cat >>conftest.$ac_ext <<_ACEOF
30330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030331$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030332typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030333int
30334main ()
30335{
Reid Spencera773bd52006-08-04 18:18:08 +000030336if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030337 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030338if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030339 return 0;
30340 ;
30341 return 0;
30342}
30343_ACEOF
30344rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030345if { (ac_try="$ac_compile"
30346case "(($ac_try" in
30347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348 *) ac_try_echo=$ac_try;;
30349esac
30350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030357 (exit $ac_status); } &&
30358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30359 { (case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30362esac
30363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_try") 2>&5
30365 ac_status=$?
30366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30367 (exit $ac_status); }; } &&
30368 { ac_try='test -s conftest.$ac_objext'
30369 { (case "(($ac_try" in
30370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371 *) ac_try_echo=$ac_try;;
30372esac
30373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30374 (eval "$ac_try") 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030378 ac_cv_type_int64_t=yes
30379else
30380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030381sed 's/^/| /' conftest.$ac_ext >&5
30382
Reid Spencera773bd52006-08-04 18:18:08 +000030383 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030384fi
Reid Spencera773bd52006-08-04 18:18:08 +000030385
30386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030387fi
Reid Spencera773bd52006-08-04 18:18:08 +000030388{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30389echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030390if test $ac_cv_type_int64_t = yes; then
30391
30392cat >>confdefs.h <<_ACEOF
30393#define HAVE_INT64_T 1
30394_ACEOF
30395
30396
30397else
30398 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30399echo "$as_me: error: Type int64_t required but not found" >&2;}
30400 { (exit 1); exit 1; }; }
30401fi
30402
Reid Spencera773bd52006-08-04 18:18:08 +000030403{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30404echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030405if test "${ac_cv_type_uint64_t+set}" = set; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407else
30408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030414$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030415typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030416int
30417main ()
30418{
Reid Spencera773bd52006-08-04 18:18:08 +000030419if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030420 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030421if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030422 return 0;
30423 ;
30424 return 0;
30425}
30426_ACEOF
30427rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030428if { (ac_try="$ac_compile"
30429case "(($ac_try" in
30430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30431 *) ac_try_echo=$ac_try;;
30432esac
30433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30434 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030436 grep -v '^ *+' conftest.er1 >conftest.err
30437 rm -f conftest.er1
30438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030440 (exit $ac_status); } &&
30441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30442 { (case "(($ac_try" in
30443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30444 *) ac_try_echo=$ac_try;;
30445esac
30446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30447 (eval "$ac_try") 2>&5
30448 ac_status=$?
30449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450 (exit $ac_status); }; } &&
30451 { ac_try='test -s conftest.$ac_objext'
30452 { (case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30455esac
30456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30457 (eval "$ac_try") 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030461 ac_cv_type_uint64_t=yes
30462else
30463 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030464sed 's/^/| /' conftest.$ac_ext >&5
30465
Reid Spencera773bd52006-08-04 18:18:08 +000030466 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030467fi
Reid Spencera773bd52006-08-04 18:18:08 +000030468
30469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030470fi
Reid Spencera773bd52006-08-04 18:18:08 +000030471{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30472echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030473if test $ac_cv_type_uint64_t = yes; then
30474
30475cat >>confdefs.h <<_ACEOF
30476#define HAVE_UINT64_T 1
30477_ACEOF
30478
30479
30480else
Reid Spencera773bd52006-08-04 18:18:08 +000030481 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30482echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030483if test "${ac_cv_type_u_int64_t+set}" = set; then
30484 echo $ECHO_N "(cached) $ECHO_C" >&6
30485else
30486 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030487/* confdefs.h. */
30488_ACEOF
30489cat confdefs.h >>conftest.$ac_ext
30490cat >>conftest.$ac_ext <<_ACEOF
30491/* end confdefs.h. */
30492$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030493typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030494int
30495main ()
30496{
Reid Spencera773bd52006-08-04 18:18:08 +000030497if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030498 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030499if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030500 return 0;
30501 ;
30502 return 0;
30503}
30504_ACEOF
30505rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030506if { (ac_try="$ac_compile"
30507case "(($ac_try" in
30508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30509 *) ac_try_echo=$ac_try;;
30510esac
30511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30512 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030513 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030514 grep -v '^ *+' conftest.er1 >conftest.err
30515 rm -f conftest.er1
30516 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030518 (exit $ac_status); } &&
30519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30520 { (case "(($ac_try" in
30521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522 *) ac_try_echo=$ac_try;;
30523esac
30524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30525 (eval "$ac_try") 2>&5
30526 ac_status=$?
30527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30528 (exit $ac_status); }; } &&
30529 { ac_try='test -s conftest.$ac_objext'
30530 { (case "(($ac_try" in
30531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30532 *) ac_try_echo=$ac_try;;
30533esac
30534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30535 (eval "$ac_try") 2>&5
30536 ac_status=$?
30537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30538 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030539 ac_cv_type_u_int64_t=yes
30540else
30541 echo "$as_me: failed program was:" >&5
30542sed 's/^/| /' conftest.$ac_ext >&5
30543
Reid Spencera773bd52006-08-04 18:18:08 +000030544 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030545fi
Reid Spencera773bd52006-08-04 18:18:08 +000030546
30547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030548fi
Reid Spencera773bd52006-08-04 18:18:08 +000030549{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30550echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030551if test $ac_cv_type_u_int64_t = yes; then
30552
30553cat >>confdefs.h <<_ACEOF
30554#define HAVE_U_INT64_T 1
30555_ACEOF
30556
30557
Misha Brukmanceca9042004-09-02 23:02:30 +000030558else
30559 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30560echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30561 { (exit 1); exit 1; }; }
30562fi
30563
John Criswell679ff312004-09-02 18:44:44 +000030564fi
30565
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566
30567
30568
30569
30570
30571
30572
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030573
30574
Reid Spencerdf3be822006-01-23 08:15:53 +000030575for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030576do
30577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030578{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30580if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030581 echo $ECHO_N "(cached) $ECHO_C" >&6
30582else
30583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030584/* confdefs.h. */
30585_ACEOF
30586cat confdefs.h >>conftest.$ac_ext
30587cat >>conftest.$ac_ext <<_ACEOF
30588/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30591#define $ac_func innocuous_$ac_func
30592
30593/* System header to define __stub macros and hopefully few prototypes,
30594 which can conflict with char $ac_func (); below.
30595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30596 <limits.h> exists even on freestanding compilers. */
30597
30598#ifdef __STDC__
30599# include <limits.h>
30600#else
30601# include <assert.h>
30602#endif
30603
30604#undef $ac_func
30605
Reid Spencera773bd52006-08-04 18:18:08 +000030606/* Override any GCC internal prototype to avoid an error.
30607 Use char because int might match the return type of a GCC
30608 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030609#ifdef __cplusplus
30610extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030611#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030612char $ac_func ();
30613/* The GNU C library defines this for functions which it implements
30614 to always fail with ENOSYS. Some functions are actually named
30615 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030616#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030617choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030618#endif
John Criswell7a73b802003-06-30 21:59:07 +000030619
John Criswell7a73b802003-06-30 21:59:07 +000030620int
30621main ()
30622{
Reid Spencera773bd52006-08-04 18:18:08 +000030623return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030624 ;
30625 return 0;
30626}
30627_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030629if { (ac_try="$ac_link"
30630case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030636 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030641 (exit $ac_status); } &&
30642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643 { (case "(($ac_try" in
30644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30646esac
30647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_try") 2>&5
30649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
30653 { (case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_try") 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030663else
30664 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030665sed 's/^/| /' conftest.$ac_ext >&5
30666
Reid Spencera773bd52006-08-04 18:18:08 +000030667 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030668fi
Reid Spencera773bd52006-08-04 18:18:08 +000030669
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030670rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030671 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030672fi
Reid Spencera773bd52006-08-04 18:18:08 +000030673ac_res=`eval echo '${'$as_ac_var'}'`
30674 { echo "$as_me:$LINENO: result: $ac_res" >&5
30675echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676if test `eval echo '${'$as_ac_var'}'` = yes; then
30677 cat >>confdefs.h <<_ACEOF
30678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030679_ACEOF
30680
30681fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030682done
John Criswell7a73b802003-06-30 21:59:07 +000030683
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030684
30685
30686
Reid Spencer6af3d262004-12-15 04:01:48 +000030687
Reid Spencer96cf5872007-07-13 10:05:30 +000030688for ac_func in powf fmodf strtof round
30689do
30690as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30691{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30692echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30693if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30694 echo $ECHO_N "(cached) $ECHO_C" >&6
30695else
30696 cat >conftest.$ac_ext <<_ACEOF
30697/* confdefs.h. */
30698_ACEOF
30699cat confdefs.h >>conftest.$ac_ext
30700cat >>conftest.$ac_ext <<_ACEOF
30701/* end confdefs.h. */
30702/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30704#define $ac_func innocuous_$ac_func
30705
30706/* System header to define __stub macros and hopefully few prototypes,
30707 which can conflict with char $ac_func (); below.
30708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30709 <limits.h> exists even on freestanding compilers. */
30710
30711#ifdef __STDC__
30712# include <limits.h>
30713#else
30714# include <assert.h>
30715#endif
30716
30717#undef $ac_func
30718
30719/* Override any GCC internal prototype to avoid an error.
30720 Use char because int might match the return type of a GCC
30721 builtin and then its argument prototype would still apply. */
30722#ifdef __cplusplus
30723extern "C"
30724#endif
30725char $ac_func ();
30726/* The GNU C library defines this for functions which it implements
30727 to always fail with ENOSYS. Some functions are actually named
30728 something starting with __ and the normal name is an alias. */
30729#if defined __stub_$ac_func || defined __stub___$ac_func
30730choke me
30731#endif
30732
30733int
30734main ()
30735{
30736return $ac_func ();
30737 ;
30738 return 0;
30739}
30740_ACEOF
30741rm -f conftest.$ac_objext conftest$ac_exeext
30742if { (ac_try="$ac_link"
30743case "(($ac_try" in
30744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30745 *) ac_try_echo=$ac_try;;
30746esac
30747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30748 (eval "$ac_link") 2>conftest.er1
30749 ac_status=$?
30750 grep -v '^ *+' conftest.er1 >conftest.err
30751 rm -f conftest.er1
30752 cat conftest.err >&5
30753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030754 (exit $ac_status); } &&
30755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30756 { (case "(($ac_try" in
30757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30758 *) ac_try_echo=$ac_try;;
30759esac
30760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30761 (eval "$ac_try") 2>&5
30762 ac_status=$?
30763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764 (exit $ac_status); }; } &&
30765 { ac_try='test -s conftest$ac_exeext'
30766 { (case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30769esac
30770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_try") 2>&5
30772 ac_status=$?
30773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30774 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030775 eval "$as_ac_var=yes"
30776else
30777 echo "$as_me: failed program was:" >&5
30778sed 's/^/| /' conftest.$ac_ext >&5
30779
30780 eval "$as_ac_var=no"
30781fi
30782
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030783rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030784 conftest$ac_exeext conftest.$ac_ext
30785fi
30786ac_res=`eval echo '${'$as_ac_var'}'`
30787 { echo "$as_me:$LINENO: result: $ac_res" >&5
30788echo "${ECHO_T}$ac_res" >&6; }
30789if test `eval echo '${'$as_ac_var'}'` = yes; then
30790 cat >>confdefs.h <<_ACEOF
30791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30792_ACEOF
30793
30794fi
30795done
30796
30797
30798
30799
30800
Reid Spencer6af3d262004-12-15 04:01:48 +000030801
Reid Spencerb90645c2007-02-16 19:17:20 +000030802for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30803do
30804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30805{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30807if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30808 echo $ECHO_N "(cached) $ECHO_C" >&6
30809else
30810 cat >conftest.$ac_ext <<_ACEOF
30811/* confdefs.h. */
30812_ACEOF
30813cat confdefs.h >>conftest.$ac_ext
30814cat >>conftest.$ac_ext <<_ACEOF
30815/* end confdefs.h. */
30816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30818#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030819
Reid Spencerb90645c2007-02-16 19:17:20 +000030820/* System header to define __stub macros and hopefully few prototypes,
30821 which can conflict with char $ac_func (); below.
30822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30823 <limits.h> exists even on freestanding compilers. */
30824
30825#ifdef __STDC__
30826# include <limits.h>
30827#else
30828# include <assert.h>
30829#endif
30830
30831#undef $ac_func
30832
30833/* Override any GCC internal prototype to avoid an error.
30834 Use char because int might match the return type of a GCC
30835 builtin and then its argument prototype would still apply. */
30836#ifdef __cplusplus
30837extern "C"
30838#endif
30839char $ac_func ();
30840/* The GNU C library defines this for functions which it implements
30841 to always fail with ENOSYS. Some functions are actually named
30842 something starting with __ and the normal name is an alias. */
30843#if defined __stub_$ac_func || defined __stub___$ac_func
30844choke me
30845#endif
30846
30847int
30848main ()
30849{
30850return $ac_func ();
30851 ;
30852 return 0;
30853}
30854_ACEOF
30855rm -f conftest.$ac_objext conftest$ac_exeext
30856if { (ac_try="$ac_link"
30857case "(($ac_try" in
30858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30859 *) ac_try_echo=$ac_try;;
30860esac
30861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30862 (eval "$ac_link") 2>conftest.er1
30863 ac_status=$?
30864 grep -v '^ *+' conftest.er1 >conftest.err
30865 rm -f conftest.er1
30866 cat conftest.err >&5
30867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030868 (exit $ac_status); } &&
30869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
30880 { (case "(($ac_try" in
30881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30882 *) ac_try_echo=$ac_try;;
30883esac
30884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30885 (eval "$ac_try") 2>&5
30886 ac_status=$?
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030889 eval "$as_ac_var=yes"
30890else
30891 echo "$as_me: failed program was:" >&5
30892sed 's/^/| /' conftest.$ac_ext >&5
30893
30894 eval "$as_ac_var=no"
30895fi
30896
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030897rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030898 conftest$ac_exeext conftest.$ac_ext
30899fi
30900ac_res=`eval echo '${'$as_ac_var'}'`
30901 { echo "$as_me:$LINENO: result: $ac_res" >&5
30902echo "${ECHO_T}$ac_res" >&6; }
30903if test `eval echo '${'$as_ac_var'}'` = yes; then
30904 cat >>confdefs.h <<_ACEOF
30905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906_ACEOF
30907
30908fi
30909done
30910
30911
30912
30913
30914for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030915do
30916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030917{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
30922 cat >conftest.$ac_ext <<_ACEOF
30923/* confdefs.h. */
30924_ACEOF
30925cat confdefs.h >>conftest.$ac_ext
30926cat >>conftest.$ac_ext <<_ACEOF
30927/* end confdefs.h. */
30928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30930#define $ac_func innocuous_$ac_func
30931
30932/* System header to define __stub macros and hopefully few prototypes,
30933 which can conflict with char $ac_func (); below.
30934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935 <limits.h> exists even on freestanding compilers. */
30936
30937#ifdef __STDC__
30938# include <limits.h>
30939#else
30940# include <assert.h>
30941#endif
30942
30943#undef $ac_func
30944
Reid Spencera773bd52006-08-04 18:18:08 +000030945/* Override any GCC internal prototype to avoid an error.
30946 Use char because int might match the return type of a GCC
30947 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030948#ifdef __cplusplus
30949extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030950#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030951char $ac_func ();
30952/* The GNU C library defines this for functions which it implements
30953 to always fail with ENOSYS. Some functions are actually named
30954 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030955#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030956choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030957#endif
30958
30959int
30960main ()
30961{
Reid Spencera773bd52006-08-04 18:18:08 +000030962return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030963 ;
30964 return 0;
30965}
30966_ACEOF
30967rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030968if { (ac_try="$ac_link"
30969case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30972esac
30973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030975 ac_status=$?
30976 grep -v '^ *+' conftest.er1 >conftest.err
30977 rm -f conftest.er1
30978 cat conftest.err >&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030980 (exit $ac_status); } &&
30981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30982 { (case "(($ac_try" in
30983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30984 *) ac_try_echo=$ac_try;;
30985esac
30986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30987 (eval "$ac_try") 2>&5
30988 ac_status=$?
30989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30990 (exit $ac_status); }; } &&
30991 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031001 eval "$as_ac_var=yes"
31002else
31003 echo "$as_me: failed program was:" >&5
31004sed 's/^/| /' conftest.$ac_ext >&5
31005
Reid Spencera773bd52006-08-04 18:18:08 +000031006 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031007fi
Reid Spencera773bd52006-08-04 18:18:08 +000031008
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031009rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031010 conftest$ac_exeext conftest.$ac_ext
31011fi
Reid Spencera773bd52006-08-04 18:18:08 +000031012ac_res=`eval echo '${'$as_ac_var'}'`
31013 { echo "$as_me:$LINENO: result: $ac_res" >&5
31014echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031015if test `eval echo '${'$as_ac_var'}'` = yes; then
31016 cat >>confdefs.h <<_ACEOF
31017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31018_ACEOF
31019
31020fi
31021done
31022
31023
31024
31025
31026
31027
31028
31029
31030for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031031do
31032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031033{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31035if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
31038 cat >conftest.$ac_ext <<_ACEOF
31039/* confdefs.h. */
31040_ACEOF
31041cat confdefs.h >>conftest.$ac_ext
31042cat >>conftest.$ac_ext <<_ACEOF
31043/* end confdefs.h. */
31044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31046#define $ac_func innocuous_$ac_func
31047
31048/* System header to define __stub macros and hopefully few prototypes,
31049 which can conflict with char $ac_func (); below.
31050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31051 <limits.h> exists even on freestanding compilers. */
31052
31053#ifdef __STDC__
31054# include <limits.h>
31055#else
31056# include <assert.h>
31057#endif
31058
31059#undef $ac_func
31060
Reid Spencera773bd52006-08-04 18:18:08 +000031061/* Override any GCC internal prototype to avoid an error.
31062 Use char because int might match the return type of a GCC
31063 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031064#ifdef __cplusplus
31065extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031066#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031067char $ac_func ();
31068/* The GNU C library defines this for functions which it implements
31069 to always fail with ENOSYS. Some functions are actually named
31070 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031071#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031072choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031073#endif
31074
31075int
31076main ()
31077{
Reid Spencera773bd52006-08-04 18:18:08 +000031078return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031079 ;
31080 return 0;
31081}
31082_ACEOF
31083rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031084if { (ac_try="$ac_link"
31085case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31088esac
31089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31090 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031091 ac_status=$?
31092 grep -v '^ *+' conftest.er1 >conftest.err
31093 rm -f conftest.er1
31094 cat conftest.err >&5
31095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031096 (exit $ac_status); } &&
31097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31098 { (case "(($ac_try" in
31099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31100 *) ac_try_echo=$ac_try;;
31101esac
31102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31103 (eval "$ac_try") 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; } &&
31107 { ac_try='test -s conftest$ac_exeext'
31108 { (case "(($ac_try" in
31109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31110 *) ac_try_echo=$ac_try;;
31111esac
31112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31113 (eval "$ac_try") 2>&5
31114 ac_status=$?
31115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031117 eval "$as_ac_var=yes"
31118else
31119 echo "$as_me: failed program was:" >&5
31120sed 's/^/| /' conftest.$ac_ext >&5
31121
Reid Spencera773bd52006-08-04 18:18:08 +000031122 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031123fi
Reid Spencera773bd52006-08-04 18:18:08 +000031124
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031126 conftest$ac_exeext conftest.$ac_ext
31127fi
Reid Spencera773bd52006-08-04 18:18:08 +000031128ac_res=`eval echo '${'$as_ac_var'}'`
31129 { echo "$as_me:$LINENO: result: $ac_res" >&5
31130echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031131if test `eval echo '${'$as_ac_var'}'` = yes; then
31132 cat >>confdefs.h <<_ACEOF
31133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31134_ACEOF
31135
31136fi
31137done
31138
31139
Reid Spencerba46ca32004-12-31 05:49:15 +000031140
31141
Chris Lattner0b142592005-11-14 06:57:34 +000031142
Chris Lattner511f11d2005-11-14 07:25:50 +000031143for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031144do
31145as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031146{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31147echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31148if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031149 echo $ECHO_N "(cached) $ECHO_C" >&6
31150else
31151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031152/* confdefs.h. */
31153_ACEOF
31154cat confdefs.h >>conftest.$ac_ext
31155cat >>conftest.$ac_ext <<_ACEOF
31156/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31159#define $ac_func innocuous_$ac_func
31160
31161/* System header to define __stub macros and hopefully few prototypes,
31162 which can conflict with char $ac_func (); below.
31163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31164 <limits.h> exists even on freestanding compilers. */
31165
31166#ifdef __STDC__
31167# include <limits.h>
31168#else
31169# include <assert.h>
31170#endif
31171
31172#undef $ac_func
31173
Reid Spencera773bd52006-08-04 18:18:08 +000031174/* Override any GCC internal prototype to avoid an error.
31175 Use char because int might match the return type of a GCC
31176 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031177#ifdef __cplusplus
31178extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031179#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031180char $ac_func ();
31181/* The GNU C library defines this for functions which it implements
31182 to always fail with ENOSYS. Some functions are actually named
31183 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031184#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031185choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031186#endif
John Criswell7a73b802003-06-30 21:59:07 +000031187
John Criswell7a73b802003-06-30 21:59:07 +000031188int
31189main ()
31190{
Reid Spencera773bd52006-08-04 18:18:08 +000031191return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031192 ;
31193 return 0;
31194}
31195_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031196rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031197if { (ac_try="$ac_link"
31198case "(($ac_try" in
31199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200 *) ac_try_echo=$ac_try;;
31201esac
31202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031204 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031205 grep -v '^ *+' conftest.er1 >conftest.err
31206 rm -f conftest.er1
31207 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031209 (exit $ac_status); } &&
31210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31211 { (case "(($ac_try" in
31212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31213 *) ac_try_echo=$ac_try;;
31214esac
31215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31216 (eval "$ac_try") 2>&5
31217 ac_status=$?
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); }; } &&
31220 { ac_try='test -s conftest$ac_exeext'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
31227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031230 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031231else
31232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031233sed 's/^/| /' conftest.$ac_ext >&5
31234
Reid Spencera773bd52006-08-04 18:18:08 +000031235 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031236fi
Reid Spencera773bd52006-08-04 18:18:08 +000031237
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031238rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031239 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031240fi
Reid Spencera773bd52006-08-04 18:18:08 +000031241ac_res=`eval echo '${'$as_ac_var'}'`
31242 { echo "$as_me:$LINENO: result: $ac_res" >&5
31243echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031244if test `eval echo '${'$as_ac_var'}'` = yes; then
31245 cat >>confdefs.h <<_ACEOF
31246#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031247_ACEOF
31248
31249fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031250done
John Criswell7a73b802003-06-30 21:59:07 +000031251
Reid Spencercdb08a32006-06-05 16:11:07 +000031252
31253
31254
31255
Reid Spencerafa22e22006-12-10 23:29:19 +000031256for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031257do
31258as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031259{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31260echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31261if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031262 echo $ECHO_N "(cached) $ECHO_C" >&6
31263else
31264 cat >conftest.$ac_ext <<_ACEOF
31265/* confdefs.h. */
31266_ACEOF
31267cat confdefs.h >>conftest.$ac_ext
31268cat >>conftest.$ac_ext <<_ACEOF
31269/* end confdefs.h. */
31270/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31272#define $ac_func innocuous_$ac_func
31273
31274/* System header to define __stub macros and hopefully few prototypes,
31275 which can conflict with char $ac_func (); below.
31276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31277 <limits.h> exists even on freestanding compilers. */
31278
31279#ifdef __STDC__
31280# include <limits.h>
31281#else
31282# include <assert.h>
31283#endif
31284
31285#undef $ac_func
31286
Reid Spencera773bd52006-08-04 18:18:08 +000031287/* Override any GCC internal prototype to avoid an error.
31288 Use char because int might match the return type of a GCC
31289 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031290#ifdef __cplusplus
31291extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031292#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031293char $ac_func ();
31294/* The GNU C library defines this for functions which it implements
31295 to always fail with ENOSYS. Some functions are actually named
31296 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031297#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031298choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031299#endif
31300
31301int
31302main ()
31303{
Reid Spencera773bd52006-08-04 18:18:08 +000031304return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031305 ;
31306 return 0;
31307}
31308_ACEOF
31309rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031310if { (ac_try="$ac_link"
31311case "(($ac_try" in
31312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31313 *) ac_try_echo=$ac_try;;
31314esac
31315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31316 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031317 ac_status=$?
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
31321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031322 (exit $ac_status); } &&
31323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31324 { (case "(($ac_try" in
31325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31326 *) ac_try_echo=$ac_try;;
31327esac
31328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31329 (eval "$ac_try") 2>&5
31330 ac_status=$?
31331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31332 (exit $ac_status); }; } &&
31333 { ac_try='test -s conftest$ac_exeext'
31334 { (case "(($ac_try" in
31335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31336 *) ac_try_echo=$ac_try;;
31337esac
31338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31339 (eval "$ac_try") 2>&5
31340 ac_status=$?
31341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31342 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031343 eval "$as_ac_var=yes"
31344else
31345 echo "$as_me: failed program was:" >&5
31346sed 's/^/| /' conftest.$ac_ext >&5
31347
Reid Spencera773bd52006-08-04 18:18:08 +000031348 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031349fi
Reid Spencera773bd52006-08-04 18:18:08 +000031350
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031351rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031352 conftest$ac_exeext conftest.$ac_ext
31353fi
Reid Spencera773bd52006-08-04 18:18:08 +000031354ac_res=`eval echo '${'$as_ac_var'}'`
31355 { echo "$as_me:$LINENO: result: $ac_res" >&5
31356echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031357if test `eval echo '${'$as_ac_var'}'` = yes; then
31358 cat >>confdefs.h <<_ACEOF
31359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31360_ACEOF
31361
31362fi
31363done
31364
Reid Spencera773bd52006-08-04 18:18:08 +000031365{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31366echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031367if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031368 echo $ECHO_N "(cached) $ECHO_C" >&6
31369else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031370 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031371ac_cpp='$CPP $CPPFLAGS'
31372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31374ac_compiler_gnu=$ac_cv_c_compiler_gnu
31375
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031376 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031377 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031378else
31379 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031380
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031381 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031382_ACEOF
31383cat confdefs.h >>conftest.$ac_ext
31384cat >>conftest.$ac_ext <<_ACEOF
31385/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031386
John Criswella0137d32003-10-13 16:22:01 +000031387#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031388#include <stdlib.h>
31389
John Criswella0137d32003-10-13 16:22:01 +000031390int
31391main ()
31392{
31393
Reid Spencer2706f8c2004-09-19 23:53:36 +000031394volatile double A, B;
31395char Buffer[100];
31396A = 1;
31397A /= 10.0;
31398sprintf(Buffer, "%a", A);
31399B = atof(Buffer);
31400if (A != B)
31401 return (1);
31402if (A != 0x1.999999999999ap-4)
31403 return (1);
31404return (0);
John Criswella0137d32003-10-13 16:22:01 +000031405 ;
31406 return 0;
31407}
31408_ACEOF
31409rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031410if { (ac_try="$ac_link"
31411case "(($ac_try" in
31412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413 *) ac_try_echo=$ac_try;;
31414esac
31415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031417 ac_status=$?
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031420 { (case "(($ac_try" in
31421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31422 *) ac_try_echo=$ac_try;;
31423esac
31424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31425 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031426 ac_status=$?
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031429 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031430else
31431 echo "$as_me: program exited with status $ac_status" >&5
31432echo "$as_me: failed program was:" >&5
31433sed 's/^/| /' conftest.$ac_ext >&5
31434
31435( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031436llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031437fi
Reid Spencera773bd52006-08-04 18:18:08 +000031438rm -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 +000031439fi
Reid Spencera773bd52006-08-04 18:18:08 +000031440
31441
Reid Spencer2706f8c2004-09-19 23:53:36 +000031442 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031443ac_cpp='$CPP $CPPFLAGS'
31444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31446ac_compiler_gnu=$ac_cv_c_compiler_gnu
31447
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031448fi
Reid Spencera773bd52006-08-04 18:18:08 +000031449{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31450echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031451 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031452
31453cat >>confdefs.h <<\_ACEOF
31454#define HAVE_PRINTF_A 1
31455_ACEOF
31456
Reid Spencer2706f8c2004-09-19 23:53:36 +000031457 fi
John Criswella0137d32003-10-13 16:22:01 +000031458
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031459# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31460# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031461{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31462echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031463if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465else
John Criswell0021c312004-02-13 21:57:29 +000031466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031467/* confdefs.h. */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031472#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031473int
31474main ()
31475{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031476char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031477 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031478 ;
31479 return 0;
31480}
31481_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031482rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031483if { (ac_try="$ac_link"
31484case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31487esac
31488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031491 grep -v '^ *+' conftest.er1 >conftest.err
31492 rm -f conftest.er1
31493 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031495 (exit $ac_status); } &&
31496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31497 { (case "(($ac_try" in
31498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31499 *) ac_try_echo=$ac_try;;
31500esac
31501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31502 (eval "$ac_try") 2>&5
31503 ac_status=$?
31504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505 (exit $ac_status); }; } &&
31506 { ac_try='test -s conftest$ac_exeext'
31507 { (case "(($ac_try" in
31508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31509 *) ac_try_echo=$ac_try;;
31510esac
31511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31512 (eval "$ac_try") 2>&5
31513 ac_status=$?
31514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31515 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031516 ac_cv_working_alloca_h=yes
31517else
31518 echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
Reid Spencera773bd52006-08-04 18:18:08 +000031521 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031522fi
Reid Spencera773bd52006-08-04 18:18:08 +000031523
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031524rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031525 conftest$ac_exeext conftest.$ac_ext
31526fi
Reid Spencera773bd52006-08-04 18:18:08 +000031527{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31528echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031529if test $ac_cv_working_alloca_h = yes; then
31530
31531cat >>confdefs.h <<\_ACEOF
31532#define HAVE_ALLOCA_H 1
31533_ACEOF
31534
31535fi
31536
Reid Spencera773bd52006-08-04 18:18:08 +000031537{ echo "$as_me:$LINENO: checking for alloca" >&5
31538echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031539if test "${ac_cv_func_alloca_works+set}" = set; then
31540 echo $ECHO_N "(cached) $ECHO_C" >&6
31541else
31542 cat >conftest.$ac_ext <<_ACEOF
31543/* confdefs.h. */
31544_ACEOF
31545cat confdefs.h >>conftest.$ac_ext
31546cat >>conftest.$ac_ext <<_ACEOF
31547/* end confdefs.h. */
31548#ifdef __GNUC__
31549# define alloca __builtin_alloca
31550#else
31551# ifdef _MSC_VER
31552# include <malloc.h>
31553# define alloca _alloca
31554# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031555# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031556# include <alloca.h>
31557# else
31558# ifdef _AIX
31559 #pragma alloca
31560# else
31561# ifndef alloca /* predefined by HP cc +Olibcalls */
31562char *alloca ();
31563# endif
31564# endif
31565# endif
31566# endif
31567#endif
31568
31569int
31570main ()
31571{
31572char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031573 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031574 ;
31575 return 0;
31576}
31577_ACEOF
31578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031579if { (ac_try="$ac_link"
31580case "(($ac_try" in
31581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31582 *) ac_try_echo=$ac_try;;
31583esac
31584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31585 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031586 ac_status=$?
31587 grep -v '^ *+' conftest.er1 >conftest.err
31588 rm -f conftest.er1
31589 cat conftest.err >&5
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031591 (exit $ac_status); } &&
31592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31593 { (case "(($ac_try" in
31594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31595 *) ac_try_echo=$ac_try;;
31596esac
31597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31598 (eval "$ac_try") 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest$ac_exeext'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
31609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031612 ac_cv_func_alloca_works=yes
31613else
31614 echo "$as_me: failed program was:" >&5
31615sed 's/^/| /' conftest.$ac_ext >&5
31616
Reid Spencera773bd52006-08-04 18:18:08 +000031617 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618fi
Reid Spencera773bd52006-08-04 18:18:08 +000031619
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031620rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031621 conftest$ac_exeext conftest.$ac_ext
31622fi
Reid Spencera773bd52006-08-04 18:18:08 +000031623{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31624echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031625
31626if test $ac_cv_func_alloca_works = yes; then
31627
31628cat >>confdefs.h <<\_ACEOF
31629#define HAVE_ALLOCA 1
31630_ACEOF
31631
31632else
31633 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31634# that cause trouble. Some versions do not even contain alloca or
31635# contain a buggy version. If you still want to use their alloca,
31636# use ar to extract alloca.o from them instead of compiling alloca.c.
31637
Reid Spencera773bd52006-08-04 18:18:08 +000031638ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031639
31640cat >>confdefs.h <<\_ACEOF
31641#define C_ALLOCA 1
31642_ACEOF
31643
31644
Reid Spencera773bd52006-08-04 18:18:08 +000031645{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31646echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031647if test "${ac_cv_os_cray+set}" = set; then
31648 echo $ECHO_N "(cached) $ECHO_C" >&6
31649else
31650 cat >conftest.$ac_ext <<_ACEOF
31651/* confdefs.h. */
31652_ACEOF
31653cat confdefs.h >>conftest.$ac_ext
31654cat >>conftest.$ac_ext <<_ACEOF
31655/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031656#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031657webecray
31658#else
31659wenotbecray
31660#endif
31661
31662_ACEOF
31663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31664 $EGREP "webecray" >/dev/null 2>&1; then
31665 ac_cv_os_cray=yes
31666else
31667 ac_cv_os_cray=no
31668fi
31669rm -f conftest*
31670
31671fi
Reid Spencera773bd52006-08-04 18:18:08 +000031672{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31673echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031674if test $ac_cv_os_cray = yes; then
31675 for ac_func in _getb67 GETB67 getb67; do
31676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031677{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31678echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31679if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031680 echo $ECHO_N "(cached) $ECHO_C" >&6
31681else
31682 cat >conftest.$ac_ext <<_ACEOF
31683/* confdefs.h. */
31684_ACEOF
31685cat confdefs.h >>conftest.$ac_ext
31686cat >>conftest.$ac_ext <<_ACEOF
31687/* end confdefs.h. */
31688/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31690#define $ac_func innocuous_$ac_func
31691
31692/* System header to define __stub macros and hopefully few prototypes,
31693 which can conflict with char $ac_func (); below.
31694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31695 <limits.h> exists even on freestanding compilers. */
31696
31697#ifdef __STDC__
31698# include <limits.h>
31699#else
31700# include <assert.h>
31701#endif
31702
31703#undef $ac_func
31704
Reid Spencera773bd52006-08-04 18:18:08 +000031705/* Override any GCC internal prototype to avoid an error.
31706 Use char because int might match the return type of a GCC
31707 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031708#ifdef __cplusplus
31709extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031710#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031711char $ac_func ();
31712/* The GNU C library defines this for functions which it implements
31713 to always fail with ENOSYS. Some functions are actually named
31714 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031715#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031716choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031717#endif
31718
31719int
31720main ()
31721{
Reid Spencera773bd52006-08-04 18:18:08 +000031722return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031723 ;
31724 return 0;
31725}
31726_ACEOF
31727rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031728if { (ac_try="$ac_link"
31729case "(($ac_try" in
31730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31731 *) ac_try_echo=$ac_try;;
31732esac
31733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31734 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031735 ac_status=$?
31736 grep -v '^ *+' conftest.er1 >conftest.err
31737 rm -f conftest.er1
31738 cat conftest.err >&5
31739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031740 (exit $ac_status); } &&
31741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31742 { (case "(($ac_try" in
31743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31744 *) ac_try_echo=$ac_try;;
31745esac
31746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31747 (eval "$ac_try") 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; } &&
31751 { ac_try='test -s conftest$ac_exeext'
31752 { (case "(($ac_try" in
31753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31754 *) ac_try_echo=$ac_try;;
31755esac
31756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31757 (eval "$ac_try") 2>&5
31758 ac_status=$?
31759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31760 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031761 eval "$as_ac_var=yes"
31762else
31763 echo "$as_me: failed program was:" >&5
31764sed 's/^/| /' conftest.$ac_ext >&5
31765
Reid Spencera773bd52006-08-04 18:18:08 +000031766 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031767fi
Reid Spencera773bd52006-08-04 18:18:08 +000031768
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031769rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031770 conftest$ac_exeext conftest.$ac_ext
31771fi
Reid Spencera773bd52006-08-04 18:18:08 +000031772ac_res=`eval echo '${'$as_ac_var'}'`
31773 { echo "$as_me:$LINENO: result: $ac_res" >&5
31774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031775if test `eval echo '${'$as_ac_var'}'` = yes; then
31776
31777cat >>confdefs.h <<_ACEOF
31778#define CRAY_STACKSEG_END $ac_func
31779_ACEOF
31780
31781 break
31782fi
31783
31784 done
31785fi
31786
Reid Spencera773bd52006-08-04 18:18:08 +000031787{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31788echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031789if test "${ac_cv_c_stack_direction+set}" = set; then
31790 echo $ECHO_N "(cached) $ECHO_C" >&6
31791else
31792 if test "$cross_compiling" = yes; then
31793 ac_cv_c_stack_direction=0
31794else
31795 cat >conftest.$ac_ext <<_ACEOF
31796/* confdefs.h. */
31797_ACEOF
31798cat confdefs.h >>conftest.$ac_ext
31799cat >>conftest.$ac_ext <<_ACEOF
31800/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031801$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031802int
31803find_stack_direction ()
31804{
31805 static char *addr = 0;
31806 auto char dummy;
31807 if (addr == 0)
31808 {
31809 addr = &dummy;
31810 return find_stack_direction ();
31811 }
John Criswell0021c312004-02-13 21:57:29 +000031812 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031813 return (&dummy > addr) ? 1 : -1;
31814}
John Criswell0021c312004-02-13 21:57:29 +000031815
John Criswell0021c312004-02-13 21:57:29 +000031816int
31817main ()
31818{
Reid Spencera773bd52006-08-04 18:18:08 +000031819 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031820}
31821_ACEOF
31822rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031823if { (ac_try="$ac_link"
31824case "(($ac_try" in
31825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826 *) ac_try_echo=$ac_try;;
31827esac
31828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031830 ac_status=$?
31831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031833 { (case "(($ac_try" in
31834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31835 *) ac_try_echo=$ac_try;;
31836esac
31837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31838 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031839 ac_status=$?
31840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31841 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031842 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031843else
31844 echo "$as_me: program exited with status $ac_status" >&5
31845echo "$as_me: failed program was:" >&5
31846sed 's/^/| /' conftest.$ac_ext >&5
31847
31848( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031849ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031850fi
Reid Spencera773bd52006-08-04 18:18:08 +000031851rm -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 +000031852fi
Reid Spencera773bd52006-08-04 18:18:08 +000031853
31854
John Criswell0021c312004-02-13 21:57:29 +000031855fi
Reid Spencera773bd52006-08-04 18:18:08 +000031856{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31857echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031858
31859cat >>confdefs.h <<_ACEOF
31860#define STACK_DIRECTION $ac_cv_c_stack_direction
31861_ACEOF
31862
31863
John Criswell0021c312004-02-13 21:57:29 +000031864fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031865
31866
Reid Spencera773bd52006-08-04 18:18:08 +000031867{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31868echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031869if test "${ac_cv_func_rand48+set}" = set; then
31870 echo $ECHO_N "(cached) $ECHO_C" >&6
31871else
Reid Spencera773bd52006-08-04 18:18:08 +000031872 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031873ac_cpp='$CXXCPP $CPPFLAGS'
31874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31877
31878 cat >conftest.$ac_ext <<_ACEOF
31879/* confdefs.h. */
31880_ACEOF
31881cat confdefs.h >>conftest.$ac_ext
31882cat >>conftest.$ac_ext <<_ACEOF
31883/* end confdefs.h. */
31884#include <stdlib.h>
31885int
31886main ()
31887{
31888srand48(0);lrand48();drand48();
31889 ;
31890 return 0;
31891}
31892_ACEOF
31893rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031894if { (ac_try="$ac_compile"
31895case "(($ac_try" in
31896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31897 *) ac_try_echo=$ac_try;;
31898esac
31899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31900 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031901 ac_status=$?
31902 grep -v '^ *+' conftest.er1 >conftest.err
31903 rm -f conftest.er1
31904 cat conftest.err >&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031906 (exit $ac_status); } &&
31907 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31908 { (case "(($ac_try" in
31909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31910 *) ac_try_echo=$ac_try;;
31911esac
31912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31913 (eval "$ac_try") 2>&5
31914 ac_status=$?
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); }; } &&
31917 { ac_try='test -s conftest.$ac_objext'
31918 { (case "(($ac_try" in
31919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31920 *) ac_try_echo=$ac_try;;
31921esac
31922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31923 (eval "$ac_try") 2>&5
31924 ac_status=$?
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031927 ac_cv_func_rand48=yes
31928else
31929 echo "$as_me: failed program was:" >&5
31930sed 's/^/| /' conftest.$ac_ext >&5
31931
Reid Spencera773bd52006-08-04 18:18:08 +000031932 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031933fi
Reid Spencera773bd52006-08-04 18:18:08 +000031934
31935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031936 ac_ext=c
31937ac_cpp='$CPP $CPPFLAGS'
31938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31940ac_compiler_gnu=$ac_cv_c_compiler_gnu
31941
31942fi
Reid Spencera773bd52006-08-04 18:18:08 +000031943{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31944echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031945
31946if test "$ac_cv_func_rand48" = "yes" ; then
31947
31948cat >>confdefs.h <<\_ACEOF
31949#define HAVE_RAND48 1
31950_ACEOF
31951
31952fi
John Criswell0021c312004-02-13 21:57:29 +000031953
31954
Reid Spencera773bd52006-08-04 18:18:08 +000031955{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31956echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031957if test "${ac_cv_cxx_namespaces+set}" = set; then
31958 echo $ECHO_N "(cached) $ECHO_C" >&6
31959else
Reid Spencera773bd52006-08-04 18:18:08 +000031960 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031961ac_cpp='$CXXCPP $CPPFLAGS'
31962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31965
31966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031967/* confdefs.h. */
31968_ACEOF
31969cat confdefs.h >>conftest.$ac_ext
31970cat >>conftest.$ac_ext <<_ACEOF
31971/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031972namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031973int
31974main ()
31975{
31976using namespace Outer::Inner; return i;
31977 ;
31978 return 0;
31979}
31980_ACEOF
31981rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031982if { (ac_try="$ac_compile"
31983case "(($ac_try" in
31984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985 *) ac_try_echo=$ac_try;;
31986esac
31987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031989 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031990 grep -v '^ *+' conftest.er1 >conftest.err
31991 rm -f conftest.er1
31992 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031994 (exit $ac_status); } &&
31995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31996 { (case "(($ac_try" in
31997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998 *) ac_try_echo=$ac_try;;
31999esac
32000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001 (eval "$ac_try") 2>&5
32002 ac_status=$?
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); }; } &&
32005 { ac_try='test -s conftest.$ac_objext'
32006 { (case "(($ac_try" in
32007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008 *) ac_try_echo=$ac_try;;
32009esac
32010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011 (eval "$ac_try") 2>&5
32012 ac_status=$?
32013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032015 ac_cv_cxx_namespaces=yes
32016else
32017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032018sed 's/^/| /' conftest.$ac_ext >&5
32019
Reid Spencera773bd52006-08-04 18:18:08 +000032020 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032021fi
Reid Spencera773bd52006-08-04 18:18:08 +000032022
32023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032024 ac_ext=c
32025ac_cpp='$CPP $CPPFLAGS'
32026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028ac_compiler_gnu=$ac_cv_c_compiler_gnu
32029
32030
32031fi
Reid Spencera773bd52006-08-04 18:18:08 +000032032{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32033echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032034if test "$ac_cv_cxx_namespaces" = yes; then
32035
32036cat >>confdefs.h <<\_ACEOF
32037#define HAVE_NAMESPACES
32038_ACEOF
32039
32040fi
32041
Reid Spencera773bd52006-08-04 18:18:08 +000032042{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32043echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032044if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32045 echo $ECHO_N "(cached) $ECHO_C" >&6
32046else
32047
Reid Spencera773bd52006-08-04 18:18:08 +000032048 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032049ac_cpp='$CXXCPP $CPPFLAGS'
32050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32053
32054 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032055/* confdefs.h. */
32056_ACEOF
32057cat confdefs.h >>conftest.$ac_ext
32058cat >>conftest.$ac_ext <<_ACEOF
32059/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032060#include <iterator>
32061#ifdef HAVE_NAMESPACES
32062using namespace std;
32063#endif
John Criswell7a73b802003-06-30 21:59:07 +000032064int
32065main ()
32066{
32067iterator<int,int,int> t; return 0;
32068 ;
32069 return 0;
32070}
32071_ACEOF
32072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032073if { (ac_try="$ac_compile"
32074case "(($ac_try" in
32075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32076 *) ac_try_echo=$ac_try;;
32077esac
32078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32079 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032080 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032081 grep -v '^ *+' conftest.er1 >conftest.err
32082 rm -f conftest.er1
32083 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032085 (exit $ac_status); } &&
32086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32087 { (case "(($ac_try" in
32088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32089 *) ac_try_echo=$ac_try;;
32090esac
32091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32092 (eval "$ac_try") 2>&5
32093 ac_status=$?
32094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095 (exit $ac_status); }; } &&
32096 { ac_try='test -s conftest.$ac_objext'
32097 { (case "(($ac_try" in
32098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32099 *) ac_try_echo=$ac_try;;
32100esac
32101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32102 (eval "$ac_try") 2>&5
32103 ac_status=$?
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032106 ac_cv_cxx_have_std_iterator=yes
32107else
32108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032109sed 's/^/| /' conftest.$ac_ext >&5
32110
Reid Spencera773bd52006-08-04 18:18:08 +000032111 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032112fi
Reid Spencera773bd52006-08-04 18:18:08 +000032113
32114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032115 ac_ext=c
32116ac_cpp='$CPP $CPPFLAGS'
32117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32119ac_compiler_gnu=$ac_cv_c_compiler_gnu
32120
32121
32122fi
Reid Spencera773bd52006-08-04 18:18:08 +000032123{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32124echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032125if test "$ac_cv_cxx_have_std_iterator" = yes
32126then
John Criswell40468462004-09-24 21:19:06 +000032127
32128cat >>confdefs.h <<\_ACEOF
32129#define HAVE_STD_ITERATOR 1
32130_ACEOF
32131
32132else
32133
32134cat >>confdefs.h <<\_ACEOF
32135#define HAVE_STD_ITERATOR 0
32136_ACEOF
32137
John Criswell7a73b802003-06-30 21:59:07 +000032138fi
32139
Reid Spencera773bd52006-08-04 18:18:08 +000032140{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32141echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032142if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32143 echo $ECHO_N "(cached) $ECHO_C" >&6
32144else
32145
Reid Spencera773bd52006-08-04 18:18:08 +000032146 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032147ac_cpp='$CXXCPP $CPPFLAGS'
32148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32151
32152 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032153/* confdefs.h. */
32154_ACEOF
32155cat confdefs.h >>conftest.$ac_ext
32156cat >>conftest.$ac_ext <<_ACEOF
32157/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032158#include <iterator>
32159#ifdef HAVE_NAMESPACES
32160using namespace std;
32161#endif
John Criswell7a73b802003-06-30 21:59:07 +000032162int
32163main ()
32164{
John Criswellc78022e2003-07-29 19:11:58 +000032165bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032166 ;
32167 return 0;
32168}
32169_ACEOF
32170rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032171if { (ac_try="$ac_compile"
32172case "(($ac_try" in
32173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32174 *) ac_try_echo=$ac_try;;
32175esac
32176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32177 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032178 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032179 grep -v '^ *+' conftest.er1 >conftest.err
32180 rm -f conftest.er1
32181 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032183 (exit $ac_status); } &&
32184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32185 { (case "(($ac_try" in
32186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32187 *) ac_try_echo=$ac_try;;
32188esac
32189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32190 (eval "$ac_try") 2>&5
32191 ac_status=$?
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); }; } &&
32194 { ac_try='test -s conftest.$ac_objext'
32195 { (case "(($ac_try" in
32196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197 *) ac_try_echo=$ac_try;;
32198esac
32199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200 (eval "$ac_try") 2>&5
32201 ac_status=$?
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032204 ac_cv_cxx_have_bi_iterator=yes
32205else
32206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032207sed 's/^/| /' conftest.$ac_ext >&5
32208
Reid Spencera773bd52006-08-04 18:18:08 +000032209 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032210fi
Reid Spencera773bd52006-08-04 18:18:08 +000032211
32212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032213 ac_ext=c
32214ac_cpp='$CPP $CPPFLAGS'
32215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32217ac_compiler_gnu=$ac_cv_c_compiler_gnu
32218
32219
32220fi
Reid Spencera773bd52006-08-04 18:18:08 +000032221{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32222echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032223if test "$ac_cv_cxx_have_bi_iterator" = yes
32224then
John Criswell40468462004-09-24 21:19:06 +000032225
32226cat >>confdefs.h <<\_ACEOF
32227#define HAVE_BI_ITERATOR 1
32228_ACEOF
32229
32230else
32231
32232cat >>confdefs.h <<\_ACEOF
32233#define HAVE_BI_ITERATOR 0
32234_ACEOF
32235
John Criswell7a73b802003-06-30 21:59:07 +000032236fi
32237
Reid Spencera773bd52006-08-04 18:18:08 +000032238{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32239echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032240if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32241 echo $ECHO_N "(cached) $ECHO_C" >&6
32242else
32243
Reid Spencera773bd52006-08-04 18:18:08 +000032244 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032245ac_cpp='$CXXCPP $CPPFLAGS'
32246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32249
32250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032251/* confdefs.h. */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032256#include <iterator>
32257#ifdef HAVE_NAMESPACES
32258using namespace std;
32259#endif
John Criswell7a73b802003-06-30 21:59:07 +000032260int
32261main ()
32262{
John Criswellc78022e2003-07-29 19:11:58 +000032263forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032264 ;
32265 return 0;
32266}
32267_ACEOF
32268rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032269if { (ac_try="$ac_compile"
32270case "(($ac_try" in
32271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32272 *) ac_try_echo=$ac_try;;
32273esac
32274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32275 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032277 grep -v '^ *+' conftest.er1 >conftest.err
32278 rm -f conftest.er1
32279 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32283 { (case "(($ac_try" in
32284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32285 *) ac_try_echo=$ac_try;;
32286esac
32287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32288 (eval "$ac_try") 2>&5
32289 ac_status=$?
32290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291 (exit $ac_status); }; } &&
32292 { ac_try='test -s conftest.$ac_objext'
32293 { (case "(($ac_try" in
32294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32295 *) ac_try_echo=$ac_try;;
32296esac
32297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32298 (eval "$ac_try") 2>&5
32299 ac_status=$?
32300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032302 ac_cv_cxx_have_fwd_iterator=yes
32303else
32304 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032305sed 's/^/| /' conftest.$ac_ext >&5
32306
Reid Spencera773bd52006-08-04 18:18:08 +000032307 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032308fi
Reid Spencera773bd52006-08-04 18:18:08 +000032309
32310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032311 ac_ext=c
32312ac_cpp='$CPP $CPPFLAGS'
32313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32315ac_compiler_gnu=$ac_cv_c_compiler_gnu
32316
32317
32318fi
Reid Spencera773bd52006-08-04 18:18:08 +000032319{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32320echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032321if test "$ac_cv_cxx_have_fwd_iterator" = yes
32322then
John Criswell40468462004-09-24 21:19:06 +000032323
32324cat >>confdefs.h <<\_ACEOF
32325#define HAVE_FWD_ITERATOR 1
32326_ACEOF
32327
32328else
32329
32330cat >>confdefs.h <<\_ACEOF
32331#define HAVE_FWD_ITERATOR 0
32332_ACEOF
32333
John Criswell7a73b802003-06-30 21:59:07 +000032334fi
32335
32336
Reid Spencera773bd52006-08-04 18:18:08 +000032337{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32338echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032339if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32340 echo $ECHO_N "(cached) $ECHO_C" >&6
32341else
Reid Spencera773bd52006-08-04 18:18:08 +000032342 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032343ac_cpp='$CXXCPP $CPPFLAGS'
32344ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32345ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32346ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32347
Reid Spencerabec8f92004-10-27 23:03:44 +000032348 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032349/* confdefs.h. */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h. */
32354#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032355int
32356main ()
32357{
32358float f; isnan(f);
32359 ;
32360 return 0;
32361}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032362_ACEOF
32363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032364if { (ac_try="$ac_compile"
32365case "(($ac_try" in
32366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32367 *) ac_try_echo=$ac_try;;
32368esac
32369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32370 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032372 grep -v '^ *+' conftest.er1 >conftest.err
32373 rm -f conftest.er1
32374 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032376 (exit $ac_status); } &&
32377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32378 { (case "(($ac_try" in
32379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32380 *) ac_try_echo=$ac_try;;
32381esac
32382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32383 (eval "$ac_try") 2>&5
32384 ac_status=$?
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); }; } &&
32387 { ac_try='test -s conftest.$ac_objext'
32388 { (case "(($ac_try" in
32389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32390 *) ac_try_echo=$ac_try;;
32391esac
32392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32393 (eval "$ac_try") 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032397 ac_cv_func_isnan_in_math_h=yes
32398else
32399 echo "$as_me: failed program was:" >&5
32400sed 's/^/| /' conftest.$ac_ext >&5
32401
Reid Spencera773bd52006-08-04 18:18:08 +000032402 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032403fi
Reid Spencera773bd52006-08-04 18:18:08 +000032404
32405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032406 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032407ac_cpp='$CPP $CPPFLAGS'
32408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32410ac_compiler_gnu=$ac_cv_c_compiler_gnu
32411
32412fi
Reid Spencera773bd52006-08-04 18:18:08 +000032413{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32414echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032415
32416
32417if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_ISNAN_IN_MATH_H 1
32421_ACEOF
32422
Reid Spencerabec8f92004-10-27 23:03:44 +000032423fi
32424
Reid Spencera773bd52006-08-04 18:18:08 +000032425{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32426echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032427if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32428 echo $ECHO_N "(cached) $ECHO_C" >&6
32429else
Reid Spencera773bd52006-08-04 18:18:08 +000032430 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032431ac_cpp='$CXXCPP $CPPFLAGS'
32432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32435
Reid Spencerabec8f92004-10-27 23:03:44 +000032436 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032437/* confdefs.h. */
32438_ACEOF
32439cat confdefs.h >>conftest.$ac_ext
32440cat >>conftest.$ac_ext <<_ACEOF
32441/* end confdefs.h. */
32442#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032443int
32444main ()
32445{
32446float f; isnan(f);
32447 ;
32448 return 0;
32449}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032450_ACEOF
32451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032452if { (ac_try="$ac_compile"
32453case "(($ac_try" in
32454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32455 *) ac_try_echo=$ac_try;;
32456esac
32457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32458 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032460 grep -v '^ *+' conftest.er1 >conftest.err
32461 rm -f conftest.er1
32462 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032464 (exit $ac_status); } &&
32465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32466 { (case "(($ac_try" in
32467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32468 *) ac_try_echo=$ac_try;;
32469esac
32470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32471 (eval "$ac_try") 2>&5
32472 ac_status=$?
32473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474 (exit $ac_status); }; } &&
32475 { ac_try='test -s conftest.$ac_objext'
32476 { (case "(($ac_try" in
32477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32478 *) ac_try_echo=$ac_try;;
32479esac
32480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32481 (eval "$ac_try") 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032485 ac_cv_func_isnan_in_cmath=yes
32486else
32487 echo "$as_me: failed program was:" >&5
32488sed 's/^/| /' conftest.$ac_ext >&5
32489
Reid Spencera773bd52006-08-04 18:18:08 +000032490 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032491fi
Reid Spencera773bd52006-08-04 18:18:08 +000032492
32493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032494 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032495ac_cpp='$CPP $CPPFLAGS'
32496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32498ac_compiler_gnu=$ac_cv_c_compiler_gnu
32499
32500fi
Reid Spencera773bd52006-08-04 18:18:08 +000032501{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32502echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032503
32504if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032505
32506cat >>confdefs.h <<\_ACEOF
32507#define HAVE_ISNAN_IN_CMATH 1
32508_ACEOF
32509
Reid Spencerabec8f92004-10-27 23:03:44 +000032510fi
32511
Reid Spencera773bd52006-08-04 18:18:08 +000032512{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32513echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032514if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32515 echo $ECHO_N "(cached) $ECHO_C" >&6
32516else
Reid Spencera773bd52006-08-04 18:18:08 +000032517 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032518ac_cpp='$CXXCPP $CPPFLAGS'
32519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32522
Reid Spencerabec8f92004-10-27 23:03:44 +000032523 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032524/* confdefs.h. */
32525_ACEOF
32526cat confdefs.h >>conftest.$ac_ext
32527cat >>conftest.$ac_ext <<_ACEOF
32528/* end confdefs.h. */
32529#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032530int
32531main ()
32532{
32533float f; std::isnan(f);
32534 ;
32535 return 0;
32536}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032537_ACEOF
32538rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032539if { (ac_try="$ac_compile"
32540case "(($ac_try" in
32541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32542 *) ac_try_echo=$ac_try;;
32543esac
32544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32545 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032551 (exit $ac_status); } &&
32552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32553 { (case "(($ac_try" in
32554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32555 *) ac_try_echo=$ac_try;;
32556esac
32557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32558 (eval "$ac_try") 2>&5
32559 ac_status=$?
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); }; } &&
32562 { ac_try='test -s conftest.$ac_objext'
32563 { (case "(($ac_try" in
32564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32565 *) ac_try_echo=$ac_try;;
32566esac
32567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32568 (eval "$ac_try") 2>&5
32569 ac_status=$?
32570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32571 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032572 ac_cv_func_std_isnan_in_cmath=yes
32573else
32574 echo "$as_me: failed program was:" >&5
32575sed 's/^/| /' conftest.$ac_ext >&5
32576
Reid Spencera773bd52006-08-04 18:18:08 +000032577 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032578fi
Reid Spencera773bd52006-08-04 18:18:08 +000032579
32580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032581 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032582ac_cpp='$CPP $CPPFLAGS'
32583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32585ac_compiler_gnu=$ac_cv_c_compiler_gnu
32586
32587fi
Reid Spencera773bd52006-08-04 18:18:08 +000032588{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32589echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032590
32591if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032592
32593cat >>confdefs.h <<\_ACEOF
32594#define HAVE_STD_ISNAN_IN_CMATH 1
32595_ACEOF
32596
Reid Spencerabec8f92004-10-27 23:03:44 +000032597fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032598
32599
Reid Spencera773bd52006-08-04 18:18:08 +000032600{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32601echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032602if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32603 echo $ECHO_N "(cached) $ECHO_C" >&6
32604else
Reid Spencera773bd52006-08-04 18:18:08 +000032605 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032606ac_cpp='$CXXCPP $CPPFLAGS'
32607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32610
Reid Spencerabec8f92004-10-27 23:03:44 +000032611 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032612/* confdefs.h. */
32613_ACEOF
32614cat confdefs.h >>conftest.$ac_ext
32615cat >>conftest.$ac_ext <<_ACEOF
32616/* end confdefs.h. */
32617#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032618int
32619main ()
32620{
32621float f; isinf(f);
32622 ;
32623 return 0;
32624}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032625_ACEOF
32626rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032627if { (ac_try="$ac_compile"
32628case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32631esac
32632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032634 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032635 grep -v '^ *+' conftest.er1 >conftest.err
32636 rm -f conftest.er1
32637 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032639 (exit $ac_status); } &&
32640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32641 { (case "(($ac_try" in
32642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32643 *) ac_try_echo=$ac_try;;
32644esac
32645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32646 (eval "$ac_try") 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; } &&
32650 { ac_try='test -s conftest.$ac_objext'
32651 { (case "(($ac_try" in
32652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32653 *) ac_try_echo=$ac_try;;
32654esac
32655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32656 (eval "$ac_try") 2>&5
32657 ac_status=$?
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032660 ac_cv_func_isinf_in_math_h=yes
32661else
32662 echo "$as_me: failed program was:" >&5
32663sed 's/^/| /' conftest.$ac_ext >&5
32664
Reid Spencera773bd52006-08-04 18:18:08 +000032665 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032666fi
Reid Spencera773bd52006-08-04 18:18:08 +000032667
32668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032669 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032670ac_cpp='$CPP $CPPFLAGS'
32671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32673ac_compiler_gnu=$ac_cv_c_compiler_gnu
32674
32675fi
Reid Spencera773bd52006-08-04 18:18:08 +000032676{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32677echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032678
32679if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032680
32681cat >>confdefs.h <<\_ACEOF
32682#define HAVE_ISINF_IN_MATH_H 1
32683_ACEOF
32684
Reid Spencerabec8f92004-10-27 23:03:44 +000032685fi
32686
Reid Spencera773bd52006-08-04 18:18:08 +000032687{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32688echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032689if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32690 echo $ECHO_N "(cached) $ECHO_C" >&6
32691else
Reid Spencera773bd52006-08-04 18:18:08 +000032692 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032693ac_cpp='$CXXCPP $CPPFLAGS'
32694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32697
Reid Spencerabec8f92004-10-27 23:03:44 +000032698 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032699/* confdefs.h. */
32700_ACEOF
32701cat confdefs.h >>conftest.$ac_ext
32702cat >>conftest.$ac_ext <<_ACEOF
32703/* end confdefs.h. */
32704#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032705int
32706main ()
32707{
32708float f; isinf(f);
32709 ;
32710 return 0;
32711}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032712_ACEOF
32713rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032714if { (ac_try="$ac_compile"
32715case "(($ac_try" in
32716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32717 *) ac_try_echo=$ac_try;;
32718esac
32719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32720 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032722 grep -v '^ *+' conftest.er1 >conftest.err
32723 rm -f conftest.er1
32724 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032726 (exit $ac_status); } &&
32727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32728 { (case "(($ac_try" in
32729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32730 *) ac_try_echo=$ac_try;;
32731esac
32732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32733 (eval "$ac_try") 2>&5
32734 ac_status=$?
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; } &&
32737 { ac_try='test -s conftest.$ac_objext'
32738 { (case "(($ac_try" in
32739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32740 *) ac_try_echo=$ac_try;;
32741esac
32742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32743 (eval "$ac_try") 2>&5
32744 ac_status=$?
32745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32746 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032747 ac_cv_func_isinf_in_cmath=yes
32748else
32749 echo "$as_me: failed program was:" >&5
32750sed 's/^/| /' conftest.$ac_ext >&5
32751
Reid Spencera773bd52006-08-04 18:18:08 +000032752 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032753fi
Reid Spencera773bd52006-08-04 18:18:08 +000032754
32755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032756 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032757ac_cpp='$CPP $CPPFLAGS'
32758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32760ac_compiler_gnu=$ac_cv_c_compiler_gnu
32761
32762fi
Reid Spencera773bd52006-08-04 18:18:08 +000032763{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32764echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032765
32766if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032767
32768cat >>confdefs.h <<\_ACEOF
32769#define HAVE_ISINF_IN_CMATH 1
32770_ACEOF
32771
Reid Spencerabec8f92004-10-27 23:03:44 +000032772fi
32773
Reid Spencera773bd52006-08-04 18:18:08 +000032774{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32775echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032776if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32777 echo $ECHO_N "(cached) $ECHO_C" >&6
32778else
Reid Spencera773bd52006-08-04 18:18:08 +000032779 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032780ac_cpp='$CXXCPP $CPPFLAGS'
32781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32784
Reid Spencerabec8f92004-10-27 23:03:44 +000032785 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032786/* confdefs.h. */
32787_ACEOF
32788cat confdefs.h >>conftest.$ac_ext
32789cat >>conftest.$ac_ext <<_ACEOF
32790/* end confdefs.h. */
32791#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032792int
32793main ()
32794{
32795float f; std::isinf(f)}
32796 ;
32797 return 0;
32798}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032799_ACEOF
32800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032801if { (ac_try="$ac_compile"
32802case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032809 grep -v '^ *+' conftest.er1 >conftest.err
32810 rm -f conftest.er1
32811 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032813 (exit $ac_status); } &&
32814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32815 { (case "(($ac_try" in
32816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817 *) ac_try_echo=$ac_try;;
32818esac
32819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820 (eval "$ac_try") 2>&5
32821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest.$ac_objext'
32825 { (case "(($ac_try" in
32826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827 *) ac_try_echo=$ac_try;;
32828esac
32829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830 (eval "$ac_try") 2>&5
32831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032834 ac_cv_func_std_isinf_in_cmath=yes
32835else
32836 echo "$as_me: failed program was:" >&5
32837sed 's/^/| /' conftest.$ac_ext >&5
32838
Reid Spencera773bd52006-08-04 18:18:08 +000032839 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032840fi
Reid Spencera773bd52006-08-04 18:18:08 +000032841
32842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032843 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032844ac_cpp='$CPP $CPPFLAGS'
32845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32847ac_compiler_gnu=$ac_cv_c_compiler_gnu
32848
32849fi
Reid Spencera773bd52006-08-04 18:18:08 +000032850{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32851echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032852
32853if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032854
32855cat >>confdefs.h <<\_ACEOF
32856#define HAVE_STD_ISINF_IN_CMATH 1
32857_ACEOF
32858
Reid Spencerabec8f92004-10-27 23:03:44 +000032859fi
32860
Reid Spencera773bd52006-08-04 18:18:08 +000032861{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32862echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032863if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32864 echo $ECHO_N "(cached) $ECHO_C" >&6
32865else
Reid Spencera773bd52006-08-04 18:18:08 +000032866 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032867ac_cpp='$CXXCPP $CPPFLAGS'
32868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32871
Reid Spencerabec8f92004-10-27 23:03:44 +000032872 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032873/* confdefs.h. */
32874_ACEOF
32875cat confdefs.h >>conftest.$ac_ext
32876cat >>conftest.$ac_ext <<_ACEOF
32877/* end confdefs.h. */
32878#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032879int
32880main ()
32881{
32882float f; finite(f);
32883 ;
32884 return 0;
32885}
Brian Gaeked59a6472004-07-21 03:33:58 +000032886_ACEOF
32887rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032888if { (ac_try="$ac_compile"
32889case "(($ac_try" in
32890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32891 *) ac_try_echo=$ac_try;;
32892esac
32893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32894 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032896 grep -v '^ *+' conftest.er1 >conftest.err
32897 rm -f conftest.er1
32898 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032900 (exit $ac_status); } &&
32901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32902 { (case "(($ac_try" in
32903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32904 *) ac_try_echo=$ac_try;;
32905esac
32906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32907 (eval "$ac_try") 2>&5
32908 ac_status=$?
32909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32910 (exit $ac_status); }; } &&
32911 { ac_try='test -s conftest.$ac_objext'
32912 { (case "(($ac_try" in
32913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32914 *) ac_try_echo=$ac_try;;
32915esac
32916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32917 (eval "$ac_try") 2>&5
32918 ac_status=$?
32919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32920 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032921 ac_cv_func_finite_in_ieeefp_h=yes
32922else
32923 echo "$as_me: failed program was:" >&5
32924sed 's/^/| /' conftest.$ac_ext >&5
32925
Reid Spencera773bd52006-08-04 18:18:08 +000032926 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032927fi
Reid Spencera773bd52006-08-04 18:18:08 +000032928
32929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032930 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032931ac_cpp='$CPP $CPPFLAGS'
32932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32934ac_compiler_gnu=$ac_cv_c_compiler_gnu
32935
32936fi
Reid Spencera773bd52006-08-04 18:18:08 +000032937{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32938echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032939
Brian Gaeke6802b552004-10-28 05:06:45 +000032940if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032941
32942cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032943#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032944_ACEOF
32945
Reid Spencerabec8f92004-10-27 23:03:44 +000032946fi
32947
32948
32949
Reid Spencer30fe5262007-01-20 07:48:49 +000032950if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000032951
32952
32953for ac_header in stdlib.h unistd.h
32954do
32955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32959if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032960 echo $ECHO_N "(cached) $ECHO_C" >&6
32961fi
Reid Spencera773bd52006-08-04 18:18:08 +000032962ac_res=`eval echo '${'$as_ac_Header'}'`
32963 { echo "$as_me:$LINENO: result: $ac_res" >&5
32964echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032965else
32966 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032967{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32968echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032969cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032970/* confdefs.h. */
32971_ACEOF
32972cat confdefs.h >>conftest.$ac_ext
32973cat >>conftest.$ac_ext <<_ACEOF
32974/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032975$ac_includes_default
32976#include <$ac_header>
32977_ACEOF
32978rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032979if { (ac_try="$ac_compile"
32980case "(($ac_try" in
32981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982 *) ac_try_echo=$ac_try;;
32983esac
32984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032986 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032987 grep -v '^ *+' conftest.er1 >conftest.err
32988 rm -f conftest.er1
32989 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032991 (exit $ac_status); } &&
32992 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
32999 ac_status=$?
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; } &&
33002 { ac_try='test -s conftest.$ac_objext'
33003 { (case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006esac
33007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008 (eval "$ac_try") 2>&5
33009 ac_status=$?
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033012 ac_header_compiler=yes
33013else
33014 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033015sed 's/^/| /' conftest.$ac_ext >&5
33016
Reid Spencera773bd52006-08-04 18:18:08 +000033017 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033018fi
Reid Spencera773bd52006-08-04 18:18:08 +000033019
33020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33021{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33022echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033023
33024# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033025{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033028/* confdefs.h. */
33029_ACEOF
33030cat confdefs.h >>conftest.$ac_ext
33031cat >>conftest.$ac_ext <<_ACEOF
33032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033033#include <$ac_header>
33034_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033035if { (ac_try="$ac_cpp conftest.$ac_ext"
33036case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033042 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033043 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033044 rm -f conftest.er1
33045 cat conftest.err >&5
33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033047 (exit $ac_status); } >/dev/null; then
33048 if test -s conftest.err; then
33049 ac_cpp_err=$ac_c_preproc_warn_flag
33050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33051 else
33052 ac_cpp_err=
33053 fi
33054else
33055 ac_cpp_err=yes
33056fi
33057if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033058 ac_header_preproc=yes
33059else
33060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033061sed 's/^/| /' conftest.$ac_ext >&5
33062
John Criswell7a73b802003-06-30 21:59:07 +000033063 ac_header_preproc=no
33064fi
Reid Spencera773bd52006-08-04 18:18:08 +000033065
John Criswell7a73b802003-06-30 21:59:07 +000033066rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033067{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33068echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033069
33070# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33072 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33077 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033078 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033079 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033092 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033093## ----------------------------------- ##
33094## Report this to llvmbugs@cs.uiuc.edu ##
33095## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033096_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033097 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033098 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033099esac
Reid Spencera773bd52006-08-04 18:18:08 +000033100{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033103 echo $ECHO_N "(cached) $ECHO_C" >&6
33104else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033105 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033106fi
Reid Spencera773bd52006-08-04 18:18:08 +000033107ac_res=`eval echo '${'$as_ac_Header'}'`
33108 { echo "$as_me:$LINENO: result: $ac_res" >&5
33109echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033110
33111fi
33112if test `eval echo '${'$as_ac_Header'}'` = yes; then
33113 cat >>confdefs.h <<_ACEOF
33114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33115_ACEOF
33116
33117fi
33118
33119done
33120
33121
33122for ac_func in getpagesize
33123do
33124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033128 echo $ECHO_N "(cached) $ECHO_C" >&6
33129else
33130 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033131/* confdefs.h. */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33138#define $ac_func innocuous_$ac_func
33139
John Criswell7a73b802003-06-30 21:59:07 +000033140/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033141 which can conflict with char $ac_func (); below.
33142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33143 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033144
John Criswell0c38eaf2003-09-10 15:17:25 +000033145#ifdef __STDC__
33146# include <limits.h>
33147#else
33148# include <assert.h>
33149#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033150
33151#undef $ac_func
33152
Reid Spencera773bd52006-08-04 18:18:08 +000033153/* Override any GCC internal prototype to avoid an error.
33154 Use char because int might match the return type of a GCC
33155 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033156#ifdef __cplusplus
33157extern "C"
33158#endif
John Criswell7a73b802003-06-30 21:59:07 +000033159char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033160/* The GNU C library defines this for functions which it implements
33161 to always fail with ENOSYS. Some functions are actually named
33162 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033163#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033164choke me
John Criswell7a73b802003-06-30 21:59:07 +000033165#endif
33166
John Criswell0c38eaf2003-09-10 15:17:25 +000033167int
33168main ()
33169{
Reid Spencera773bd52006-08-04 18:18:08 +000033170return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033171 ;
33172 return 0;
33173}
33174_ACEOF
33175rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033176if { (ac_try="$ac_link"
33177case "(($ac_try" in
33178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33179 *) ac_try_echo=$ac_try;;
33180esac
33181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33182 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033183 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033188 (exit $ac_status); } &&
33189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33190 { (case "(($ac_try" in
33191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33192 *) ac_try_echo=$ac_try;;
33193esac
33194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33195 (eval "$ac_try") 2>&5
33196 ac_status=$?
33197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33198 (exit $ac_status); }; } &&
33199 { ac_try='test -s conftest$ac_exeext'
33200 { (case "(($ac_try" in
33201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33202 *) ac_try_echo=$ac_try;;
33203esac
33204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33205 (eval "$ac_try") 2>&5
33206 ac_status=$?
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033209 eval "$as_ac_var=yes"
33210else
33211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033212sed 's/^/| /' conftest.$ac_ext >&5
33213
Reid Spencera773bd52006-08-04 18:18:08 +000033214 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033215fi
Reid Spencera773bd52006-08-04 18:18:08 +000033216
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033217rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033218 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033219fi
Reid Spencera773bd52006-08-04 18:18:08 +000033220ac_res=`eval echo '${'$as_ac_var'}'`
33221 { echo "$as_me:$LINENO: result: $ac_res" >&5
33222echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033223if test `eval echo '${'$as_ac_var'}'` = yes; then
33224 cat >>confdefs.h <<_ACEOF
33225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33226_ACEOF
33227
33228fi
33229done
33230
Reid Spencera773bd52006-08-04 18:18:08 +000033231{ echo "$as_me:$LINENO: checking for working mmap" >&5
33232echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033233if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33234 echo $ECHO_N "(cached) $ECHO_C" >&6
33235else
33236 if test "$cross_compiling" = yes; then
33237 ac_cv_func_mmap_fixed_mapped=no
33238else
33239 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033240/* confdefs.h. */
33241_ACEOF
33242cat confdefs.h >>conftest.$ac_ext
33243cat >>conftest.$ac_ext <<_ACEOF
33244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033245$ac_includes_default
33246/* malloc might have been renamed as rpl_malloc. */
33247#undef malloc
33248
33249/* Thanks to Mike Haertel and Jim Avera for this test.
33250 Here is a matrix of mmap possibilities:
33251 mmap private not fixed
33252 mmap private fixed at somewhere currently unmapped
33253 mmap private fixed at somewhere already mapped
33254 mmap shared not fixed
33255 mmap shared fixed at somewhere currently unmapped
33256 mmap shared fixed at somewhere already mapped
33257 For private mappings, we should verify that changes cannot be read()
33258 back from the file, nor mmap's back from the file at a different
33259 address. (There have been systems where private was not correctly
33260 implemented like the infamous i386 svr4.0, and systems where the
33261 VM page cache was not coherent with the file system buffer cache
33262 like early versions of FreeBSD and possibly contemporary NetBSD.)
33263 For shared mappings, we should conversely verify that changes get
33264 propagated back to all the places they're supposed to be.
33265
33266 Grep wants private fixed already mapped.
33267 The main things grep needs to know about mmap are:
33268 * does it exist and is it safe to write into the mmap'd area
33269 * how to use it (BSD variants) */
33270
33271#include <fcntl.h>
33272#include <sys/mman.h>
33273
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033274#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033275char *malloc ();
33276#endif
33277
33278/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033279#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033280/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033281# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033282# define HAVE_SYS_PARAM_H 1
33283# endif
33284
33285# ifdef _SC_PAGESIZE
33286# define getpagesize() sysconf(_SC_PAGESIZE)
33287# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033288# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033289# include <sys/param.h>
33290# ifdef EXEC_PAGESIZE
33291# define getpagesize() EXEC_PAGESIZE
33292# else /* no EXEC_PAGESIZE */
33293# ifdef NBPG
33294# define getpagesize() NBPG * CLSIZE
33295# ifndef CLSIZE
33296# define CLSIZE 1
33297# endif /* no CLSIZE */
33298# else /* no NBPG */
33299# ifdef NBPC
33300# define getpagesize() NBPC
33301# else /* no NBPC */
33302# ifdef PAGESIZE
33303# define getpagesize() PAGESIZE
33304# endif /* PAGESIZE */
33305# endif /* no NBPC */
33306# endif /* no NBPG */
33307# endif /* no EXEC_PAGESIZE */
33308# else /* no HAVE_SYS_PARAM_H */
33309# define getpagesize() 8192 /* punt totally */
33310# endif /* no HAVE_SYS_PARAM_H */
33311# endif /* no _SC_PAGESIZE */
33312
33313#endif /* no HAVE_GETPAGESIZE */
33314
33315int
33316main ()
33317{
33318 char *data, *data2, *data3;
33319 int i, pagesize;
33320 int fd;
33321
33322 pagesize = getpagesize ();
33323
33324 /* First, make a file with some known garbage in it. */
33325 data = (char *) malloc (pagesize);
33326 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033327 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033328 for (i = 0; i < pagesize; ++i)
33329 *(data + i) = rand ();
33330 umask (0);
33331 fd = creat ("conftest.mmap", 0600);
33332 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033333 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033334 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033335 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033336 close (fd);
33337
33338 /* Next, try to mmap the file at a fixed address which already has
33339 something else allocated at it. If we can, also make sure that
33340 we see the same garbage. */
33341 fd = open ("conftest.mmap", O_RDWR);
33342 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033343 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033344 data2 = (char *) malloc (2 * pagesize);
33345 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033346 return 1;
33347 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033348 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033349 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033350 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033351 for (i = 0; i < pagesize; ++i)
33352 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033353 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033354
33355 /* Finally, make sure that changes to the mapped area do not
33356 percolate back to the file as seen by read(). (This is a bug on
33357 some variants of i386 svr4.0.) */
33358 for (i = 0; i < pagesize; ++i)
33359 *(data2 + i) = *(data2 + i) + 1;
33360 data3 = (char *) malloc (pagesize);
33361 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033362 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033363 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033364 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033365 for (i = 0; i < pagesize; ++i)
33366 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033367 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033368 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033369 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033370}
33371_ACEOF
33372rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033373if { (ac_try="$ac_link"
33374case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33377esac
33378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033380 ac_status=$?
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033383 { (case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33386esac
33387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033389 ac_status=$?
33390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33391 (exit $ac_status); }; }; then
33392 ac_cv_func_mmap_fixed_mapped=yes
33393else
33394 echo "$as_me: program exited with status $ac_status" >&5
33395echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033396sed 's/^/| /' conftest.$ac_ext >&5
33397
John Criswell7a73b802003-06-30 21:59:07 +000033398( exit $ac_status )
33399ac_cv_func_mmap_fixed_mapped=no
33400fi
Reid Spencera773bd52006-08-04 18:18:08 +000033401rm -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 +000033402fi
Reid Spencera773bd52006-08-04 18:18:08 +000033403
33404
John Criswell7a73b802003-06-30 21:59:07 +000033405fi
Reid Spencera773bd52006-08-04 18:18:08 +000033406{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33407echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033408if test $ac_cv_func_mmap_fixed_mapped = yes; then
33409
33410cat >>confdefs.h <<\_ACEOF
33411#define HAVE_MMAP 1
33412_ACEOF
33413
33414fi
33415rm -f conftest.mmap
33416
Reid Spencer30fe5262007-01-20 07:48:49 +000033417 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033418echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033419if test "${ac_cv_func_mmap_file+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033422 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033423ac_cpp='$CPP $CPPFLAGS'
33424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33426ac_compiler_gnu=$ac_cv_c_compiler_gnu
33427
33428 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033429 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033430else
33431 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033432
Reid Spencer777ce172004-09-20 04:09:56 +000033433 /* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
33438
John Criswell7a73b802003-06-30 21:59:07 +000033439#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033440#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033441#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033442
33443int
33444main ()
33445{
John Criswell7a73b802003-06-30 21:59:07 +000033446
33447 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033448 fd = creat ("foo",0777);
33449 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33450 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033451 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033452 ;
33453 return 0;
33454}
John Criswell7a73b802003-06-30 21:59:07 +000033455_ACEOF
33456rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033457if { (ac_try="$ac_link"
33458case "(($ac_try" in
33459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33460 *) ac_try_echo=$ac_try;;
33461esac
33462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33463 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033467 { (case "(($ac_try" in
33468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33469 *) ac_try_echo=$ac_try;;
33470esac
33471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33472 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033473 ac_status=$?
33474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33475 (exit $ac_status); }; }; then
33476 ac_cv_func_mmap_file=yes
33477else
33478 echo "$as_me: program exited with status $ac_status" >&5
33479echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033480sed 's/^/| /' conftest.$ac_ext >&5
33481
John Criswell7a73b802003-06-30 21:59:07 +000033482( exit $ac_status )
33483ac_cv_func_mmap_file=no
33484fi
Reid Spencera773bd52006-08-04 18:18:08 +000033485rm -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 +000033486fi
Reid Spencera773bd52006-08-04 18:18:08 +000033487
33488
John Criswell7a73b802003-06-30 21:59:07 +000033489 ac_ext=c
33490ac_cpp='$CPP $CPPFLAGS'
33491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33493ac_compiler_gnu=$ac_cv_c_compiler_gnu
33494
33495
33496fi
Reid Spencera773bd52006-08-04 18:18:08 +000033497{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33498echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033499if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033500
33501cat >>confdefs.h <<\_ACEOF
33502#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033503_ACEOF
33504
33505 MMAP_FILE=yes
33506
33507fi
33508
Reid Spencer30fe5262007-01-20 07:48:49 +000033509 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033510echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033511if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33512 echo $ECHO_N "(cached) $ECHO_C" >&6
33513else
Reid Spencer582a23c2004-12-29 07:07:57 +000033514 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033515 ac_cv_need_dev_zero_for_mmap=yes
33516 else
33517 ac_cv_need_dev_zero_for_mmap=no
33518 fi
33519
33520fi
Reid Spencera773bd52006-08-04 18:18:08 +000033521{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33522echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033523if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33524
33525cat >>confdefs.h <<\_ACEOF
33526#define NEED_DEV_ZERO_FOR_MMAP 1
33527_ACEOF
33528
33529fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000033530
Reid Spencer30fe5262007-01-20 07:48:49 +000033531 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
33532 then
33533 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000033534echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033535 fi
33536 if test "$ac_cv_func_mmap_file" = "no"
33537 then
33538 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033539echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000033540 fi
John Criswellb13092b2003-07-22 21:00:24 +000033541fi
John Criswell7a73b802003-06-30 21:59:07 +000033542
33543
Reid Spencer9372f152007-07-30 20:13:24 +000033544
33545for ac_func in __dso_handle
33546do
33547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33551 echo $ECHO_N "(cached) $ECHO_C" >&6
33552else
33553 cat >conftest.$ac_ext <<_ACEOF
33554/* confdefs.h. */
33555_ACEOF
33556cat confdefs.h >>conftest.$ac_ext
33557cat >>conftest.$ac_ext <<_ACEOF
33558/* end confdefs.h. */
33559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33561#define $ac_func innocuous_$ac_func
33562
33563/* System header to define __stub macros and hopefully few prototypes,
33564 which can conflict with char $ac_func (); below.
33565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33566 <limits.h> exists even on freestanding compilers. */
33567
33568#ifdef __STDC__
33569# include <limits.h>
33570#else
33571# include <assert.h>
33572#endif
33573
33574#undef $ac_func
33575
33576/* Override any GCC internal prototype to avoid an error.
33577 Use char because int might match the return type of a GCC
33578 builtin and then its argument prototype would still apply. */
33579#ifdef __cplusplus
33580extern "C"
33581#endif
33582char $ac_func ();
33583/* The GNU C library defines this for functions which it implements
33584 to always fail with ENOSYS. Some functions are actually named
33585 something starting with __ and the normal name is an alias. */
33586#if defined __stub_$ac_func || defined __stub___$ac_func
33587choke me
33588#endif
33589
33590int
33591main ()
33592{
33593return $ac_func ();
33594 ;
33595 return 0;
33596}
33597_ACEOF
33598rm -f conftest.$ac_objext conftest$ac_exeext
33599if { (ac_try="$ac_link"
33600case "(($ac_try" in
33601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602 *) ac_try_echo=$ac_try;;
33603esac
33604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605 (eval "$ac_link") 2>conftest.er1
33606 ac_status=$?
33607 grep -v '^ *+' conftest.er1 >conftest.err
33608 rm -f conftest.er1
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33613 { (case "(($ac_try" in
33614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615 *) ac_try_echo=$ac_try;;
33616esac
33617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618 (eval "$ac_try") 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; } &&
33622 { ac_try='test -s conftest$ac_exeext'
33623 { (case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33626esac
33627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_try") 2>&5
33629 ac_status=$?
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000033632 eval "$as_ac_var=yes"
33633else
33634 echo "$as_me: failed program was:" >&5
33635sed 's/^/| /' conftest.$ac_ext >&5
33636
33637 eval "$as_ac_var=no"
33638fi
33639
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033640rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000033641 conftest$ac_exeext conftest.$ac_ext
33642fi
33643ac_res=`eval echo '${'$as_ac_var'}'`
33644 { echo "$as_me:$LINENO: result: $ac_res" >&5
33645echo "${ECHO_T}$ac_res" >&6; }
33646if test `eval echo '${'$as_ac_var'}'` = yes; then
33647 cat >>confdefs.h <<_ACEOF
33648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33649_ACEOF
33650
33651fi
33652done
33653
33654
Reid Spencera773bd52006-08-04 18:18:08 +000033655{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33656echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033657if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33658 echo $ECHO_N "(cached) $ECHO_C" >&6
33659else
33660 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033661if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033662 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000033663 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
33664 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033665 if test $? -eq 0 ; then
33666 llvm_cv_llvmgcc_sanity="yes"
33667 fi
33668 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033669fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033670fi
Reid Spencera773bd52006-08-04 18:18:08 +000033671{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33672echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033673
33674if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000033675 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
33676echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000033677 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033678 LLVMCC1=$llvmcc1path
33679
Reid Spencer502935f2004-12-22 05:56:56 +000033680 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033681 LLVMCC1PLUS=$llvmcc1pluspath
33682
Reid Spencer502935f2004-12-22 05:56:56 +000033683 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33684 LLVMGCCDIR=$llvmgccdir
33685
Reid Spencer282d8c12006-12-21 22:55:41 +000033686 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33687 LLVMGCCLIBEXEC=$llvmgcclibexec
33688
Reid Spencerb5d75b82006-05-09 00:31:01 +000033689 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033690 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33691 LLVMGCC_VERSION=$llvmgccversion
33692
33693 LLVMGCC_MAJVERS=$llvmgccmajvers
33694
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000033695 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000033696 LLVMGCC_LANGS=$llvmgcclangs
33697
33698 { echo "$as_me:$LINENO: result: ok" >&5
33699echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000033700fi
33701
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033702SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033703
33704
Reid Spencere9de0912004-08-20 09:03:57 +000033705# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033706# information into substitutions that will end up in Makefile.config.in
33707# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033708if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033709 prefix="/usr/local"
33710fi
Reid Spencere9de0912004-08-20 09:03:57 +000033711eval LLVM_PREFIX="${prefix}";
33712eval LLVM_BINDIR="${prefix}/bin";
33713eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033714eval LLVM_DATADIR="${prefix}/share/llvm";
33715eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33716eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033717eval LLVM_INCLUDEDIR="${prefix}/include";
33718eval LLVM_INFODIR="${prefix}/info";
33719eval LLVM_MANDIR="${prefix}/man";
33720LLVM_CONFIGTIME=`date`
33721
33722
33723
33724
33725
33726
33727
33728
33729
33730
33731
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033732# Place the various directores into the config.h file as #defines so that we
33733# can know about the installation paths within LLVM.
33734
Reid Spencere9de0912004-08-20 09:03:57 +000033735cat >>confdefs.h <<_ACEOF
33736#define LLVM_PREFIX "$LLVM_PREFIX"
33737_ACEOF
33738
33739
33740cat >>confdefs.h <<_ACEOF
33741#define LLVM_BINDIR "$LLVM_BINDIR"
33742_ACEOF
33743
33744
33745cat >>confdefs.h <<_ACEOF
33746#define LLVM_LIBDIR "$LLVM_LIBDIR"
33747_ACEOF
33748
33749
33750cat >>confdefs.h <<_ACEOF
33751#define LLVM_DATADIR "$LLVM_DATADIR"
33752_ACEOF
33753
33754
33755cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000033756#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033757_ACEOF
33758
33759
33760cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033761#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033762_ACEOF
33763
33764
33765cat >>confdefs.h <<_ACEOF
33766#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33767_ACEOF
33768
33769
33770cat >>confdefs.h <<_ACEOF
33771#define LLVM_INFODIR "$LLVM_INFODIR"
33772_ACEOF
33773
33774
33775cat >>confdefs.h <<_ACEOF
33776#define LLVM_MANDIR "$LLVM_MANDIR"
33777_ACEOF
33778
33779
33780cat >>confdefs.h <<_ACEOF
33781#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33782_ACEOF
33783
33784
Eric Christopher790e11c2007-12-01 00:34:39 +000033785cat >>confdefs.h <<_ACEOF
33786#define LLVM_HOSTTRIPLE "$host"
33787_ACEOF
33788
33789
Gordon Henriksenc0efff82007-10-02 09:50:32 +000033790# Determine which bindings to build.
33791if test "$BINDINGS_TO_BUILD" = auto ; then
33792 BINDINGS_TO_BUILD=""
33793 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
33794 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
33795 fi
33796fi
33797BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
33798
33799
33800# This isn't really configurey, but it avoids having to repeat the list in
33801# other files.
33802ALL_BINDINGS=ocaml
33803
33804
Gordon Henriksenf0915682007-10-02 16:42:22 +000033805# Do any work necessary to ensure that bindings have what they need.
33806binding_prereqs_failed=0
33807for a_binding in $BINDINGS_TO_BUILD ; do
33808 case "$a_binding" in
33809 ocaml)
33810 if test "x$OCAMLC" = x ; then
33811 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
33812echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
33813 binding_prereqs_failed=1
33814 fi
33815 if test "x$OCAMLDEP" = x ; then
33816 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
33817echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
33818 binding_prereqs_failed=1
33819 fi
33820 if test "x$OCAMLOPT" = x ; then
33821 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
33822echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
33823 fi
33824 if test "x$with_ocaml_libdir" != xauto ; then
33825 OCAML_LIBDIR=$with_ocaml_libdir
33826
33827 else
33828 ocaml_stdlib="`"$OCAMLC" -where`"
33829 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
33830 then
33831 # ocaml stdlib is beneath our prefix; use stdlib
33832 OCAML_LIBDIR=$ocaml_stdlib
33833
33834 else
33835 # ocaml stdlib is outside our prefix; use libdir/ocaml
33836 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
33837
33838 fi
33839 fi
33840 ;;
33841 esac
33842done
33843if test "$binding_prereqs_failed" = 1 ; then
33844 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
33845echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
33846 { (exit 1); exit 1; }; }
33847fi
33848
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033849{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
33850echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
33851if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
33852 echo $ECHO_N "(cached) $ECHO_C" >&6
33853else
33854 ac_ext=cpp
33855ac_cpp='$CXXCPP $CPPFLAGS'
33856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33859
33860 oldcxxflags="$CXXFLAGS"
33861 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
33862 cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h. */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h. */
33868
33869int
33870main ()
33871{
33872
33873 ;
33874 return 0;
33875}
33876_ACEOF
33877rm -f conftest.$ac_objext
33878if { (ac_try="$ac_compile"
33879case "(($ac_try" in
33880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33881 *) ac_try_echo=$ac_try;;
33882esac
33883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33884 (eval "$ac_compile") 2>conftest.er1
33885 ac_status=$?
33886 grep -v '^ *+' conftest.er1 >conftest.err
33887 rm -f conftest.er1
33888 cat conftest.err >&5
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033890 (exit $ac_status); } &&
33891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33892 { (case "(($ac_try" in
33893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33894 *) ac_try_echo=$ac_try;;
33895esac
33896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33897 (eval "$ac_try") 2>&5
33898 ac_status=$?
33899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900 (exit $ac_status); }; } &&
33901 { ac_try='test -s conftest.$ac_objext'
33902 { (case "(($ac_try" in
33903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33904 *) ac_try_echo=$ac_try;;
33905esac
33906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33907 (eval "$ac_try") 2>&5
33908 ac_status=$?
33909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000033911 llvm_cv_cxx_visibility_inlines_hidden=yes
33912else
33913 echo "$as_me: failed program was:" >&5
33914sed 's/^/| /' conftest.$ac_ext >&5
33915
33916 llvm_cv_cxx_visibility_inlines_hidden=no
33917fi
33918
33919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33920 CXXFLAGS="$oldcxxflags"
33921 ac_ext=c
33922ac_cpp='$CPP $CPPFLAGS'
33923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33925ac_compiler_gnu=$ac_cv_c_compiler_gnu
33926
33927
33928fi
33929{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
33930echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
33931if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
33932 ENABLE_VISIBILITY_INLINES_HIDDEN=1
33933
33934else
33935 ENABLE_VISIBILITY_INLINES_HIDDEN=0
33936
33937fi
33938
Gordon Henriksenf0915682007-10-02 16:42:22 +000033939
Nick Lewycky731c6ab2009-03-05 08:20:44 +000033940if test "$llvm_cv_link_use_r" = "yes" ; then
33941 RPATH="-Wl,-R"
33942else
33943 RPATH="-Wl,-rpath"
33944fi
33945
33946
33947if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
33948 RDYNAMIC="-Wl,-export-dynamic"
33949else
33950 RDYNAMIC=""
33951fi
Nick Lewyckye9821dc2009-03-03 04:55:29 +000033952
33953
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033954
Reid Spencera773bd52006-08-04 18:18:08 +000033955ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033956
Reid Spencera773bd52006-08-04 18:18:08 +000033957ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033958
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000033959ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033960
33961
Reid Spencera773bd52006-08-04 18:18:08 +000033962ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033963
33964
Reid Spencerea949cf2006-08-16 00:45:38 +000033965ac_config_files="$ac_config_files llvm.spec"
33966
33967
Reid Spencera773bd52006-08-04 18:18:08 +000033968ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033969
33970
Reid Spencera773bd52006-08-04 18:18:08 +000033971ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033972
33973
Reid Spencera773bd52006-08-04 18:18:08 +000033974ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033975
Reid Spencera773bd52006-08-04 18:18:08 +000033976ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033977
33978
Reid Spencera773bd52006-08-04 18:18:08 +000033979ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033980
33981
Reid Spencera773bd52006-08-04 18:18:08 +000033982ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033983
33984
Reid Spencera773bd52006-08-04 18:18:08 +000033985ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033986
33987
Reid Spencer8b2e1412006-11-17 03:32:33 +000033988ac_config_commands="$ac_config_commands runtime/Makefile"
33989
33990
Reid Spencera773bd52006-08-04 18:18:08 +000033991ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033992
33993
Reid Spencera773bd52006-08-04 18:18:08 +000033994ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033995
33996
Bill Wendlingf24eb392009-01-04 23:12:30 +000033997ac_config_commands="$ac_config_commands unittests/Makefile"
33998
33999
Reid Spencera773bd52006-08-04 18:18:08 +000034000ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034001
34002
Reid Spencera773bd52006-08-04 18:18:08 +000034003ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034004
34005
Reid Spencera773bd52006-08-04 18:18:08 +000034006ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034007
34008
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034009ac_config_commands="$ac_config_commands bindings/Makefile"
34010
34011
34012ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34013
34014
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034015
John Criswell7a73b802003-06-30 21:59:07 +000034016cat >confcache <<\_ACEOF
34017# This file is a shell script that caches the results of configure
34018# tests run on this system so they can be shared between configure
34019# scripts and configure runs, see configure's option --config-cache.
34020# It is not useful on other systems. If it contains results you don't
34021# want to keep, you may remove or edit it.
34022#
34023# config.status only pays attention to the cache file if you give it
34024# the --recheck option to rerun configure.
34025#
John Criswell0c38eaf2003-09-10 15:17:25 +000034026# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034027# loading this file, other *unset* `ac_cv_foo' will be assigned the
34028# following values.
34029
34030_ACEOF
34031
34032# The following way of writing the cache mishandles newlines in values,
34033# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034034# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034035# Ultrix sh set writes to stderr and can't be redirected directly,
34036# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034037(
34038 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34039 eval ac_val=\$$ac_var
34040 case $ac_val in #(
34041 *${as_nl}*)
34042 case $ac_var in #(
34043 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34044echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34045 esac
34046 case $ac_var in #(
34047 _ | IFS | as_nl) ;; #(
34048 *) $as_unset $ac_var ;;
34049 esac ;;
34050 esac
34051 done
34052
John Criswell7a73b802003-06-30 21:59:07 +000034053 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034054 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34055 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034056 # `set' does not quote correctly, so add quotes (double-quote
34057 # substitution turns \\\\ into \\, and sed turns \\ into \).
34058 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034059 "s/'/'\\\\''/g;
34060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034061 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034062 *)
34063 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034066 esac |
34067 sort
34068) |
John Criswell7a73b802003-06-30 21:59:07 +000034069 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034070 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034071 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034072 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34074 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034075 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34076 :end' >>confcache
34077if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34078 if test -w "$cache_file"; then
34079 test "x$cache_file" != "x/dev/null" &&
34080 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34081echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034082 cat confcache >$cache_file
34083 else
Reid Spencera773bd52006-08-04 18:18:08 +000034084 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34085echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034086 fi
34087fi
34088rm -f confcache
34089
34090test "x$prefix" = xNONE && prefix=$ac_default_prefix
34091# Let make expand exec_prefix.
34092test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34093
John Criswell7a73b802003-06-30 21:59:07 +000034094DEFS=-DHAVE_CONFIG_H
34095
John Criswell0c38eaf2003-09-10 15:17:25 +000034096ac_libobjs=
34097ac_ltlibobjs=
34098for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34099 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034100 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34101 ac_i=`echo "$ac_i" | sed "$ac_script"`
34102 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34103 # will be set to the directory where LIBOBJS objects are built.
34104 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34105 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034106done
34107LIBOBJS=$ac_libobjs
34108
34109LTLIBOBJS=$ac_ltlibobjs
34110
34111
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034112if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34113 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34114Usually this means the macro was only invoked conditionally." >&5
34115echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34116Usually this means the macro was only invoked conditionally." >&2;}
34117 { (exit 1); exit 1; }; }
34118fi
34119if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34120 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34121Usually this means the macro was only invoked conditionally." >&5
34122echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34123Usually this means the macro was only invoked conditionally." >&2;}
34124 { (exit 1); exit 1; }; }
34125fi
John Criswell7a73b802003-06-30 21:59:07 +000034126
34127: ${CONFIG_STATUS=./config.status}
34128ac_clean_files_save=$ac_clean_files
34129ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34130{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34131echo "$as_me: creating $CONFIG_STATUS" >&6;}
34132cat >$CONFIG_STATUS <<_ACEOF
34133#! $SHELL
34134# Generated by $as_me.
34135# Run this file to recreate the current configuration.
34136# Compiler output produced by configure, useful for debugging
34137# configure, is in config.log if it exists.
34138
34139debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034140ac_cs_recheck=false
34141ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034142SHELL=\${CONFIG_SHELL-$SHELL}
34143_ACEOF
34144
34145cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034146## --------------------- ##
34147## M4sh Initialization. ##
34148## --------------------- ##
34149
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034150# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034151if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34152 emulate sh
34153 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034154 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34155 # is contrary to our usage. Disable this feature.
34156 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034157 setopt NO_GLOB_SUBST
34158else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034159 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034160fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034161BIN_SH=xpg4; export BIN_SH # for Tru64
34162DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034163
John Criswell7a73b802003-06-30 21:59:07 +000034164
Reid Spencera773bd52006-08-04 18:18:08 +000034165# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034166# Avoid depending upon Character Ranges.
34167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34170as_cr_digits='0123456789'
34171as_cr_alnum=$as_cr_Letters$as_cr_digits
34172
34173# The user is always right.
34174if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034175 echo "#! /bin/sh" >conf$$.sh
34176 echo "exit 0" >>conf$$.sh
34177 chmod +x conf$$.sh
34178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034179 PATH_SEPARATOR=';'
34180 else
34181 PATH_SEPARATOR=:
34182 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034183 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034184fi
34185
Reid Spencera773bd52006-08-04 18:18:08 +000034186# Support unset when possible.
34187if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34188 as_unset=unset
34189else
34190 as_unset=false
34191fi
John Criswell7a73b802003-06-30 21:59:07 +000034192
Reid Spencera773bd52006-08-04 18:18:08 +000034193
34194# IFS
34195# We need space, tab and new line, in precisely that order. Quoting is
34196# there to prevent editors from complaining about space-tab.
34197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34198# splitting by setting IFS to empty value.)
34199as_nl='
34200'
34201IFS=" "" $as_nl"
34202
34203# Find who we are. Look in the path if we contain no directory separator.
34204case $0 in
34205 *[\\/]* ) as_myself=$0 ;;
34206 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034207for as_dir in $PATH
34208do
34209 IFS=$as_save_IFS
34210 test -z "$as_dir" && as_dir=.
34211 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34212done
Reid Spencera773bd52006-08-04 18:18:08 +000034213IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034214
Reid Spencera773bd52006-08-04 18:18:08 +000034215 ;;
34216esac
34217# We did not find ourselves, most probably we were run as `sh COMMAND'
34218# in which case we are not to be found in the path.
34219if test "x$as_myself" = x; then
34220 as_myself=$0
34221fi
34222if test ! -f "$as_myself"; then
34223 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34224 { (exit 1); exit 1; }
34225fi
34226
34227# Work around bugs in pre-3.0 UWIN ksh.
34228for as_var in ENV MAIL MAILPATH
34229do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34230done
34231PS1='$ '
34232PS2='> '
34233PS4='+ '
34234
34235# NLS nuisances.
34236for as_var in \
34237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34239 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034240do
Reid Spencera773bd52006-08-04 18:18:08 +000034241 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34242 eval $as_var=C; export $as_var
34243 else
34244 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34245 fi
34246done
34247
34248# Required to use basename.
34249if expr a : '\(a\)' >/dev/null 2>&1 &&
34250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34251 as_expr=expr
34252else
34253 as_expr=false
34254fi
34255
34256if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34257 as_basename=basename
34258else
34259 as_basename=false
34260fi
34261
34262
34263# Name of the executable.
34264as_me=`$as_basename -- "$0" ||
34265$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34266 X"$0" : 'X\(//\)$' \| \
34267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34268echo X/"$0" |
34269 sed '/^.*\/\([^/][^/]*\)\/*$/{
34270 s//\1/
34271 q
34272 }
34273 /^X\/\(\/\/\)$/{
34274 s//\1/
34275 q
34276 }
34277 /^X\/\(\/\).*/{
34278 s//\1/
34279 q
34280 }
34281 s/.*/./; q'`
34282
34283# CDPATH.
34284$as_unset CDPATH
34285
34286
34287
John Criswell7a73b802003-06-30 21:59:07 +000034288 as_lineno_1=$LINENO
34289 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034290 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034291 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034292
34293 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34294 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034295 # line-number line after each line using $LINENO; the second 'sed'
34296 # does the real work. The second script uses 'N' to pair each
34297 # line-number line with the line containing $LINENO, and appends
34298 # trailing '-' during substitution so that $LINENO is not a special
34299 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034300 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034301 # scripts with optimization help from Paolo Bonzini. Blame Lee
34302 # E. McMahon (1931-1989) for sed's syntax. :-)
34303 sed -n '
34304 p
34305 /[$]LINENO/=
34306 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034307 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034308 s/[$]LINENO.*/&-/
34309 t lineno
34310 b
34311 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034312 N
Reid Spencera773bd52006-08-04 18:18:08 +000034313 :loop
34314 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034315 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034316 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034317 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034318 chmod +x "$as_me.lineno" ||
34319 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034320 { (exit 1); exit 1; }; }
34321
34322 # Don't try to exec as it changes $[0], causing all sort of problems
34323 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034324 # original and so on. Autoconf is especially sensitive to this).
34325 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034326 # Exit status is that of the last command.
34327 exit
34328}
34329
34330
Reid Spencera773bd52006-08-04 18:18:08 +000034331if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34332 as_dirname=dirname
34333else
34334 as_dirname=false
34335fi
34336
34337ECHO_C= ECHO_N= ECHO_T=
34338case `echo -n x` in
34339-n*)
34340 case `echo 'x\c'` in
34341 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34342 *) ECHO_C='\c';;
34343 esac;;
34344*)
34345 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034346esac
34347
Reid Spencera773bd52006-08-04 18:18:08 +000034348if expr a : '\(a\)' >/dev/null 2>&1 &&
34349 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034350 as_expr=expr
34351else
34352 as_expr=false
34353fi
34354
34355rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034356if test -d conf$$.dir; then
34357 rm -f conf$$.dir/conf$$.file
34358else
34359 rm -f conf$$.dir
34360 mkdir conf$$.dir
34361fi
John Criswell7a73b802003-06-30 21:59:07 +000034362echo >conf$$.file
34363if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034364 as_ln_s='ln -s'
34365 # ... but there are two gotchas:
34366 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34367 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34368 # In both cases, we have to default to `cp -p'.
34369 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034370 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034371elif ln conf$$.file conf$$ 2>/dev/null; then
34372 as_ln_s=ln
34373else
34374 as_ln_s='cp -p'
34375fi
Reid Spencera773bd52006-08-04 18:18:08 +000034376rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34377rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034378
John Criswell0c38eaf2003-09-10 15:17:25 +000034379if mkdir -p . 2>/dev/null; then
34380 as_mkdir_p=:
34381else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034382 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034383 as_mkdir_p=false
34384fi
34385
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034386# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34387# systems may use methods other than mode bits to determine executability.
34388cat >conf$$.file <<_ASEOF
34389#! /bin/sh
34390exit 0
34391_ASEOF
34392chmod +x conf$$.file
34393if test -x conf$$.file >/dev/null 2>&1; then
34394 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034395else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034396 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034397fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034398rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034399
34400# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034401as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034402
34403# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034404as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034405
34406
John Criswell7a73b802003-06-30 21:59:07 +000034407exec 6>&1
34408
Reid Spencera773bd52006-08-04 18:18:08 +000034409# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034410# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034411# values after options handling.
34412ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034413This file was extended by llvm $as_me 2.6svn, which was
34414generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034415
34416 CONFIG_FILES = $CONFIG_FILES
34417 CONFIG_HEADERS = $CONFIG_HEADERS
34418 CONFIG_LINKS = $CONFIG_LINKS
34419 CONFIG_COMMANDS = $CONFIG_COMMANDS
34420 $ $0 $@
34421
Reid Spencera773bd52006-08-04 18:18:08 +000034422on `(hostname || uname -n) 2>/dev/null | sed 1q`
34423"
34424
John Criswell7a73b802003-06-30 21:59:07 +000034425_ACEOF
34426
Reid Spencera773bd52006-08-04 18:18:08 +000034427cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034428# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034429config_files="$ac_config_files"
34430config_headers="$ac_config_headers"
34431config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034432
Reid Spencera773bd52006-08-04 18:18:08 +000034433_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034434
34435cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034436ac_cs_usage="\
34437\`$as_me' instantiates files from templates according to the
34438current configuration.
34439
34440Usage: $0 [OPTIONS] [FILE]...
34441
34442 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034443 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034444 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034445 -d, --debug don't remove temporary files
34446 --recheck update $as_me by reconfiguring in the same conditions
34447 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034448 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034449 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034450 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034451
34452Configuration files:
34453$config_files
34454
34455Configuration headers:
34456$config_headers
34457
John Criswellc764fbc2003-09-06 15:17:13 +000034458Configuration commands:
34459$config_commands
34460
John Criswell7a73b802003-06-30 21:59:07 +000034461Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034462
Reid Spencera773bd52006-08-04 18:18:08 +000034463_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034464cat >>$CONFIG_STATUS <<_ACEOF
34465ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034466llvm config.status 2.6svn
34467configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034468 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034469
Reid Spencera773bd52006-08-04 18:18:08 +000034470Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034471This config.status script is free software; the Free Software Foundation
34472gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034473
34474ac_pwd='$ac_pwd'
34475srcdir='$srcdir'
34476INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034477_ACEOF
34478
34479cat >>$CONFIG_STATUS <<\_ACEOF
34480# If no file are specified by the user, then we need to provide default
34481# value. By we need to know if files were specified by the user.
34482ac_need_defaults=:
34483while test $# != 0
34484do
34485 case $1 in
34486 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034487 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34488 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034489 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034490 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034491 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034492 ac_option=$1
34493 ac_optarg=$2
34494 ac_shift=shift
34495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034496 esac
34497
John Criswell0c38eaf2003-09-10 15:17:25 +000034498 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034499 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034500 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34501 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034502 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34503 echo "$ac_cs_version"; exit ;;
34504 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034505 debug=: ;;
34506 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034507 $ac_shift
34508 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034509 ac_need_defaults=false;;
34510 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034511 $ac_shift
34512 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034513 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034514 --he | --h)
34515 # Conflict between --help and --header
34516 { echo "$as_me: error: ambiguous option: $1
34517Try \`$0 --help' for more information." >&2
34518 { (exit 1); exit 1; }; };;
34519 --help | --hel | -h )
34520 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34523 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034524
34525 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034526 -*) { echo "$as_me: error: unrecognized option: $1
34527Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034528 { (exit 1); exit 1; }; } ;;
34529
Reid Spencera773bd52006-08-04 18:18:08 +000034530 *) ac_config_targets="$ac_config_targets $1"
34531 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034532
34533 esac
34534 shift
34535done
34536
John Criswell0c38eaf2003-09-10 15:17:25 +000034537ac_configure_extra_args=
34538
34539if $ac_cs_silent; then
34540 exec 6>/dev/null
34541 ac_configure_extra_args="$ac_configure_extra_args --silent"
34542fi
34543
34544_ACEOF
34545cat >>$CONFIG_STATUS <<_ACEOF
34546if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034547 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34548 CONFIG_SHELL=$SHELL
34549 export CONFIG_SHELL
34550 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034551fi
34552
John Criswell7a73b802003-06-30 21:59:07 +000034553_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034554cat >>$CONFIG_STATUS <<\_ACEOF
34555exec 5>>config.log
34556{
34557 echo
34558 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34559## Running $as_me. ##
34560_ASBOX
34561 echo "$ac_log"
34562} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034563
Reid Spencera773bd52006-08-04 18:18:08 +000034564_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034565cat >>$CONFIG_STATUS <<_ACEOF
34566#
Reid Spencera773bd52006-08-04 18:18:08 +000034567# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034568#
Reid Spencerc0682832005-02-24 19:05:19 +000034569llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034570
34571_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034572
John Criswell7a73b802003-06-30 21:59:07 +000034573cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034574
34575# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034576for ac_config_target in $ac_config_targets
34577do
Reid Spencera773bd52006-08-04 18:18:08 +000034578 case $ac_config_target in
34579 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34580 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034581 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034582 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034583 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034584 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34585 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34586 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34587 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34588 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34589 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34590 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034591 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034592 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34593 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000034594 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034595 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34596 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34597 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034598 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
34599 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034600
John Criswell7a73b802003-06-30 21:59:07 +000034601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34602echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34603 { (exit 1); exit 1; }; };;
34604 esac
34605done
34606
Reid Spencera773bd52006-08-04 18:18:08 +000034607
John Criswell7a73b802003-06-30 21:59:07 +000034608# If the user did not use the arguments to specify the items to instantiate,
34609# then the envvar interface is used. Set only those that are not.
34610# We use the long form for the default assignment because of an extremely
34611# bizarre bug on SunOS 4.1.3.
34612if $ac_need_defaults; then
34613 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34614 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034616fi
34617
John Criswell0c38eaf2003-09-10 15:17:25 +000034618# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034619# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034620# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034621# Hook for its removal unless debugging.
34622# Note that there is a small window in which the directory will not be cleaned:
34623# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034624$debug ||
34625{
Reid Spencera773bd52006-08-04 18:18:08 +000034626 tmp=
34627 trap 'exit_status=$?
34628 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34629' 0
John Criswell7a73b802003-06-30 21:59:07 +000034630 trap '{ (exit 1); exit 1; }' 1 2 13 15
34631}
John Criswell7a73b802003-06-30 21:59:07 +000034632# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034633
John Criswell7a73b802003-06-30 21:59:07 +000034634{
Reid Spencera773bd52006-08-04 18:18:08 +000034635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034636 test -n "$tmp" && test -d "$tmp"
34637} ||
34638{
Reid Spencera773bd52006-08-04 18:18:08 +000034639 tmp=./conf$$-$RANDOM
34640 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034641} ||
34642{
John Criswell0c38eaf2003-09-10 15:17:25 +000034643 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034644 { (exit 1); exit 1; }
34645}
34646
John Criswell7a73b802003-06-30 21:59:07 +000034647#
Reid Spencera773bd52006-08-04 18:18:08 +000034648# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034649#
34650
34651# No need to generate the scripts if there are no CONFIG_FILES.
34652# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034653if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034654
34655_ACEOF
34656
Reid Spencera773bd52006-08-04 18:18:08 +000034657
34658
34659ac_delim='%!_!# '
34660for ac_last_try in false false false false false :; do
34661 cat >conf$$subs.sed <<_ACEOF
34662SHELL!$SHELL$ac_delim
34663PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34664PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34665PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34666PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34667PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34668PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34669exec_prefix!$exec_prefix$ac_delim
34670prefix!$prefix$ac_delim
34671program_transform_name!$program_transform_name$ac_delim
34672bindir!$bindir$ac_delim
34673sbindir!$sbindir$ac_delim
34674libexecdir!$libexecdir$ac_delim
34675datarootdir!$datarootdir$ac_delim
34676datadir!$datadir$ac_delim
34677sysconfdir!$sysconfdir$ac_delim
34678sharedstatedir!$sharedstatedir$ac_delim
34679localstatedir!$localstatedir$ac_delim
34680includedir!$includedir$ac_delim
34681oldincludedir!$oldincludedir$ac_delim
34682docdir!$docdir$ac_delim
34683infodir!$infodir$ac_delim
34684htmldir!$htmldir$ac_delim
34685dvidir!$dvidir$ac_delim
34686pdfdir!$pdfdir$ac_delim
34687psdir!$psdir$ac_delim
34688libdir!$libdir$ac_delim
34689localedir!$localedir$ac_delim
34690mandir!$mandir$ac_delim
34691DEFS!$DEFS$ac_delim
34692ECHO_C!$ECHO_C$ac_delim
34693ECHO_N!$ECHO_N$ac_delim
34694ECHO_T!$ECHO_T$ac_delim
34695LIBS!$LIBS$ac_delim
34696build_alias!$build_alias$ac_delim
34697host_alias!$host_alias$ac_delim
34698target_alias!$target_alias$ac_delim
34699LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34700subdirs!$subdirs$ac_delim
34701build!$build$ac_delim
34702build_cpu!$build_cpu$ac_delim
34703build_vendor!$build_vendor$ac_delim
34704build_os!$build_os$ac_delim
34705host!$host$ac_delim
34706host_cpu!$host_cpu$ac_delim
34707host_vendor!$host_vendor$ac_delim
34708host_os!$host_os$ac_delim
34709target!$target$ac_delim
34710target_cpu!$target_cpu$ac_delim
34711target_vendor!$target_vendor$ac_delim
34712target_os!$target_os$ac_delim
34713OS!$OS$ac_delim
34714LINKALL!$LINKALL$ac_delim
34715NOLINKALL!$NOLINKALL$ac_delim
34716LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34717LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
Bill Wendlinga0833352009-03-12 04:10:09 +000034718ARCH!$ARCH$ac_delim
34719ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034720CC!$CC$ac_delim
34721CFLAGS!$CFLAGS$ac_delim
34722LDFLAGS!$LDFLAGS$ac_delim
34723CPPFLAGS!$CPPFLAGS$ac_delim
34724ac_ct_CC!$ac_ct_CC$ac_delim
34725EXEEXT!$EXEEXT$ac_delim
34726OBJEXT!$OBJEXT$ac_delim
34727CPP!$CPP$ac_delim
34728GREP!$GREP$ac_delim
34729EGREP!$EGREP$ac_delim
34730LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34731BUILD_CC!$BUILD_CC$ac_delim
34732BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000034733BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034734CVSBUILD!$CVSBUILD$ac_delim
34735ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34736DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000034737ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
34738EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034739DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034740JIT!$JIT$ac_delim
34741TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34742ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34743ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034744ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034745TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034746ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034747EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000034748BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034749CXX!$CXX$ac_delim
34750CXXFLAGS!$CXXFLAGS$ac_delim
34751ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000034752NM!$NM$ac_delim
34753ifGNUmake!$ifGNUmake$ac_delim
34754LN_S!$LN_S$ac_delim
34755CMP!$CMP$ac_delim
34756CP!$CP$ac_delim
34757DATE!$DATE$ac_delim
34758FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034759_ACEOF
34760
34761 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34762 break
34763 elif $ac_last_try; then
34764 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34765echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34766 { (exit 1); exit 1; }; }
34767 else
34768 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034769 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034770done
34771
34772ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34773if test -n "$ac_eof"; then
34774 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34775 ac_eof=`expr $ac_eof + 1`
34776fi
34777
34778cat >>$CONFIG_STATUS <<_ACEOF
34779cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34780/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34781_ACEOF
34782sed '
34783s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34784s/^/s,@/; s/!/@,|#_!!_#|/
34785:n
34786t n
34787s/'"$ac_delim"'$/,g/; t
34788s/$/\\/; p
34789N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34790' >>$CONFIG_STATUS <conf$$subs.sed
34791rm -f conf$$subs.sed
34792cat >>$CONFIG_STATUS <<_ACEOF
34793CEOF$ac_eof
34794_ACEOF
34795
34796
34797ac_delim='%!_!# '
34798for ac_last_try in false false false false false :; do
34799 cat >conf$$subs.sed <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034800MKDIR!$MKDIR$ac_delim
34801MV!$MV$ac_delim
34802RANLIB!$RANLIB$ac_delim
34803RM!$RM$ac_delim
34804SED!$SED$ac_delim
34805TAR!$TAR$ac_delim
34806BINPWD!$BINPWD$ac_delim
34807GRAPHVIZ!$GRAPHVIZ$ac_delim
34808DOT!$DOT$ac_delim
34809GV!$GV$ac_delim
34810DOTTY!$DOTTY$ac_delim
34811PERL!$PERL$ac_delim
34812HAVE_PERL!$HAVE_PERL$ac_delim
34813INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34814INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34815INSTALL_DATA!$INSTALL_DATA$ac_delim
34816BZIP2!$BZIP2$ac_delim
34817DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034818GROFF!$GROFF$ac_delim
34819GZIP!$GZIP$ac_delim
34820POD2HTML!$POD2HTML$ac_delim
34821POD2MAN!$POD2MAN$ac_delim
34822RUNTEST!$RUNTEST$ac_delim
34823TCLSH!$TCLSH$ac_delim
34824ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000034825OCAMLC!$OCAMLC$ac_delim
34826OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000034827OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000034828OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000034829GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034830INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34831INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34832CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34833CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34834LIBADD_DL!$LIBADD_DL$ac_delim
34835ECHO!$ECHO$ac_delim
34836AR!$AR$ac_delim
34837STRIP!$STRIP$ac_delim
34838CXXCPP!$CXXCPP$ac_delim
34839F77!$F77$ac_delim
34840FFLAGS!$FFLAGS$ac_delim
34841ac_ct_F77!$ac_ct_F77$ac_delim
34842LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034843LLVMGCC!$LLVMGCC$ac_delim
34844LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034845USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034846HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000034847HAVE_FFI!$HAVE_FFI$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034848HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034849ALLOCA!$ALLOCA$ac_delim
34850MMAP_FILE!$MMAP_FILE$ac_delim
34851LLVMCC1!$LLVMCC1$ac_delim
34852LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34853LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034854LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034855LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34856LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000034857LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034858SHLIBEXT!$SHLIBEXT$ac_delim
34859LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34860LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34861LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34862LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34863LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34864LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34865LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34866LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34867LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34868LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034869BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
34870ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000034871OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034872ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034873RPATH!$RPATH$ac_delim
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034874RDYNAMIC!$RDYNAMIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034875LIBOBJS!$LIBOBJS$ac_delim
34876LTLIBOBJS!$LTLIBOBJS$ac_delim
34877_ACEOF
34878
Nick Lewycky731c6ab2009-03-05 08:20:44 +000034879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 77; then
Reid Spencera773bd52006-08-04 18:18:08 +000034880 break
34881 elif $ac_last_try; then
34882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34883echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34884 { (exit 1); exit 1; }; }
34885 else
34886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34887 fi
34888done
34889
34890ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34891if test -n "$ac_eof"; then
34892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34893 ac_eof=`expr $ac_eof + 1`
34894fi
34895
34896cat >>$CONFIG_STATUS <<_ACEOF
34897cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34899_ACEOF
34900sed '
34901s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34902s/^/s,@/; s/!/@,|#_!!_#|/
34903:n
34904t n
34905s/'"$ac_delim"'$/,g/; t
34906s/$/\\/; p
34907N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34908' >>$CONFIG_STATUS <conf$$subs.sed
34909rm -f conf$$subs.sed
34910cat >>$CONFIG_STATUS <<_ACEOF
34911:end
34912s/|#_!!_#|//g
34913CEOF$ac_eof
34914_ACEOF
34915
34916
34917# VPATH may cause trouble with some makes, so we remove $(srcdir),
34918# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34919# trailing colons and then remove the whole line if VPATH becomes empty
34920# (actually we leave an empty line to preserve line numbers).
34921if test "x$srcdir" = x.; then
34922 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34923s/:*\$(srcdir):*/:/
34924s/:*\${srcdir}:*/:/
34925s/:*@srcdir@:*/:/
34926s/^\([^=]*=[ ]*\):*/\1/
34927s/:*$//
34928s/^[^=]*=[ ]*$//
34929}'
34930fi
34931
34932cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034933fi # test -n "$CONFIG_FILES"
34934
Reid Spencera773bd52006-08-04 18:18:08 +000034935
34936for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34937do
34938 case $ac_tag in
34939 :[FHLC]) ac_mode=$ac_tag; continue;;
34940 esac
34941 case $ac_mode$ac_tag in
34942 :[FHL]*:*);;
34943 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34944echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34945 { (exit 1); exit 1; }; };;
34946 :[FH]-) ac_tag=-:-;;
34947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34948 esac
34949 ac_save_IFS=$IFS
34950 IFS=:
34951 set x $ac_tag
34952 IFS=$ac_save_IFS
34953 shift
34954 ac_file=$1
34955 shift
34956
34957 case $ac_mode in
34958 :L) ac_source=$1;;
34959 :[FH])
34960 ac_file_inputs=
34961 for ac_f
34962 do
34963 case $ac_f in
34964 -) ac_f="$tmp/stdin";;
34965 *) # Look for the file first in the build tree, then in the source tree
34966 # (if the path is not absolute). The absolute path cannot be DOS-style,
34967 # because $ac_f cannot contain `:'.
34968 test -f "$ac_f" ||
34969 case $ac_f in
34970 [\\/$]*) false;;
34971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34972 esac ||
34973 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34974echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34975 { (exit 1); exit 1; }; };;
34976 esac
34977 ac_file_inputs="$ac_file_inputs $ac_f"
34978 done
34979
34980 # Let's still pretend it is `configure' which instantiates (i.e., don't
34981 # use $as_me), people would be surprised to read:
34982 # /* config.h. Generated by config.status. */
34983 configure_input="Generated from "`IFS=:
34984 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34985 if test x"$ac_file" != x-; then
34986 configure_input="$ac_file. $configure_input"
34987 { echo "$as_me:$LINENO: creating $ac_file" >&5
34988echo "$as_me: creating $ac_file" >&6;}
34989 fi
34990
34991 case $ac_tag in
34992 *:-:* | *:-) cat >"$tmp/stdin";;
34993 esac
34994 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034995 esac
34996
Reid Spencera773bd52006-08-04 18:18:08 +000034997 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034999 X"$ac_file" : 'X\(//\)[^/]' \| \
35000 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035002echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35004 s//\1/
35005 q
35006 }
35007 /^X\(\/\/\)[^/].*/{
35008 s//\1/
35009 q
35010 }
35011 /^X\(\/\/\)$/{
35012 s//\1/
35013 q
35014 }
35015 /^X\(\/\).*/{
35016 s//\1/
35017 q
35018 }
35019 s/.*/./; q'`
35020 { as_dir="$ac_dir"
35021 case $as_dir in #(
35022 -*) as_dir=./$as_dir;;
35023 esac
35024 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035025 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035026 while :; do
35027 case $as_dir in #(
35028 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35029 *) as_qdir=$as_dir;;
35030 esac
35031 as_dirs="'$as_qdir' $as_dirs"
35032 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035034 X"$as_dir" : 'X\(//\)[^/]' \| \
35035 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035037echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35039 s//\1/
35040 q
35041 }
35042 /^X\(\/\/\)[^/].*/{
35043 s//\1/
35044 q
35045 }
35046 /^X\(\/\/\)$/{
35047 s//\1/
35048 q
35049 }
35050 /^X\(\/\).*/{
35051 s//\1/
35052 q
35053 }
35054 s/.*/./; q'`
35055 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035056 done
Reid Spencera773bd52006-08-04 18:18:08 +000035057 test -z "$as_dirs" || eval "mkdir $as_dirs"
35058 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35059echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035060 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035061 ac_builddir=.
35062
Reid Spencera773bd52006-08-04 18:18:08 +000035063case "$ac_dir" in
35064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35065*)
John Criswell7a73b802003-06-30 21:59:07 +000035066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035067 # A ".." for each directory in $ac_dir_suffix.
35068 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35069 case $ac_top_builddir_sub in
35070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35072 esac ;;
35073esac
35074ac_abs_top_builddir=$ac_pwd
35075ac_abs_builddir=$ac_pwd$ac_dir_suffix
35076# for backward compatibility:
35077ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035078
35079case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035080 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035081 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035082 ac_top_srcdir=$ac_top_builddir_sub
35083 ac_abs_top_srcdir=$ac_pwd ;;
35084 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035085 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035086 ac_top_srcdir=$srcdir
35087 ac_abs_top_srcdir=$srcdir ;;
35088 *) # Relative name.
35089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35090 ac_top_srcdir=$ac_top_build_prefix$srcdir
35091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035092esac
Reid Spencera773bd52006-08-04 18:18:08 +000035093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035094
John Criswell7a73b802003-06-30 21:59:07 +000035095
Reid Spencera773bd52006-08-04 18:18:08 +000035096 case $ac_mode in
35097 :F)
35098 #
35099 # CONFIG_FILE
35100 #
John Criswell7a73b802003-06-30 21:59:07 +000035101
35102 case $INSTALL in
35103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035105 esac
John Criswell7a73b802003-06-30 21:59:07 +000035106_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035107
35108cat >>$CONFIG_STATUS <<\_ACEOF
35109# If the template does not know about datarootdir, expand it.
35110# FIXME: This hack should be removed a few years after 2.60.
35111ac_datarootdir_hack=; ac_datarootdir_seen=
35112
35113case `sed -n '/datarootdir/ {
35114 p
35115 q
35116}
35117/@datadir@/p
35118/@docdir@/p
35119/@infodir@/p
35120/@localedir@/p
35121/@mandir@/p
35122' $ac_file_inputs` in
35123*datarootdir*) ac_datarootdir_seen=yes;;
35124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35125 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35126echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35127_ACEOF
35128cat >>$CONFIG_STATUS <<_ACEOF
35129 ac_datarootdir_hack='
35130 s&@datadir@&$datadir&g
35131 s&@docdir@&$docdir&g
35132 s&@infodir@&$infodir&g
35133 s&@localedir@&$localedir&g
35134 s&@mandir@&$mandir&g
35135 s&\\\${datarootdir}&$datarootdir&g' ;;
35136esac
35137_ACEOF
35138
35139# Neutralize VPATH when `$srcdir' = `.'.
35140# Shell code in configure.ac might set extrasub.
35141# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035142cat >>$CONFIG_STATUS <<_ACEOF
35143 sed "$ac_vpsub
35144$extrasub
35145_ACEOF
35146cat >>$CONFIG_STATUS <<\_ACEOF
35147:t
35148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035149s&@configure_input@&$configure_input&;t t
35150s&@top_builddir@&$ac_top_builddir_sub&;t t
35151s&@srcdir@&$ac_srcdir&;t t
35152s&@abs_srcdir@&$ac_abs_srcdir&;t t
35153s&@top_srcdir@&$ac_top_srcdir&;t t
35154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35155s&@builddir@&$ac_builddir&;t t
35156s&@abs_builddir@&$ac_abs_builddir&;t t
35157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35158s&@INSTALL@&$ac_INSTALL&;t t
35159$ac_datarootdir_hack
35160" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035161
Reid Spencera773bd52006-08-04 18:18:08 +000035162test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35163 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35165 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35166which seems to be undefined. Please make sure it is defined." >&5
35167echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35168which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035169
Reid Spencera773bd52006-08-04 18:18:08 +000035170 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035171 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035172 -) cat "$tmp/out"; rm -f "$tmp/out";;
35173 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035174 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035175 ;;
35176 :H)
35177 #
35178 # CONFIG_HEADER
35179 #
John Criswell7a73b802003-06-30 21:59:07 +000035180_ACEOF
35181
Reid Spencera773bd52006-08-04 18:18:08 +000035182# Transform confdefs.h into a sed script `conftest.defines', that
35183# substitutes the proper values into config.h.in to produce config.h.
35184rm -f conftest.defines conftest.tail
35185# First, append a space to every undef/define line, to ease matching.
35186echo 's/$/ /' >conftest.defines
35187# Then, protect against being on the right side of a sed subst, or in
35188# an unquoted here document, in config.status. If some macros were
35189# called several times there might be several #defines for the same
35190# symbol, which is useless. But do not sort them, since the last
35191# AC_DEFINE must be honored.
35192ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35193# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35194# NAME is the cpp macro being defined, VALUE is the value it is being given.
35195# PARAMS is the parameter list in the macro definition--in most cases, it's
35196# just an empty string.
35197ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35198ac_dB='\\)[ (].*,\\1define\\2'
35199ac_dC=' '
35200ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035201
Reid Spencera773bd52006-08-04 18:18:08 +000035202uniq confdefs.h |
35203 sed -n '
35204 t rset
35205 :rset
35206 s/^[ ]*#[ ]*define[ ][ ]*//
35207 t ok
35208 d
35209 :ok
35210 s/[\\&,]/\\&/g
35211 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35212 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35213 ' >>conftest.defines
35214
35215# Remove the space that was appended to ease matching.
35216# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035217# example, in the case of _POSIX_SOURCE, which is predefined and required
35218# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035219# (The regexp can be short, since the line contains either #define or #undef.)
35220echo 's/ $//
35221s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035222
Reid Spencera773bd52006-08-04 18:18:08 +000035223# Break up conftest.defines:
35224ac_max_sed_lines=50
35225
35226# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35227# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35228# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35229# et cetera.
35230ac_in='$ac_file_inputs'
35231ac_out='"$tmp/out1"'
35232ac_nxt='"$tmp/out2"'
35233
35234while :
John Criswell7a73b802003-06-30 21:59:07 +000035235do
Reid Spencera773bd52006-08-04 18:18:08 +000035236 # Write a here document:
35237 cat >>$CONFIG_STATUS <<_ACEOF
35238 # First, check the format of the line:
35239 cat >"\$tmp/defines.sed" <<\\CEOF
35240/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35241/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35242b
35243:def
35244_ACEOF
35245 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035246 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035247 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35248 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35249 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35250 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035251 rm -f conftest.defines
35252 mv conftest.tail conftest.defines
35253done
Reid Spencera773bd52006-08-04 18:18:08 +000035254rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035255
Reid Spencera773bd52006-08-04 18:18:08 +000035256echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035257cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035258 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035259 echo "/* $configure_input */" >"$tmp/config.h"
35260 cat "$ac_result" >>"$tmp/config.h"
35261 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035262 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35263echo "$as_me: $ac_file is unchanged" >&6;}
35264 else
John Criswell7a73b802003-06-30 21:59:07 +000035265 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035266 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035267 fi
35268 else
Reid Spencera773bd52006-08-04 18:18:08 +000035269 echo "/* $configure_input */"
35270 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035271 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035272 rm -f "$tmp/out12"
35273 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035274
Reid Spencera773bd52006-08-04 18:18:08 +000035275 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35276echo "$as_me: executing $ac_file commands" >&6;}
35277 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035278 esac
John Criswell7a73b802003-06-30 21:59:07 +000035279
Reid Spencera773bd52006-08-04 18:18:08 +000035280
35281 case $ac_file$ac_mode in
35282 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35283 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35284 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35285 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35286 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35287 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35288 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35289 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035290 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35291 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035292 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35293 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35294 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35295 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035296 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35297 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035298 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35299 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35300 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35301 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35302 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35303 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035304 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35305 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35306 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35307 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035308
35309 esac
35310done # for ac_tag
35311
John Criswell7a73b802003-06-30 21:59:07 +000035312
35313{ (exit 0); exit 0; }
35314_ACEOF
35315chmod +x $CONFIG_STATUS
35316ac_clean_files=$ac_clean_files_save
35317
35318
35319# configure is writing to config.log, and then calls config.status.
35320# config.status does its own redirection, appending to config.log.
35321# Unfortunately, on DOS this fails, as config.log is still kept open
35322# by configure, so config.status won't be able to write to it; its
35323# output is simply discarded. So we exec the FD to /dev/null,
35324# effectively closing config.log, so it can be properly (re)opened and
35325# appended to by config.status. When coming back to configure, we
35326# need to make the FD available again.
35327if test "$no_create" != yes; then
35328 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035329 ac_config_status_args=
35330 test "$silent" = yes &&
35331 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035332 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035334 exec 5>>config.log
35335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35336 # would make configure fail if this is the last instruction.
35337 $ac_cs_success || { (exit 1); exit 1; }
35338fi
35339
John Criswell12399a12003-09-30 15:55:44 +000035340#
35341# CONFIG_SUBDIRS section.
35342#
35343if test "$no_recursion" != yes; then
35344
35345 # Remove --cache-file and --srcdir arguments so they do not pile up.
35346 ac_sub_configure_args=
35347 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035348 eval "set x $ac_configure_args"
35349 shift
35350 for ac_arg
35351 do
John Criswell12399a12003-09-30 15:55:44 +000035352 if test -n "$ac_prev"; then
35353 ac_prev=
35354 continue
35355 fi
35356 case $ac_arg in
35357 -cache-file | --cache-file | --cache-fil | --cache-fi \
35358 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35359 ac_prev=cache_file ;;
35360 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35361 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35362 | --c=*)
35363 ;;
35364 --config-cache | -C)
35365 ;;
35366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35367 ac_prev=srcdir ;;
35368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35369 ;;
35370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35371 ac_prev=prefix ;;
35372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035374 *)
35375 case $ac_arg in
35376 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35377 esac
35378 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035379 esac
35380 done
35381
35382 # Always prepend --prefix to ensure using the same prefix
35383 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035384 ac_arg="--prefix=$prefix"
35385 case $ac_arg in
35386 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35387 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035388 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035389
35390 ac_popdir=`pwd`
35391 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35392
35393 # Do not complain, so a configure script can configure whichever
35394 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035395 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035396
Reid Spencera773bd52006-08-04 18:18:08 +000035397 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35398 echo "$as_me:$LINENO: $ac_msg" >&5
35399 echo "$ac_msg" >&6
35400 { as_dir="$ac_dir"
35401 case $as_dir in #(
35402 -*) as_dir=./$as_dir;;
35403 esac
35404 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035405 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035406 while :; do
35407 case $as_dir in #(
35408 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35409 *) as_qdir=$as_dir;;
35410 esac
35411 as_dirs="'$as_qdir' $as_dirs"
35412 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035413$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035414 X"$as_dir" : 'X\(//\)[^/]' \| \
35415 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035417echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35419 s//\1/
35420 q
35421 }
35422 /^X\(\/\/\)[^/].*/{
35423 s//\1/
35424 q
35425 }
35426 /^X\(\/\/\)$/{
35427 s//\1/
35428 q
35429 }
35430 /^X\(\/\).*/{
35431 s//\1/
35432 q
35433 }
35434 s/.*/./; q'`
35435 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035436 done
Reid Spencera773bd52006-08-04 18:18:08 +000035437 test -z "$as_dirs" || eval "mkdir $as_dirs"
35438 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35439echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035440 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035441 ac_builddir=.
35442
Reid Spencera773bd52006-08-04 18:18:08 +000035443case "$ac_dir" in
35444.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35445*)
John Criswell12399a12003-09-30 15:55:44 +000035446 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035447 # A ".." for each directory in $ac_dir_suffix.
35448 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35449 case $ac_top_builddir_sub in
35450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35452 esac ;;
35453esac
35454ac_abs_top_builddir=$ac_pwd
35455ac_abs_builddir=$ac_pwd$ac_dir_suffix
35456# for backward compatibility:
35457ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035458
35459case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035460 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035461 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035462 ac_top_srcdir=$ac_top_builddir_sub
35463 ac_abs_top_srcdir=$ac_pwd ;;
35464 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035465 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035466 ac_top_srcdir=$srcdir
35467 ac_abs_top_srcdir=$srcdir ;;
35468 *) # Relative name.
35469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35470 ac_top_srcdir=$ac_top_build_prefix$srcdir
35471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035472esac
Reid Spencera773bd52006-08-04 18:18:08 +000035473ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035474
35475
Reid Spencera773bd52006-08-04 18:18:08 +000035476 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035477
35478 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035479 if test -f "$ac_srcdir/configure.gnu"; then
35480 ac_sub_configure=$ac_srcdir/configure.gnu
35481 elif test -f "$ac_srcdir/configure"; then
35482 ac_sub_configure=$ac_srcdir/configure
35483 elif test -f "$ac_srcdir/configure.in"; then
35484 # This should be Cygnus configure.
35485 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035486 else
35487 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35488echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35489 ac_sub_configure=
35490 fi
35491
35492 # The recursion is here.
35493 if test -n "$ac_sub_configure"; then
35494 # Make the cache file name correct relative to the subdirectory.
35495 case $cache_file in
35496 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035497 *) # Relative name.
35498 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035499 esac
35500
Reid Spencera773bd52006-08-04 18:18:08 +000035501 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35502echo "$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 +000035503 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035504 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35505 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035506 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035507echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35508 { (exit 1); exit 1; }; }
35509 fi
35510
Reid Spencera773bd52006-08-04 18:18:08 +000035511 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035512 done
35513fi
35514