blob: fce0ba2ed4d853ec2d82e5cce92d8a4a6c8f2c9b [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
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
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
Reid Spencera773bd52006-08-04 18:18:08 +0000930LIBOBJS
931LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000932ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000933 ac_precious_vars='build_alias
934host_alias
935target_alias
936CC
937CFLAGS
938LDFLAGS
939CPPFLAGS
940CPP
941CXX
942CXXFLAGS
943CCC
Reid Spencera773bd52006-08-04 18:18:08 +0000944CXXCPP
945F77
946FFLAGS'
947ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000948projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000949projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000950projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000951projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000952projects/llvm-reopt
953projects/llvm-gcc
954projects/llvm-java
955projects/llvm-tv
956projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000957projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000958projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000959
960# Initialize some variables set by options.
961ac_init_help=
962ac_init_version=false
963# The variables have the same names as the options, with
964# dashes changed to underlines.
965cache_file=/dev/null
966exec_prefix=NONE
967no_create=
968no_recursion=
969prefix=NONE
970program_prefix=NONE
971program_suffix=NONE
972program_transform_name=s,x,x,
973silent=
974site=
975srcdir=
976verbose=
977x_includes=NONE
978x_libraries=NONE
979
980# Installation directory options.
981# These are left unexpanded so users can "make install exec_prefix=/foo"
982# and all the variables that are supposed to be based on exec_prefix
983# by default will actually change.
984# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000985# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000986bindir='${exec_prefix}/bin'
987sbindir='${exec_prefix}/sbin'
988libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000989datarootdir='${prefix}/share'
990datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000991sysconfdir='${prefix}/etc'
992sharedstatedir='${prefix}/com'
993localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000994includedir='${prefix}/include'
995oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000996docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
997infodir='${datarootdir}/info'
998htmldir='${docdir}'
999dvidir='${docdir}'
1000pdfdir='${docdir}'
1001psdir='${docdir}'
1002libdir='${exec_prefix}/lib'
1003localedir='${datarootdir}/locale'
1004mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001005
1006ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001007ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001008for ac_option
1009do
1010 # If the previous option needs an argument, assign it.
1011 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001012 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001013 ac_prev=
1014 continue
1015 fi
1016
Reid Spencera773bd52006-08-04 18:18:08 +00001017 case $ac_option in
1018 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1019 *) ac_optarg=yes ;;
1020 esac
John Criswell7a73b802003-06-30 21:59:07 +00001021
1022 # Accept the important Cygnus configure options, so we can diagnose typos.
1023
Reid Spencera773bd52006-08-04 18:18:08 +00001024 case $ac_dashdash$ac_option in
1025 --)
1026 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1029 ac_prev=bindir ;;
1030 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1031 bindir=$ac_optarg ;;
1032
1033 -build | --build | --buil | --bui | --bu)
1034 ac_prev=build_alias ;;
1035 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1036 build_alias=$ac_optarg ;;
1037
1038 -cache-file | --cache-file | --cache-fil | --cache-fi \
1039 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1040 ac_prev=cache_file ;;
1041 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1042 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1043 cache_file=$ac_optarg ;;
1044
1045 --config-cache | -C)
1046 cache_file=config.cache ;;
1047
Reid Spencera773bd52006-08-04 18:18:08 +00001048 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001049 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001050 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001051 datadir=$ac_optarg ;;
1052
Reid Spencera773bd52006-08-04 18:18:08 +00001053 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1054 | --dataroo | --dataro | --datar)
1055 ac_prev=datarootdir ;;
1056 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1057 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1058 datarootdir=$ac_optarg ;;
1059
John Criswell7a73b802003-06-30 21:59:07 +00001060 -disable-* | --disable-*)
1061 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001063 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001064 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1065 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001066 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001067 eval enable_$ac_feature=no ;;
1068
1069 -docdir | --docdir | --docdi | --doc | --do)
1070 ac_prev=docdir ;;
1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1072 docdir=$ac_optarg ;;
1073
1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1075 ac_prev=dvidir ;;
1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1077 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079 -enable-* | --enable-*)
1080 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001082 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001083 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1084 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001085 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001086 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001087
1088 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090 | --exec | --exe | --ex)
1091 ac_prev=exec_prefix ;;
1092 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094 | --exec=* | --exe=* | --ex=*)
1095 exec_prefix=$ac_optarg ;;
1096
1097 -gas | --gas | --ga | --g)
1098 # Obsolete; use --with-gas.
1099 with_gas=yes ;;
1100
1101 -help | --help | --hel | --he | -h)
1102 ac_init_help=long ;;
1103 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104 ac_init_help=recursive ;;
1105 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106 ac_init_help=short ;;
1107
1108 -host | --host | --hos | --ho)
1109 ac_prev=host_alias ;;
1110 -host=* | --host=* | --hos=* | --ho=*)
1111 host_alias=$ac_optarg ;;
1112
Reid Spencera773bd52006-08-04 18:18:08 +00001113 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114 ac_prev=htmldir ;;
1115 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116 | --ht=*)
1117 htmldir=$ac_optarg ;;
1118
John Criswell7a73b802003-06-30 21:59:07 +00001119 -includedir | --includedir | --includedi | --included | --include \
1120 | --includ | --inclu | --incl | --inc)
1121 ac_prev=includedir ;;
1122 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123 | --includ=* | --inclu=* | --incl=* | --inc=*)
1124 includedir=$ac_optarg ;;
1125
1126 -infodir | --infodir | --infodi | --infod | --info | --inf)
1127 ac_prev=infodir ;;
1128 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129 infodir=$ac_optarg ;;
1130
1131 -libdir | --libdir | --libdi | --libd)
1132 ac_prev=libdir ;;
1133 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134 libdir=$ac_optarg ;;
1135
1136 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137 | --libexe | --libex | --libe)
1138 ac_prev=libexecdir ;;
1139 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140 | --libexe=* | --libex=* | --libe=*)
1141 libexecdir=$ac_optarg ;;
1142
Reid Spencera773bd52006-08-04 18:18:08 +00001143 -localedir | --localedir | --localedi | --localed | --locale)
1144 ac_prev=localedir ;;
1145 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146 localedir=$ac_optarg ;;
1147
John Criswell7a73b802003-06-30 21:59:07 +00001148 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001149 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001150 ac_prev=localstatedir ;;
1151 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001152 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001153 localstatedir=$ac_optarg ;;
1154
1155 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156 ac_prev=mandir ;;
1157 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158 mandir=$ac_optarg ;;
1159
1160 -nfp | --nfp | --nf)
1161 # Obsolete; use --without-fp.
1162 with_fp=no ;;
1163
1164 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165 | --no-cr | --no-c | -n)
1166 no_create=yes ;;
1167
1168 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170 no_recursion=yes ;;
1171
1172 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174 | --oldin | --oldi | --old | --ol | --o)
1175 ac_prev=oldincludedir ;;
1176 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179 oldincludedir=$ac_optarg ;;
1180
1181 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182 ac_prev=prefix ;;
1183 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184 prefix=$ac_optarg ;;
1185
1186 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187 | --program-pre | --program-pr | --program-p)
1188 ac_prev=program_prefix ;;
1189 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191 program_prefix=$ac_optarg ;;
1192
1193 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194 | --program-suf | --program-su | --program-s)
1195 ac_prev=program_suffix ;;
1196 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198 program_suffix=$ac_optarg ;;
1199
1200 -program-transform-name | --program-transform-name \
1201 | --program-transform-nam | --program-transform-na \
1202 | --program-transform-n | --program-transform- \
1203 | --program-transform | --program-transfor \
1204 | --program-transfo | --program-transf \
1205 | --program-trans | --program-tran \
1206 | --progr-tra | --program-tr | --program-t)
1207 ac_prev=program_transform_name ;;
1208 -program-transform-name=* | --program-transform-name=* \
1209 | --program-transform-nam=* | --program-transform-na=* \
1210 | --program-transform-n=* | --program-transform-=* \
1211 | --program-transform=* | --program-transfor=* \
1212 | --program-transfo=* | --program-transf=* \
1213 | --program-trans=* | --program-tran=* \
1214 | --progr-tra=* | --program-tr=* | --program-t=*)
1215 program_transform_name=$ac_optarg ;;
1216
Reid Spencera773bd52006-08-04 18:18:08 +00001217 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218 ac_prev=pdfdir ;;
1219 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220 pdfdir=$ac_optarg ;;
1221
1222 -psdir | --psdir | --psdi | --psd | --ps)
1223 ac_prev=psdir ;;
1224 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225 psdir=$ac_optarg ;;
1226
John Criswell7a73b802003-06-30 21:59:07 +00001227 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228 | -silent | --silent | --silen | --sile | --sil)
1229 silent=yes ;;
1230
1231 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232 ac_prev=sbindir ;;
1233 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234 | --sbi=* | --sb=*)
1235 sbindir=$ac_optarg ;;
1236
1237 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239 | --sharedst | --shareds | --shared | --share | --shar \
1240 | --sha | --sh)
1241 ac_prev=sharedstatedir ;;
1242 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245 | --sha=* | --sh=*)
1246 sharedstatedir=$ac_optarg ;;
1247
1248 -site | --site | --sit)
1249 ac_prev=site ;;
1250 -site=* | --site=* | --sit=*)
1251 site=$ac_optarg ;;
1252
1253 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254 ac_prev=srcdir ;;
1255 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256 srcdir=$ac_optarg ;;
1257
1258 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259 | --syscon | --sysco | --sysc | --sys | --sy)
1260 ac_prev=sysconfdir ;;
1261 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263 sysconfdir=$ac_optarg ;;
1264
1265 -target | --target | --targe | --targ | --tar | --ta | --t)
1266 ac_prev=target_alias ;;
1267 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268 target_alias=$ac_optarg ;;
1269
1270 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271 verbose=yes ;;
1272
1273 -version | --version | --versio | --versi | --vers | -V)
1274 ac_init_version=: ;;
1275
1276 -with-* | --with-*)
1277 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001282 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001283 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001284
1285 -without-* | --without-*)
1286 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001288 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001289 { echo "$as_me: error: invalid package name: $ac_package" >&2
1290 { (exit 1); exit 1; }; }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001291 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001292 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1303 x_includes=$ac_optarg ;;
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1310 x_libraries=$ac_optarg ;;
1311
1312 -*) { echo "$as_me: error: unrecognized option: $ac_option
1313Try \`$0 --help' for more information." >&2
1314 { (exit 1); exit 1; }; }
1315 ;;
1316
1317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
1320 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1321 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1322 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001323 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001324 export $ac_envvar ;;
1325
1326 *)
1327 # FIXME: should be removed in autoconf 3.0.
1328 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1330 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1339 { echo "$as_me: error: missing argument to $ac_option" >&2
1340 { (exit 1); exit 1; }; }
1341fi
1342
Reid Spencera773bd52006-08-04 18:18:08 +00001343# Be sure to have absolute directory names.
1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001348do
Reid Spencera773bd52006-08-04 18:18:08 +00001349 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001350 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001351 [\\/$]* | ?:[\\/]* ) continue;;
1352 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001353 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001354 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1355 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001356done
1357
1358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
1364
1365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
1369 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used." >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1372 cross_compiling=yes
1373 fi
1374fi
1375
1376ac_tool_prefix=
1377test -n "$host_alias" && ac_tool_prefix=$host_alias-
1378
1379test "$silent" = yes && exec 6>/dev/null
1380
1381
Reid Spencera773bd52006-08-04 18:18:08 +00001382ac_pwd=`pwd` && test -n "$ac_pwd" &&
1383ac_ls_di=`ls -di .` &&
1384ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1385 { echo "$as_me: error: Working directory cannot be determined" >&2
1386 { (exit 1); exit 1; }; }
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 { echo "$as_me: error: pwd does not report name of working directory" >&2
1389 { (exit 1); exit 1; }; }
1390
1391
John Criswell7a73b802003-06-30 21:59:07 +00001392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001397$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001398 X"$0" : 'X\(//\)[^/]' \| \
1399 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001401echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001419 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001420 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
Reid Spencera773bd52006-08-04 18:18:08 +00001426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001429 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001430fi
Reid Spencera773bd52006-08-04 18:18:08 +00001431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001434 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001435 pwd)`
1436# When building in place, set srcdir=.
1437if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 srcdir=.
1439fi
1440# Remove unnecessary trailing slashes from srcdir.
1441# Double slashes in file names in object file debugging info
1442# mess up M-x gdb in Emacs.
1443case $srcdir in
1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445esac
1446for ac_var in $ac_precious_vars; do
1447 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_env_${ac_var}_value=\$${ac_var}
1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1451done
John Criswell7a73b802003-06-30 21:59:07 +00001452
1453#
1454# Report the --help message.
1455#
1456if test "$ac_init_help" = "long"; then
1457 # Omit some internal or obsolete options to make the list less imposing.
1458 # This message is too long to be a string in the A/UX 3.1 sh.
1459 cat <<_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001460\`configure' configures llvm 2.6svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001461
1462Usage: $0 [OPTION]... [VAR=VALUE]...
1463
1464To assign environment variables (e.g., CC, CFLAGS...), specify them as
1465VAR=VALUE. See below for descriptions of some of the useful variables.
1466
1467Defaults for the options are specified in brackets.
1468
1469Configuration:
1470 -h, --help display this help and exit
1471 --help=short display options specific to this package
1472 --help=recursive display the short help of all the included packages
1473 -V, --version display version information and exit
1474 -q, --quiet, --silent do not print \`checking...' messages
1475 --cache-file=FILE cache test results in FILE [disabled]
1476 -C, --config-cache alias for \`--cache-file=config.cache'
1477 -n, --no-create do not create output files
1478 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479
John Criswell7a73b802003-06-30 21:59:07 +00001480Installation directories:
1481 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001482 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001484 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001485
1486By default, \`make install' will install all the files in
1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1488an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1489for instance \`--prefix=\$HOME'.
1490
1491For better control, use the options below.
1492
1493Fine tuning of the installation directories:
1494 --bindir=DIR user executables [EPREFIX/bin]
1495 --sbindir=DIR system admin executables [EPREFIX/sbin]
1496 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520 --target=TARGET configure for building compilers for TARGET [HOST]
1521_ACEOF
1522fi
1523
1524if test -n "$ac_init_help"; then
1525 case $ac_init_help in
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001526 short | recursive ) echo "Configuration of llvm 2.6svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001527 esac
1528 cat <<\_ACEOF
1529
1530Optional Features:
1531 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1532 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001533 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001534 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001535 --enable-expensive-checks
1536
Reid Spencer8b2e1412006-11-17 03:32:33 +00001537 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001538 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001539 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001540 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001541 --enable-pic Build LLVM with Position Independent Code (default
Nick Lewycky5d249572009-02-19 06:18:56 +00001542 is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001543 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001544 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001545 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1546 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001547 --enable-bindings Build specific language bindings:
1548 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001549 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001550 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001551 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001553 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001554 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001555 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001556 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001557 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001558
1559Optional Packages:
1560 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1561 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001562 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1563 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001564 --with-llvmgcc Specify location of llvm-gcc driver (default
1565 searches PATH)
1566 --with-llvmgxx Specify location of llvm-g++ driver (default
1567 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001568 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001569 --with-ocaml-libdir Specify install location for ocaml bindings (default
1570 is stdlib)
Nick Lewyckye792b1d2009-02-03 07:10:30 +00001571 --with-binutils-include Specify path to binutils/include/ containing
1572 plugin-api.h file for gold plugin.
Reid Spencer0fcb9412004-11-30 08:11:54 +00001573 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001577 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001578 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001579
1580Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001581 CC C compiler command
1582 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001587 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001590 CXXCPP C++ preprocessor
1591 F77 Fortran 77 compiler command
1592 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
1597Report bugs to <llvmbugs@cs.uiuc.edu>.
1598_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001599ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001605 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001606 ac_builddir=.
1607
Reid Spencera773bd52006-08-04 18:18:08 +00001608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001623
1624case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001625 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001626 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001630 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001637esac
Reid Spencera773bd52006-08-04 18:18:08 +00001638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001639
Reid Spencera773bd52006-08-04 18:18:08 +00001640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001648 else
1649 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001652 done
1653fi
1654
Reid Spencera773bd52006-08-04 18:18:08 +00001655test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001656if $ac_init_version; then
1657 cat <<\_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001658llvm configure 2.6svn
1659generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001660
Reid Spencera773bd52006-08-04 18:18:08 +00001661Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16622002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001663This configure script is free software; the Free Software Foundation
1664gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001665
Tanya Lattnercf067672008-01-17 05:57:22 +00001666Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001667_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001668 exit
John Criswell7a73b802003-06-30 21:59:07 +00001669fi
Reid Spencera773bd52006-08-04 18:18:08 +00001670cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001671This file contains any messages produced by compilers while
1672running configure, to aid debugging if configure makes a mistake.
1673
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00001674It was created by llvm $as_me 2.6svn, which was
1675generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001676
1677 $ $0 $@
1678
1679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001680exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001681{
1682cat <<_ASUNAME
1683## --------- ##
1684## Platform. ##
1685## --------- ##
1686
1687hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1688uname -m = `(uname -m) 2>/dev/null || echo unknown`
1689uname -r = `(uname -r) 2>/dev/null || echo unknown`
1690uname -s = `(uname -s) 2>/dev/null || echo unknown`
1691uname -v = `(uname -v) 2>/dev/null || echo unknown`
1692
1693/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1694/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1695
1696/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1697/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1698/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001699/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001700/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1701/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1702/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1703
1704_ASUNAME
1705
1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707for as_dir in $PATH
1708do
1709 IFS=$as_save_IFS
1710 test -z "$as_dir" && as_dir=.
1711 echo "PATH: $as_dir"
1712done
Reid Spencera773bd52006-08-04 18:18:08 +00001713IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001714
1715} >&5
1716
1717cat >&5 <<_ACEOF
1718
1719
1720## ----------- ##
1721## Core tests. ##
1722## ----------- ##
1723
1724_ACEOF
1725
1726
1727# Keep a trace of the command line.
1728# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001729# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001730# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001731# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001732ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001733ac_configure_args0=
1734ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001735ac_must_keep_next=false
1736for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001737do
John Criswell0c38eaf2003-09-10 15:17:25 +00001738 for ac_arg
1739 do
1740 case $ac_arg in
1741 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1742 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1743 | -silent | --silent | --silen | --sile | --sil)
1744 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001745 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001746 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1747 esac
1748 case $ac_pass in
1749 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1750 2)
1751 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1752 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001753 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001754 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001755 case $ac_arg in
1756 *=* | --config-cache | -C | -disable-* | --disable-* \
1757 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1758 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1759 | -with-* | --with-* | -without-* | --without-* | --x)
1760 case "$ac_configure_args0 " in
1761 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1762 esac
1763 ;;
1764 -* ) ac_must_keep_next=true ;;
1765 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001766 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001767 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001768 ;;
1769 esac
1770 done
John Criswell7a73b802003-06-30 21:59:07 +00001771done
John Criswell0c38eaf2003-09-10 15:17:25 +00001772$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1773$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001774
1775# When interrupted or exit'd, cleanup temporary files, and complete
1776# config.log. We remove comments because anyway the quotes in there
1777# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001778# WARNING: Use '\'' to represent an apostrophe within the trap.
1779# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001780trap 'exit_status=$?
1781 # Save into config.log some information that might help in debugging.
1782 {
1783 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001784
John Criswell7a73b802003-06-30 21:59:07 +00001785 cat <<\_ASBOX
1786## ---------------- ##
1787## Cache variables. ##
1788## ---------------- ##
1789_ASBOX
1790 echo
1791 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001792(
1793 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1794 eval ac_val=\$$ac_var
1795 case $ac_val in #(
1796 *${as_nl}*)
1797 case $ac_var in #(
1798 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1799echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1800 esac
1801 case $ac_var in #(
1802 _ | IFS | as_nl) ;; #(
1803 *) $as_unset $ac_var ;;
1804 esac ;;
1805 esac
1806 done
John Criswell7a73b802003-06-30 21:59:07 +00001807 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001808 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1809 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001810 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001811 "s/'\''/'\''\\\\'\'''\''/g;
1812 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1813 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001814 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001815 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001817 esac |
1818 sort
1819)
John Criswell7a73b802003-06-30 21:59:07 +00001820 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001821
1822 cat <<\_ASBOX
1823## ----------------- ##
1824## Output variables. ##
1825## ----------------- ##
1826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_vars
1829 do
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 done | sort
1836 echo
1837
1838 if test -n "$ac_subst_files"; then
1839 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001840## ------------------- ##
1841## File substitutions. ##
1842## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001843_ASBOX
1844 echo
1845 for ac_var in $ac_subst_files
1846 do
Reid Spencera773bd52006-08-04 18:18:08 +00001847 eval ac_val=\$$ac_var
1848 case $ac_val in
1849 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1850 esac
1851 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001852 done | sort
1853 echo
1854 fi
1855
John Criswell7a73b802003-06-30 21:59:07 +00001856 if test -s confdefs.h; then
1857 cat <<\_ASBOX
1858## ----------- ##
1859## confdefs.h. ##
1860## ----------- ##
1861_ASBOX
1862 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001863 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001864 echo
1865 fi
1866 test "$ac_signal" != 0 &&
1867 echo "$as_me: caught signal $ac_signal"
1868 echo "$as_me: exit $exit_status"
1869 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001870 rm -f core *.core core.conftest.* &&
1871 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001872 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001873' 0
John Criswell7a73b802003-06-30 21:59:07 +00001874for ac_signal in 1 2 13 15; do
1875 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1876done
1877ac_signal=0
1878
1879# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001880rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001881
1882# Predefined preprocessor variables.
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_NAME "$PACKAGE_NAME"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1891_ACEOF
1892
1893
1894cat >>confdefs.h <<_ACEOF
1895#define PACKAGE_VERSION "$PACKAGE_VERSION"
1896_ACEOF
1897
1898
1899cat >>confdefs.h <<_ACEOF
1900#define PACKAGE_STRING "$PACKAGE_STRING"
1901_ACEOF
1902
1903
1904cat >>confdefs.h <<_ACEOF
1905#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1906_ACEOF
1907
1908
1909# Let the site file select an alternate cache file if it wants to.
1910# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001911if test -n "$CONFIG_SITE"; then
1912 set x "$CONFIG_SITE"
1913elif test "x$prefix" != xNONE; then
1914 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1915else
1916 set x "$ac_default_prefix/share/config.site" \
1917 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001918fi
Reid Spencera773bd52006-08-04 18:18:08 +00001919shift
1920for ac_site_file
1921do
John Criswell7a73b802003-06-30 21:59:07 +00001922 if test -r "$ac_site_file"; then
1923 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924echo "$as_me: loading site script $ac_site_file" >&6;}
1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
1934 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935echo "$as_me: loading cache $cache_file" >&6;}
1936 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001939 esac
1940 fi
1941else
1942 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943echo "$as_me: creating cache $cache_file" >&6;}
1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001950for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001955 case $ac_old_set,$ac_new_set in
1956 set,)
1957 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1959 ac_cache_corrupted=: ;;
1960 ,set)
1961 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001967 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001968echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001969 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001970echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001971 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001972echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001973 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001974 fi;;
1975 esac
1976 # Pass precious variables to config.status.
1977 if test "$ac_new_set" = set; then
1978 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001979 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001980 *) ac_arg=$ac_var=$ac_new_val ;;
1981 esac
1982 case " $ac_configure_args " in
1983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1984 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1985 esac
1986 fi
1987done
1988if $ac_cache_corrupted; then
1989 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1990echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1991 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1992echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1993 { (exit 1); exit 1; }; }
1994fi
1995
Reid Spencera773bd52006-08-04 18:18:08 +00001996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
John Criswell7a73b802003-06-30 21:59:07 +00002020ac_ext=c
2021ac_cpp='$CPP $CPPFLAGS'
2022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025
2026
2027
Tanya Lattnercf067672008-01-17 05:57:22 +00002028LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029
2030
2031
2032
2033
2034
2035
John Criswell7a73b802003-06-30 21:59:07 +00002036ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002037for ac_dir in autoconf "$srcdir"/autoconf; do
2038 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install-sh -c"
2041 break
Reid Spencera773bd52006-08-04 18:18:08 +00002042 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/install.sh -c"
2045 break
Reid Spencera773bd52006-08-04 18:18:08 +00002046 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002047 ac_aux_dir=$ac_dir
2048 ac_install_sh="$ac_aux_dir/shtool install -c"
2049 break
2050 fi
2051done
2052if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002053 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2054echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002055 { (exit 1); exit 1; }; }
2056fi
Reid Spencera773bd52006-08-04 18:18:08 +00002057
2058# These three variables are undocumented and unsupported,
2059# and are intended to be withdrawn in a future Autoconf release.
2060# They can cause serious problems if a builder's source tree is in a directory
2061# whose full name contains unusual characters.
2062ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2063ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2064ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2065
John Criswell7a73b802003-06-30 21:59:07 +00002066
John Criswell392aaa32003-07-22 19:18:09 +00002067
Reid Spencer2706f8c2004-09-19 23:53:36 +00002068if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2070 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002071echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2072 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002073 fi
John Criswell93e1c722003-09-15 17:04:06 +00002074fi
2075
John Criswell33a911a2003-11-25 20:36:46 +00002076for i in `ls ${srcdir}/projects`
2077do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002078 if test -d ${srcdir}/projects/${i} ; then
2079 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 CVS) ;;
2081 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002082 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002083 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002084 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002085 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002087 # llvm-test is the old name of the test-suite, kept here for backwards
2088 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002089 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002090 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002091 test-suite) subdirs="$subdirs projects/test-suite"
2092 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002093 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002094;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002095 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002096 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002097 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002098 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002100 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002101 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002102 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002103 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002104 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002105 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002106 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002107 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002108 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2109echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002110 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002111 esac
John Criswell33a911a2003-11-25 20:36:46 +00002112 fi
2113done
John Criswell559a6c12003-09-30 16:31:48 +00002114
John Criswell7a73b802003-06-30 21:59:07 +00002115
2116# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002120 { (exit 1); exit 1; }; }
2121
Reid Spencera773bd52006-08-04 18:18:08 +00002122{ echo "$as_me:$LINENO: checking build system type" >&5
2123echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002124if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126else
Reid Spencera773bd52006-08-04 18:18:08 +00002127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002137 { (exit 1); exit 1; }; }
2138
2139fi
Reid Spencera773bd52006-08-04 18:18:08 +00002140{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141echo "${ECHO_T}$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
2144*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147esac
John Criswell7a73b802003-06-30 21:59:07 +00002148build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002160
2161
Reid Spencera773bd52006-08-04 18:18:08 +00002162{ echo "$as_me:$LINENO: checking host system type" >&5
2163echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002164if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166else
Reid Spencera773bd52006-08-04 18:18:08 +00002167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002173 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002174fi
John Criswell7a73b802003-06-30 21:59:07 +00002175
2176fi
Reid Spencera773bd52006-08-04 18:18:08 +00002177{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178echo "${ECHO_T}$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
2181*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184esac
John Criswell7a73b802003-06-30 21:59:07 +00002185host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002197
2198
Reid Spencera773bd52006-08-04 18:18:08 +00002199{ echo "$as_me:$LINENO: checking target system type" >&5
2200echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002201if test "${ac_cv_target+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
Reid Spencera773bd52006-08-04 18:18:08 +00002204 if test "x$target_alias" = x; then
2205 ac_cv_target=$ac_cv_host
2206else
2207 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2208 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2209echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002210 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002211fi
John Criswell7a73b802003-06-30 21:59:07 +00002212
2213fi
Reid Spencera773bd52006-08-04 18:18:08 +00002214{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2215echo "${ECHO_T}$ac_cv_target" >&6; }
2216case $ac_cv_target in
2217*-*-*) ;;
2218*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2219echo "$as_me: error: invalid value of canonical target" >&2;}
2220 { (exit 1); exit 1; }; };;
2221esac
John Criswell7a73b802003-06-30 21:59:07 +00002222target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002223ac_save_IFS=$IFS; IFS='-'
2224set x $ac_cv_target
2225shift
2226target_cpu=$1
2227target_vendor=$2
2228shift; shift
2229# Remember, the first character of IFS is used to create $*,
2230# except with old shells:
2231target_os=$*
2232IFS=$ac_save_IFS
2233case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002234
2235
2236# The aliases save the names the user supplied, while $host etc.
2237# will get canonicalized.
2238test -n "$target_alias" &&
2239 test "$program_prefix$program_suffix$program_transform_name" = \
2240 NONENONEs,x,x, &&
2241 program_prefix=${target_alias}-
2242
Reid Spencera773bd52006-08-04 18:18:08 +00002243{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2244echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002248 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002252 llvm_cv_os_type="AIX"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002254 *-*-irix*)
2255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2257 llvm_cv_os_type="IRIX"
2258 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002259 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="Cygwin"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002266 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 llvm_cv_os_type="Darwin"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="FreeBSD"
2273 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002274 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002277 llvm_cv_os_type="OpenBSD"
2278 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002279 *-*-netbsd*)
2280 llvm_cv_link_all_option="-Wl,--whole-archive"
2281 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2282 llvm_cv_os_type="NetBSD"
2283 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002284 *-*-dragonfly*)
2285 llvm_cv_link_all_option="-Wl,--whole-archive"
2286 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2287 llvm_cv_os_type="DragonFly"
2288 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002289 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002290 llvm_cv_link_all_option="-Wl,--whole-archive"
2291 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002292 llvm_cv_os_type="HP-UX"
2293 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002294 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002295 llvm_cv_link_all_option="-Wl,--whole-archive"
2296 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002297 llvm_cv_os_type="Interix"
2298 llvm_cv_platform_type="Unix" ;;
2299 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002300 llvm_cv_link_all_option="-Wl,--whole-archive"
2301 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302 llvm_cv_os_type="Linux"
2303 llvm_cv_platform_type="Unix" ;;
2304 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002305 llvm_cv_link_all_option="-Wl,-z,allextract"
2306 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002307 llvm_cv_os_type="SunOS"
2308 llvm_cv_platform_type="Unix" ;;
2309 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002310 llvm_cv_link_all_option="-Wl,--whole-archive"
2311 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312 llvm_cv_os_type="Win32"
2313 llvm_cv_platform_type="Win32" ;;
2314 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002315 llvm_cv_link_all_option="-Wl,--whole-archive"
2316 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 llvm_cv_os_type="MingW"
2318 llvm_cv_platform_type="Win32" ;;
2319 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002320 llvm_cv_link_all_option=""
2321 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002322 llvm_cv_os_type="Unknown"
2323 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002324esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002325fi
Reid Spencera773bd52006-08-04 18:18:08 +00002326{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2327echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002328
Reid Spencer7b3e8512004-12-24 06:29:05 +00002329if test "$llvm_cv_os_type" = "Unknown" ; then
2330 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2331echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002332 { (exit 1); exit 1; }; }
2333fi
2334
Reid Spencer7b3e8512004-12-24 06:29:05 +00002335OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336
2337
Reid Spencera773bd52006-08-04 18:18:08 +00002338LINKALL=$llvm_cv_link_all_option
2339
2340NOLINKALL=$llvm_cv_no_link_all_option
2341
2342
Reid Spencer7b3e8512004-12-24 06:29:05 +00002343case $llvm_cv_platform_type in
2344 Unix)
2345
2346cat >>confdefs.h <<\_ACEOF
2347#define LLVM_ON_UNIX 1
2348_ACEOF
2349
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002350 LLVM_ON_UNIX=1
2351
2352 LLVM_ON_WIN32=0
2353
Reid Spencer7b3e8512004-12-24 06:29:05 +00002354 ;;
2355 Win32)
2356
2357cat >>confdefs.h <<\_ACEOF
2358#define LLVM_ON_WIN32 1
2359_ACEOF
2360
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002361 LLVM_ON_UNIX=0
2362
2363 LLVM_ON_WIN32=1
2364
Reid Spencer7b3e8512004-12-24 06:29:05 +00002365 ;;
2366esac
2367
Reid Spencera773bd52006-08-04 18:18:08 +00002368{ echo "$as_me:$LINENO: checking target architecture" >&5
2369echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370if test "${llvm_cv_target_arch+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372else
2373 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002374 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002375 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002376 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2377 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002378 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002379 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002380 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002381 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002382 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002383 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002384 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002385esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002386fi
Reid Spencera773bd52006-08-04 18:18:08 +00002387{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2388echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002389
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390if test "$llvm_cv_target_arch" = "Unknown" ; then
2391 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2392echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2393fi
John Criswell76595452003-07-01 22:07:39 +00002394
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002396
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002397
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398ac_ext=c
2399ac_cpp='$CPP $CPPFLAGS'
2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2402ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002403if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2405set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408if test "${ac_cv_prog_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410else
2411 if test -n "$CC"; then
2412 ac_cv_prog_CC="$CC" # Let the user override the test.
2413else
2414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415for as_dir in $PATH
2416do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002420 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 +00002421 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425done
2426done
Reid Spencera773bd52006-08-04 18:18:08 +00002427IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428
2429fi
2430fi
2431CC=$ac_cv_prog_CC
2432if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002433 { echo "$as_me:$LINENO: result: $CC" >&5
2434echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002435else
Reid Spencera773bd52006-08-04 18:18:08 +00002436 { echo "$as_me:$LINENO: result: no" >&5
2437echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438fi
2439
Reid Spencera773bd52006-08-04 18:18:08 +00002440
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441fi
2442if test -z "$ac_cv_prog_CC"; then
2443 ac_ct_CC=$CC
2444 # Extract the first word of "gcc", so it can be a program name with args.
2445set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002446{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2447echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002448if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450else
2451 if test -n "$ac_ct_CC"; then
2452 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2453else
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002460 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 +00002461 ac_cv_prog_ac_ct_CC="gcc"
2462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 break 2
2464 fi
2465done
2466done
Reid Spencera773bd52006-08-04 18:18:08 +00002467IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468
2469fi
2470fi
2471ac_ct_CC=$ac_cv_prog_ac_ct_CC
2472if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002473 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2474echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002475else
Reid Spencera773bd52006-08-04 18:18:08 +00002476 { echo "$as_me:$LINENO: result: no" >&5
2477echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002478fi
2479
Reid Spencera773bd52006-08-04 18:18:08 +00002480 if test "x$ac_ct_CC" = x; then
2481 CC=""
2482 else
2483 case $cross_compiling:$ac_tool_warned in
2484yes:)
2485{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2486whose name does not start with the host triplet. If you think this
2487configuration is useful to you, please write to autoconf@gnu.org." >&5
2488echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2489whose name does not start with the host triplet. If you think this
2490configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2491ac_tool_warned=yes ;;
2492esac
2493 CC=$ac_ct_CC
2494 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
2496 CC="$ac_cv_prog_CC"
2497fi
2498
2499if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002500 if test -n "$ac_tool_prefix"; then
2501 # 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 +00002502set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002505if test "${ac_cv_prog_CC+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002517 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 +00002518 ac_cv_prog_CC="${ac_tool_prefix}cc"
2519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523done
Reid Spencera773bd52006-08-04 18:18:08 +00002524IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002530 { echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002532else
Reid Spencera773bd52006-08-04 18:18:08 +00002533 { echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535fi
2536
Reid Spencera773bd52006-08-04 18:18:08 +00002537
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002538 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002539fi
2540if test -z "$CC"; then
2541 # Extract the first word of "cc", so it can be a program name with args.
2542set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002543{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545if test "${ac_cv_prog_CC+set}" = set; then
2546 echo $ECHO_N "(cached) $ECHO_C" >&6
2547else
2548 if test -n "$CC"; then
2549 ac_cv_prog_CC="$CC" # Let the user override the test.
2550else
2551 ac_prog_rejected=no
2552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553for as_dir in $PATH
2554do
2555 IFS=$as_save_IFS
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002558 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 +00002559 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2560 ac_prog_rejected=yes
2561 continue
2562 fi
2563 ac_cv_prog_CC="cc"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2565 break 2
2566 fi
2567done
2568done
Reid Spencera773bd52006-08-04 18:18:08 +00002569IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570
2571if test $ac_prog_rejected = yes; then
2572 # We found a bogon in the path, so make sure we never use it.
2573 set dummy $ac_cv_prog_CC
2574 shift
2575 if test $# != 0; then
2576 # We chose a different compiler from the bogus one.
2577 # However, it has the same basename, so the bogon will be chosen
2578 # first if we set CC to just the basename; use the full file name.
2579 shift
2580 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2581 fi
2582fi
2583fi
2584fi
2585CC=$ac_cv_prog_CC
2586if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002587 { echo "$as_me:$LINENO: result: $CC" >&5
2588echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002589else
Reid Spencera773bd52006-08-04 18:18:08 +00002590 { echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592fi
2593
Reid Spencera773bd52006-08-04 18:18:08 +00002594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002595fi
2596if test -z "$CC"; then
2597 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002598 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002599 do
2600 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2601set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 if test -n "$CC"; then
2608 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002616 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 +00002617 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
Reid Spencera773bd52006-08-04 18:18:08 +00002623IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002624
2625fi
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002629 { echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002631else
Reid Spencera773bd52006-08-04 18:18:08 +00002632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002634fi
2635
Reid Spencera773bd52006-08-04 18:18:08 +00002636
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002638 done
2639fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640if test -z "$CC"; then
2641 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002642 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002643do
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002646{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002648if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002651 if test -n "$ac_ct_CC"; then
2652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002653else
2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002660 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 +00002661 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2664 fi
2665done
2666done
Reid Spencera773bd52006-08-04 18:18:08 +00002667IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002668
2669fi
2670fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002671ac_ct_CC=$ac_cv_prog_ac_ct_CC
2672if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002673 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2674echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002675else
Reid Spencera773bd52006-08-04 18:18:08 +00002676 { echo "$as_me:$LINENO: result: no" >&5
2677echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002678fi
2679
Reid Spencera773bd52006-08-04 18:18:08 +00002680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002682done
John Criswell7a73b802003-06-30 21:59:07 +00002683
Reid Spencera773bd52006-08-04 18:18:08 +00002684 if test "x$ac_ct_CC" = x; then
2685 CC=""
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688yes:)
2689{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690whose name does not start with the host triplet. If you think this
2691configuration is useful to you, please write to autoconf@gnu.org." >&5
2692echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693whose name does not start with the host triplet. If you think this
2694configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695ac_tool_warned=yes ;;
2696esac
2697 CC=$ac_ct_CC
2698 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002699fi
2700
John Criswell7a73b802003-06-30 21:59:07 +00002701fi
2702
2703
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002704test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2705See \`config.log' for more details." >&5
2706echo "$as_me: error: no acceptable C compiler found in \$PATH
2707See \`config.log' for more details." >&2;}
2708 { (exit 1); exit 1; }; }
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002711echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002712ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002713{ (ac_try="$ac_compiler --version >&5"
2714case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2717esac
2718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002723{ (ac_try="$ac_compiler -v >&5"
2724case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002733{ (ac_try="$ac_compiler -V >&5"
2734case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }
2743
2744cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002750
John Criswell7a73b802003-06-30 21:59:07 +00002751int
2752main ()
2753{
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002760ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002761# Try to create an executable without -o first, disregard a.out.
2762# It will help us diagnose broken compilers, and finding out an intuition
2763# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002764{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2765echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002766ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002767#
2768# List of possible output files, starting from the most likely.
2769# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2770# only as a last resort. b.out is created by i960 compilers.
2771ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2772#
2773# The IRIX 6 linker writes into existing files which may not be
2774# executable, retaining their permissions. Remove them first so a
2775# subsequent execution test works.
2776ac_rmfiles=
2777for ac_file in $ac_files
2778do
2779 case $ac_file in
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2781 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2782 esac
2783done
2784rm -f $ac_rmfiles
2785
2786if { (ac_try="$ac_link_default"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002796 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2797# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2798# in a Makefile. We should not override ac_cv_exeext if it was cached,
2799# so that the user can short-circuit this test for compilers unknown to
2800# Autoconf.
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002801for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002802do
2803 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002804 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002806 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002807 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002808 # We found the default executable, but exeext='' is most
2809 # certainly right.
2810 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002811 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002812 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2813 then :; else
2814 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2815 fi
2816 # We set ac_cv_exeext here because the later test for it is not
2817 # safe: cross compilers may not add the suffix if given an `-o'
2818 # argument, so we may need to know it at that point already.
2819 # Even if this section looks crufty: it has the advantage of
2820 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002821 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002822 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002823 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002824 esac
2825done
Reid Spencera773bd52006-08-04 18:18:08 +00002826test "$ac_cv_exeext" = no && ac_cv_exeext=
2827
John Criswell7a73b802003-06-30 21:59:07 +00002828else
2829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002830sed 's/^/| /' conftest.$ac_ext >&5
2831
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002833See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002834echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002835See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002836 { (exit 77); exit 77; }; }
2837fi
2838
2839ac_exeext=$ac_cv_exeext
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00002840{ echo "$as_me:$LINENO: result: $ac_file" >&5
2841echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002842
Reid Spencera773bd52006-08-04 18:18:08 +00002843# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002844# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2848# If not cross compiling, check that we can run a simple program.
2849if test "$cross_compiling" != yes; then
2850 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002851 { (case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854esac
2855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2856 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; }; then
2860 cross_compiling=no
2861 else
2862 if test "$cross_compiling" = maybe; then
2863 cross_compiling=yes
2864 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002866If you meant to cross compile, use \`--host'.
2867See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002868echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002869If you meant to cross compile, use \`--host'.
2870See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002871 { (exit 1); exit 1; }; }
2872 fi
2873 fi
2874fi
Reid Spencera773bd52006-08-04 18:18:08 +00002875{ echo "$as_me:$LINENO: result: yes" >&5
2876echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002877
John Criswell0c38eaf2003-09-10 15:17:25 +00002878rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002879ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002880# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002881# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002882{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2884{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2885echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002886
Reid Spencera773bd52006-08-04 18:18:08 +00002887{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2889if { (ac_try="$ac_link"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; then
2899 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2900# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2901# work properly (i.e., refer to `conftest.exe'), while it won't with
2902# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002903for ac_file in conftest.exe conftest conftest.*; do
2904 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002905 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002907 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002908 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002909 * ) break;;
2910 esac
2911done
2912else
John Criswell0c38eaf2003-09-10 15:17:25 +00002913 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2914See \`config.log' for more details." >&5
2915echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2916See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002917 { (exit 1); exit 1; }; }
2918fi
2919
2920rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002921{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2922echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002923
2924rm -f conftest.$ac_ext
2925EXEEXT=$ac_cv_exeext
2926ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002927{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2928echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002929if test "${ac_cv_objext+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002933/* confdefs.h. */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002938
John Criswell7a73b802003-06-30 21:59:07 +00002939int
2940main ()
2941{
2942
2943 ;
2944 return 0;
2945}
2946_ACEOF
2947rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002948if { (ac_try="$ac_compile"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002958 for ac_file in conftest.o conftest.obj conftest.*; do
2959 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002960 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002961 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002962 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2963 break;;
2964 esac
2965done
2966else
2967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002968sed 's/^/| /' conftest.$ac_ext >&5
2969
2970{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2971See \`config.log' for more details." >&5
2972echo "$as_me: error: cannot compute suffix of object files: cannot compile
2973See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002974 { (exit 1); exit 1; }; }
2975fi
2976
2977rm -f conftest.$ac_cv_objext conftest.$ac_ext
2978fi
Reid Spencera773bd52006-08-04 18:18:08 +00002979{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2980echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002981OBJEXT=$ac_cv_objext
2982ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002983{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2984echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002985if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987else
2988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002994
John Criswell7a73b802003-06-30 21:59:07 +00002995int
2996main ()
2997{
2998#ifndef __GNUC__
2999 choke me
3000#endif
3001
3002 ;
3003 return 0;
3004}
3005_ACEOF
3006rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003007if { (ac_try="$ac_compile"
3008case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011esac
3012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3021 { (case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_try") 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; } &&
3030 { ac_try='test -s conftest.$ac_objext'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003040 ac_compiler_gnu=yes
3041else
3042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003043sed 's/^/| /' conftest.$ac_ext >&5
3044
Reid Spencera773bd52006-08-04 18:18:08 +00003045 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003046fi
Reid Spencera773bd52006-08-04 18:18:08 +00003047
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003049ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003050
3051fi
Reid Spencera773bd52006-08-04 18:18:08 +00003052{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3053echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003054GCC=`test $ac_compiler_gnu = yes && echo yes`
3055ac_test_CFLAGS=${CFLAGS+set}
3056ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003057{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3058echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003059if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003060 echo $ECHO_N "(cached) $ECHO_C" >&6
3061else
Reid Spencera773bd52006-08-04 18:18:08 +00003062 ac_save_c_werror_flag=$ac_c_werror_flag
3063 ac_c_werror_flag=yes
3064 ac_cv_prog_cc_g=no
3065 CFLAGS="-g"
3066 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003067/* confdefs.h. */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003072
John Criswell7a73b802003-06-30 21:59:07 +00003073int
3074main ()
3075{
3076
3077 ;
3078 return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003082if { (ac_try="$ac_compile"
3083case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3086esac
3087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003090 grep -v '^ *+' conftest.er1 >conftest.err
3091 rm -f conftest.er1
3092 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003094 (exit $ac_status); } &&
3095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109esac
3110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003115 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003116else
3117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003118sed 's/^/| /' conftest.$ac_ext >&5
3119
Reid Spencera773bd52006-08-04 18:18:08 +00003120 CFLAGS=""
3121 cat >conftest.$ac_ext <<_ACEOF
3122/* confdefs.h. */
3123_ACEOF
3124cat confdefs.h >>conftest.$ac_ext
3125cat >>conftest.$ac_ext <<_ACEOF
3126/* end confdefs.h. */
3127
3128int
3129main ()
3130{
3131
3132 ;
3133 return 0;
3134}
3135_ACEOF
3136rm -f conftest.$ac_objext
3137if { (ac_try="$ac_compile"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
3142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>conftest.er1
3144 ac_status=$?
3145 grep -v '^ *+' conftest.er1 >conftest.err
3146 rm -f conftest.er1
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003149 (exit $ac_status); } &&
3150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_try") 2>&5
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003170 :
3171else
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
3174
3175 ac_c_werror_flag=$ac_save_c_werror_flag
3176 CFLAGS="-g"
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187
3188 ;
3189 return 0;
3190}
3191_ACEOF
3192rm -f conftest.$ac_objext
3193if { (ac_try="$ac_compile"
3194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
3198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compile") 2>conftest.er1
3200 ac_status=$?
3201 grep -v '^ *+' conftest.er1 >conftest.err
3202 rm -f conftest.er1
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3212 (eval "$ac_try") 2>&5
3213 ac_status=$?
3214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215 (exit $ac_status); }; } &&
3216 { ac_try='test -s conftest.$ac_objext'
3217 { (case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222 (eval "$ac_try") 2>&5
3223 ac_status=$?
3224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003226 ac_cv_prog_cc_g=yes
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231
John Criswell7a73b802003-06-30 21:59:07 +00003232fi
Reid Spencera773bd52006-08-04 18:18:08 +00003233
3234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003235fi
Reid Spencera773bd52006-08-04 18:18:08 +00003236
3237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238fi
3239
3240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242fi
3243{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3244echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003245if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003250 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003251 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003252 fi
3253else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003256 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003257 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003258 fi
3259fi
Reid Spencera773bd52006-08-04 18:18:08 +00003260{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3261echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3262if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
Reid Spencera773bd52006-08-04 18:18:08 +00003265 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266ac_save_CC=$CC
3267cat >conftest.$ac_ext <<_ACEOF
3268/* confdefs.h. */
3269_ACEOF
3270cat confdefs.h >>conftest.$ac_ext
3271cat >>conftest.$ac_ext <<_ACEOF
3272/* end confdefs.h. */
3273#include <stdarg.h>
3274#include <stdio.h>
3275#include <sys/types.h>
3276#include <sys/stat.h>
3277/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3278struct buf { int x; };
3279FILE * (*rcsopen) (struct buf *, struct stat *, int);
3280static char *e (p, i)
3281 char **p;
3282 int i;
3283{
3284 return p[i];
3285}
3286static char *f (char * (*g) (char **, int), char **p, ...)
3287{
3288 char *s;
3289 va_list v;
3290 va_start (v,p);
3291 s = g (p, va_arg (v,int));
3292 va_end (v);
3293 return s;
3294}
3295
3296/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3297 function prototypes and stuff, but not '\xHH' hex character constants.
3298 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003299 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003300 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3301 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003302 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003303int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3304
Reid Spencera773bd52006-08-04 18:18:08 +00003305/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3306 inside strings and character constants. */
3307#define FOO(x) 'x'
3308int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3309
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003310int test (int i, double x);
3311struct s1 {int (*f) (int a);};
3312struct s2 {int (*f) (double a);};
3313int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3314int argc;
3315char **argv;
3316int
3317main ()
3318{
3319return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3320 ;
3321 return 0;
3322}
3323_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003324for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3325 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326do
3327 CC="$ac_save_CC $ac_arg"
3328 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003341 (exit $ac_status); } &&
3342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
3353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003362 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
Reid Spencera773bd52006-08-04 18:18:08 +00003367
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003368fi
Reid Spencera773bd52006-08-04 18:18:08 +00003369
3370rm -f core conftest.err conftest.$ac_objext
3371 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372done
Reid Spencera773bd52006-08-04 18:18:08 +00003373rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003374CC=$ac_save_CC
3375
3376fi
Reid Spencera773bd52006-08-04 18:18:08 +00003377# AC_CACHE_VAL
3378case "x$ac_cv_prog_cc_c89" in
3379 x)
3380 { echo "$as_me:$LINENO: result: none needed" >&5
3381echo "${ECHO_T}none needed" >&6; } ;;
3382 xno)
3383 { echo "$as_me:$LINENO: result: unsupported" >&5
3384echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003385 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003386 CC="$CC $ac_cv_prog_cc_c89"
3387 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3388echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003389esac
3390
John Criswell0c38eaf2003-09-10 15:17:25 +00003391
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003399ac_ext=c
3400ac_cpp='$CPP $CPPFLAGS'
3401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003404{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3405echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003406# On Suns, sometimes $CPP names a directory.
3407if test -n "$CPP" && test -d "$CPP"; then
3408 CPP=
3409fi
3410if test -z "$CPP"; then
3411 if test "${ac_cv_prog_CPP+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 # Double quotes because CPP needs to be expanded
3415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3416 do
3417 ac_preproc_ok=false
3418for ac_c_preproc_warn_flag in '' yes
3419do
3420 # Use a header file that comes with gcc, so configuring glibc
3421 # with a fresh cross-compiler works.
3422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423 # <limits.h> exists even on freestanding compilers.
3424 # On the NeXT, cc -E runs the code through the compiler's parser,
3425 # not just through cpp. "Syntax error" is here to catch this case.
3426 cat >conftest.$ac_ext <<_ACEOF
3427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
3432#ifdef __STDC__
3433# include <limits.h>
3434#else
3435# include <assert.h>
3436#endif
3437 Syntax error
3438_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003462 :
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 # Broken: fails on valid input.
3468continue
3469fi
Reid Spencera773bd52006-08-04 18:18:08 +00003470
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471rm -f conftest.err conftest.$ac_ext
3472
Reid Spencera773bd52006-08-04 18:18:08 +00003473 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003474 # can be detected and how.
3475 cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
3481#include <ac_nonexistent.h>
3482_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003490 ac_status=$?
3491 grep -v '^ *+' conftest.er1 >conftest.err
3492 rm -f conftest.er1
3493 cat conftest.err >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003495 (exit $ac_status); } >/dev/null; then
3496 if test -s conftest.err; then
3497 ac_cpp_err=$ac_c_preproc_warn_flag
3498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499 else
3500 ac_cpp_err=
3501 fi
3502else
3503 ac_cpp_err=yes
3504fi
3505if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003506 # Broken: success on invalid input.
3507continue
3508else
3509 echo "$as_me: failed program was:" >&5
3510sed 's/^/| /' conftest.$ac_ext >&5
3511
3512 # Passes both tests.
3513ac_preproc_ok=:
3514break
3515fi
Reid Spencera773bd52006-08-04 18:18:08 +00003516
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003517rm -f conftest.err conftest.$ac_ext
3518
3519done
3520# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521rm -f conftest.err conftest.$ac_ext
3522if $ac_preproc_ok; then
3523 break
3524fi
3525
3526 done
3527 ac_cv_prog_CPP=$CPP
3528
3529fi
3530 CPP=$ac_cv_prog_CPP
3531else
3532 ac_cv_prog_CPP=$CPP
3533fi
Reid Spencera773bd52006-08-04 18:18:08 +00003534{ echo "$as_me:$LINENO: result: $CPP" >&5
3535echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003536ac_preproc_ok=false
3537for ac_c_preproc_warn_flag in '' yes
3538do
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3546/* confdefs.h. */
3547_ACEOF
3548cat confdefs.h >>conftest.$ac_ext
3549cat >>conftest.$ac_ext <<_ACEOF
3550/* end confdefs.h. */
3551#ifdef __STDC__
3552# include <limits.h>
3553#else
3554# include <assert.h>
3555#endif
3556 Syntax error
3557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003581 :
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586 # Broken: fails on valid input.
3587continue
3588fi
Reid Spencera773bd52006-08-04 18:18:08 +00003589
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590rm -f conftest.err conftest.$ac_ext
3591
Reid Spencera773bd52006-08-04 18:18:08 +00003592 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003593 # can be detected and how.
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ac_nonexistent.h>
3601_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003602if { (ac_try="$ac_cpp conftest.$ac_ext"
3603case "(($ac_try" in
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3606esac
3607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003609 ac_status=$?
3610 grep -v '^ *+' conftest.er1 >conftest.err
3611 rm -f conftest.er1
3612 cat conftest.err >&5
3613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003614 (exit $ac_status); } >/dev/null; then
3615 if test -s conftest.err; then
3616 ac_cpp_err=$ac_c_preproc_warn_flag
3617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3618 else
3619 ac_cpp_err=
3620 fi
3621else
3622 ac_cpp_err=yes
3623fi
3624if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003625 # Broken: success on invalid input.
3626continue
3627else
3628 echo "$as_me: failed program was:" >&5
3629sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
Reid Spencera773bd52006-08-04 18:18:08 +00003635
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003636rm -f conftest.err conftest.$ac_ext
3637
3638done
3639# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3640rm -f conftest.err conftest.$ac_ext
3641if $ac_preproc_ok; then
3642 :
3643else
3644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3645See \`config.log' for more details." >&5
3646echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3647See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3649fi
3650
John Criswell7a73b802003-06-30 21:59:07 +00003651ac_ext=c
3652ac_cpp='$CPP $CPPFLAGS'
3653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_c_compiler_gnu
3656
John Criswell7a73b802003-06-30 21:59:07 +00003657
Reid Spencera773bd52006-08-04 18:18:08 +00003658{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3659echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660if test "${ac_cv_path_GREP+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662else
Reid Spencera773bd52006-08-04 18:18:08 +00003663 # Extract the first word of "grep ggrep" to use in msg output
3664if test -z "$GREP"; then
3665set dummy grep ggrep; ac_prog_name=$2
3666if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
Reid Spencera773bd52006-08-04 18:18:08 +00003669 ac_path_GREP_found=false
3670# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003672for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003676 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003677 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003678 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003679 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003680 # Check for GNU ac_path_GREP and select it if it is found.
3681 # Check for GNU $ac_path_GREP
3682case `"$ac_path_GREP" --version 2>&1` in
3683*GNU*)
3684 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3685*)
3686 ac_count=0
3687 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3688 while :
3689 do
3690 cat "conftest.in" "conftest.in" >"conftest.tmp"
3691 mv "conftest.tmp" "conftest.in"
3692 cp "conftest.in" "conftest.nl"
3693 echo 'GREP' >> "conftest.nl"
3694 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3695 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3696 ac_count=`expr $ac_count + 1`
3697 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3698 # Best one so far, save it but keep looking for a better one
3699 ac_cv_path_GREP="$ac_path_GREP"
3700 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003701 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003702 # 10*(2^10) chars as input seems more than enough
3703 test $ac_count -gt 10 && break
3704 done
3705 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3706esac
3707
3708
3709 $ac_path_GREP_found && break 3
3710 done
3711done
3712
3713done
3714IFS=$as_save_IFS
3715
3716
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003717fi
Reid Spencera773bd52006-08-04 18:18:08 +00003718
3719GREP="$ac_cv_path_GREP"
3720if test -z "$GREP"; then
3721 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3722echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3723 { (exit 1); exit 1; }; }
3724fi
3725
3726else
3727 ac_cv_path_GREP=$GREP
3728fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003729
John Criswell7a73b802003-06-30 21:59:07 +00003730
Reid Spencera773bd52006-08-04 18:18:08 +00003731fi
3732{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3733echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3734 GREP="$ac_cv_path_GREP"
3735
3736
3737{ echo "$as_me:$LINENO: checking for egrep" >&5
3738echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3739if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741else
3742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743 then ac_cv_path_EGREP="$GREP -E"
3744 else
3745 # Extract the first word of "egrep" to use in msg output
3746if test -z "$EGREP"; then
3747set dummy egrep; ac_prog_name=$2
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 ac_path_EGREP_found=false
3752# Loop through the user's path and test for each of PROGNAME-LIST
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3755do
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in egrep; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003761 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003762 # Check for GNU ac_path_EGREP and select it if it is found.
3763 # Check for GNU $ac_path_EGREP
3764case `"$ac_path_EGREP" --version 2>&1` in
3765*GNU*)
3766 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3767*)
3768 ac_count=0
3769 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3770 while :
3771 do
3772 cat "conftest.in" "conftest.in" >"conftest.tmp"
3773 mv "conftest.tmp" "conftest.in"
3774 cp "conftest.in" "conftest.nl"
3775 echo 'EGREP' >> "conftest.nl"
3776 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3778 ac_count=`expr $ac_count + 1`
3779 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3780 # Best one so far, save it but keep looking for a better one
3781 ac_cv_path_EGREP="$ac_path_EGREP"
3782 ac_path_EGREP_max=$ac_count
3783 fi
3784 # 10*(2^10) chars as input seems more than enough
3785 test $ac_count -gt 10 && break
3786 done
3787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3788esac
3789
3790
3791 $ac_path_EGREP_found && break 3
3792 done
3793done
3794
3795done
3796IFS=$as_save_IFS
3797
3798
3799fi
3800
3801EGREP="$ac_cv_path_EGREP"
3802if test -z "$EGREP"; then
3803 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3804echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3805 { (exit 1); exit 1; }; }
3806fi
3807
3808else
3809 ac_cv_path_EGREP=$EGREP
3810fi
3811
3812
3813 fi
3814fi
3815{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3816echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3817 EGREP="$ac_cv_path_EGREP"
3818
3819
3820{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3821echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003822if test "${ac_cv_header_stdc+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003831#include <stdlib.h>
3832#include <stdarg.h>
3833#include <string.h>
3834#include <float.h>
3835
John Criswell0c38eaf2003-09-10 15:17:25 +00003836int
3837main ()
3838{
3839
3840 ;
3841 return 0;
3842}
John Criswell7a73b802003-06-30 21:59:07 +00003843_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003844rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003845if { (ac_try="$ac_compile"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00003857 (exit $ac_status); } &&
3858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3859 { (case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862esac
3863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_try") 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; } &&
3868 { ac_try='test -s conftest.$ac_objext'
3869 { (case "(($ac_try" in
3870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3871 *) ac_try_echo=$ac_try;;
3872esac
3873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003878 ac_cv_header_stdc=yes
3879else
3880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003881sed 's/^/| /' conftest.$ac_ext >&5
3882
Reid Spencera773bd52006-08-04 18:18:08 +00003883 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003884fi
Reid Spencera773bd52006-08-04 18:18:08 +00003885
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003887
3888if test $ac_cv_header_stdc = yes; then
3889 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003891/* confdefs.h. */
3892_ACEOF
3893cat confdefs.h >>conftest.$ac_ext
3894cat >>conftest.$ac_ext <<_ACEOF
3895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003896#include <string.h>
3897
3898_ACEOF
3899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003900 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003901 :
3902else
3903 ac_cv_header_stdc=no
3904fi
3905rm -f conftest*
3906
3907fi
3908
3909if test $ac_cv_header_stdc = yes; then
3910 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3911 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003912/* confdefs.h. */
3913_ACEOF
3914cat confdefs.h >>conftest.$ac_ext
3915cat >>conftest.$ac_ext <<_ACEOF
3916/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003917#include <stdlib.h>
3918
3919_ACEOF
3920if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003921 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003922 :
3923else
3924 ac_cv_header_stdc=no
3925fi
3926rm -f conftest*
3927
3928fi
3929
3930if test $ac_cv_header_stdc = yes; then
3931 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3932 if test "$cross_compiling" = yes; then
3933 :
3934else
3935 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003936/* confdefs.h. */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003941#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003942#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003943#if ((' ' & 0x0FF) == 0x020)
3944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3946#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003947# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003948 (('a' <= (c) && (c) <= 'i') \
3949 || ('j' <= (c) && (c) <= 'r') \
3950 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3952#endif
3953
3954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3955int
3956main ()
3957{
3958 int i;
3959 for (i = 0; i < 256; i++)
3960 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003961 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003962 return 2;
3963 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003964}
3965_ACEOF
3966rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003967if { (ac_try="$ac_link"
3968case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971esac
3972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003977 { (case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 :
3987else
3988 echo "$as_me: program exited with status $ac_status" >&5
3989echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003990sed 's/^/| /' conftest.$ac_ext >&5
3991
John Criswell7a73b802003-06-30 21:59:07 +00003992( exit $ac_status )
3993ac_cv_header_stdc=no
3994fi
Reid Spencera773bd52006-08-04 18:18:08 +00003995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996fi
3997
3998
John Criswell7a73b802003-06-30 21:59:07 +00003999fi
4000fi
Reid Spencera773bd52006-08-04 18:18:08 +00004001{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004003if test $ac_cv_header_stdc = yes; then
4004
4005cat >>confdefs.h <<\_ACEOF
4006#define STDC_HEADERS 1
4007_ACEOF
4008
4009fi
4010
Reid Spencera773bd52006-08-04 18:18:08 +00004011# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4022 inttypes.h stdint.h unistd.h
4023do
4024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4025{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h. */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h. */
4036$ac_includes_default
4037
4038#include <$ac_header>
4039_ACEOF
4040rm -f conftest.$ac_objext
4041if { (ac_try="$ac_compile"
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
4046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_compile") 2>conftest.er1
4048 ac_status=$?
4049 grep -v '^ *+' conftest.er1 >conftest.err
4050 rm -f conftest.er1
4051 cat conftest.err >&5
4052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004053 (exit $ac_status); } &&
4054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4055 { (case "(($ac_try" in
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4058esac
4059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_try") 2>&5
4061 ac_status=$?
4062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063 (exit $ac_status); }; } &&
4064 { ac_try='test -s conftest.$ac_objext'
4065 { (case "(($ac_try" in
4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067 *) ac_try_echo=$ac_try;;
4068esac
4069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4070 (eval "$ac_try") 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004074 eval "$as_ac_Header=yes"
4075else
4076 echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079 eval "$as_ac_Header=no"
4080fi
4081
4082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083fi
4084ac_res=`eval echo '${'$as_ac_Header'}'`
4085 { echo "$as_me:$LINENO: result: $ac_res" >&5
4086echo "${ECHO_T}$ac_res" >&6; }
4087if test `eval echo '${'$as_ac_Header'}'` = yes; then
4088 cat >>confdefs.h <<_ACEOF
4089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090_ACEOF
4091
4092fi
4093
4094done
4095
4096
4097{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4098echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4099if test "${ac_cv_c_bigendian+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 # See if sys/param.h defines the BYTE_ORDER macro.
4103cat >conftest.$ac_ext <<_ACEOF
4104/* confdefs.h. */
4105_ACEOF
4106cat confdefs.h >>conftest.$ac_ext
4107cat >>conftest.$ac_ext <<_ACEOF
4108/* end confdefs.h. */
4109#include <sys/types.h>
4110#include <sys/param.h>
4111
4112int
4113main ()
4114{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004115#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004116 bogus endian macros
4117#endif
4118
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123rm -f conftest.$ac_objext
4124if { (ac_try="$ac_compile"
4125case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4128esac
4129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_compile") 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4141esac
4142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4144 ac_status=$?
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151esac
4152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_try") 2>&5
4154 ac_status=$?
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004157 # It does; now see whether it defined to BIG_ENDIAN or not.
4158cat >conftest.$ac_ext <<_ACEOF
4159/* confdefs.h. */
4160_ACEOF
4161cat confdefs.h >>conftest.$ac_ext
4162cat >>conftest.$ac_ext <<_ACEOF
4163/* end confdefs.h. */
4164#include <sys/types.h>
4165#include <sys/param.h>
4166
4167int
4168main ()
4169{
4170#if BYTE_ORDER != BIG_ENDIAN
4171 not big endian
4172#endif
4173
4174 ;
4175 return 0;
4176}
4177_ACEOF
4178rm -f conftest.$ac_objext
4179if { (ac_try="$ac_compile"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004191 (exit $ac_status); } &&
4192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4193 { (case "(($ac_try" in
4194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4195 *) ac_try_echo=$ac_try;;
4196esac
4197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4198 (eval "$ac_try") 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_try") 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004212 ac_cv_c_bigendian=yes
4213else
4214 echo "$as_me: failed program was:" >&5
4215sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ac_cv_c_bigendian=no
4218fi
4219
4220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 # It does not; compile a test program.
4226if test "$cross_compiling" = yes; then
4227 # try to guess the endianness by grepping values into an object file
4228 ac_cv_c_bigendian=unknown
4229 cat >conftest.$ac_ext <<_ACEOF
4230/* confdefs.h. */
4231_ACEOF
4232cat confdefs.h >>conftest.$ac_ext
4233cat >>conftest.$ac_ext <<_ACEOF
4234/* end confdefs.h. */
4235short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4236short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4237void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4238short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4239short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4240void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4241int
4242main ()
4243{
4244 _ascii (); _ebcdic ();
4245 ;
4246 return 0;
4247}
4248_ACEOF
4249rm -f conftest.$ac_objext
4250if { (ac_try="$ac_compile"
4251case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254esac
4255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_compile") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004262 (exit $ac_status); } &&
4263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4264 { (case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_try") 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; } &&
4273 { ac_try='test -s conftest.$ac_objext'
4274 { (case "(($ac_try" in
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4277esac
4278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004283 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4284 ac_cv_c_bigendian=yes
4285fi
4286if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4287 if test "$ac_cv_c_bigendian" = unknown; then
4288 ac_cv_c_bigendian=no
4289 else
4290 # finding both strings is unlikely to happen, but who knows?
4291 ac_cv_c_bigendian=unknown
4292 fi
4293fi
4294else
4295 echo "$as_me: failed program was:" >&5
4296sed 's/^/| /' conftest.$ac_ext >&5
4297
4298
4299fi
4300
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302else
4303 cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h. */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h. */
4309$ac_includes_default
4310int
4311main ()
4312{
4313
4314 /* Are we little or big endian? From Harbison&Steele. */
4315 union
4316 {
4317 long int l;
4318 char c[sizeof (long int)];
4319 } u;
4320 u.l = 1;
4321 return u.c[sizeof (long int) - 1] == 1;
4322
4323 ;
4324 return 0;
4325}
4326_ACEOF
4327rm -f conftest$ac_exeext
4328if { (ac_try="$ac_link"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_link") 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_c_bigendian=no
4348else
4349 echo "$as_me: program exited with status $ac_status" >&5
4350echo "$as_me: failed program was:" >&5
4351sed 's/^/| /' conftest.$ac_ext >&5
4352
4353( exit $ac_status )
4354ac_cv_c_bigendian=yes
4355fi
4356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357fi
4358
4359
4360fi
4361
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363fi
4364{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4365echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4366case $ac_cv_c_bigendian in
4367 yes)
4368 ENDIAN=big
4369 ;;
4370 no)
4371 ENDIAN=little
4372 ;;
4373 *)
4374 { { echo "$as_me:$LINENO: error: unknown endianness
4375presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4376echo "$as_me: error: unknown endianness
4377presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4378 { (exit 1); exit 1; }; } ;;
4379esac
4380
4381
4382if test "$cross_compiling" = yes; then
4383 LLVM_CROSS_COMPILING=1
4384
4385
4386{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4387echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4388if test "${ac_cv_build_exeext+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390else
4391 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4392 ac_cv_build_exeext=.exe
4393else
4394 ac_build_prefix=${build_alias}-
4395
4396 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4397set dummy ${ac_build_prefix}gcc; ac_word=$2
4398{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$BUILD_CC"; then
4404 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004412 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 +00004413 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419IFS=$as_save_IFS
4420
4421fi
4422fi
4423BUILD_CC=$ac_cv_prog_BUILD_CC
4424if test -n "$BUILD_CC"; then
4425 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4426echo "${ECHO_T}$BUILD_CC" >&6; }
4427else
4428 { echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6; }
4430fi
4431
4432
4433 if test -z "$BUILD_CC"; then
4434 # Extract the first word of "gcc", so it can be a program name with args.
4435set dummy gcc; ac_word=$2
4436{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4438if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441 if test -n "$BUILD_CC"; then
4442 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4443else
4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445for as_dir in $PATH
4446do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004450 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 +00004451 ac_cv_prog_BUILD_CC="gcc"
4452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 break 2
4454 fi
4455done
4456done
4457IFS=$as_save_IFS
4458
4459fi
4460fi
4461BUILD_CC=$ac_cv_prog_BUILD_CC
4462if test -n "$BUILD_CC"; then
4463 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4464echo "${ECHO_T}$BUILD_CC" >&6; }
4465else
4466 { echo "$as_me:$LINENO: result: no" >&5
4467echo "${ECHO_T}no" >&6; }
4468fi
4469
4470
4471 if test -z "$BUILD_CC"; then
4472 # Extract the first word of "cc", so it can be a program name with args.
4473set dummy cc; ac_word=$2
4474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4476if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4478else
4479 if test -n "$BUILD_CC"; then
4480 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4481else
4482 ac_prog_rejected=no
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004489 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 +00004490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4491 ac_prog_rejected=yes
4492 continue
4493 fi
4494 ac_cv_prog_BUILD_CC="cc"
4495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4496 break 2
4497 fi
4498done
4499done
4500IFS=$as_save_IFS
4501
4502if test $ac_prog_rejected = yes; then
4503 # We found a bogon in the path, so make sure we never use it.
4504 set dummy $ac_cv_prog_BUILD_CC
4505 shift
4506 if test $# != 0; then
4507 # We chose a different compiler from the bogus one.
4508 # However, it has the same basename, so the bogon will be chosen
4509 # first if we set BUILD_CC to just the basename; use the full file name.
4510 shift
4511 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4512 fi
4513fi
4514fi
4515fi
4516BUILD_CC=$ac_cv_prog_BUILD_CC
4517if test -n "$BUILD_CC"; then
4518 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4519echo "${ECHO_T}$BUILD_CC" >&6; }
4520else
4521 { echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6; }
4523fi
4524
4525
4526 fi
4527 fi
4528 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4529echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4530 { (exit 1); exit 1; }; }
4531 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4532 rm -f conftest*
4533 echo 'int main () { return 0; }' > conftest.$ac_ext
4534 ac_cv_build_exeext=
4535 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4536 (eval $ac_build_link) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; then
4540 for file in conftest.*; do
4541 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004542 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004543 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4544 esac
4545 done
4546 else
4547 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4548echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4549 { (exit 1); exit 1; }; }
4550 fi
4551 rm -f conftest*
4552 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4553fi
4554fi
4555
4556BUILD_EXEEXT=""
4557test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4558{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4559echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4560ac_build_exeext=$BUILD_EXEEXT
4561
Jim Grosbach673612e2008-10-02 22:56:44 +00004562 ac_build_prefix=${build_alias}-
4563 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4564set dummy ${ac_build_prefix}g++; ac_word=$2
4565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4568 echo $ECHO_N "(cached) $ECHO_C" >&6
4569else
4570 if test -n "$BUILD_CXX"; then
4571 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4572else
4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574for as_dir in $PATH
4575do
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004579 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 +00004580 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4583 fi
4584done
4585done
4586IFS=$as_save_IFS
4587
4588fi
4589fi
4590BUILD_CXX=$ac_cv_prog_BUILD_CXX
4591if test -n "$BUILD_CXX"; then
4592 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4593echo "${ECHO_T}$BUILD_CXX" >&6; }
4594else
4595 { echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6; }
4597fi
4598
4599
4600 if test -z "$BUILD_CXX"; then
4601 # Extract the first word of "g++", so it can be a program name with args.
4602set dummy g++; ac_word=$2
4603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608 if test -n "$BUILD_CXX"; then
4609 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004617 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 +00004618 ac_cv_prog_BUILD_CXX="g++"
4619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4621 fi
4622done
4623done
4624IFS=$as_save_IFS
4625
4626fi
4627fi
4628BUILD_CXX=$ac_cv_prog_BUILD_CXX
4629if test -n "$BUILD_CXX"; then
4630 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4631echo "${ECHO_T}$BUILD_CXX" >&6; }
4632else
4633 { echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6; }
4635fi
4636
4637
4638 if test -z "$BUILD_CXX"; then
4639 # Extract the first word of "c++", so it can be a program name with args.
4640set dummy c++; ac_word=$2
4641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4643if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646 if test -n "$BUILD_CXX"; then
4647 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4648else
4649 ac_prog_rejected=no
4650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651for as_dir in $PATH
4652do
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00004656 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 +00004657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4658 ac_prog_rejected=yes
4659 continue
4660 fi
4661 ac_cv_prog_BUILD_CXX="c++"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665done
4666done
4667IFS=$as_save_IFS
4668
4669if test $ac_prog_rejected = yes; then
4670 # We found a bogon in the path, so make sure we never use it.
4671 set dummy $ac_cv_prog_BUILD_CXX
4672 shift
4673 if test $# != 0; then
4674 # We chose a different compiler from the bogus one.
4675 # However, it has the same basename, so the bogon will be chosen
4676 # first if we set BUILD_CXX to just the basename; use the full file name.
4677 shift
4678 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4679 fi
4680fi
4681fi
4682fi
4683BUILD_CXX=$ac_cv_prog_BUILD_CXX
4684if test -n "$BUILD_CXX"; then
4685 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4686echo "${ECHO_T}$BUILD_CXX" >&6; }
4687else
4688 { echo "$as_me:$LINENO: result: no" >&5
4689echo "${ECHO_T}no" >&6; }
4690fi
4691
4692
4693 fi
4694 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004695else
4696 LLVM_CROSS_COMPILING=0
4697
4698fi
4699
Reid Spencer0b1e4662007-04-02 15:41:39 +00004700if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004701 cvsbuild="yes"
4702 optimize="no"
4703 CVSBUILD=CVSBUILD=1
4704
4705else
4706 cvsbuild="no"
4707 optimize="yes"
4708fi
4709
4710
4711# Check whether --enable-optimized was given.
4712if test "${enable_optimized+set}" = set; then
4713 enableval=$enable_optimized;
4714else
4715 enableval=$optimize
4716fi
4717
4718if test ${enableval} = "no" ; then
4719 ENABLE_OPTIMIZED=
4720
4721else
4722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4723
4724fi
4725
4726# Check whether --enable-assertions was given.
4727if test "${enable_assertions+set}" = set; then
4728 enableval=$enable_assertions;
4729else
4730 enableval="yes"
4731fi
4732
4733if test ${enableval} = "yes" ; then
4734 DISABLE_ASSERTIONS=
4735
4736else
4737 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4738
4739fi
4740
David Greenea696d242007-06-28 19:36:08 +00004741# Check whether --enable-expensive-checks was given.
4742if test "${enable_expensive_checks+set}" = set; then
4743 enableval=$enable_expensive_checks;
4744else
4745 enableval="no"
4746fi
4747
4748if test ${enableval} = "yes" ; then
4749 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4750
4751 EXPENSIVE_CHECKS=yes
4752
4753else
4754 ENABLE_EXPENSIVE_CHECKS=
4755
4756 EXPENSIVE_CHECKS=no
4757
4758fi
4759
Reid Spencer8b2e1412006-11-17 03:32:33 +00004760# Check whether --enable-debug-runtime was given.
4761if test "${enable_debug_runtime+set}" = set; then
4762 enableval=$enable_debug_runtime;
4763else
4764 enableval=no
4765fi
4766
4767if test ${enableval} = "no" ; then
4768 DEBUG_RUNTIME=
4769
4770else
4771 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4772
4773fi
4774
Reid Spencera773bd52006-08-04 18:18:08 +00004775# Check whether --enable-jit was given.
4776if test "${enable_jit+set}" = set; then
4777 enableval=$enable_jit;
4778else
4779 enableval=default
4780fi
4781
4782if test ${enableval} = "no"
4783then
4784 JIT=
4785
4786else
4787 case "$llvm_cv_target_arch" in
4788 x86) TARGET_HAS_JIT=1
4789 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004790 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004791 ;;
4792 PowerPC) TARGET_HAS_JIT=1
4793 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004794 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004795 ;;
4796 Alpha) TARGET_HAS_JIT=1
4797 ;;
4798 IA64) TARGET_HAS_JIT=0
4799 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004800 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004801 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004802 Mips) TARGET_HAS_JIT=0
4803 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004804 PIC16) TARGET_HAS_JIT=0
4805 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004806 XCore) TARGET_HAS_JIT=0
4807 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004808 *) TARGET_HAS_JIT=0
4809 ;;
4810 esac
4811fi
4812
4813# Check whether --enable-doxygen was given.
4814if test "${enable_doxygen+set}" = set; then
4815 enableval=$enable_doxygen;
4816else
4817 enableval=default
4818fi
4819
4820case "$enableval" in
4821 yes) ENABLE_DOXYGEN=1
4822 ;;
4823 no) ENABLE_DOXYGEN=0
4824 ;;
4825 default) ENABLE_DOXYGEN=0
4826 ;;
4827 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4828echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4829 { (exit 1); exit 1; }; } ;;
4830esac
4831
4832# Check whether --enable-threads was given.
4833if test "${enable_threads+set}" = set; then
4834 enableval=$enable_threads;
4835else
Reid Spencer65c5d752006-11-05 17:08:18 +00004836 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004837fi
4838
4839case "$enableval" in
4840 yes) ENABLE_THREADS=1
4841 ;;
4842 no) ENABLE_THREADS=0
4843 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004844 default) ENABLE_THREADS=1
4845 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004846 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4847echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4848 { (exit 1); exit 1; }; } ;;
4849esac
4850
4851cat >>confdefs.h <<_ACEOF
4852#define ENABLE_THREADS $ENABLE_THREADS
4853_ACEOF
4854
4855
Reid Spencer89b0d992006-12-16 22:07:52 +00004856# Check whether --enable-pic was given.
4857if test "${enable_pic+set}" = set; then
4858 enableval=$enable_pic;
4859else
4860 enableval=default
4861fi
4862
4863case "$enableval" in
4864 yes) ENABLE_PIC=1
4865 ;;
4866 no) ENABLE_PIC=0
4867 ;;
Nick Lewycky5d249572009-02-19 06:18:56 +00004868 default) ENABLE_PIC=1
Reid Spencer89b0d992006-12-16 22:07:52 +00004869 ;;
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4871echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4873esac
4874
4875cat >>confdefs.h <<_ACEOF
4876#define ENABLE_PIC $ENABLE_PIC
4877_ACEOF
4878
4879
Reid Spencera773bd52006-08-04 18:18:08 +00004880TARGETS_TO_BUILD=""
4881# Check whether --enable-targets was given.
4882if test "${enable_targets+set}" = set; then
4883 enableval=$enable_targets;
4884else
4885 enableval=all
4886fi
4887
4888case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004889 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004890 host-only)
4891 case "$llvm_cv_target_arch" in
4892 x86) TARGETS_TO_BUILD="X86" ;;
4893 x86_64) TARGETS_TO_BUILD="X86" ;;
4894 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4895 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4896 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4897 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004898 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004899 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004900 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004901 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004902 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004903 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4904echo "$as_me: error: Can not set target to build" >&2;}
4905 { (exit 1); exit 1; }; } ;;
4906 esac
4907 ;;
4908 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4909 case "$a_target" in
4910 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4911 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4912 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4913 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4914 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4915 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004916 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004917 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004918 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004919 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004920 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004921 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4922 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004923 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004924 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4925echo "$as_me: error: Unrecognized target $a_target" >&2;}
4926 { (exit 1); exit 1; }; } ;;
4927 esac
4928 done
4929 ;;
4930esac
Reid Spencera773bd52006-08-04 18:18:08 +00004931TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4932
4933
Reid Spencer65c5d752006-11-05 17:08:18 +00004934# Check whether --enable-cbe-printf-a was given.
4935if test "${enable_cbe_printf_a+set}" = set; then
4936 enableval=$enable_cbe_printf_a;
4937else
4938 enableval=default
4939fi
4940
4941case "$enableval" in
4942 yes) ENABLE_CBE_PRINTF_A=1
4943 ;;
4944 no) ENABLE_CBE_PRINTF_A=0
4945 ;;
4946 default) ENABLE_CBE_PRINTF_A=1
4947 ;;
4948 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4949echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4950 { (exit 1); exit 1; }; } ;;
4951esac
4952
4953cat >>confdefs.h <<_ACEOF
4954#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4955_ACEOF
4956
4957
Reid Spencera773bd52006-08-04 18:18:08 +00004958
4959# Check whether --with-llvmgccdir was given.
4960if test "${with_llvmgccdir+set}" = set; then
4961 withval=$with_llvmgccdir;
4962else
4963 withval=default
4964fi
4965
4966case "$withval" in
4967 default) WITH_LLVMGCCDIR=default ;;
4968 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4969 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4970echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4971 { (exit 1); exit 1; }; } ;;
4972esac
4973
4974
Devang Patel5d28b882007-12-04 22:54:47 +00004975# Check whether --with-llvmgcc was given.
4976if test "${with_llvmgcc+set}" = set; then
4977 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4978 WITH_LLVMGCCDIR=""
4979fi
4980
4981
4982
4983# Check whether --with-llvmgxx was given.
4984if test "${with_llvmgxx+set}" = set; then
4985 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4986 WITH_LLVMGCCDIR=""
4987fi
4988
4989
4990if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
4991 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
4992echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
4993 { (exit 1); exit 1; }; };
4994fi
4995
4996if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
4997 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
4998echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
4999 { (exit 1); exit 1; }; };
5000fi
5001
5002
Reid Spencera773bd52006-08-04 18:18:08 +00005003# Check whether --with-extra-options was given.
5004if test "${with_extra_options+set}" = set; then
5005 withval=$with_extra_options;
5006else
5007 withval=default
5008fi
5009
5010case "$withval" in
5011 default) EXTRA_OPTIONS= ;;
5012 *) EXTRA_OPTIONS=$withval ;;
5013esac
5014EXTRA_OPTIONS=$EXTRA_OPTIONS
5015
5016
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005017# Check whether --enable-bindings was given.
5018if test "${enable_bindings+set}" = set; then
5019 enableval=$enable_bindings;
5020else
5021 enableval=default
5022fi
5023
5024BINDINGS_TO_BUILD=""
5025case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005026 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005027 all ) BINDINGS_TO_BUILD="ocaml" ;;
5028 none | no) BINDINGS_TO_BUILD="" ;;
5029 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5030 case "$a_binding" in
5031 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5032 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5033echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5034 { (exit 1); exit 1; }; } ;;
5035 esac
5036 done
5037 ;;
5038esac
5039
Reid Spencera773bd52006-08-04 18:18:08 +00005040
Gordon Henriksenf0915682007-10-02 16:42:22 +00005041# Check whether --with-ocaml-libdir was given.
5042if test "${with_ocaml_libdir+set}" = set; then
5043 withval=$with_ocaml_libdir;
5044else
5045 withval=auto
5046fi
5047
5048case "$withval" in
5049 auto) with_ocaml_libdir="$withval" ;;
5050 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5051 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5052echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054esac
5055
5056
Nick Lewyckye792b1d2009-02-03 07:10:30 +00005057# Check whether --with-binutils-include was given.
5058if test "${with_binutils_include+set}" = set; then
5059 withval=$with_binutils_include;
5060else
5061 withval=default
5062fi
5063
5064case "$withval" in
5065 default) WITH_BINUTILS_INCDIR=default ;;
5066 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5067 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5068echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5069 { (exit 1); exit 1; }; } ;;
5070esac
5071if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5072 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5073
5074 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5075 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5076 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5077echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5078 { (exit 1); exit 1; }; };
5079 fi
5080fi
5081
5082
Reid Spencera773bd52006-08-04 18:18:08 +00005083ac_ext=c
5084ac_cpp='$CPP $CPPFLAGS'
5085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5087ac_compiler_gnu=$ac_cv_c_compiler_gnu
5088{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5089echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5090# On Suns, sometimes $CPP names a directory.
5091if test -n "$CPP" && test -d "$CPP"; then
5092 CPP=
5093fi
5094if test -z "$CPP"; then
5095 if test "${ac_cv_prog_CPP+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 # Double quotes because CPP needs to be expanded
5099 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100 do
5101 ac_preproc_ok=false
5102for ac_c_preproc_warn_flag in '' yes
5103do
5104 # Use a header file that comes with gcc, so configuring glibc
5105 # with a fresh cross-compiler works.
5106 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107 # <limits.h> exists even on freestanding compilers.
5108 # On the NeXT, cc -E runs the code through the compiler's parser,
5109 # not just through cpp. "Syntax error" is here to catch this case.
5110 cat >conftest.$ac_ext <<_ACEOF
5111/* confdefs.h. */
5112_ACEOF
5113cat confdefs.h >>conftest.$ac_ext
5114cat >>conftest.$ac_ext <<_ACEOF
5115/* end confdefs.h. */
5116#ifdef __STDC__
5117# include <limits.h>
5118#else
5119# include <assert.h>
5120#endif
5121 Syntax error
5122_ACEOF
5123if { (ac_try="$ac_cpp conftest.$ac_ext"
5124case "(($ac_try" in
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5127esac
5128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5130 ac_status=$?
5131 grep -v '^ *+' conftest.er1 >conftest.err
5132 rm -f conftest.er1
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5139 else
5140 ac_cpp_err=
5141 fi
5142else
5143 ac_cpp_err=yes
5144fi
5145if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005146 :
5147else
5148 echo "$as_me: failed program was:" >&5
5149sed 's/^/| /' conftest.$ac_ext >&5
5150
5151 # Broken: fails on valid input.
5152continue
5153fi
5154
5155rm -f conftest.err conftest.$ac_ext
5156
5157 # OK, works on sane cases. Now check whether nonexistent headers
5158 # can be detected and how.
5159 cat >conftest.$ac_ext <<_ACEOF
5160/* confdefs.h. */
5161_ACEOF
5162cat confdefs.h >>conftest.$ac_ext
5163cat >>conftest.$ac_ext <<_ACEOF
5164/* end confdefs.h. */
5165#include <ac_nonexistent.h>
5166_ACEOF
5167if { (ac_try="$ac_cpp conftest.$ac_ext"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005179 (exit $ac_status); } >/dev/null; then
5180 if test -s conftest.err; then
5181 ac_cpp_err=$ac_c_preproc_warn_flag
5182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5183 else
5184 ac_cpp_err=
5185 fi
5186else
5187 ac_cpp_err=yes
5188fi
5189if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005190 # Broken: success on invalid input.
5191continue
5192else
5193 echo "$as_me: failed program was:" >&5
5194sed 's/^/| /' conftest.$ac_ext >&5
5195
5196 # Passes both tests.
5197ac_preproc_ok=:
5198break
5199fi
5200
5201rm -f conftest.err conftest.$ac_ext
5202
5203done
5204# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205rm -f conftest.err conftest.$ac_ext
5206if $ac_preproc_ok; then
5207 break
5208fi
5209
5210 done
5211 ac_cv_prog_CPP=$CPP
5212
5213fi
5214 CPP=$ac_cv_prog_CPP
5215else
5216 ac_cv_prog_CPP=$CPP
5217fi
5218{ echo "$as_me:$LINENO: result: $CPP" >&5
5219echo "${ECHO_T}$CPP" >&6; }
5220ac_preproc_ok=false
5221for ac_c_preproc_warn_flag in '' yes
5222do
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5230/* confdefs.h. */
5231_ACEOF
5232cat confdefs.h >>conftest.$ac_ext
5233cat >>conftest.$ac_ext <<_ACEOF
5234/* end confdefs.h. */
5235#ifdef __STDC__
5236# include <limits.h>
5237#else
5238# include <assert.h>
5239#endif
5240 Syntax error
5241_ACEOF
5242if { (ac_try="$ac_cpp conftest.$ac_ext"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005254 (exit $ac_status); } >/dev/null; then
5255 if test -s conftest.err; then
5256 ac_cpp_err=$ac_c_preproc_warn_flag
5257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5258 else
5259 ac_cpp_err=
5260 fi
5261else
5262 ac_cpp_err=yes
5263fi
5264if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005265 :
5266else
5267 echo "$as_me: failed program was:" >&5
5268sed 's/^/| /' conftest.$ac_ext >&5
5269
5270 # Broken: fails on valid input.
5271continue
5272fi
5273
5274rm -f conftest.err conftest.$ac_ext
5275
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat >conftest.$ac_ext <<_ACEOF
5279/* confdefs.h. */
5280_ACEOF
5281cat confdefs.h >>conftest.$ac_ext
5282cat >>conftest.$ac_ext <<_ACEOF
5283/* end confdefs.h. */
5284#include <ac_nonexistent.h>
5285_ACEOF
5286if { (ac_try="$ac_cpp conftest.$ac_ext"
5287case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5293 ac_status=$?
5294 grep -v '^ *+' conftest.er1 >conftest.err
5295 rm -f conftest.er1
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5302 else
5303 ac_cpp_err=
5304 fi
5305else
5306 ac_cpp_err=yes
5307fi
5308if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005309 # Broken: success on invalid input.
5310continue
5311else
5312 echo "$as_me: failed program was:" >&5
5313sed 's/^/| /' conftest.$ac_ext >&5
5314
5315 # Passes both tests.
5316ac_preproc_ok=:
5317break
5318fi
5319
5320rm -f conftest.err conftest.$ac_ext
5321
5322done
5323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5324rm -f conftest.err conftest.$ac_ext
5325if $ac_preproc_ok; then
5326 :
5327else
5328 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5329See \`config.log' for more details." >&5
5330echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5331See \`config.log' for more details." >&2;}
5332 { (exit 1); exit 1; }; }
5333fi
5334
5335ac_ext=c
5336ac_cpp='$CPP $CPPFLAGS'
5337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5339ac_compiler_gnu=$ac_cv_c_compiler_gnu
5340
5341ac_ext=c
5342ac_cpp='$CPP $CPPFLAGS'
5343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346if test -n "$ac_tool_prefix"; then
5347 for ac_prog in gcc
5348 do
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353if test "${ac_cv_prog_CC+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356 if test -n "$CC"; then
5357 ac_cv_prog_CC="$CC" # Let the user override the test.
5358else
5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360for as_dir in $PATH
5361do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005365 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 +00005366 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370done
5371done
5372IFS=$as_save_IFS
5373
5374fi
5375fi
5376CC=$ac_cv_prog_CC
5377if test -n "$CC"; then
5378 { echo "$as_me:$LINENO: result: $CC" >&5
5379echo "${ECHO_T}$CC" >&6; }
5380else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382echo "${ECHO_T}no" >&6; }
5383fi
5384
5385
5386 test -n "$CC" && break
5387 done
5388fi
5389if test -z "$CC"; then
5390 ac_ct_CC=$CC
5391 for ac_prog in gcc
5392do
5393 # Extract the first word of "$ac_prog", so it can be a program name with args.
5394set dummy $ac_prog; ac_word=$2
5395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5398 echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400 if test -n "$ac_ct_CC"; then
5401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005409 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 +00005410 ac_cv_prog_ac_ct_CC="$ac_prog"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414done
5415done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420ac_ct_CC=$ac_cv_prog_ac_ct_CC
5421if test -n "$ac_ct_CC"; then
5422 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5423echo "${ECHO_T}$ac_ct_CC" >&6; }
5424else
5425 { echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6; }
5427fi
5428
5429
5430 test -n "$ac_ct_CC" && break
5431done
5432
5433 if test "x$ac_ct_CC" = x; then
5434 CC=""
5435 else
5436 case $cross_compiling:$ac_tool_warned in
5437yes:)
5438{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5439whose name does not start with the host triplet. If you think this
5440configuration is useful to you, please write to autoconf@gnu.org." >&5
5441echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5442whose name does not start with the host triplet. If you think this
5443configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5444ac_tool_warned=yes ;;
5445esac
5446 CC=$ac_ct_CC
5447 fi
5448fi
5449
5450
5451test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5452See \`config.log' for more details." >&5
5453echo "$as_me: error: no acceptable C compiler found in \$PATH
5454See \`config.log' for more details." >&2;}
5455 { (exit 1); exit 1; }; }
5456
5457# Provide some information about the compiler.
5458echo "$as_me:$LINENO: checking for C compiler version" >&5
5459ac_compiler=`set X $ac_compile; echo $2`
5460{ (ac_try="$ac_compiler --version >&5"
5461case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464esac
5465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compiler --version >&5") 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); }
5470{ (ac_try="$ac_compiler -v >&5"
5471case "(($ac_try" in
5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5474esac
5475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compiler -v >&5") 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); }
5480{ (ac_try="$ac_compiler -V >&5"
5481case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484esac
5485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_compiler -V >&5") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }
5490
5491{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5492echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5493if test "${ac_cv_c_compiler_gnu+set}" = set; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496 cat >conftest.$ac_ext <<_ACEOF
5497/* confdefs.h. */
5498_ACEOF
5499cat confdefs.h >>conftest.$ac_ext
5500cat >>conftest.$ac_ext <<_ACEOF
5501/* end confdefs.h. */
5502
5503int
5504main ()
5505{
5506#ifndef __GNUC__
5507 choke me
5508#endif
5509
5510 ;
5511 return 0;
5512}
5513_ACEOF
5514rm -f conftest.$ac_objext
5515if { (ac_try="$ac_compile"
5516case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005527 (exit $ac_status); } &&
5528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5529 { (case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_try") 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest.$ac_objext'
5539 { (case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_try") 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005548 ac_compiler_gnu=yes
5549else
5550 echo "$as_me: failed program was:" >&5
5551sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 ac_compiler_gnu=no
5554fi
5555
5556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557ac_cv_c_compiler_gnu=$ac_compiler_gnu
5558
5559fi
5560{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5561echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5562GCC=`test $ac_compiler_gnu = yes && echo yes`
5563ac_test_CFLAGS=${CFLAGS+set}
5564ac_save_CFLAGS=$CFLAGS
5565{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5566echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5567if test "${ac_cv_prog_cc_g+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 ac_save_c_werror_flag=$ac_c_werror_flag
5571 ac_c_werror_flag=yes
5572 ac_cv_prog_cc_g=no
5573 CFLAGS="-g"
5574 cat >conftest.$ac_ext <<_ACEOF
5575/* confdefs.h. */
5576_ACEOF
5577cat confdefs.h >>conftest.$ac_ext
5578cat >>conftest.$ac_ext <<_ACEOF
5579/* end confdefs.h. */
5580
5581int
5582main ()
5583{
5584
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext
5590if { (ac_try="$ac_compile"
5591case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_compile") 2>conftest.er1
5597 ac_status=$?
5598 grep -v '^ *+' conftest.er1 >conftest.err
5599 rm -f conftest.er1
5600 cat conftest.err >&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005602 (exit $ac_status); } &&
5603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_try") 2>&5
5610 ac_status=$?
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); }; } &&
5613 { ac_try='test -s conftest.$ac_objext'
5614 { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_try") 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005623 ac_cv_prog_cc_g=yes
5624else
5625 echo "$as_me: failed program was:" >&5
5626sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 CFLAGS=""
5629 cat >conftest.$ac_ext <<_ACEOF
5630/* confdefs.h. */
5631_ACEOF
5632cat confdefs.h >>conftest.$ac_ext
5633cat >>conftest.$ac_ext <<_ACEOF
5634/* end confdefs.h. */
5635
5636int
5637main ()
5638{
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (ac_try="$ac_compile"
5646case "(($ac_try" in
5647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5648 *) ac_try_echo=$ac_try;;
5649esac
5650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compile") 2>conftest.er1
5652 ac_status=$?
5653 grep -v '^ *+' conftest.er1 >conftest.err
5654 rm -f conftest.er1
5655 cat conftest.err >&5
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005657 (exit $ac_status); } &&
5658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5659 { (case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_try") 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; } &&
5668 { ac_try='test -s conftest.$ac_objext'
5669 { (case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672esac
5673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_try") 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005678 :
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683 ac_c_werror_flag=$ac_save_c_werror_flag
5684 CFLAGS="-g"
5685 cat >conftest.$ac_ext <<_ACEOF
5686/* confdefs.h. */
5687_ACEOF
5688cat confdefs.h >>conftest.$ac_ext
5689cat >>conftest.$ac_ext <<_ACEOF
5690/* end confdefs.h. */
5691
5692int
5693main ()
5694{
5695
5696 ;
5697 return 0;
5698}
5699_ACEOF
5700rm -f conftest.$ac_objext
5701if { (ac_try="$ac_compile"
5702case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705esac
5706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005713 (exit $ac_status); } &&
5714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; } &&
5724 { ac_try='test -s conftest.$ac_objext'
5725 { (case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_try") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005734 ac_cv_prog_cc_g=yes
5735else
5736 echo "$as_me: failed program was:" >&5
5737sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740fi
5741
5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743fi
5744
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746fi
5747
5748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_c_werror_flag=$ac_save_c_werror_flag
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5752echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5753if test "$ac_test_CFLAGS" = set; then
5754 CFLAGS=$ac_save_CFLAGS
5755elif test $ac_cv_prog_cc_g = yes; then
5756 if test "$GCC" = yes; then
5757 CFLAGS="-g -O2"
5758 else
5759 CFLAGS="-g"
5760 fi
5761else
5762 if test "$GCC" = yes; then
5763 CFLAGS="-O2"
5764 else
5765 CFLAGS=
5766 fi
5767fi
5768{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5769echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5770if test "${ac_cv_prog_cc_c89+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773 ac_cv_prog_cc_c89=no
5774ac_save_CC=$CC
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781#include <stdarg.h>
5782#include <stdio.h>
5783#include <sys/types.h>
5784#include <sys/stat.h>
5785/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5786struct buf { int x; };
5787FILE * (*rcsopen) (struct buf *, struct stat *, int);
5788static char *e (p, i)
5789 char **p;
5790 int i;
5791{
5792 return p[i];
5793}
5794static char *f (char * (*g) (char **, int), char **p, ...)
5795{
5796 char *s;
5797 va_list v;
5798 va_start (v,p);
5799 s = g (p, va_arg (v,int));
5800 va_end (v);
5801 return s;
5802}
5803
5804/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5805 function prototypes and stuff, but not '\xHH' hex character constants.
5806 These don't provoke an error unfortunately, instead are silently treated
5807 as 'x'. The following induces an error, until -std is added to get
5808 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5809 array size at least. It's necessary to write '\x00'==0 to get something
5810 that's true only with -std. */
5811int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5812
5813/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5814 inside strings and character constants. */
5815#define FOO(x) 'x'
5816int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5817
5818int test (int i, double x);
5819struct s1 {int (*f) (int a);};
5820struct s2 {int (*f) (double a);};
5821int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5822int argc;
5823char **argv;
5824int
5825main ()
5826{
5827return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5828 ;
5829 return 0;
5830}
5831_ACEOF
5832for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5833 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5834do
5835 CC="$ac_save_CC $ac_arg"
5836 rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005849 (exit $ac_status); } &&
5850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5851 { (case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854esac
5855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_try") 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; } &&
5860 { ac_try='test -s conftest.$ac_objext'
5861 { (case "(($ac_try" in
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5864esac
5865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_try") 2>&5
5867 ac_status=$?
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005870 ac_cv_prog_cc_c89=$ac_arg
5871else
5872 echo "$as_me: failed program was:" >&5
5873sed 's/^/| /' conftest.$ac_ext >&5
5874
5875
5876fi
5877
5878rm -f core conftest.err conftest.$ac_objext
5879 test "x$ac_cv_prog_cc_c89" != "xno" && break
5880done
5881rm -f conftest.$ac_ext
5882CC=$ac_save_CC
5883
5884fi
5885# AC_CACHE_VAL
5886case "x$ac_cv_prog_cc_c89" in
5887 x)
5888 { echo "$as_me:$LINENO: result: none needed" >&5
5889echo "${ECHO_T}none needed" >&6; } ;;
5890 xno)
5891 { echo "$as_me:$LINENO: result: unsupported" >&5
5892echo "${ECHO_T}unsupported" >&6; } ;;
5893 *)
5894 CC="$CC $ac_cv_prog_cc_c89"
5895 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5896echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5897esac
5898
5899
5900ac_ext=c
5901ac_cpp='$CPP $CPPFLAGS'
5902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5904ac_compiler_gnu=$ac_cv_c_compiler_gnu
5905
5906ac_ext=cpp
5907ac_cpp='$CXXCPP $CPPFLAGS'
5908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5911if test -z "$CXX"; then
5912 if test -n "$CCC"; then
5913 CXX=$CCC
5914 else
5915 if test -n "$ac_tool_prefix"; then
5916 for ac_prog in g++
5917 do
5918 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5919set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5920{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922if test "${ac_cv_prog_CXX+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 if test -n "$CXX"; then
5926 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5927else
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005934 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 +00005935 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5937 break 2
5938 fi
5939done
5940done
5941IFS=$as_save_IFS
5942
5943fi
5944fi
5945CXX=$ac_cv_prog_CXX
5946if test -n "$CXX"; then
5947 { echo "$as_me:$LINENO: result: $CXX" >&5
5948echo "${ECHO_T}$CXX" >&6; }
5949else
5950 { echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6; }
5952fi
5953
5954
5955 test -n "$CXX" && break
5956 done
5957fi
5958if test -z "$CXX"; then
5959 ac_ct_CXX=$CXX
5960 for ac_prog in g++
5961do
5962 # Extract the first word of "$ac_prog", so it can be a program name with args.
5963set dummy $ac_prog; ac_word=$2
5964{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5966if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if test -n "$ac_ct_CXX"; then
5970 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5971else
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975 IFS=$as_save_IFS
5976 test -z "$as_dir" && as_dir=.
5977 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00005978 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 +00005979 ac_cv_prog_ac_ct_CXX="$ac_prog"
5980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5981 break 2
5982 fi
5983done
5984done
5985IFS=$as_save_IFS
5986
5987fi
5988fi
5989ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5990if test -n "$ac_ct_CXX"; then
5991 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5992echo "${ECHO_T}$ac_ct_CXX" >&6; }
5993else
5994 { echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6; }
5996fi
5997
5998
5999 test -n "$ac_ct_CXX" && break
6000done
6001
6002 if test "x$ac_ct_CXX" = x; then
6003 CXX="g++"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006yes:)
6007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6008whose name does not start with the host triplet. If you think this
6009configuration is useful to you, please write to autoconf@gnu.org." >&5
6010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6011whose name does not start with the host triplet. If you think this
6012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6013ac_tool_warned=yes ;;
6014esac
6015 CXX=$ac_ct_CXX
6016 fi
6017fi
6018
6019 fi
6020fi
6021# Provide some information about the compiler.
6022echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6023ac_compiler=`set X $ac_compile; echo $2`
6024{ (ac_try="$ac_compiler --version >&5"
6025case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028esac
6029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compiler --version >&5") 2>&5
6031 ac_status=$?
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }
6034{ (ac_try="$ac_compiler -v >&5"
6035case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038esac
6039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compiler -v >&5") 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }
6044{ (ac_try="$ac_compiler -V >&5"
6045case "(($ac_try" in
6046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6047 *) ac_try_echo=$ac_try;;
6048esac
6049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6050 (eval "$ac_compiler -V >&5") 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }
6054
6055{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6056echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6057if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6058 echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067int
6068main ()
6069{
6070#ifndef __GNUC__
6071 choke me
6072#endif
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
6097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6099 ac_status=$?
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6106esac
6107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006112 ac_compiler_gnu=yes
6113else
6114 echo "$as_me: failed program was:" >&5
6115sed 's/^/| /' conftest.$ac_ext >&5
6116
6117 ac_compiler_gnu=no
6118fi
6119
6120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6122
6123fi
6124{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6125echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6126GXX=`test $ac_compiler_gnu = yes && echo yes`
6127ac_test_CXXFLAGS=${CXXFLAGS+set}
6128ac_save_CXXFLAGS=$CXXFLAGS
6129{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6130echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6131if test "${ac_cv_prog_cxx_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6135 ac_cxx_werror_flag=yes
6136 ac_cv_prog_cxx_g=no
6137 CXXFLAGS="-g"
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148
6149 ;
6150 return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext
6154if { (ac_try="$ac_compile"
6155case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158esac
6159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6168 { (case "(($ac_try" in
6169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6170 *) ac_try_echo=$ac_try;;
6171esac
6172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6173 (eval "$ac_try") 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; } &&
6177 { ac_try='test -s conftest.$ac_objext'
6178 { (case "(($ac_try" in
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6181esac
6182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_try") 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006187 ac_cv_prog_cxx_g=yes
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 CXXFLAGS=""
6193 cat >conftest.$ac_ext <<_ACEOF
6194/* confdefs.h. */
6195_ACEOF
6196cat confdefs.h >>conftest.$ac_ext
6197cat >>conftest.$ac_ext <<_ACEOF
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208rm -f conftest.$ac_objext
6209if { (ac_try="$ac_compile"
6210case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6216 ac_status=$?
6217 grep -v '^ *+' conftest.er1 >conftest.err
6218 rm -f conftest.er1
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006221 (exit $ac_status); } &&
6222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6223 { (case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226esac
6227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6228 (eval "$ac_try") 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest.$ac_objext'
6233 { (case "(($ac_try" in
6234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6235 *) ac_try_echo=$ac_try;;
6236esac
6237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6238 (eval "$ac_try") 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006242 :
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6248 CXXFLAGS="-g"
6249 cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h. */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h. */
6255
6256int
6257main ()
6258{
6259
6260 ;
6261 return 0;
6262}
6263_ACEOF
6264rm -f conftest.$ac_objext
6265if { (ac_try="$ac_compile"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006277 (exit $ac_status); } &&
6278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6279 { (case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282esac
6283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_try") 2>&5
6285 ac_status=$?
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); }; } &&
6288 { ac_try='test -s conftest.$ac_objext'
6289 { (case "(($ac_try" in
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6292esac
6293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_try") 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006298 ac_cv_prog_cxx_g=yes
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303
6304fi
6305
6306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6307fi
6308
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311
6312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6314fi
6315{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6316echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6317if test "$ac_test_CXXFLAGS" = set; then
6318 CXXFLAGS=$ac_save_CXXFLAGS
6319elif test $ac_cv_prog_cxx_g = yes; then
6320 if test "$GXX" = yes; then
6321 CXXFLAGS="-g -O2"
6322 else
6323 CXXFLAGS="-g"
6324 fi
6325else
6326 if test "$GXX" = yes; then
6327 CXXFLAGS="-O2"
6328 else
6329 CXXFLAGS=
6330 fi
6331fi
6332ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
Reid Spencera773bd52006-08-04 18:18:08 +00006338
6339{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6340echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6341if test "${lt_cv_path_NM+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343else
6344 if test -n "$NM"; then
6345 # Let the user override the test.
6346 lt_cv_path_NM="$NM"
6347else
6348 lt_nm_to_check="${ac_tool_prefix}nm"
6349 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6350 lt_nm_to_check="$lt_nm_to_check nm"
6351 fi
6352 for lt_tmp_nm in $lt_nm_to_check; do
6353 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6354 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6355 IFS="$lt_save_ifs"
6356 test -z "$ac_dir" && ac_dir=.
6357 tmp_nm="$ac_dir/$lt_tmp_nm"
6358 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6359 # Check to see if the nm accepts a BSD-compat flag.
6360 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6361 # nm: unknown option "B" ignored
6362 # Tru64's nm complains that /dev/null is an invalid object file
6363 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6364 */dev/null* | *'Invalid file or object type'*)
6365 lt_cv_path_NM="$tmp_nm -B"
6366 break
6367 ;;
6368 *)
6369 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6370 */dev/null*)
6371 lt_cv_path_NM="$tmp_nm -p"
6372 break
6373 ;;
6374 *)
6375 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6376 continue # so that we can try to find one that supports BSD flags
6377 ;;
6378 esac
6379 ;;
6380 esac
6381 fi
6382 done
6383 IFS="$lt_save_ifs"
6384 done
6385 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6386fi
6387fi
6388{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6389echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6390NM="$lt_cv_path_NM"
6391
6392
6393
6394{ echo "$as_me:$LINENO: checking for GNU make" >&5
6395echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6396if test "${llvm_cv_gnu_make_command+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399 llvm_cv_gnu_make_command=''
6400 for a in "$MAKE" make gmake gnumake ; do
6401 if test -z "$a" ; then continue ; fi ;
6402 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6403 then
6404 llvm_cv_gnu_make_command=$a ;
6405 break;
6406 fi
6407 done
6408fi
6409{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6410echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6411 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6412 ifGNUmake='' ;
6413 else
6414 ifGNUmake='#' ;
6415 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6416echo "${ECHO_T}\"Not found\"" >&6; };
6417 fi
6418
6419
6420{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6421echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6422LN_S=$as_ln_s
6423if test "$LN_S" = "ln -s"; then
6424 { echo "$as_me:$LINENO: result: yes" >&5
6425echo "${ECHO_T}yes" >&6; }
6426else
6427 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6428echo "${ECHO_T}no, using $LN_S" >&6; }
6429fi
6430
6431# Extract the first word of "cmp", so it can be a program name with args.
6432set dummy cmp; ac_word=$2
6433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6435if test "${ac_cv_path_CMP+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437else
6438 case $CMP in
6439 [\\/]* | ?:[\\/]*)
6440 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6441 ;;
6442 *)
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446 IFS=$as_save_IFS
6447 test -z "$as_dir" && as_dir=.
6448 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006449 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 +00006450 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452 break 2
6453 fi
6454done
6455done
6456IFS=$as_save_IFS
6457
6458 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6459 ;;
6460esac
6461fi
6462CMP=$ac_cv_path_CMP
6463if test -n "$CMP"; then
6464 { echo "$as_me:$LINENO: result: $CMP" >&5
6465echo "${ECHO_T}$CMP" >&6; }
6466else
6467 { echo "$as_me:$LINENO: result: no" >&5
6468echo "${ECHO_T}no" >&6; }
6469fi
6470
6471
6472# Extract the first word of "cp", so it can be a program name with args.
6473set dummy cp; ac_word=$2
6474{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6476if test "${ac_cv_path_CP+set}" = set; then
6477 echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479 case $CP in
6480 [\\/]* | ?:[\\/]*)
6481 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6482 ;;
6483 *)
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485for as_dir in $PATH
6486do
6487 IFS=$as_save_IFS
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006490 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 +00006491 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 break 2
6494 fi
6495done
6496done
6497IFS=$as_save_IFS
6498
6499 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6500 ;;
6501esac
6502fi
6503CP=$ac_cv_path_CP
6504if test -n "$CP"; then
6505 { echo "$as_me:$LINENO: result: $CP" >&5
6506echo "${ECHO_T}$CP" >&6; }
6507else
6508 { echo "$as_me:$LINENO: result: no" >&5
6509echo "${ECHO_T}no" >&6; }
6510fi
6511
6512
6513# Extract the first word of "date", so it can be a program name with args.
6514set dummy date; ac_word=$2
6515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517if test "${ac_cv_path_DATE+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519else
6520 case $DATE in
6521 [\\/]* | ?:[\\/]*)
6522 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6523 ;;
6524 *)
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526for as_dir in $PATH
6527do
6528 IFS=$as_save_IFS
6529 test -z "$as_dir" && as_dir=.
6530 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006531 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 +00006532 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6534 break 2
6535 fi
6536done
6537done
6538IFS=$as_save_IFS
6539
6540 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6541 ;;
6542esac
6543fi
6544DATE=$ac_cv_path_DATE
6545if test -n "$DATE"; then
6546 { echo "$as_me:$LINENO: result: $DATE" >&5
6547echo "${ECHO_T}$DATE" >&6; }
6548else
6549 { echo "$as_me:$LINENO: result: no" >&5
6550echo "${ECHO_T}no" >&6; }
6551fi
6552
6553
6554# Extract the first word of "find", so it can be a program name with args.
6555set dummy find; ac_word=$2
6556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6558if test "${ac_cv_path_FIND+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560else
6561 case $FIND in
6562 [\\/]* | ?:[\\/]*)
6563 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6564 ;;
6565 *)
6566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6567for as_dir in $PATH
6568do
6569 IFS=$as_save_IFS
6570 test -z "$as_dir" && as_dir=.
6571 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006572 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 +00006573 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6575 break 2
6576 fi
6577done
6578done
6579IFS=$as_save_IFS
6580
6581 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6582 ;;
6583esac
6584fi
6585FIND=$ac_cv_path_FIND
6586if test -n "$FIND"; then
6587 { echo "$as_me:$LINENO: result: $FIND" >&5
6588echo "${ECHO_T}$FIND" >&6; }
6589else
6590 { echo "$as_me:$LINENO: result: no" >&5
6591echo "${ECHO_T}no" >&6; }
6592fi
6593
6594
6595# Extract the first word of "grep", so it can be a program name with args.
6596set dummy grep; ac_word=$2
6597{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599if test "${ac_cv_path_GREP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602 case $GREP in
6603 [\\/]* | ?:[\\/]*)
6604 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6605 ;;
6606 *)
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006613 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 +00006614 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618done
6619done
6620IFS=$as_save_IFS
6621
6622 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6623 ;;
6624esac
6625fi
6626GREP=$ac_cv_path_GREP
6627if test -n "$GREP"; then
6628 { echo "$as_me:$LINENO: result: $GREP" >&5
6629echo "${ECHO_T}$GREP" >&6; }
6630else
6631 { echo "$as_me:$LINENO: result: no" >&5
6632echo "${ECHO_T}no" >&6; }
6633fi
6634
6635
6636# Extract the first word of "mkdir", so it can be a program name with args.
6637set dummy mkdir; ac_word=$2
6638{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640if test "${ac_cv_path_MKDIR+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 case $MKDIR in
6644 [\\/]* | ?:[\\/]*)
6645 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6646 ;;
6647 *)
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006654 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 +00006655 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657 break 2
6658 fi
6659done
6660done
6661IFS=$as_save_IFS
6662
6663 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6664 ;;
6665esac
6666fi
6667MKDIR=$ac_cv_path_MKDIR
6668if test -n "$MKDIR"; then
6669 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6670echo "${ECHO_T}$MKDIR" >&6; }
6671else
6672 { echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6; }
6674fi
6675
6676
6677# Extract the first word of "mv", so it can be a program name with args.
6678set dummy mv; ac_word=$2
6679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6681if test "${ac_cv_path_MV+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684 case $MV in
6685 [\\/]* | ?:[\\/]*)
6686 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6687 ;;
6688 *)
6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692 IFS=$as_save_IFS
6693 test -z "$as_dir" && as_dir=.
6694 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006695 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 +00006696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 break 2
6699 fi
6700done
6701done
6702IFS=$as_save_IFS
6703
6704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6705 ;;
6706esac
6707fi
6708MV=$ac_cv_path_MV
6709if test -n "$MV"; then
6710 { echo "$as_me:$LINENO: result: $MV" >&5
6711echo "${ECHO_T}$MV" >&6; }
6712else
6713 { echo "$as_me:$LINENO: result: no" >&5
6714echo "${ECHO_T}no" >&6; }
6715fi
6716
6717
6718if test -n "$ac_tool_prefix"; then
6719 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6720set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6721{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723if test "${ac_cv_prog_RANLIB+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732 IFS=$as_save_IFS
6733 test -z "$as_dir" && as_dir=.
6734 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006735 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 +00006736 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 break 2
6739 fi
6740done
6741done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746RANLIB=$ac_cv_prog_RANLIB
6747if test -n "$RANLIB"; then
6748 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6749echo "${ECHO_T}$RANLIB" >&6; }
6750else
6751 { echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6; }
6753fi
6754
6755
6756fi
6757if test -z "$ac_cv_prog_RANLIB"; then
6758 ac_ct_RANLIB=$RANLIB
6759 # Extract the first word of "ranlib", so it can be a program name with args.
6760set dummy ranlib; ac_word=$2
6761{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6763if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765else
6766 if test -n "$ac_ct_RANLIB"; then
6767 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768else
6769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770for as_dir in $PATH
6771do
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006775 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 +00006776 ac_cv_prog_ac_ct_RANLIB="ranlib"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778 break 2
6779 fi
6780done
6781done
6782IFS=$as_save_IFS
6783
6784fi
6785fi
6786ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6787if test -n "$ac_ct_RANLIB"; then
6788 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6789echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790else
6791 { echo "$as_me:$LINENO: result: no" >&5
6792echo "${ECHO_T}no" >&6; }
6793fi
6794
6795 if test "x$ac_ct_RANLIB" = x; then
6796 RANLIB=":"
6797 else
6798 case $cross_compiling:$ac_tool_warned in
6799yes:)
6800{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6801whose name does not start with the host triplet. If you think this
6802configuration is useful to you, please write to autoconf@gnu.org." >&5
6803echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6804whose name does not start with the host triplet. If you think this
6805configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6806ac_tool_warned=yes ;;
6807esac
6808 RANLIB=$ac_ct_RANLIB
6809 fi
6810else
6811 RANLIB="$ac_cv_prog_RANLIB"
6812fi
6813
6814# Extract the first word of "rm", so it can be a program name with args.
6815set dummy rm; ac_word=$2
6816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818if test "${ac_cv_path_RM+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820else
6821 case $RM in
6822 [\\/]* | ?:[\\/]*)
6823 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6824 ;;
6825 *)
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006832 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 +00006833 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837done
6838done
6839IFS=$as_save_IFS
6840
6841 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6842 ;;
6843esac
6844fi
6845RM=$ac_cv_path_RM
6846if test -n "$RM"; then
6847 { echo "$as_me:$LINENO: result: $RM" >&5
6848echo "${ECHO_T}$RM" >&6; }
6849else
6850 { echo "$as_me:$LINENO: result: no" >&5
6851echo "${ECHO_T}no" >&6; }
6852fi
6853
6854
6855# Extract the first word of "sed", so it can be a program name with args.
6856set dummy sed; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_path_SED+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 case $SED in
6863 [\\/]* | ?:[\\/]*)
6864 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6865 ;;
6866 *)
6867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006873 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 +00006874 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6883 ;;
6884esac
6885fi
6886SED=$ac_cv_path_SED
6887if test -n "$SED"; then
6888 { echo "$as_me:$LINENO: result: $SED" >&5
6889echo "${ECHO_T}$SED" >&6; }
6890else
6891 { echo "$as_me:$LINENO: result: no" >&5
6892echo "${ECHO_T}no" >&6; }
6893fi
6894
6895
6896# Extract the first word of "tar", so it can be a program name with args.
6897set dummy tar; ac_word=$2
6898{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900if test "${ac_cv_path_TAR+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902else
6903 case $TAR in
6904 [\\/]* | ?:[\\/]*)
6905 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6906 ;;
6907 *)
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909for as_dir in $PATH
6910do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006914 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 +00006915 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919done
6920done
6921IFS=$as_save_IFS
6922
6923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6924 ;;
6925esac
6926fi
6927TAR=$ac_cv_path_TAR
6928if test -n "$TAR"; then
6929 { echo "$as_me:$LINENO: result: $TAR" >&5
6930echo "${ECHO_T}$TAR" >&6; }
6931else
6932 { echo "$as_me:$LINENO: result: no" >&5
6933echo "${ECHO_T}no" >&6; }
6934fi
6935
6936
6937# Extract the first word of "pwd", so it can be a program name with args.
6938set dummy pwd; ac_word=$2
6939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941if test "${ac_cv_path_BINPWD+set}" = set; then
6942 echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944 case $BINPWD in
6945 [\\/]* | ?:[\\/]*)
6946 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6947 ;;
6948 *)
6949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950for as_dir in $PATH
6951do
6952 IFS=$as_save_IFS
6953 test -z "$as_dir" && as_dir=.
6954 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006955 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 +00006956 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958 break 2
6959 fi
6960done
6961done
6962IFS=$as_save_IFS
6963
6964 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6965 ;;
6966esac
6967fi
6968BINPWD=$ac_cv_path_BINPWD
6969if test -n "$BINPWD"; then
6970 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6971echo "${ECHO_T}$BINPWD" >&6; }
6972else
6973 { echo "$as_me:$LINENO: result: no" >&5
6974echo "${ECHO_T}no" >&6; }
6975fi
6976
6977
6978
6979# Extract the first word of "Graphviz", so it can be a program name with args.
6980set dummy Graphviz; ac_word=$2
6981{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6984 echo $ECHO_N "(cached) $ECHO_C" >&6
6985else
6986 case $GRAPHVIZ in
6987 [\\/]* | ?:[\\/]*)
6988 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6989 ;;
6990 *)
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992for as_dir in $PATH
6993do
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00006997 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 +00006998 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7001 fi
7002done
7003done
7004IFS=$as_save_IFS
7005
7006 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7007 ;;
7008esac
7009fi
7010GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7011if test -n "$GRAPHVIZ"; then
7012 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7013echo "${ECHO_T}$GRAPHVIZ" >&6; }
7014else
7015 { echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6; }
7017fi
7018
7019
7020if test "$GRAPHVIZ" != "echo Graphviz" ; then
7021
7022cat >>confdefs.h <<\_ACEOF
7023#define HAVE_GRAPHVIZ 1
7024_ACEOF
7025
Jeff Cohen28783c32007-01-12 18:22:38 +00007026 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007027 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7028 fi
7029
7030cat >>confdefs.h <<_ACEOF
7031#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7032_ACEOF
7033
7034fi
7035# Extract the first word of "dot", so it can be a program name with args.
7036set dummy dot; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_path_DOT+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 case $DOT in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7045 ;;
7046 *)
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007053 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 +00007054 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7063 ;;
7064esac
7065fi
7066DOT=$ac_cv_path_DOT
7067if test -n "$DOT"; then
7068 { echo "$as_me:$LINENO: result: $DOT" >&5
7069echo "${ECHO_T}$DOT" >&6; }
7070else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
7073fi
7074
7075
7076if test "$DOT" != "echo dot" ; then
7077
7078cat >>confdefs.h <<\_ACEOF
7079#define HAVE_DOT 1
7080_ACEOF
7081
Jeff Cohen28783c32007-01-12 18:22:38 +00007082 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007083 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7084 fi
7085
7086cat >>confdefs.h <<_ACEOF
7087#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7088_ACEOF
7089
7090fi
7091for ac_prog in gv gsview32
7092do
7093 # Extract the first word of "$ac_prog", so it can be a program name with args.
7094set dummy $ac_prog; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_path_GV+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 case $GV in
7101 [\\/]* | ?:[\\/]*)
7102 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7103 ;;
7104 *)
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007111 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 +00007112 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7115 fi
7116done
7117done
7118IFS=$as_save_IFS
7119
7120 ;;
7121esac
7122fi
7123GV=$ac_cv_path_GV
7124if test -n "$GV"; then
7125 { echo "$as_me:$LINENO: result: $GV" >&5
7126echo "${ECHO_T}$GV" >&6; }
7127else
7128 { echo "$as_me:$LINENO: result: no" >&5
7129echo "${ECHO_T}no" >&6; }
7130fi
7131
7132
7133 test -n "$GV" && break
7134done
7135test -n "$GV" || GV="echo gv"
7136
7137if test "$GV" != "echo gv" ; then
7138
7139cat >>confdefs.h <<\_ACEOF
7140#define HAVE_GV 1
7141_ACEOF
7142
Jeff Cohen28783c32007-01-12 18:22:38 +00007143 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007144 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7145 fi
7146
7147cat >>confdefs.h <<_ACEOF
7148#define LLVM_PATH_GV "$GV${EXEEXT}"
7149_ACEOF
7150
7151fi
7152# Extract the first word of "dotty", so it can be a program name with args.
7153set dummy dotty; ac_word=$2
7154{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156if test "${ac_cv_path_DOTTY+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 case $DOTTY in
7160 [\\/]* | ?:[\\/]*)
7161 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7162 ;;
7163 *)
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7165for as_dir in $PATH
7166do
7167 IFS=$as_save_IFS
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007170 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 +00007171 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7173 break 2
7174 fi
7175done
7176done
7177IFS=$as_save_IFS
7178
7179 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7180 ;;
7181esac
7182fi
7183DOTTY=$ac_cv_path_DOTTY
7184if test -n "$DOTTY"; then
7185 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7186echo "${ECHO_T}$DOTTY" >&6; }
7187else
7188 { echo "$as_me:$LINENO: result: no" >&5
7189echo "${ECHO_T}no" >&6; }
7190fi
7191
7192
7193if test "$DOTTY" != "echo dotty" ; then
7194
7195cat >>confdefs.h <<\_ACEOF
7196#define HAVE_DOTTY 1
7197_ACEOF
7198
Jeff Cohen28783c32007-01-12 18:22:38 +00007199 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007200 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7201 fi
7202
7203cat >>confdefs.h <<_ACEOF
7204#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7205_ACEOF
7206
7207fi
7208
7209
7210# Extract the first word of "perl", so it can be a program name with args.
7211set dummy perl; ac_word=$2
7212{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214if test "${ac_cv_path_PERL+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7216else
7217 case $PERL in
7218 [\\/]* | ?:[\\/]*)
7219 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7220 ;;
7221 *)
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223for as_dir in $PATH
7224do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007228 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 +00007229 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233done
7234done
7235IFS=$as_save_IFS
7236
7237 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7238 ;;
7239esac
7240fi
7241PERL=$ac_cv_path_PERL
7242if test -n "$PERL"; then
7243 { echo "$as_me:$LINENO: result: $PERL" >&5
7244echo "${ECHO_T}$PERL" >&6; }
7245else
7246 { echo "$as_me:$LINENO: result: no" >&5
7247echo "${ECHO_T}no" >&6; }
7248fi
7249
7250
7251if test "$PERL" != "none"; then
7252 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7253echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7254 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7255 { echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6; }
7257 else
7258 PERL=none
7259 { echo "$as_me:$LINENO: result: not found" >&5
7260echo "${ECHO_T}not found" >&6; }
7261 fi
7262fi
7263
7264
7265if test x"$PERL" = xnone; then
7266 HAVE_PERL=0
7267
Reid Spencer59807fa2007-05-17 18:11:03 +00007268 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7269echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7270 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007271else
7272 HAVE_PERL=1
7273
7274fi
7275
7276# Find a good install program. We prefer a C program (faster),
7277# so one script is as good as another. But avoid the broken or
7278# incompatible versions:
7279# SysV /etc/install, /usr/sbin/install
7280# SunOS /usr/etc/install
7281# IRIX /sbin/install
7282# AIX /bin/install
7283# AmigaOS /C/install, which installs bootblocks on floppy discs
7284# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7285# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7286# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7287# OS/2's system install, which has a completely different semantic
7288# ./install, which can be erroneously created by make from ./install.sh.
7289{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7290echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7291if test -z "$INSTALL"; then
7292if test "${ac_cv_path_install+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296for as_dir in $PATH
7297do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 # Account for people who put trailing slashes in PATH elements.
7301case $as_dir/ in
7302 ./ | .// | /cC/* | \
7303 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7304 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7305 /usr/ucb/* ) ;;
7306 *)
7307 # OSF1 and SCO ODT 3.0 have their own names for install.
7308 # Don't use installbsd from OSF since it installs stuff as root
7309 # by default.
7310 for ac_prog in ginstall scoinst install; do
7311 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007312 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 +00007313 if test $ac_prog = install &&
7314 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7315 # AIX install. It has an incompatible calling convention.
7316 :
7317 elif test $ac_prog = install &&
7318 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7319 # program-specific install script used by HP pwplus--don't use.
7320 :
7321 else
7322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7323 break 3
7324 fi
7325 fi
7326 done
7327 done
7328 ;;
7329esac
7330done
7331IFS=$as_save_IFS
7332
7333
7334fi
7335 if test "${ac_cv_path_install+set}" = set; then
7336 INSTALL=$ac_cv_path_install
7337 else
7338 # As a last resort, use the slow shell script. Don't cache a
7339 # value for INSTALL within a source directory, because that will
7340 # break other packages using the cache if that directory is
7341 # removed, or if the value is a relative name.
7342 INSTALL=$ac_install_sh
7343 fi
7344fi
7345{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7346echo "${ECHO_T}$INSTALL" >&6; }
7347
7348# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7349# It thinks the first close brace ends the variable substitution.
7350test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7351
7352test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7353
7354test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7355
7356
7357# Extract the first word of "bzip2", so it can be a program name with args.
7358set dummy bzip2; ac_word=$2
7359{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7361if test "${ac_cv_path_BZIP2+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363else
7364 case $BZIP2 in
7365 [\\/]* | ?:[\\/]*)
7366 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7367 ;;
7368 *)
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007375 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 +00007376 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7379 fi
7380done
7381done
7382IFS=$as_save_IFS
7383
Reid Spencera773bd52006-08-04 18:18:08 +00007384 ;;
7385esac
7386fi
7387BZIP2=$ac_cv_path_BZIP2
7388if test -n "$BZIP2"; then
7389 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7390echo "${ECHO_T}$BZIP2" >&6; }
7391else
7392 { echo "$as_me:$LINENO: result: no" >&5
7393echo "${ECHO_T}no" >&6; }
7394fi
7395
7396
7397# Extract the first word of "doxygen", so it can be a program name with args.
7398set dummy doxygen; ac_word=$2
7399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7401if test "${ac_cv_path_DOXYGEN+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404 case $DOXYGEN in
7405 [\\/]* | ?:[\\/]*)
7406 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7407 ;;
7408 *)
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410for as_dir in $PATH
7411do
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007415 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 +00007416 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7419 fi
7420done
7421done
7422IFS=$as_save_IFS
7423
Reid Spencera773bd52006-08-04 18:18:08 +00007424 ;;
7425esac
7426fi
7427DOXYGEN=$ac_cv_path_DOXYGEN
7428if test -n "$DOXYGEN"; then
7429 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7430echo "${ECHO_T}$DOXYGEN" >&6; }
7431else
7432 { echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6; }
7434fi
7435
7436
Reid Spencera773bd52006-08-04 18:18:08 +00007437# Extract the first word of "groff", so it can be a program name with args.
7438set dummy groff; ac_word=$2
7439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7441if test "${ac_cv_path_GROFF+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443else
7444 case $GROFF in
7445 [\\/]* | ?:[\\/]*)
7446 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7447 ;;
7448 *)
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007455 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 +00007456 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460done
7461done
7462IFS=$as_save_IFS
7463
Reid Spencera773bd52006-08-04 18:18:08 +00007464 ;;
7465esac
7466fi
7467GROFF=$ac_cv_path_GROFF
7468if test -n "$GROFF"; then
7469 { echo "$as_me:$LINENO: result: $GROFF" >&5
7470echo "${ECHO_T}$GROFF" >&6; }
7471else
7472 { echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6; }
7474fi
7475
7476
7477# Extract the first word of "gzip", so it can be a program name with args.
7478set dummy gzip; ac_word=$2
7479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481if test "${ac_cv_path_GZIP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484 case $GZIP in
7485 [\\/]* | ?:[\\/]*)
7486 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7487 ;;
7488 *)
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007495 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 +00007496 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501done
7502IFS=$as_save_IFS
7503
Reid Spencera773bd52006-08-04 18:18:08 +00007504 ;;
7505esac
7506fi
7507GZIP=$ac_cv_path_GZIP
7508if test -n "$GZIP"; then
7509 { echo "$as_me:$LINENO: result: $GZIP" >&5
7510echo "${ECHO_T}$GZIP" >&6; }
7511else
7512 { echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6; }
7514fi
7515
7516
7517# Extract the first word of "pod2html", so it can be a program name with args.
7518set dummy pod2html; ac_word=$2
7519{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7521if test "${ac_cv_path_POD2HTML+set}" = set; then
7522 echo $ECHO_N "(cached) $ECHO_C" >&6
7523else
7524 case $POD2HTML in
7525 [\\/]* | ?:[\\/]*)
7526 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7527 ;;
7528 *)
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007535 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 +00007536 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7539 fi
7540done
7541done
7542IFS=$as_save_IFS
7543
Reid Spencera773bd52006-08-04 18:18:08 +00007544 ;;
7545esac
7546fi
7547POD2HTML=$ac_cv_path_POD2HTML
7548if test -n "$POD2HTML"; then
7549 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7550echo "${ECHO_T}$POD2HTML" >&6; }
7551else
7552 { echo "$as_me:$LINENO: result: no" >&5
7553echo "${ECHO_T}no" >&6; }
7554fi
7555
7556
7557# Extract the first word of "pod2man", so it can be a program name with args.
7558set dummy pod2man; ac_word=$2
7559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7561if test "${ac_cv_path_POD2MAN+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564 case $POD2MAN in
7565 [\\/]* | ?:[\\/]*)
7566 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7567 ;;
7568 *)
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570for as_dir in $PATH
7571do
7572 IFS=$as_save_IFS
7573 test -z "$as_dir" && as_dir=.
7574 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007575 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 +00007576 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 break 2
7579 fi
7580done
7581done
7582IFS=$as_save_IFS
7583
Reid Spencera773bd52006-08-04 18:18:08 +00007584 ;;
7585esac
7586fi
7587POD2MAN=$ac_cv_path_POD2MAN
7588if test -n "$POD2MAN"; then
7589 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7590echo "${ECHO_T}$POD2MAN" >&6; }
7591else
7592 { echo "$as_me:$LINENO: result: no" >&5
7593echo "${ECHO_T}no" >&6; }
7594fi
7595
7596
7597# Extract the first word of "runtest", so it can be a program name with args.
7598set dummy runtest; ac_word=$2
7599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601if test "${ac_cv_path_RUNTEST+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7603else
7604 case $RUNTEST in
7605 [\\/]* | ?:[\\/]*)
7606 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7607 ;;
7608 *)
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007615 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 +00007616 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620done
7621done
7622IFS=$as_save_IFS
7623
Reid Spencera773bd52006-08-04 18:18:08 +00007624 ;;
7625esac
7626fi
7627RUNTEST=$ac_cv_path_RUNTEST
7628if test -n "$RUNTEST"; then
7629 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7630echo "${ECHO_T}$RUNTEST" >&6; }
7631else
7632 { echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6; }
7634fi
7635
7636
7637
7638no_itcl=true
7639{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7640echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7641
7642# Check whether --with-tclinclude was given.
7643if test "${with_tclinclude+set}" = set; then
7644 withval=$with_tclinclude; with_tclinclude=${withval}
7645else
7646 with_tclinclude=''
7647fi
7648
7649if test "${ac_cv_path_tclsh+set}" = set; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651else
7652
7653if test x"${with_tclinclude}" != x ; then
7654 if test -f ${with_tclinclude}/tclsh ; then
7655 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7656 elif test -f ${with_tclinclude}/src/tclsh ; then
7657 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7658 else
7659 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7660echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7661 { (exit 1); exit 1; }; }
7662 fi
7663fi
7664
7665if test x"${ac_cv_path_tclsh}" = x ; then
7666 { echo "$as_me:$LINENO: result: none" >&5
7667echo "${ECHO_T}none" >&6; }
7668 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
7669do
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671set dummy $ac_prog; ac_word=$2
7672{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674if test "${ac_cv_path_TCLSH+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 case $TCLSH in
7678 [\\/]* | ?:[\\/]*)
7679 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7680 ;;
7681 *)
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685 IFS=$as_save_IFS
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007688 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 +00007689 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691 break 2
7692 fi
7693done
7694done
7695IFS=$as_save_IFS
7696
7697 ;;
7698esac
7699fi
7700TCLSH=$ac_cv_path_TCLSH
7701if test -n "$TCLSH"; then
7702 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7703echo "${ECHO_T}$TCLSH" >&6; }
7704else
7705 { echo "$as_me:$LINENO: result: no" >&5
7706echo "${ECHO_T}no" >&6; }
7707fi
7708
7709
7710 test -n "$TCLSH" && break
7711done
7712
7713 if test x"${TCLSH}" = x ; then
7714 ac_cv_path_tclsh='';
7715 else
7716 ac_cv_path_tclsh="${TCLSH}";
7717 fi
7718else
7719 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7720echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7721 TCLSH="${ac_cv_path_tclsh}"
7722
7723fi
7724
7725fi
7726
7727# Extract the first word of "zip", so it can be a program name with args.
7728set dummy zip; ac_word=$2
7729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7731if test "${ac_cv_path_ZIP+set}" = set; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733else
7734 case $ZIP in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007745 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 +00007746 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750done
7751done
7752IFS=$as_save_IFS
7753
Reid Spencera773bd52006-08-04 18:18:08 +00007754 ;;
7755esac
7756fi
7757ZIP=$ac_cv_path_ZIP
7758if test -n "$ZIP"; then
7759 { echo "$as_me:$LINENO: result: $ZIP" >&5
7760echo "${ECHO_T}$ZIP" >&6; }
7761else
7762 { echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6; }
7764fi
7765
7766
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007767for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00007768do
7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
7770set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7773if test "${ac_cv_path_OCAMLC+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775else
7776 case $OCAMLC in
7777 [\\/]* | ?:[\\/]*)
7778 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7779 ;;
7780 *)
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007787 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 +00007788 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792done
7793done
7794IFS=$as_save_IFS
7795
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007796 ;;
7797esac
7798fi
7799OCAMLC=$ac_cv_path_OCAMLC
7800if test -n "$OCAMLC"; then
7801 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7802echo "${ECHO_T}$OCAMLC" >&6; }
7803else
7804 { echo "$as_me:$LINENO: result: no" >&5
7805echo "${ECHO_T}no" >&6; }
7806fi
7807
7808
Gordon Henriksene7072162008-03-07 18:20:01 +00007809 test -n "$OCAMLC" && break
7810done
7811
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007812for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00007813do
7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
7815set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7818if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821 case $OCAMLOPT in
7822 [\\/]* | ?:[\\/]*)
7823 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7824 ;;
7825 *)
7826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
7831 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007832 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 +00007833 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7835 break 2
7836 fi
7837done
7838done
7839IFS=$as_save_IFS
7840
Gordon Henriksen54c7e122007-09-18 12:27:13 +00007841 ;;
7842esac
7843fi
7844OCAMLOPT=$ac_cv_path_OCAMLOPT
7845if test -n "$OCAMLOPT"; then
7846 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7847echo "${ECHO_T}$OCAMLOPT" >&6; }
7848else
7849 { echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6; }
7851fi
7852
7853
Gordon Henriksene7072162008-03-07 18:20:01 +00007854 test -n "$OCAMLOPT" && break
7855done
7856
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007857for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00007858do
7859 # Extract the first word of "$ac_prog", so it can be a program name with args.
7860set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7863if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866 case $OCAMLDEP in
7867 [\\/]* | ?:[\\/]*)
7868 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7869 ;;
7870 *)
7871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
7876 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007877 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 +00007878 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7880 break 2
7881 fi
7882done
7883done
7884IFS=$as_save_IFS
7885
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00007886 ;;
7887esac
7888fi
7889OCAMLDEP=$ac_cv_path_OCAMLDEP
7890if test -n "$OCAMLDEP"; then
7891 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7892echo "${ECHO_T}$OCAMLDEP" >&6; }
7893else
7894 { echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6; }
7896fi
7897
7898
Gordon Henriksene7072162008-03-07 18:20:01 +00007899 test -n "$OCAMLDEP" && break
7900done
7901
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007902for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00007903do
7904 # Extract the first word of "$ac_prog", so it can be a program name with args.
7905set dummy $ac_prog; ac_word=$2
7906{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7908if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910else
7911 case $OCAMLDOC in
7912 [\\/]* | ?:[\\/]*)
7913 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7914 ;;
7915 *)
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917for as_dir in $PATH
7918do
7919 IFS=$as_save_IFS
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007922 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 +00007923 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7925 break 2
7926 fi
7927done
7928done
7929IFS=$as_save_IFS
7930
7931 ;;
7932esac
7933fi
7934OCAMLDOC=$ac_cv_path_OCAMLDOC
7935if test -n "$OCAMLDOC"; then
7936 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7937echo "${ECHO_T}$OCAMLDOC" >&6; }
7938else
7939 { echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6; }
7941fi
7942
7943
7944 test -n "$OCAMLDOC" && break
7945done
7946
Torok Edwincc499a42008-10-22 09:56:27 +00007947for ac_prog in gas as
7948do
7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
7950set dummy $ac_prog; ac_word=$2
7951{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953if test "${ac_cv_path_GAS+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955else
7956 case $GAS in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7959 ;;
7960 *)
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00007967 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 +00007968 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7971 fi
7972done
7973done
7974IFS=$as_save_IFS
7975
7976 ;;
7977esac
7978fi
7979GAS=$ac_cv_path_GAS
7980if test -n "$GAS"; then
7981 { echo "$as_me:$LINENO: result: $GAS" >&5
7982echo "${ECHO_T}$GAS" >&6; }
7983else
7984 { echo "$as_me:$LINENO: result: no" >&5
7985echo "${ECHO_T}no" >&6; }
7986fi
7987
7988
7989 test -n "$GAS" && break
7990done
7991
Reid Spencera773bd52006-08-04 18:18:08 +00007992
7993{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7994echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7995if test "${llvm_cv_link_use_r+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997else
7998 ac_ext=c
7999ac_cpp='$CPP $CPPFLAGS'
8000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8002ac_compiler_gnu=$ac_cv_c_compiler_gnu
8003
8004 oldcflags="$CFLAGS"
8005 CFLAGS="$CFLAGS -Wl,-R."
8006 cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012
8013int
8014main ()
8015{
8016int main() { return 0; }
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021rm -f conftest.$ac_objext conftest$ac_exeext
8022if { (ac_try="$ac_link"
8023case "(($ac_try" in
8024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8025 *) ac_try_echo=$ac_try;;
8026esac
8027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8028 (eval "$ac_link") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8036 { (case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_try") 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049esac
8050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_try") 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008055 llvm_cv_link_use_r=yes
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 llvm_cv_link_use_r=no
8061fi
8062
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008063rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008064 conftest$ac_exeext conftest.$ac_ext
8065 CFLAGS="$oldcflags"
8066 ac_ext=c
8067ac_cpp='$CPP $CPPFLAGS'
8068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8070ac_compiler_gnu=$ac_cv_c_compiler_gnu
8071
8072
8073fi
8074{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8075echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8076if test "$llvm_cv_link_use_r" = yes ; then
8077
8078cat >>confdefs.h <<\_ACEOF
8079#define HAVE_LINK_R 1
8080_ACEOF
8081
8082 fi
8083
8084
8085
8086
8087{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8088echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8089if test "${ac_cv_c_const+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091else
8092 cat >conftest.$ac_ext <<_ACEOF
8093/* confdefs.h. */
8094_ACEOF
8095cat confdefs.h >>conftest.$ac_ext
8096cat >>conftest.$ac_ext <<_ACEOF
8097/* end confdefs.h. */
8098
8099int
8100main ()
8101{
8102/* FIXME: Include the comments suggested by Paul. */
8103#ifndef __cplusplus
8104 /* Ultrix mips cc rejects this. */
8105 typedef int charset[2];
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008106 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008107 /* SunOS 4.1.1 cc rejects this. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008108 char const *const *ccp;
8109 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008110 /* NEC SVR4.0.2 mips cc rejects this. */
8111 struct point {int x, y;};
8112 static struct point const zero = {0,0};
8113 /* AIX XL C 1.02.0.0 rejects this.
8114 It does not let you subtract one const X* pointer from another in
8115 an arm of an if-expression whose if-part is not a constant
8116 expression */
8117 const char *g = "string";
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008118 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008119 /* HPUX 7.0 cc rejects these. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008120 ++ccp;
8121 p = (char**) ccp;
8122 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008123 { /* SCO 3.2v4 cc rejects this. */
8124 char *t;
8125 char const *s = 0 ? (char *) 0 : (char const *) 0;
8126
8127 *t++ = 0;
8128 if (s) return 0;
8129 }
8130 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8131 int x[] = {25, 17};
8132 const int *foo = &x[0];
8133 ++foo;
8134 }
8135 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8136 typedef const int *iptr;
8137 iptr p = 0;
8138 ++p;
8139 }
8140 { /* AIX XL C 1.02.0.0 rejects this saying
8141 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8142 struct s { int j; const int *ap[3]; };
8143 struct s *b; b->j = 5;
8144 }
8145 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8146 const int foo = 10;
8147 if (!foo) return 0;
8148 }
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008149 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008150#endif
8151
8152 ;
8153 return 0;
8154}
8155_ACEOF
8156rm -f conftest.$ac_objext
8157if { (ac_try="$ac_compile"
8158case "(($ac_try" in
8159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160 *) ac_try_echo=$ac_try;;
8161esac
8162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163 (eval "$ac_compile") 2>conftest.er1
8164 ac_status=$?
8165 grep -v '^ *+' conftest.er1 >conftest.err
8166 rm -f conftest.er1
8167 cat conftest.err >&5
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008169 (exit $ac_status); } &&
8170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8171 { (case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
8175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176 (eval "$ac_try") 2>&5
8177 ac_status=$?
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; } &&
8180 { ac_try='test -s conftest.$ac_objext'
8181 { (case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
8185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_try") 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008190 ac_cv_c_const=yes
8191else
8192 echo "$as_me: failed program was:" >&5
8193sed 's/^/| /' conftest.$ac_ext >&5
8194
8195 ac_cv_c_const=no
8196fi
8197
8198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199fi
8200{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8201echo "${ECHO_T}$ac_cv_c_const" >&6; }
8202if test $ac_cv_c_const = no; then
8203
8204cat >>confdefs.h <<\_ACEOF
8205#define const
8206_ACEOF
8207
8208fi
8209
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210
8211
8212
8213
8214
8215ac_header_dirent=no
8216for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8217 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008218{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8219echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221 echo $ECHO_N "(cached) $ECHO_C" >&6
8222else
8223 cat >conftest.$ac_ext <<_ACEOF
8224/* confdefs.h. */
8225_ACEOF
8226cat confdefs.h >>conftest.$ac_ext
8227cat >>conftest.$ac_ext <<_ACEOF
8228/* end confdefs.h. */
8229#include <sys/types.h>
8230#include <$ac_hdr>
8231
8232int
8233main ()
8234{
8235if ((DIR *) 0)
8236return 0;
8237 ;
8238 return 0;
8239}
8240_ACEOF
8241rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008242if { (ac_try="$ac_compile"
8243case "(($ac_try" in
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8246esac
8247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
8260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; } &&
8265 { ac_try='test -s conftest.$ac_objext'
8266 { (case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_try") 2>&5
8272 ac_status=$?
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008275 eval "$as_ac_Header=yes"
8276else
8277 echo "$as_me: failed program was:" >&5
8278sed 's/^/| /' conftest.$ac_ext >&5
8279
Reid Spencera773bd52006-08-04 18:18:08 +00008280 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008281fi
Reid Spencera773bd52006-08-04 18:18:08 +00008282
8283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008284fi
Reid Spencera773bd52006-08-04 18:18:08 +00008285ac_res=`eval echo '${'$as_ac_Header'}'`
8286 { echo "$as_me:$LINENO: result: $ac_res" >&5
8287echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008288if test `eval echo '${'$as_ac_Header'}'` = yes; then
8289 cat >>confdefs.h <<_ACEOF
8290#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8291_ACEOF
8292
8293ac_header_dirent=$ac_hdr; break
8294fi
8295
8296done
8297# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8298if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008299 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8300echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008301if test "${ac_cv_search_opendir+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008305cat >conftest.$ac_ext <<_ACEOF
8306/* confdefs.h. */
8307_ACEOF
8308cat confdefs.h >>conftest.$ac_ext
8309cat >>conftest.$ac_ext <<_ACEOF
8310/* end confdefs.h. */
8311
Reid Spencera773bd52006-08-04 18:18:08 +00008312/* Override any GCC internal prototype to avoid an error.
8313 Use char because int might match the return type of a GCC
8314 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008315#ifdef __cplusplus
8316extern "C"
8317#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008318char opendir ();
8319int
8320main ()
8321{
Reid Spencera773bd52006-08-04 18:18:08 +00008322return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008323 ;
8324 return 0;
8325}
8326_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008327for ac_lib in '' dir; do
8328 if test -z "$ac_lib"; then
8329 ac_res="none required"
8330 else
8331 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008332 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008333 fi
8334 rm -f conftest.$ac_objext conftest$ac_exeext
8335if { (ac_try="$ac_link"
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_link") 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_exeext'
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 Spencera773bd52006-08-04 18:18:08 +00008368 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008369else
8370 echo "$as_me: failed program was:" >&5
8371sed 's/^/| /' conftest.$ac_ext >&5
8372
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008373
8374fi
8375
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008376rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008377 conftest$ac_exeext
8378 if test "${ac_cv_search_opendir+set}" = set; then
8379 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008380fi
John Criswell7a73b802003-06-30 21:59:07 +00008381done
Reid Spencera773bd52006-08-04 18:18:08 +00008382if test "${ac_cv_search_opendir+set}" = set; then
8383 :
8384else
8385 ac_cv_search_opendir=no
8386fi
8387rm conftest.$ac_ext
8388LIBS=$ac_func_search_save_LIBS
8389fi
8390{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8391echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8392ac_res=$ac_cv_search_opendir
8393if test "$ac_res" != no; then
8394 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008395
Reid Spencera773bd52006-08-04 18:18:08 +00008396fi
8397
8398else
8399 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8400echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8401if test "${ac_cv_search_opendir+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8403else
8404 ac_func_search_save_LIBS=$LIBS
8405cat >conftest.$ac_ext <<_ACEOF
8406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411
8412/* Override any GCC internal prototype to avoid an error.
8413 Use char because int might match the return type of a GCC
8414 builtin and then its argument prototype would still apply. */
8415#ifdef __cplusplus
8416extern "C"
8417#endif
8418char opendir ();
8419int
8420main ()
8421{
8422return opendir ();
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427for ac_lib in '' x; do
8428 if test -z "$ac_lib"; then
8429 ac_res="none required"
8430 else
8431 ac_res=-l$ac_lib
8432 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8433 fi
8434 rm -f conftest.$ac_objext conftest$ac_exeext
8435if { (ac_try="$ac_link"
8436case "(($ac_try" in
8437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8438 *) ac_try_echo=$ac_try;;
8439esac
8440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_link") 2>conftest.er1
8442 ac_status=$?
8443 grep -v '^ *+' conftest.er1 >conftest.err
8444 rm -f conftest.er1
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452esac
8453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_try") 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008468 ac_cv_search_opendir=$ac_res
8469else
8470 echo "$as_me: failed program was:" >&5
8471sed 's/^/| /' conftest.$ac_ext >&5
8472
8473
8474fi
8475
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008476rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008477 conftest$ac_exeext
8478 if test "${ac_cv_search_opendir+set}" = set; then
8479 break
8480fi
8481done
8482if test "${ac_cv_search_opendir+set}" = set; then
8483 :
8484else
8485 ac_cv_search_opendir=no
8486fi
8487rm conftest.$ac_ext
8488LIBS=$ac_func_search_save_LIBS
8489fi
8490{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8491echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8492ac_res=$ac_cv_search_opendir
8493if test "$ac_res" != no; then
8494 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8495
8496fi
8497
8498fi
John Criswell7a73b802003-06-30 21:59:07 +00008499
8500
8501for ac_header in dlfcn.h
8502do
8503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008504if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008508 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008509fi
Reid Spencera773bd52006-08-04 18:18:08 +00008510ac_res=`eval echo '${'$as_ac_Header'}'`
8511 { echo "$as_me:$LINENO: result: $ac_res" >&5
8512echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008513else
Brian Gaeke0a621332004-09-08 20:38:05 +00008514 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008515{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008517cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008518/* confdefs.h. */
8519_ACEOF
8520cat confdefs.h >>conftest.$ac_ext
8521cat >>conftest.$ac_ext <<_ACEOF
8522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008523$ac_includes_default
8524#include <$ac_header>
8525_ACEOF
8526rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008527if { (ac_try="$ac_compile"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008534 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8541 { (case "(($ac_try" in
8542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543 *) ac_try_echo=$ac_try;;
8544esac
8545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8546 (eval "$ac_try") 2>&5
8547 ac_status=$?
8548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549 (exit $ac_status); }; } &&
8550 { ac_try='test -s conftest.$ac_objext'
8551 { (case "(($ac_try" in
8552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8553 *) ac_try_echo=$ac_try;;
8554esac
8555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8556 (eval "$ac_try") 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008560 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008561else
8562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008563sed 's/^/| /' conftest.$ac_ext >&5
8564
Reid Spencera773bd52006-08-04 18:18:08 +00008565 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008566fi
Reid Spencera773bd52006-08-04 18:18:08 +00008567
8568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8569{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8570echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008571
8572# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008573{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8574echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008575cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008576/* confdefs.h. */
8577_ACEOF
8578cat confdefs.h >>conftest.$ac_ext
8579cat >>conftest.$ac_ext <<_ACEOF
8580/* end confdefs.h. */
8581#include <$ac_header>
8582_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008583if { (ac_try="$ac_cpp conftest.$ac_ext"
8584case "(($ac_try" in
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8587esac
8588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008590 ac_status=$?
8591 grep -v '^ *+' conftest.er1 >conftest.err
8592 rm -f conftest.er1
8593 cat conftest.err >&5
8594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00008595 (exit $ac_status); } >/dev/null; then
8596 if test -s conftest.err; then
8597 ac_cpp_err=$ac_c_preproc_warn_flag
8598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8599 else
8600 ac_cpp_err=
8601 fi
8602else
8603 ac_cpp_err=yes
8604fi
8605if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008606 ac_header_preproc=yes
8607else
8608 echo "$as_me: failed program was:" >&5
8609sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_header_preproc=no
8612fi
Reid Spencera773bd52006-08-04 18:18:08 +00008613
Brian Gaeke0a621332004-09-08 20:38:05 +00008614rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008615{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8616echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008617
8618# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008619case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8620 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8622echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8624echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8625 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008626 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008627 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8629echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8631echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8633echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8635echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8637echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8639echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008640 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008641## ----------------------------------- ##
8642## Report this to llvmbugs@cs.uiuc.edu ##
8643## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008644_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008645 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008646 ;;
8647esac
Reid Spencera773bd52006-08-04 18:18:08 +00008648{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008653 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008654fi
Reid Spencera773bd52006-08-04 18:18:08 +00008655ac_res=`eval echo '${'$as_ac_Header'}'`
8656 { echo "$as_me:$LINENO: result: $ac_res" >&5
8657echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008658
8659fi
John Criswell7a73b802003-06-30 21:59:07 +00008660if test `eval echo '${'$as_ac_Header'}'` = yes; then
8661 cat >>confdefs.h <<_ACEOF
8662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8663_ACEOF
8664
8665fi
8666
8667done
8668
Reid Spencera773bd52006-08-04 18:18:08 +00008669# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008670if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008671 enableval=$enable_ltdl_install;
8672fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008673
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008674
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008675
8676
8677if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008678 INSTALL_LTDL_TRUE=
8679 INSTALL_LTDL_FALSE='#'
8680else
8681 INSTALL_LTDL_TRUE='#'
8682 INSTALL_LTDL_FALSE=
8683fi
8684
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008685
8686
8687if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008688 CONVENIENCE_LTDL_TRUE=
8689 CONVENIENCE_LTDL_FALSE='#'
8690else
8691 CONVENIENCE_LTDL_TRUE='#'
8692 CONVENIENCE_LTDL_FALSE=
8693fi
8694
8695
Reid Spencera773bd52006-08-04 18:18:08 +00008696{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8697echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008698library_names_spec=
8699libname_spec='lib$name'
8700soname_spec=
8701shrext_cmds=".so"
8702postinstall_cmds=
8703postuninstall_cmds=
8704finish_cmds=
8705finish_eval=
8706shlibpath_var=
8707shlibpath_overrides_runpath=unknown
8708version_type=none
8709dynamic_linker="$host_os ld.so"
8710sys_lib_dlsearch_path_spec="/lib /usr/lib"
8711if test "$GCC" = yes; then
8712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8714 # if the path contains ";" then we assume it to be the separator
8715 # otherwise default to the standard path separator (i.e. ":") - it is
8716 # assumed that no part of a normal pathname contains ";" but that should
8717 # okay in the real world where ";" in dirpaths is itself problematic.
8718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8719 else
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8721 fi
8722else
8723 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8724fi
8725need_lib_prefix=unknown
8726hardcode_into_libs=no
8727
8728# when you set need_version to no, make sure it does not cause -set_version
8729# flags to be left without arguments
8730need_version=unknown
8731
8732case $host_os in
8733aix3*)
8734 version_type=linux
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8736 shlibpath_var=LIBPATH
8737
8738 # AIX 3 has no versioning support, so we append a major version to the name.
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 ;;
8741
8742aix4* | aix5*)
8743 version_type=linux
8744 need_lib_prefix=no
8745 need_version=no
8746 hardcode_into_libs=yes
8747 if test "$host_cpu" = ia64; then
8748 # AIX 5 supports IA64
8749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 else
8752 # With GCC up to 2.95.x, collect2 would create an import file
8753 # for dependence libraries. The import file would start with
8754 # the line `#! .'. This would cause the generated library to
8755 # depend on `.', always an invalid library. This was fixed in
8756 # development snapshots of GCC prior to 3.0.
8757 case $host_os in
8758 aix4 | aix4.[01] | aix4.[01].*)
8759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8760 echo ' yes '
8761 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8762 :
8763 else
8764 can_build_shared=no
8765 fi
8766 ;;
8767 esac
8768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8769 # soname into executable. Probably we can add versioning support to
8770 # collect2, so additional links can be useful in future.
8771 if test "$aix_use_runtimelinking" = yes; then
8772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8773 # instead of lib<name>.a to let people know that these are not
8774 # typical AIX shared libraries.
8775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8776 else
8777 # We preserve .a as extension for shared libraries through AIX4.2
8778 # and later when we are not doing run time linking.
8779 library_names_spec='${libname}${release}.a $libname.a'
8780 soname_spec='${libname}${release}${shared_ext}$major'
8781 fi
8782 shlibpath_var=LIBPATH
8783 fi
8784 ;;
8785
8786amigaos*)
8787 library_names_spec='$libname.ixlibrary $libname.a'
8788 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8789 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'
8790 ;;
8791
8792beos*)
8793 library_names_spec='${libname}${shared_ext}'
8794 dynamic_linker="$host_os ld.so"
8795 shlibpath_var=LIBRARY_PATH
8796 ;;
8797
8798bsdi[45]*)
8799 version_type=linux
8800 need_version=no
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8804 shlibpath_var=LD_LIBRARY_PATH
8805 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8806 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8807 # the default ld.so.conf also contains /usr/contrib/lib and
8808 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8809 # libtool to hard-code these into programs
8810 ;;
8811
8812cygwin* | mingw* | pw32*)
8813 version_type=windows
8814 shrext_cmds=".dll"
8815 need_version=no
8816 need_lib_prefix=no
8817
8818 case $GCC,$host_os in
8819 yes,cygwin* | yes,mingw* | yes,pw32*)
8820 library_names_spec='$libname.dll.a'
8821 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8822 postinstall_cmds='base_file=`basename \${file}`~
8823 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8824 dldir=$destdir/`dirname \$dlpath`~
8825 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008826 $install_prog $dir/$dlname \$dldir/$dlname~
8827 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008828 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8829 dlpath=$dir/\$dldll~
8830 $rm \$dlpath'
8831 shlibpath_overrides_runpath=yes
8832
8833 case $host_os in
8834 cygwin*)
8835 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8836 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8837 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8838 ;;
8839 mingw*)
8840 # MinGW DLLs use traditional 'lib' prefix
8841 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8842 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8843 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8844 # It is most probably a Windows format PATH printed by
8845 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8846 # path with ; separators, and with drive letters. We can handle the
8847 # drive letters (cygwin fileutils understands them), so leave them,
8848 # especially as we might pass files found there to a mingw objdump,
8849 # which wouldn't understand a cygwinified path. Ahh.
8850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8851 else
8852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8853 fi
8854 ;;
8855 pw32*)
8856 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008857 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 +00008858 ;;
8859 esac
8860 ;;
8861
8862 *)
8863 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8864 ;;
8865 esac
8866 dynamic_linker='Win32 ld.exe'
8867 # FIXME: first we should search . and the directory the executable is in
8868 shlibpath_var=PATH
8869 ;;
8870
8871darwin* | rhapsody*)
8872 dynamic_linker="$host_os dyld"
8873 version_type=darwin
8874 need_lib_prefix=no
8875 need_version=no
8876 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8877 soname_spec='${libname}${release}${major}$shared_ext'
8878 shlibpath_overrides_runpath=yes
8879 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00008880 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008881 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8882 if test "$GCC" = yes; then
8883 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"`
8884 else
8885 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8886 fi
8887 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8888 ;;
8889
8890dgux*)
8891 version_type=linux
8892 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
8897 ;;
8898
8899freebsd1*)
8900 dynamic_linker=no
8901 ;;
8902
8903kfreebsd*-gnu)
8904 version_type=linux
8905 need_lib_prefix=no
8906 need_version=no
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8912 dynamic_linker='GNU ld.so'
8913 ;;
8914
Reid Spencera773bd52006-08-04 18:18:08 +00008915freebsd* | dragonfly*)
8916 # DragonFly does not have aout. When/if they implement a new
8917 # versioning mechanism, adjust this.
8918 if test -x /usr/bin/objformat; then
8919 objformat=`/usr/bin/objformat`
8920 else
8921 case $host_os in
8922 freebsd[123]*) objformat=aout ;;
8923 *) objformat=elf ;;
8924 esac
8925 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008926 version_type=freebsd-$objformat
8927 case $version_type in
8928 freebsd-elf*)
8929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8930 need_version=no
8931 need_lib_prefix=no
8932 ;;
8933 freebsd-*)
8934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8935 need_version=yes
8936 ;;
8937 esac
8938 shlibpath_var=LD_LIBRARY_PATH
8939 case $host_os in
8940 freebsd2*)
8941 shlibpath_overrides_runpath=yes
8942 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008943 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008944 shlibpath_overrides_runpath=yes
8945 hardcode_into_libs=yes
8946 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008947 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8948 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008949 shlibpath_overrides_runpath=no
8950 hardcode_into_libs=yes
8951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008952 freebsd*) # from 4.6 on
8953 shlibpath_overrides_runpath=yes
8954 hardcode_into_libs=yes
8955 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008956 esac
8957 ;;
8958
8959gnu*)
8960 version_type=linux
8961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 shlibpath_var=LD_LIBRARY_PATH
8966 hardcode_into_libs=yes
8967 ;;
8968
8969hpux9* | hpux10* | hpux11*)
8970 # Give a soname corresponding to the major version so that dld.sl refuses to
8971 # link against other versions.
8972 version_type=sunos
8973 need_lib_prefix=no
8974 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008975 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008976 ia64*)
8977 shrext_cmds='.so'
8978 hardcode_into_libs=yes
8979 dynamic_linker="$host_os dld.so"
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8983 soname_spec='${libname}${release}${shared_ext}$major'
8984 if test "X$HPUX_IA64_MODE" = X32; then
8985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8986 else
8987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8988 fi
8989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8990 ;;
8991 hppa*64*)
8992 shrext_cmds='.sl'
8993 hardcode_into_libs=yes
8994 dynamic_linker="$host_os dld.sl"
8995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8998 soname_spec='${libname}${release}${shared_ext}$major'
8999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9001 ;;
9002 *)
9003 shrext_cmds='.sl'
9004 dynamic_linker="$host_os dld.sl"
9005 shlibpath_var=SHLIB_PATH
9006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 soname_spec='${libname}${release}${shared_ext}$major'
9009 ;;
9010 esac
9011 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9012 postinstall_cmds='chmod 555 $lib'
9013 ;;
9014
Reid Spencera773bd52006-08-04 18:18:08 +00009015interix3*)
9016 version_type=linux
9017 need_lib_prefix=no
9018 need_version=no
9019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
9021 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=no
9024 hardcode_into_libs=yes
9025 ;;
9026
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009027irix5* | irix6* | nonstopux*)
9028 case $host_os in
9029 nonstopux*) version_type=nonstopux ;;
9030 *)
9031 if test "$lt_cv_prog_gnu_ld" = yes; then
9032 version_type=linux
9033 else
9034 version_type=irix
9035 fi ;;
9036 esac
9037 need_lib_prefix=no
9038 need_version=no
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9041 case $host_os in
9042 irix5* | nonstopux*)
9043 libsuff= shlibsuff=
9044 ;;
9045 *)
9046 case $LD in # libtool.m4 will add one of these switches to LD
9047 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9048 libsuff= shlibsuff= libmagic=32-bit;;
9049 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9050 libsuff=32 shlibsuff=N32 libmagic=N32;;
9051 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9052 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9053 *) libsuff= shlibsuff= libmagic=never-match;;
9054 esac
9055 ;;
9056 esac
9057 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9058 shlibpath_overrides_runpath=no
9059 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9060 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9061 hardcode_into_libs=yes
9062 ;;
9063
9064# No shared lib support for Linux oldld, aout, or coff.
9065linux*oldld* | linux*aout* | linux*coff*)
9066 dynamic_linker=no
9067 ;;
9068
9069# This must be Linux ELF.
9070linux*)
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9077 shlibpath_var=LD_LIBRARY_PATH
9078 shlibpath_overrides_runpath=no
9079 # This implies no fast_install, which is unacceptable.
9080 # Some rework will be needed to allow for fast_install
9081 # before this can be enabled.
9082 hardcode_into_libs=yes
9083
9084 # Append ld.so.conf contents to the search path
9085 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009086 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 +00009087 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9088 fi
9089
9090 # We used to test for /lib/ld.so.1 and disable shared libraries on
9091 # powerpc, because MkLinux only supported shared libraries with the
9092 # GNU dynamic linker. Since this was broken with cross compilers,
9093 # most powerpc-linux boxes support dynamic linking these days and
9094 # people can always --disable-shared, the test was removed, and we
9095 # assume the GNU/Linux dynamic linker is in use.
9096 dynamic_linker='GNU/Linux ld.so'
9097 ;;
9098
9099knetbsd*-gnu)
9100 version_type=linux
9101 need_lib_prefix=no
9102 need_version=no
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 dynamic_linker='GNU ld.so'
9109 ;;
9110
9111netbsd*)
9112 version_type=sunos
9113 need_lib_prefix=no
9114 need_version=no
9115 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9118 dynamic_linker='NetBSD (a.out) ld.so'
9119 else
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 dynamic_linker='NetBSD ld.elf_so'
9123 fi
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=yes
9126 hardcode_into_libs=yes
9127 ;;
9128
9129newsos6)
9130 version_type=linux
9131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 ;;
9135
9136nto-qnx*)
9137 version_type=linux
9138 need_lib_prefix=no
9139 need_version=no
9140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9141 soname_spec='${libname}${release}${shared_ext}$major'
9142 shlibpath_var=LD_LIBRARY_PATH
9143 shlibpath_overrides_runpath=yes
9144 ;;
9145
9146openbsd*)
9147 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009148 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009150 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9151 case $host_os in
9152 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9153 *) need_version=no ;;
9154 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9159 case $host_os in
9160 openbsd2.[89] | openbsd2.[89].*)
9161 shlibpath_overrides_runpath=no
9162 ;;
9163 *)
9164 shlibpath_overrides_runpath=yes
9165 ;;
9166 esac
9167 else
9168 shlibpath_overrides_runpath=yes
9169 fi
9170 ;;
9171
9172os2*)
9173 libname_spec='$name'
9174 shrext_cmds=".dll"
9175 need_lib_prefix=no
9176 library_names_spec='$libname${shared_ext} $libname.a'
9177 dynamic_linker='OS/2 ld.exe'
9178 shlibpath_var=LIBPATH
9179 ;;
9180
9181osf3* | osf4* | osf5*)
9182 version_type=osf
9183 need_lib_prefix=no
9184 need_version=no
9185 soname_spec='${libname}${release}${shared_ext}$major'
9186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187 shlibpath_var=LD_LIBRARY_PATH
9188 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9189 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9190 ;;
9191
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009192solaris*)
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=yes
9200 hardcode_into_libs=yes
9201 # ldd complains unless libraries are executable
9202 postinstall_cmds='chmod +x $lib'
9203 ;;
9204
9205sunos4*)
9206 version_type=sunos
9207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9208 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9211 if test "$with_gnu_ld" = yes; then
9212 need_lib_prefix=no
9213 fi
9214 need_version=yes
9215 ;;
9216
Reid Spencera773bd52006-08-04 18:18:08 +00009217sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218 version_type=linux
9219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9220 soname_spec='${libname}${release}${shared_ext}$major'
9221 shlibpath_var=LD_LIBRARY_PATH
9222 case $host_vendor in
9223 sni)
9224 shlibpath_overrides_runpath=no
9225 need_lib_prefix=no
9226 export_dynamic_flag_spec='${wl}-Blargedynsym'
9227 runpath_var=LD_RUN_PATH
9228 ;;
9229 siemens)
9230 need_lib_prefix=no
9231 ;;
9232 motorola)
9233 need_lib_prefix=no
9234 need_version=no
9235 shlibpath_overrides_runpath=no
9236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9237 ;;
9238 esac
9239 ;;
9240
9241sysv4*MP*)
9242 if test -d /usr/nec ;then
9243 version_type=linux
9244 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9245 soname_spec='$libname${shared_ext}.$major'
9246 shlibpath_var=LD_LIBRARY_PATH
9247 fi
9248 ;;
9249
Reid Spencera773bd52006-08-04 18:18:08 +00009250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9251 version_type=freebsd-elf
9252 need_lib_prefix=no
9253 need_version=no
9254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9255 soname_spec='${libname}${release}${shared_ext}$major'
9256 shlibpath_var=LD_LIBRARY_PATH
9257 hardcode_into_libs=yes
9258 if test "$with_gnu_ld" = yes; then
9259 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9260 shlibpath_overrides_runpath=no
9261 else
9262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9263 shlibpath_overrides_runpath=yes
9264 case $host_os in
9265 sco3.2v5*)
9266 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9267 ;;
9268 esac
9269 fi
9270 sys_lib_dlsearch_path_spec='/usr/lib'
9271 ;;
9272
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009273uts4*)
9274 version_type=linux
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 ;;
9279
9280*)
9281 dynamic_linker=no
9282 ;;
9283esac
Reid Spencera773bd52006-08-04 18:18:08 +00009284{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9285echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009286test "$dynamic_linker" = no && can_build_shared=no
9287
Reid Spencera773bd52006-08-04 18:18:08 +00009288variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9289if test "$GCC" = yes; then
9290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9291fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009292
Reid Spencera773bd52006-08-04 18:18:08 +00009293
9294{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9295echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009296if test "${libltdl_cv_shlibext+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9298else
9299
9300module=yes
9301eval libltdl_cv_shlibext=$shrext_cmds
9302
9303fi
Reid Spencera773bd52006-08-04 18:18:08 +00009304{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9305echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009306if test -n "$libltdl_cv_shlibext"; then
9307
9308cat >>confdefs.h <<_ACEOF
9309#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9310_ACEOF
9311
9312fi
9313
9314
Reid Spencera773bd52006-08-04 18:18:08 +00009315{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9316echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009317if test "${libltdl_cv_shlibpath_var+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9319else
9320 libltdl_cv_shlibpath_var="$shlibpath_var"
9321fi
Reid Spencera773bd52006-08-04 18:18:08 +00009322{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9323echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009324if test -n "$libltdl_cv_shlibpath_var"; then
9325
9326cat >>confdefs.h <<_ACEOF
9327#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9328_ACEOF
9329
9330fi
9331
9332
Reid Spencera773bd52006-08-04 18:18:08 +00009333{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9334echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009335if test "${libltdl_cv_sys_search_path+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337else
9338 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9339fi
Reid Spencera773bd52006-08-04 18:18:08 +00009340{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9341echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009342if test -n "$libltdl_cv_sys_search_path"; then
9343 sys_search_path=
9344 for dir in $libltdl_cv_sys_search_path; do
9345 if test -z "$sys_search_path"; then
9346 sys_search_path="$dir"
9347 else
9348 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9349 fi
9350 done
9351
9352cat >>confdefs.h <<_ACEOF
9353#define LTDL_SYSSEARCHPATH "$sys_search_path"
9354_ACEOF
9355
9356fi
9357
Reid Spencera773bd52006-08-04 18:18:08 +00009358{ echo "$as_me:$LINENO: checking for objdir" >&5
9359echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009360if test "${libltdl_cv_objdir+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363 libltdl_cv_objdir="$objdir"
9364 if test -n "$objdir"; then
9365 :
9366 else
9367 rm -f .libs 2>/dev/null
9368 mkdir .libs 2>/dev/null
9369 if test -d .libs; then
9370 libltdl_cv_objdir=.libs
9371 else
9372 # MS-DOS does not allow filenames that begin with a dot.
9373 libltdl_cv_objdir=_libs
9374 fi
9375 rmdir .libs 2>/dev/null
9376 fi
9377
9378fi
Reid Spencera773bd52006-08-04 18:18:08 +00009379{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9380echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009381
9382cat >>confdefs.h <<_ACEOF
9383#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9384_ACEOF
9385
9386
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009387
9388
9389
9390
9391# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009392{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9393echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009394if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397
9398# These are sane defaults that work on at least a few old systems.
9399# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9400
9401# Character class describing NM global symbol codes.
9402symcode='[BCDEGRST]'
9403
9404# Regexp to match symbols that can be accessed directly from C.
9405sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9406
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009407# Transform an extracted symbol line into a proper C declaration
9408lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9409
9410# Transform an extracted symbol line into symbol name and symbol address
9411lt_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'"
9412
9413# Define system-specific variables.
9414case $host_os in
9415aix*)
9416 symcode='[BCDT]'
9417 ;;
9418cygwin* | mingw* | pw32*)
9419 symcode='[ABCDGISTW]'
9420 ;;
9421hpux*) # Its linker distinguishes data from code symbols
9422 if test "$host_cpu" = ia64; then
9423 symcode='[ABCDEGRST]'
9424 fi
9425 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9426 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'"
9427 ;;
9428linux*)
9429 if test "$host_cpu" = ia64; then
9430 symcode='[ABCDGIRSTW]'
9431 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9432 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'"
9433 fi
9434 ;;
9435irix* | nonstopux*)
9436 symcode='[BCDEGRST]'
9437 ;;
9438osf*)
9439 symcode='[BCDEGQRST]'
9440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009441solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009442 symcode='[BDRT]'
9443 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009444sco3.2v5*)
9445 symcode='[DT]'
9446 ;;
9447sysv4.2uw2*)
9448 symcode='[DT]'
9449 ;;
9450sysv5* | sco5v6* | unixware* | OpenUNIX*)
9451 symcode='[ABDT]'
9452 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009453sysv4)
9454 symcode='[DFNSTU]'
9455 ;;
9456esac
9457
9458# Handle CRLF in mingw tool chain
9459opt_cr=
9460case $build_os in
9461mingw*)
9462 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9463 ;;
9464esac
9465
9466# If we're using GNU nm, then use its standard symbol codes.
9467case `$NM -V 2>&1` in
9468*GNU* | *'with BFD'*)
9469 symcode='[ABCDGIRSTW]' ;;
9470esac
9471
9472# Try without a prefix undercore, then with it.
9473for ac_symprfx in "" "_"; do
9474
Reid Spencera773bd52006-08-04 18:18:08 +00009475 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9476 symxfrm="\\1 $ac_symprfx\\2 \\2"
9477
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009479 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 +00009480
9481 # Check to see that the pipe works correctly.
9482 pipe_works=no
9483
9484 rm -f conftest*
9485 cat > conftest.$ac_ext <<EOF
9486#ifdef __cplusplus
9487extern "C" {
9488#endif
9489char nm_test_var;
9490void nm_test_func(){}
9491#ifdef __cplusplus
9492}
9493#endif
9494int main(){nm_test_var='a';nm_test_func();return(0);}
9495EOF
9496
9497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9498 (eval $ac_compile) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; then
9502 # Now try to grab the symbols.
9503 nlist=conftest.nm
9504 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9505 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9506 ac_status=$?
9507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9508 (exit $ac_status); } && test -s "$nlist"; then
9509 # Try sorting and uniquifying the output.
9510 if sort "$nlist" | uniq > "$nlist"T; then
9511 mv -f "$nlist"T "$nlist"
9512 else
9513 rm -f "$nlist"T
9514 fi
9515
9516 # Make sure that we snagged all the symbols we need.
9517 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9518 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9519 cat <<EOF > conftest.$ac_ext
9520#ifdef __cplusplus
9521extern "C" {
9522#endif
9523
9524EOF
9525 # Now generate the symbol file.
9526 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9527
9528 cat <<EOF >> conftest.$ac_ext
9529#if defined (__STDC__) && __STDC__
9530# define lt_ptr_t void *
9531#else
9532# define lt_ptr_t char *
9533# define const
9534#endif
9535
9536/* The mapping between symbol names and symbols. */
9537const struct {
9538 const char *name;
9539 lt_ptr_t address;
9540}
9541lt_preloaded_symbols[] =
9542{
9543EOF
9544 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9545 cat <<\EOF >> conftest.$ac_ext
9546 {0, (lt_ptr_t) 0}
9547};
9548
9549#ifdef __cplusplus
9550}
9551#endif
9552EOF
9553 # Now try linking the two files.
9554 mv conftest.$ac_objext conftstm.$ac_objext
9555 lt_save_LIBS="$LIBS"
9556 lt_save_CFLAGS="$CFLAGS"
9557 LIBS="conftstm.$ac_objext"
9558 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9564 pipe_works=yes
9565 fi
9566 LIBS="$lt_save_LIBS"
9567 CFLAGS="$lt_save_CFLAGS"
9568 else
9569 echo "cannot find nm_test_func in $nlist" >&5
9570 fi
9571 else
9572 echo "cannot find nm_test_var in $nlist" >&5
9573 fi
9574 else
9575 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9576 fi
9577 else
9578 echo "$progname: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9580 fi
9581 rm -f conftest* conftst*
9582
9583 # Do not use the global_symbol_pipe unless it works.
9584 if test "$pipe_works" = yes; then
9585 break
9586 else
9587 lt_cv_sys_global_symbol_pipe=
9588 fi
9589done
9590
9591fi
9592
9593if test -z "$lt_cv_sys_global_symbol_pipe"; then
9594 lt_cv_sys_global_symbol_to_cdecl=
9595fi
9596if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009597 { echo "$as_me:$LINENO: result: failed" >&5
9598echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599else
Reid Spencera773bd52006-08-04 18:18:08 +00009600 { echo "$as_me:$LINENO: result: ok" >&5
9601echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602fi
9603
9604
Reid Spencera773bd52006-08-04 18:18:08 +00009605{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9606echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9609else
9610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9611 libltdl_cv_preloaded_symbols=yes
9612 else
9613 libltdl_cv_preloaded_symbols=no
9614 fi
9615
9616fi
Reid Spencera773bd52006-08-04 18:18:08 +00009617{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9618echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009619if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9620
9621cat >>confdefs.h <<\_ACEOF
9622#define HAVE_PRELOADED_SYMBOLS 1
9623_ACEOF
9624
9625fi
9626
9627LIBADD_DL=
9628
9629ac_ext=c
9630ac_cpp='$CPP $CPPFLAGS'
9631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9633ac_compiler_gnu=$ac_cv_c_compiler_gnu
9634
9635
Reid Spencera773bd52006-08-04 18:18:08 +00009636{ echo "$as_me:$LINENO: checking for shl_load" >&5
9637echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638if test "${ac_cv_func_shl_load+set}" = set; then
9639 echo $ECHO_N "(cached) $ECHO_C" >&6
9640else
9641 cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */
9647/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9649#define shl_load innocuous_shl_load
9650
9651/* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char shl_load (); below.
9653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9654 <limits.h> exists even on freestanding compilers. */
9655
9656#ifdef __STDC__
9657# include <limits.h>
9658#else
9659# include <assert.h>
9660#endif
9661
9662#undef shl_load
9663
Reid Spencera773bd52006-08-04 18:18:08 +00009664/* Override any GCC internal prototype to avoid an error.
9665 Use char because int might match the return type of a GCC
9666 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667#ifdef __cplusplus
9668extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009669#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009670char shl_load ();
9671/* The GNU C library defines this for functions which it implements
9672 to always fail with ENOSYS. Some functions are actually named
9673 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009674#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676#endif
9677
9678int
9679main ()
9680{
Reid Spencera773bd52006-08-04 18:18:08 +00009681return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009682 ;
9683 return 0;
9684}
9685_ACEOF
9686rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009687if { (ac_try="$ac_link"
9688case "(($ac_try" in
9689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690 *) ac_try_echo=$ac_try;;
9691esac
9692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009694 ac_status=$?
9695 grep -v '^ *+' conftest.er1 >conftest.err
9696 rm -f conftest.er1
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701 { (case "(($ac_try" in
9702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9703 *) ac_try_echo=$ac_try;;
9704esac
9705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9706 (eval "$ac_try") 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; } &&
9710 { ac_try='test -s conftest$ac_exeext'
9711 { (case "(($ac_try" in
9712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713 *) ac_try_echo=$ac_try;;
9714esac
9715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716 (eval "$ac_try") 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720 ac_cv_func_shl_load=yes
9721else
9722 echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
9724
Reid Spencera773bd52006-08-04 18:18:08 +00009725 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726fi
Reid Spencera773bd52006-08-04 18:18:08 +00009727
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009728rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009729 conftest$ac_exeext conftest.$ac_ext
9730fi
Reid Spencera773bd52006-08-04 18:18:08 +00009731{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9732echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733if test $ac_cv_func_shl_load = yes; then
9734
9735cat >>confdefs.h <<\_ACEOF
9736#define HAVE_SHL_LOAD 1
9737_ACEOF
9738
9739else
Reid Spencera773bd52006-08-04 18:18:08 +00009740 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9741echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9744else
9745 ac_check_lib_save_LIBS=$LIBS
9746LIBS="-ldld $LIBS"
9747cat >conftest.$ac_ext <<_ACEOF
9748/* confdefs.h. */
9749_ACEOF
9750cat confdefs.h >>conftest.$ac_ext
9751cat >>conftest.$ac_ext <<_ACEOF
9752/* end confdefs.h. */
9753
Reid Spencera773bd52006-08-04 18:18:08 +00009754/* Override any GCC internal prototype to avoid an error.
9755 Use char because int might match the return type of a GCC
9756 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009757#ifdef __cplusplus
9758extern "C"
9759#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009760char shl_load ();
9761int
9762main ()
9763{
Reid Spencera773bd52006-08-04 18:18:08 +00009764return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009765 ;
9766 return 0;
9767}
9768_ACEOF
9769rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009770if { (ac_try="$ac_link"
9771case "(($ac_try" in
9772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9773 *) ac_try_echo=$ac_try;;
9774esac
9775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9776 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009777 ac_status=$?
9778 grep -v '^ *+' conftest.er1 >conftest.err
9779 rm -f conftest.er1
9780 cat conftest.err >&5
9781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009782 (exit $ac_status); } &&
9783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9784 { (case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
9788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9789 (eval "$ac_try") 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803 ac_cv_lib_dld_shl_load=yes
9804else
9805 echo "$as_me: failed program was:" >&5
9806sed 's/^/| /' conftest.$ac_ext >&5
9807
Reid Spencera773bd52006-08-04 18:18:08 +00009808 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009809fi
Reid Spencera773bd52006-08-04 18:18:08 +00009810
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009811rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 conftest$ac_exeext conftest.$ac_ext
9813LIBS=$ac_check_lib_save_LIBS
9814fi
Reid Spencera773bd52006-08-04 18:18:08 +00009815{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9816echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009817if test $ac_cv_lib_dld_shl_load = yes; then
9818
9819cat >>confdefs.h <<\_ACEOF
9820#define HAVE_SHL_LOAD 1
9821_ACEOF
9822
9823 LIBADD_DL="$LIBADD_DL -ldld"
9824else
Reid Spencera773bd52006-08-04 18:18:08 +00009825 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9826echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829else
9830 ac_check_lib_save_LIBS=$LIBS
9831LIBS="-ldl $LIBS"
9832cat >conftest.$ac_ext <<_ACEOF
9833/* confdefs.h. */
9834_ACEOF
9835cat confdefs.h >>conftest.$ac_ext
9836cat >>conftest.$ac_ext <<_ACEOF
9837/* end confdefs.h. */
9838
Reid Spencera773bd52006-08-04 18:18:08 +00009839/* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009842#ifdef __cplusplus
9843extern "C"
9844#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009845char dlopen ();
9846int
9847main ()
9848{
Reid Spencera773bd52006-08-04 18:18:08 +00009849return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009850 ;
9851 return 0;
9852}
9853_ACEOF
9854rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009855if { (ac_try="$ac_link"
9856case "(($ac_try" in
9857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858 *) ac_try_echo=$ac_try;;
9859esac
9860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869 { (case "(($ac_try" in
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9872esac
9873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_try") 2>&5
9875 ac_status=$?
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (case "(($ac_try" in
9880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881 *) ac_try_echo=$ac_try;;
9882esac
9883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884 (eval "$ac_try") 2>&5
9885 ac_status=$?
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888 ac_cv_lib_dl_dlopen=yes
9889else
9890 echo "$as_me: failed program was:" >&5
9891sed 's/^/| /' conftest.$ac_ext >&5
9892
Reid Spencera773bd52006-08-04 18:18:08 +00009893 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009894fi
Reid Spencera773bd52006-08-04 18:18:08 +00009895
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009896rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 conftest$ac_exeext conftest.$ac_ext
9898LIBS=$ac_check_lib_save_LIBS
9899fi
Reid Spencera773bd52006-08-04 18:18:08 +00009900{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9901echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009902if test $ac_cv_lib_dl_dlopen = yes; then
9903
9904cat >>confdefs.h <<\_ACEOF
9905#define HAVE_LIBDL 1
9906_ACEOF
9907
9908 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9909else
9910 cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916#if HAVE_DLFCN_H
9917# include <dlfcn.h>
9918#endif
9919
9920int
9921main ()
9922{
9923dlopen(0, 0);
9924 ;
9925 return 0;
9926}
9927_ACEOF
9928rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009929if { (ac_try="$ac_link"
9930case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +00009941 (exit $ac_status); } &&
9942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9943 { (case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946esac
9947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_try") 2>&5
9949 ac_status=$?
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
9957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_try") 2>&5
9959 ac_status=$?
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009962
9963cat >>confdefs.h <<\_ACEOF
9964#define HAVE_LIBDL 1
9965_ACEOF
9966 libltdl_cv_func_dlopen="yes"
9967else
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
Reid Spencera773bd52006-08-04 18:18:08 +00009971 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9972echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976 ac_check_lib_save_LIBS=$LIBS
9977LIBS="-lsvld $LIBS"
9978cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984
Reid Spencera773bd52006-08-04 18:18:08 +00009985/* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988#ifdef __cplusplus
9989extern "C"
9990#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991char dlopen ();
9992int
9993main ()
9994{
Reid Spencera773bd52006-08-04 18:18:08 +00009995return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009996 ;
9997 return 0;
9998}
9999_ACEOF
10000rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010001if { (ac_try="$ac_link"
10002case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005esac
10006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10007 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010008 ac_status=$?
10009 grep -v '^ *+' conftest.er1 >conftest.err
10010 rm -f conftest.er1
10011 cat conftest.err >&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010013 (exit $ac_status); } &&
10014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10015 { (case "(($ac_try" in
10016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017 *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020 (eval "$ac_try") 2>&5
10021 ac_status=$?
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); }; } &&
10024 { ac_try='test -s conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10031 ac_status=$?
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010034 ac_cv_lib_svld_dlopen=yes
10035else
10036 echo "$as_me: failed program was:" >&5
10037sed 's/^/| /' conftest.$ac_ext >&5
10038
Reid Spencera773bd52006-08-04 18:18:08 +000010039 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010040fi
Reid Spencera773bd52006-08-04 18:18:08 +000010041
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010042rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010043 conftest$ac_exeext conftest.$ac_ext
10044LIBS=$ac_check_lib_save_LIBS
10045fi
Reid Spencera773bd52006-08-04 18:18:08 +000010046{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10047echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048if test $ac_cv_lib_svld_dlopen = yes; then
10049
10050cat >>confdefs.h <<\_ACEOF
10051#define HAVE_LIBDL 1
10052_ACEOF
10053
10054 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10055else
Reid Spencera773bd52006-08-04 18:18:08 +000010056 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10057echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 ac_check_lib_save_LIBS=$LIBS
10062LIBS="-ldld $LIBS"
10063cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h. */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h. */
10069
Reid Spencera773bd52006-08-04 18:18:08 +000010070/* Override any GCC internal prototype to avoid an error.
10071 Use char because int might match the return type of a GCC
10072 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010073#ifdef __cplusplus
10074extern "C"
10075#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010076char dld_link ();
10077int
10078main ()
10079{
Reid Spencera773bd52006-08-04 18:18:08 +000010080return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010081 ;
10082 return 0;
10083}
10084_ACEOF
10085rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010086if { (ac_try="$ac_link"
10087case "(($ac_try" in
10088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10089 *) ac_try_echo=$ac_try;;
10090esac
10091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10092 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010093 ac_status=$?
10094 grep -v '^ *+' conftest.er1 >conftest.err
10095 rm -f conftest.er1
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10100 { (case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103esac
10104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_try") 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10113esac
10114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_try") 2>&5
10116 ac_status=$?
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010119 ac_cv_lib_dld_dld_link=yes
10120else
10121 echo "$as_me: failed program was:" >&5
10122sed 's/^/| /' conftest.$ac_ext >&5
10123
Reid Spencera773bd52006-08-04 18:18:08 +000010124 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010125fi
Reid Spencera773bd52006-08-04 18:18:08 +000010126
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010127rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010128 conftest$ac_exeext conftest.$ac_ext
10129LIBS=$ac_check_lib_save_LIBS
10130fi
Reid Spencera773bd52006-08-04 18:18:08 +000010131{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10132echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010133if test $ac_cv_lib_dld_dld_link = yes; then
10134
10135cat >>confdefs.h <<\_ACEOF
10136#define HAVE_DLD 1
10137_ACEOF
10138
10139 LIBADD_DL="$LIBADD_DL -ldld"
10140else
Reid Spencera773bd52006-08-04 18:18:08 +000010141 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10142echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010143if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10145else
10146 cat >conftest.$ac_ext <<_ACEOF
10147/* confdefs.h. */
10148_ACEOF
10149cat confdefs.h >>conftest.$ac_ext
10150cat >>conftest.$ac_ext <<_ACEOF
10151/* end confdefs.h. */
10152/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10154#define _dyld_func_lookup innocuous__dyld_func_lookup
10155
10156/* System header to define __stub macros and hopefully few prototypes,
10157 which can conflict with char _dyld_func_lookup (); below.
10158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10159 <limits.h> exists even on freestanding compilers. */
10160
10161#ifdef __STDC__
10162# include <limits.h>
10163#else
10164# include <assert.h>
10165#endif
10166
10167#undef _dyld_func_lookup
10168
Reid Spencera773bd52006-08-04 18:18:08 +000010169/* Override any GCC internal prototype to avoid an error.
10170 Use char because int might match the return type of a GCC
10171 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010172#ifdef __cplusplus
10173extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010174#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010175char _dyld_func_lookup ();
10176/* The GNU C library defines this for functions which it implements
10177 to always fail with ENOSYS. Some functions are actually named
10178 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010179#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010180choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181#endif
10182
10183int
10184main ()
10185{
Reid Spencera773bd52006-08-04 18:18:08 +000010186return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187 ;
10188 return 0;
10189}
10190_ACEOF
10191rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010192if { (ac_try="$ac_link"
10193case "(($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_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199 ac_status=$?
10200 grep -v '^ *+' conftest.er1 >conftest.err
10201 rm -f conftest.er1
10202 cat conftest.err >&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010204 (exit $ac_status); } &&
10205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10206 { (case "(($ac_try" in
10207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208 *) ac_try_echo=$ac_try;;
10209esac
10210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211 (eval "$ac_try") 2>&5
10212 ac_status=$?
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010225 ac_cv_func__dyld_func_lookup=yes
10226else
10227 echo "$as_me: failed program was:" >&5
10228sed 's/^/| /' conftest.$ac_ext >&5
10229
Reid Spencera773bd52006-08-04 18:18:08 +000010230 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231fi
Reid Spencera773bd52006-08-04 18:18:08 +000010232
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010233rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 conftest$ac_exeext conftest.$ac_ext
10235fi
Reid Spencera773bd52006-08-04 18:18:08 +000010236{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10237echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010238if test $ac_cv_func__dyld_func_lookup = yes; then
10239
10240cat >>confdefs.h <<\_ACEOF
10241#define HAVE_DYLD 1
10242_ACEOF
10243
10244fi
10245
10246
10247fi
10248
10249
10250fi
10251
10252
10253fi
Reid Spencera773bd52006-08-04 18:18:08 +000010254
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010255rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010256 conftest$ac_exeext conftest.$ac_ext
10257
10258fi
10259
10260
10261fi
10262
10263
10264fi
10265
10266
10267if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10268then
10269 lt_save_LIBS="$LIBS"
10270 LIBS="$LIBS $LIBADD_DL"
10271
10272for ac_func in dlerror
10273do
10274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010275{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279else
10280 cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10288#define $ac_func innocuous_$ac_func
10289
10290/* System header to define __stub macros and hopefully few prototypes,
10291 which can conflict with char $ac_func (); below.
10292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10293 <limits.h> exists even on freestanding compilers. */
10294
10295#ifdef __STDC__
10296# include <limits.h>
10297#else
10298# include <assert.h>
10299#endif
10300
10301#undef $ac_func
10302
Reid Spencera773bd52006-08-04 18:18:08 +000010303/* Override any GCC internal prototype to avoid an error.
10304 Use char because int might match the return type of a GCC
10305 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010306#ifdef __cplusplus
10307extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010308#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010309char $ac_func ();
10310/* The GNU C library defines this for functions which it implements
10311 to always fail with ENOSYS. Some functions are actually named
10312 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010313#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010314choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010315#endif
10316
10317int
10318main ()
10319{
Reid Spencera773bd52006-08-04 18:18:08 +000010320return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010321 ;
10322 return 0;
10323}
10324_ACEOF
10325rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010326if { (ac_try="$ac_link"
10327case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330esac
10331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10340 { (case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10343esac
10344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_try") 2>&5
10346 ac_status=$?
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); }; } &&
10349 { ac_try='test -s conftest$ac_exeext'
10350 { (case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10353esac
10354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_try") 2>&5
10356 ac_status=$?
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010359 eval "$as_ac_var=yes"
10360else
10361 echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
Reid Spencera773bd52006-08-04 18:18:08 +000010364 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010365fi
Reid Spencera773bd52006-08-04 18:18:08 +000010366
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010367rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010368 conftest$ac_exeext conftest.$ac_ext
10369fi
Reid Spencera773bd52006-08-04 18:18:08 +000010370ac_res=`eval echo '${'$as_ac_var'}'`
10371 { echo "$as_me:$LINENO: result: $ac_res" >&5
10372echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010373if test `eval echo '${'$as_ac_var'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10376_ACEOF
10377
10378fi
10379done
10380
10381 LIBS="$lt_save_LIBS"
10382fi
10383ac_ext=c
10384ac_cpp='$CPP $CPPFLAGS'
10385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10387ac_compiler_gnu=$ac_cv_c_compiler_gnu
10388
10389
10390
Reid Spencera773bd52006-08-04 18:18:08 +000010391{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10392echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010393if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10395else
10396 ac_cv_sys_symbol_underscore=no
10397 cat > conftest.$ac_ext <<EOF
10398void nm_test_func(){}
10399int main(){nm_test_func;return 0;}
10400EOF
10401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10402 (eval $ac_compile) 2>&5
10403 ac_status=$?
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; then
10406 # Now try to grab the symbols.
10407 ac_nlist=conftest.nm
10408 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10409 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } && test -s "$ac_nlist"; then
10413 # See whether the symbols have a leading underscore.
10414 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10415 ac_cv_sys_symbol_underscore=yes
10416 else
10417 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10418 :
10419 else
10420 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10421 fi
10422 fi
10423 else
10424 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10425 fi
10426 else
10427 echo "configure: failed program was:" >&5
10428 cat conftest.c >&5
10429 fi
10430 rm -rf conftest*
10431
10432fi
Reid Spencera773bd52006-08-04 18:18:08 +000010433{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10434echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435
10436
10437if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10438 if test x"$libltdl_cv_func_dlopen" = xyes ||
10439 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010440 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10441echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010442if test "${libltdl_cv_need_uscore+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 libltdl_cv_need_uscore=unknown
10446 save_LIBS="$LIBS"
10447 LIBS="$LIBS $LIBADD_DL"
10448 if test "$cross_compiling" = yes; then :
10449 libltdl_cv_need_uscore=cross
10450else
10451 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10452 lt_status=$lt_dlunknown
10453 cat > conftest.$ac_ext <<EOF
Nick Lewyckye9821dc2009-03-03 04:55:29 +000010454#line 10454 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010455#include "confdefs.h"
10456
10457#if HAVE_DLFCN_H
10458#include <dlfcn.h>
10459#endif
10460
10461#include <stdio.h>
10462
10463#ifdef RTLD_GLOBAL
10464# define LT_DLGLOBAL RTLD_GLOBAL
10465#else
10466# ifdef DL_GLOBAL
10467# define LT_DLGLOBAL DL_GLOBAL
10468# else
10469# define LT_DLGLOBAL 0
10470# endif
10471#endif
10472
10473/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10474 find out it does not work in some platform. */
10475#ifndef LT_DLLAZY_OR_NOW
10476# ifdef RTLD_LAZY
10477# define LT_DLLAZY_OR_NOW RTLD_LAZY
10478# else
10479# ifdef DL_LAZY
10480# define LT_DLLAZY_OR_NOW DL_LAZY
10481# else
10482# ifdef RTLD_NOW
10483# define LT_DLLAZY_OR_NOW RTLD_NOW
10484# else
10485# ifdef DL_NOW
10486# define LT_DLLAZY_OR_NOW DL_NOW
10487# else
10488# define LT_DLLAZY_OR_NOW 0
10489# endif
10490# endif
10491# endif
10492# endif
10493#endif
10494
10495#ifdef __cplusplus
10496extern "C" void exit (int);
10497#endif
10498
10499void fnord() { int i=42;}
10500int main ()
10501{
10502 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10503 int status = $lt_dlunknown;
10504
10505 if (self)
10506 {
10507 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10508 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10509 /* dlclose (self); */
10510 }
Reid Spencera773bd52006-08-04 18:18:08 +000010511 else
10512 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010513
10514 exit (status);
10515}
10516EOF
10517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10518 (eval $ac_link) 2>&5
10519 ac_status=$?
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010522 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010523 lt_status=$?
10524 case x$lt_status in
10525 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10526 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010527 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528 esac
10529 else :
10530 # compilation failed
10531
10532 fi
10533fi
10534rm -fr conftest*
10535
10536 LIBS="$save_LIBS"
10537
10538fi
Reid Spencera773bd52006-08-04 18:18:08 +000010539{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10540echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010541 fi
10542fi
10543
10544if test x"$libltdl_cv_need_uscore" = xyes; then
10545
10546cat >>confdefs.h <<\_ACEOF
10547#define NEED_USCORE 1
10548_ACEOF
10549
10550fi
10551
10552
Reid Spencera773bd52006-08-04 18:18:08 +000010553{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10554echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557else
10558 # PORTME does your system automatically load deplibs for dlopen?
10559 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10560 # For now, we just catch OSes we know something about -- in the
10561 # future, we'll try test this programmatically.
10562 libltdl_cv_sys_dlopen_deplibs=unknown
10563 case "$host_os" in
10564 aix3*|aix4.1.*|aix4.2.*)
10565 # Unknown whether this is true for these versions of AIX, but
10566 # we want this `case' here to explicitly catch those versions.
10567 libltdl_cv_sys_dlopen_deplibs=unknown
10568 ;;
10569 aix[45]*)
10570 libltdl_cv_sys_dlopen_deplibs=yes
10571 ;;
10572 darwin*)
10573 # Assuming the user has installed a libdl from somewhere, this is true
10574 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10575 libltdl_cv_sys_dlopen_deplibs=yes
10576 ;;
10577 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10578 # GNU and its variants, using gnu ld.so (Glibc)
10579 libltdl_cv_sys_dlopen_deplibs=yes
10580 ;;
10581 hpux10*|hpux11*)
10582 libltdl_cv_sys_dlopen_deplibs=yes
10583 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010584 interix*)
10585 libltdl_cv_sys_dlopen_deplibs=yes
10586 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010587 irix[12345]*|irix6.[01]*)
10588 # Catch all versions of IRIX before 6.2, and indicate that we don't
10589 # know how it worked for any of those versions.
10590 libltdl_cv_sys_dlopen_deplibs=unknown
10591 ;;
10592 irix*)
10593 # The case above catches anything before 6.2, and it's known that
10594 # at 6.2 and later dlopen does load deplibs.
10595 libltdl_cv_sys_dlopen_deplibs=yes
10596 ;;
10597 netbsd*)
10598 libltdl_cv_sys_dlopen_deplibs=yes
10599 ;;
10600 openbsd*)
10601 libltdl_cv_sys_dlopen_deplibs=yes
10602 ;;
10603 osf[1234]*)
10604 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10605 # it did *not* use an RPATH in a shared library to find objects the
10606 # library depends on, so we explictly say `no'.
10607 libltdl_cv_sys_dlopen_deplibs=no
10608 ;;
10609 osf5.0|osf5.0a|osf5.1)
10610 # dlopen *does* load deplibs and with the right loader patch applied
10611 # it even uses RPATH in a shared library to search for shared objects
10612 # that the library depends on, but there's no easy way to know if that
10613 # patch is installed. Since this is the case, all we can really
10614 # say is unknown -- it depends on the patch being installed. If
10615 # it is, this changes to `yes'. Without it, it would be `no'.
10616 libltdl_cv_sys_dlopen_deplibs=unknown
10617 ;;
10618 osf*)
10619 # the two cases above should catch all versions of osf <= 5.1. Read
10620 # the comments above for what we know about them.
10621 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10622 # is used to find them so we can finally say `yes'.
10623 libltdl_cv_sys_dlopen_deplibs=yes
10624 ;;
10625 solaris*)
10626 libltdl_cv_sys_dlopen_deplibs=yes
10627 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629 libltdl_cv_sys_dlopen_deplibs=yes
10630 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010631 esac
10632
10633fi
Reid Spencera773bd52006-08-04 18:18:08 +000010634{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10635echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10637
10638cat >>confdefs.h <<\_ACEOF
10639#define LTDL_DLOPEN_DEPLIBS 1
10640_ACEOF
10641
10642fi
10643
10644
10645for ac_header in argz.h
10646do
10647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010648if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653fi
Reid Spencera773bd52006-08-04 18:18:08 +000010654ac_res=`eval echo '${'$as_ac_Header'}'`
10655 { echo "$as_me:$LINENO: result: $ac_res" >&5
10656echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010657else
10658 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010659{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667$ac_includes_default
10668#include <$ac_header>
10669_ACEOF
10670rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010671if { (ac_try="$ac_compile"
10672case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675esac
10676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010683 (exit $ac_status); } &&
10684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10685 { (case "(($ac_try" in
10686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687 *) ac_try_echo=$ac_try;;
10688esac
10689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690 (eval "$ac_try") 2>&5
10691 ac_status=$?
10692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693 (exit $ac_status); }; } &&
10694 { ac_try='test -s conftest.$ac_objext'
10695 { (case "(($ac_try" in
10696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697 *) ac_try_echo=$ac_try;;
10698esac
10699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700 (eval "$ac_try") 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010704 ac_header_compiler=yes
10705else
10706 echo "$as_me: failed program was:" >&5
10707sed 's/^/| /' conftest.$ac_ext >&5
10708
Reid Spencera773bd52006-08-04 18:18:08 +000010709 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710fi
Reid Spencera773bd52006-08-04 18:18:08 +000010711
10712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10713{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10714echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010715
10716# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010717{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10718echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h. */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h. */
10725#include <$ac_header>
10726_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010727if { (ac_try="$ac_cpp conftest.$ac_ext"
10728case "(($ac_try" in
10729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10730 *) ac_try_echo=$ac_try;;
10731esac
10732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010734 ac_status=$?
10735 grep -v '^ *+' conftest.er1 >conftest.err
10736 rm -f conftest.er1
10737 cat conftest.err >&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010739 (exit $ac_status); } >/dev/null; then
10740 if test -s conftest.err; then
10741 ac_cpp_err=$ac_c_preproc_warn_flag
10742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10743 else
10744 ac_cpp_err=
10745 fi
10746else
10747 ac_cpp_err=yes
10748fi
10749if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ac_header_preproc=yes
10751else
10752 echo "$as_me: failed program was:" >&5
10753sed 's/^/| /' conftest.$ac_ext >&5
10754
10755 ac_header_preproc=no
10756fi
Reid Spencera773bd52006-08-04 18:18:08 +000010757
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010758rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010759{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10760echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010761
10762# So? What about this header?
10763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10764 yes:no: )
10765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10769 ac_header_preproc=yes
10770 ;;
10771 no:yes:* )
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010784 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010785## ----------------------------------- ##
10786## Report this to llvmbugs@cs.uiuc.edu ##
10787## ----------------------------------- ##
10788_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010789 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 ;;
10791esac
Reid Spencera773bd52006-08-04 18:18:08 +000010792{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10794if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796else
10797 eval "$as_ac_Header=\$ac_header_preproc"
10798fi
Reid Spencera773bd52006-08-04 18:18:08 +000010799ac_res=`eval echo '${'$as_ac_Header'}'`
10800 { echo "$as_me:$LINENO: result: $ac_res" >&5
10801echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010802
10803fi
10804if test `eval echo '${'$as_ac_Header'}'` = yes; then
10805 cat >>confdefs.h <<_ACEOF
10806#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10807_ACEOF
10808
10809fi
10810
10811done
10812
10813
Reid Spencera773bd52006-08-04 18:18:08 +000010814{ echo "$as_me:$LINENO: checking for error_t" >&5
10815echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816if test "${ac_cv_type_error_t+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819 cat >conftest.$ac_ext <<_ACEOF
10820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
10825#if HAVE_ARGZ_H
10826# include <argz.h>
10827#endif
10828
Reid Spencera773bd52006-08-04 18:18:08 +000010829typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830int
10831main ()
10832{
Reid Spencera773bd52006-08-04 18:18:08 +000010833if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010835if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836 return 0;
10837 ;
10838 return 0;
10839}
10840_ACEOF
10841rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010842if { (ac_try="$ac_compile"
10843case "(($ac_try" in
10844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845 *) ac_try_echo=$ac_try;;
10846esac
10847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849 ac_status=$?
10850 grep -v '^ *+' conftest.er1 >conftest.err
10851 rm -f conftest.er1
10852 cat conftest.err >&5
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010854 (exit $ac_status); } &&
10855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856 { (case "(($ac_try" in
10857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858 *) ac_try_echo=$ac_try;;
10859esac
10860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_try") 2>&5
10862 ac_status=$?
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); }; } &&
10865 { ac_try='test -s conftest.$ac_objext'
10866 { (case "(($ac_try" in
10867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868 *) ac_try_echo=$ac_try;;
10869esac
10870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871 (eval "$ac_try") 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010875 ac_cv_type_error_t=yes
10876else
10877 echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
Reid Spencera773bd52006-08-04 18:18:08 +000010880 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010881fi
Reid Spencera773bd52006-08-04 18:18:08 +000010882
10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010884fi
Reid Spencera773bd52006-08-04 18:18:08 +000010885{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10886echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887if test $ac_cv_type_error_t = yes; then
10888
10889cat >>confdefs.h <<_ACEOF
10890#define HAVE_ERROR_T 1
10891_ACEOF
10892
10893
10894else
10895
10896cat >>confdefs.h <<\_ACEOF
10897#define error_t int
10898_ACEOF
10899
10900fi
10901
10902
10903
10904
10905
10906
10907
10908for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10909do
10910as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010911{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10912echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10913if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915else
10916 cat >conftest.$ac_ext <<_ACEOF
10917/* confdefs.h. */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h. */
10922/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10924#define $ac_func innocuous_$ac_func
10925
10926/* System header to define __stub macros and hopefully few prototypes,
10927 which can conflict with char $ac_func (); below.
10928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929 <limits.h> exists even on freestanding compilers. */
10930
10931#ifdef __STDC__
10932# include <limits.h>
10933#else
10934# include <assert.h>
10935#endif
10936
10937#undef $ac_func
10938
Reid Spencera773bd52006-08-04 18:18:08 +000010939/* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010942#ifdef __cplusplus
10943extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010944#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945char $ac_func ();
10946/* The GNU C library defines this for functions which it implements
10947 to always fail with ENOSYS. Some functions are actually named
10948 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010949#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010950choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010951#endif
10952
10953int
10954main ()
10955{
Reid Spencera773bd52006-08-04 18:18:08 +000010956return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010957 ;
10958 return 0;
10959}
10960_ACEOF
10961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010962if { (ac_try="$ac_link"
10963case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966esac
10967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000010974 (exit $ac_status); } &&
10975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10976 { (case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_try") 2>&5
10982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; } &&
10985 { ac_try='test -s conftest$ac_exeext'
10986 { (case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989esac
10990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10991 (eval "$ac_try") 2>&5
10992 ac_status=$?
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995 eval "$as_ac_var=yes"
10996else
10997 echo "$as_me: failed program was:" >&5
10998sed 's/^/| /' conftest.$ac_ext >&5
10999
Reid Spencera773bd52006-08-04 18:18:08 +000011000 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011001fi
Reid Spencera773bd52006-08-04 18:18:08 +000011002
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011003rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011004 conftest$ac_exeext conftest.$ac_ext
11005fi
Reid Spencera773bd52006-08-04 18:18:08 +000011006ac_res=`eval echo '${'$as_ac_var'}'`
11007 { echo "$as_me:$LINENO: result: $ac_res" >&5
11008echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009if test `eval echo '${'$as_ac_var'}'` = yes; then
11010 cat >>confdefs.h <<_ACEOF
11011#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11012_ACEOF
11013
11014fi
11015done
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11045 stdio.h unistd.h
11046do
11047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011052 echo $ECHO_N "(cached) $ECHO_C" >&6
11053fi
Reid Spencera773bd52006-08-04 18:18:08 +000011054ac_res=`eval echo '${'$as_ac_Header'}'`
11055 { echo "$as_me:$LINENO: result: $ac_res" >&5
11056echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011057else
11058 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011059{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061cat >conftest.$ac_ext <<_ACEOF
11062/* confdefs.h. */
11063_ACEOF
11064cat confdefs.h >>conftest.$ac_ext
11065cat >>conftest.$ac_ext <<_ACEOF
11066/* end confdefs.h. */
11067$ac_includes_default
11068#include <$ac_header>
11069_ACEOF
11070rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011071if { (ac_try="$ac_compile"
11072case "(($ac_try" in
11073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074 *) ac_try_echo=$ac_try;;
11075esac
11076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078 ac_status=$?
11079 grep -v '^ *+' conftest.er1 >conftest.err
11080 rm -f conftest.er1
11081 cat conftest.err >&5
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011083 (exit $ac_status); } &&
11084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11085 { (case "(($ac_try" in
11086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11087 *) ac_try_echo=$ac_try;;
11088esac
11089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11090 (eval "$ac_try") 2>&5
11091 ac_status=$?
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098esac
11099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_try") 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011104 ac_header_compiler=yes
11105else
11106 echo "$as_me: failed program was:" >&5
11107sed 's/^/| /' conftest.$ac_ext >&5
11108
Reid Spencera773bd52006-08-04 18:18:08 +000011109 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011110fi
Reid Spencera773bd52006-08-04 18:18:08 +000011111
11112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11113{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11114echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115
11116# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011117{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011119cat >conftest.$ac_ext <<_ACEOF
11120/* confdefs.h. */
11121_ACEOF
11122cat confdefs.h >>conftest.$ac_ext
11123cat >>conftest.$ac_ext <<_ACEOF
11124/* end confdefs.h. */
11125#include <$ac_header>
11126_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011127if { (ac_try="$ac_cpp conftest.$ac_ext"
11128case "(($ac_try" in
11129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130 *) ac_try_echo=$ac_try;;
11131esac
11132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011134 ac_status=$?
11135 grep -v '^ *+' conftest.er1 >conftest.err
11136 rm -f conftest.er1
11137 cat conftest.err >&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011139 (exit $ac_status); } >/dev/null; then
11140 if test -s conftest.err; then
11141 ac_cpp_err=$ac_c_preproc_warn_flag
11142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11143 else
11144 ac_cpp_err=
11145 fi
11146else
11147 ac_cpp_err=yes
11148fi
11149if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011150 ac_header_preproc=yes
11151else
11152 echo "$as_me: failed program was:" >&5
11153sed 's/^/| /' conftest.$ac_ext >&5
11154
11155 ac_header_preproc=no
11156fi
Reid Spencera773bd52006-08-04 18:18:08 +000011157
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011159{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11160echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011161
11162# So? What about this header?
11163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11164 yes:no: )
11165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11169 ac_header_preproc=yes
11170 ;;
11171 no:yes:* )
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011184 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011185## ----------------------------------- ##
11186## Report this to llvmbugs@cs.uiuc.edu ##
11187## ----------------------------------- ##
11188_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011189 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011190 ;;
11191esac
Reid Spencera773bd52006-08-04 18:18:08 +000011192{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11194if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011195 echo $ECHO_N "(cached) $ECHO_C" >&6
11196else
11197 eval "$as_ac_Header=\$ac_header_preproc"
11198fi
Reid Spencera773bd52006-08-04 18:18:08 +000011199ac_res=`eval echo '${'$as_ac_Header'}'`
11200 { echo "$as_me:$LINENO: result: $ac_res" >&5
11201echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011202
11203fi
11204if test `eval echo '${'$as_ac_Header'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11207_ACEOF
11208
11209fi
11210
11211done
11212
11213
11214
11215
11216
11217for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11218do
11219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225fi
Reid Spencera773bd52006-08-04 18:18:08 +000011226ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229else
11230 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
11239$ac_includes_default
11240#include <$ac_header>
11241_ACEOF
11242rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011243if { (ac_try="$ac_compile"
11244case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011255 (exit $ac_status); } &&
11256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
11263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011276 ac_header_compiler=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
Reid Spencera773bd52006-08-04 18:18:08 +000011281 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282fi
Reid Spencera773bd52006-08-04 18:18:08 +000011283
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287
11288# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <$ac_header>
11298_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011299if { (ac_try="$ac_cpp conftest.$ac_ext"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011311 (exit $ac_status); } >/dev/null; then
11312 if test -s conftest.err; then
11313 ac_cpp_err=$ac_c_preproc_warn_flag
11314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11315 else
11316 ac_cpp_err=
11317 fi
11318else
11319 ac_cpp_err=yes
11320fi
11321if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011322 ac_header_preproc=yes
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_header_preproc=no
11328fi
Reid Spencera773bd52006-08-04 18:18:08 +000011329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333
11334# So? What about this header?
11335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 yes:no: )
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341 ac_header_preproc=yes
11342 ;;
11343 no:yes:* )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011356 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357## ----------------------------------- ##
11358## Report this to llvmbugs@cs.uiuc.edu ##
11359## ----------------------------------- ##
11360_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011361 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362 ;;
11363esac
Reid Spencera773bd52006-08-04 18:18:08 +000011364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 eval "$as_ac_Header=\$ac_header_preproc"
11370fi
Reid Spencera773bd52006-08-04 18:18:08 +000011371ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374
11375fi
11376if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379_ACEOF
11380
11381fi
11382
11383done
11384
11385
11386
11387for ac_header in string.h strings.h
11388do
11389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395fi
Reid Spencera773bd52006-08-04 18:18:08 +000011396ac_res=`eval echo '${'$as_ac_Header'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011399else
11400 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011403cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409$ac_includes_default
11410#include <$ac_header>
11411_ACEOF
11412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011413if { (ac_try="$ac_compile"
11414case "(($ac_try" in
11415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416 *) ac_try_echo=$ac_try;;
11417esac
11418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420 ac_status=$?
11421 grep -v '^ *+' conftest.er1 >conftest.err
11422 rm -f conftest.er1
11423 cat conftest.err >&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011425 (exit $ac_status); } &&
11426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11427 { (case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_try") 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; } &&
11436 { ac_try='test -s conftest.$ac_objext'
11437 { (case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440esac
11441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_try") 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011446 ac_header_compiler=yes
11447else
11448 echo "$as_me: failed program was:" >&5
11449sed 's/^/| /' conftest.$ac_ext >&5
11450
Reid Spencera773bd52006-08-04 18:18:08 +000011451 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011452fi
Reid Spencera773bd52006-08-04 18:18:08 +000011453
11454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11456echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011457
11458# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011459{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011461cat >conftest.$ac_ext <<_ACEOF
11462/* confdefs.h. */
11463_ACEOF
11464cat confdefs.h >>conftest.$ac_ext
11465cat >>conftest.$ac_ext <<_ACEOF
11466/* end confdefs.h. */
11467#include <$ac_header>
11468_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011469if { (ac_try="$ac_cpp conftest.$ac_ext"
11470case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476 ac_status=$?
11477 grep -v '^ *+' conftest.er1 >conftest.err
11478 rm -f conftest.er1
11479 cat conftest.err >&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011481 (exit $ac_status); } >/dev/null; then
11482 if test -s conftest.err; then
11483 ac_cpp_err=$ac_c_preproc_warn_flag
11484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11485 else
11486 ac_cpp_err=
11487 fi
11488else
11489 ac_cpp_err=yes
11490fi
11491if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011492 ac_header_preproc=yes
11493else
11494 echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_header_preproc=no
11498fi
Reid Spencera773bd52006-08-04 18:18:08 +000011499
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011501{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11502echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011503
11504# So? What about this header?
11505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11506 yes:no: )
11507 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11510echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11511 ac_header_preproc=yes
11512 ;;
11513 no:yes:* )
11514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11515echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11517echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11519echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11521echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11523echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11525echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011526 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527## ----------------------------------- ##
11528## Report this to llvmbugs@cs.uiuc.edu ##
11529## ----------------------------------- ##
11530_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011531 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532 ;;
11533esac
Reid Spencera773bd52006-08-04 18:18:08 +000011534{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537 echo $ECHO_N "(cached) $ECHO_C" >&6
11538else
11539 eval "$as_ac_Header=\$ac_header_preproc"
11540fi
Reid Spencera773bd52006-08-04 18:18:08 +000011541ac_res=`eval echo '${'$as_ac_Header'}'`
11542 { echo "$as_me:$LINENO: result: $ac_res" >&5
11543echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011544
11545fi
11546if test `eval echo '${'$as_ac_Header'}'` = yes; then
11547 cat >>confdefs.h <<_ACEOF
11548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11549_ACEOF
11550 break
11551fi
11552
11553done
11554
11555
11556
11557
11558for ac_func in strchr index
11559do
11560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011561{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11563if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 cat >conftest.$ac_ext <<_ACEOF
11567/* confdefs.h. */
11568_ACEOF
11569cat confdefs.h >>conftest.$ac_ext
11570cat >>conftest.$ac_ext <<_ACEOF
11571/* end confdefs.h. */
11572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574#define $ac_func innocuous_$ac_func
11575
11576/* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char $ac_func (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11580
11581#ifdef __STDC__
11582# include <limits.h>
11583#else
11584# include <assert.h>
11585#endif
11586
11587#undef $ac_func
11588
Reid Spencera773bd52006-08-04 18:18:08 +000011589/* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592#ifdef __cplusplus
11593extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595char $ac_func ();
11596/* The GNU C library defines this for functions which it implements
11597 to always fail with ENOSYS. Some functions are actually named
11598 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011599#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601#endif
11602
11603int
11604main ()
11605{
Reid Spencera773bd52006-08-04 18:18:08 +000011606return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011607 ;
11608 return 0;
11609}
11610_ACEOF
11611rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011612if { (ac_try="$ac_link"
11613case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 ac_status=$?
11620 grep -v '^ *+' conftest.er1 >conftest.err
11621 rm -f conftest.er1
11622 cat conftest.err >&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011624 (exit $ac_status); } &&
11625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11626 { (case "(($ac_try" in
11627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11628 *) ac_try_echo=$ac_try;;
11629esac
11630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11631 (eval "$ac_try") 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; } &&
11635 { ac_try='test -s conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011645 eval "$as_ac_var=yes"
11646else
11647 echo "$as_me: failed program was:" >&5
11648sed 's/^/| /' conftest.$ac_ext >&5
11649
Reid Spencera773bd52006-08-04 18:18:08 +000011650 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011651fi
Reid Spencera773bd52006-08-04 18:18:08 +000011652
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011653rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011654 conftest$ac_exeext conftest.$ac_ext
11655fi
Reid Spencera773bd52006-08-04 18:18:08 +000011656ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662_ACEOF
11663 break
11664fi
11665done
11666
11667
11668
11669for ac_func in strrchr rindex
11670do
11671as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011672{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11673echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676else
11677 cat >conftest.$ac_ext <<_ACEOF
11678/* confdefs.h. */
11679_ACEOF
11680cat confdefs.h >>conftest.$ac_ext
11681cat >>conftest.$ac_ext <<_ACEOF
11682/* end confdefs.h. */
11683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11685#define $ac_func innocuous_$ac_func
11686
11687/* System header to define __stub macros and hopefully few prototypes,
11688 which can conflict with char $ac_func (); below.
11689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11690 <limits.h> exists even on freestanding compilers. */
11691
11692#ifdef __STDC__
11693# include <limits.h>
11694#else
11695# include <assert.h>
11696#endif
11697
11698#undef $ac_func
11699
Reid Spencera773bd52006-08-04 18:18:08 +000011700/* Override any GCC internal prototype to avoid an error.
11701 Use char because int might match the return type of a GCC
11702 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703#ifdef __cplusplus
11704extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706char $ac_func ();
11707/* The GNU C library defines this for functions which it implements
11708 to always fail with ENOSYS. Some functions are actually named
11709 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011710#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712#endif
11713
11714int
11715main ()
11716{
Reid Spencera773bd52006-08-04 18:18:08 +000011717return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011718 ;
11719 return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011723if { (ac_try="$ac_link"
11724case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730 ac_status=$?
11731 grep -v '^ *+' conftest.er1 >conftest.err
11732 rm -f conftest.er1
11733 cat conftest.err >&5
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011735 (exit $ac_status); } &&
11736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11737 { (case "(($ac_try" in
11738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739 *) ac_try_echo=$ac_try;;
11740esac
11741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742 (eval "$ac_try") 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest$ac_exeext'
11747 { (case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750esac
11751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_try") 2>&5
11753 ac_status=$?
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011756 eval "$as_ac_var=yes"
11757else
11758 echo "$as_me: failed program was:" >&5
11759sed 's/^/| /' conftest.$ac_ext >&5
11760
Reid Spencera773bd52006-08-04 18:18:08 +000011761 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011762fi
Reid Spencera773bd52006-08-04 18:18:08 +000011763
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011764rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011765 conftest$ac_exeext conftest.$ac_ext
11766fi
Reid Spencera773bd52006-08-04 18:18:08 +000011767ac_res=`eval echo '${'$as_ac_var'}'`
11768 { echo "$as_me:$LINENO: result: $ac_res" >&5
11769echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770if test `eval echo '${'$as_ac_var'}'` = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11773_ACEOF
11774 break
11775fi
11776done
11777
11778
11779
11780for ac_func in memcpy bcopy
11781do
11782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011783{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787else
11788 cat >conftest.$ac_ext <<_ACEOF
11789/* confdefs.h. */
11790_ACEOF
11791cat confdefs.h >>conftest.$ac_ext
11792cat >>conftest.$ac_ext <<_ACEOF
11793/* end confdefs.h. */
11794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11796#define $ac_func innocuous_$ac_func
11797
11798/* System header to define __stub macros and hopefully few prototypes,
11799 which can conflict with char $ac_func (); below.
11800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11801 <limits.h> exists even on freestanding compilers. */
11802
11803#ifdef __STDC__
11804# include <limits.h>
11805#else
11806# include <assert.h>
11807#endif
11808
11809#undef $ac_func
11810
Reid Spencera773bd52006-08-04 18:18:08 +000011811/* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814#ifdef __cplusplus
11815extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817char $ac_func ();
11818/* The GNU C library defines this for functions which it implements
11819 to always fail with ENOSYS. Some functions are actually named
11820 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011821#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823#endif
11824
11825int
11826main ()
11827{
Reid Spencera773bd52006-08-04 18:18:08 +000011828return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011829 ;
11830 return 0;
11831}
11832_ACEOF
11833rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011834if { (ac_try="$ac_link"
11835case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841 ac_status=$?
11842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011846 (exit $ac_status); } &&
11847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (case "(($ac_try" in
11849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11851esac
11852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_try") 2>&5
11854 ac_status=$?
11855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); }; } &&
11857 { ac_try='test -s conftest$ac_exeext'
11858 { (case "(($ac_try" in
11859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11860 *) ac_try_echo=$ac_try;;
11861esac
11862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11863 (eval "$ac_try") 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867 eval "$as_ac_var=yes"
11868else
11869 echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
Reid Spencera773bd52006-08-04 18:18:08 +000011872 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873fi
Reid Spencera773bd52006-08-04 18:18:08 +000011874
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011875rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876 conftest$ac_exeext conftest.$ac_ext
11877fi
Reid Spencera773bd52006-08-04 18:18:08 +000011878ac_res=`eval echo '${'$as_ac_var'}'`
11879 { echo "$as_me:$LINENO: result: $ac_res" >&5
11880echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881if test `eval echo '${'$as_ac_var'}'` = yes; then
11882 cat >>confdefs.h <<_ACEOF
11883#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11884_ACEOF
11885 break
11886fi
11887done
11888
11889
11890
11891for ac_func in memmove strcmp
11892do
11893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 cat >conftest.$ac_ext <<_ACEOF
11900/* confdefs.h. */
11901_ACEOF
11902cat confdefs.h >>conftest.$ac_ext
11903cat >>conftest.$ac_ext <<_ACEOF
11904/* end confdefs.h. */
11905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11907#define $ac_func innocuous_$ac_func
11908
11909/* System header to define __stub macros and hopefully few prototypes,
11910 which can conflict with char $ac_func (); below.
11911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11912 <limits.h> exists even on freestanding compilers. */
11913
11914#ifdef __STDC__
11915# include <limits.h>
11916#else
11917# include <assert.h>
11918#endif
11919
11920#undef $ac_func
11921
Reid Spencera773bd52006-08-04 18:18:08 +000011922/* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925#ifdef __cplusplus
11926extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011927#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928char $ac_func ();
11929/* The GNU C library defines this for functions which it implements
11930 to always fail with ENOSYS. Some functions are actually named
11931 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011932#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011933choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934#endif
11935
11936int
11937main ()
11938{
Reid Spencera773bd52006-08-04 18:18:08 +000011939return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940 ;
11941 return 0;
11942}
11943_ACEOF
11944rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011945if { (ac_try="$ac_link"
11946case "(($ac_try" in
11947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948 *) ac_try_echo=$ac_try;;
11949esac
11950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11951 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952 ac_status=$?
11953 grep -v '^ *+' conftest.er1 >conftest.err
11954 rm -f conftest.er1
11955 cat conftest.err >&5
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011957 (exit $ac_status); } &&
11958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest$ac_exeext'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11972esac
11973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011978 eval "$as_ac_var=yes"
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
Reid Spencera773bd52006-08-04 18:18:08 +000011983 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011984fi
Reid Spencera773bd52006-08-04 18:18:08 +000011985
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000011986rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011987 conftest$ac_exeext conftest.$ac_ext
11988fi
Reid Spencera773bd52006-08-04 18:18:08 +000011989ac_res=`eval echo '${'$as_ac_var'}'`
11990 { echo "$as_me:$LINENO: result: $ac_res" >&5
11991echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992if test `eval echo '${'$as_ac_var'}'` = yes; then
11993 cat >>confdefs.h <<_ACEOF
11994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11995_ACEOF
11996
11997fi
11998done
11999
12000
12001
12002
12003for ac_func in closedir opendir readdir
12004do
12005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012006{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12008if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012009 echo $ECHO_N "(cached) $ECHO_C" >&6
12010else
12011 cat >conftest.$ac_ext <<_ACEOF
12012/* confdefs.h. */
12013_ACEOF
12014cat confdefs.h >>conftest.$ac_ext
12015cat >>conftest.$ac_ext <<_ACEOF
12016/* end confdefs.h. */
12017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12019#define $ac_func innocuous_$ac_func
12020
12021/* System header to define __stub macros and hopefully few prototypes,
12022 which can conflict with char $ac_func (); below.
12023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12024 <limits.h> exists even on freestanding compilers. */
12025
12026#ifdef __STDC__
12027# include <limits.h>
12028#else
12029# include <assert.h>
12030#endif
12031
12032#undef $ac_func
12033
Reid Spencera773bd52006-08-04 18:18:08 +000012034/* Override any GCC internal prototype to avoid an error.
12035 Use char because int might match the return type of a GCC
12036 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037#ifdef __cplusplus
12038extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012039#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040char $ac_func ();
12041/* The GNU C library defines this for functions which it implements
12042 to always fail with ENOSYS. Some functions are actually named
12043 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012044#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012045choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012046#endif
12047
12048int
12049main ()
12050{
Reid Spencera773bd52006-08-04 18:18:08 +000012051return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012052 ;
12053 return 0;
12054}
12055_ACEOF
12056rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012057if { (ac_try="$ac_link"
12058case "(($ac_try" in
12059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060 *) ac_try_echo=$ac_try;;
12061esac
12062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012064 ac_status=$?
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12071 { (case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_try") 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try='test -s conftest$ac_exeext'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12084esac
12085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012090 eval "$as_ac_var=yes"
12091else
12092 echo "$as_me: failed program was:" >&5
12093sed 's/^/| /' conftest.$ac_ext >&5
12094
Reid Spencera773bd52006-08-04 18:18:08 +000012095 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012096fi
Reid Spencera773bd52006-08-04 18:18:08 +000012097
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012098rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099 conftest$ac_exeext conftest.$ac_ext
12100fi
Reid Spencera773bd52006-08-04 18:18:08 +000012101ac_res=`eval echo '${'$as_ac_var'}'`
12102 { echo "$as_me:$LINENO: result: $ac_res" >&5
12103echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012104if test `eval echo '${'$as_ac_var'}'` = yes; then
12105 cat >>confdefs.h <<_ACEOF
12106#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12107_ACEOF
12108
12109fi
12110done
12111
12112
Reid Spencera773bd52006-08-04 18:18:08 +000012113# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012114if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012115 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012116 case $enableval in
12117 yes) enable_shared=yes ;;
12118 no) enable_shared=no ;;
12119 *)
12120 enable_shared=no
12121 # Look at the argument we got. We use all the common list separators.
12122 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12123 for pkg in $enableval; do
12124 IFS="$lt_save_ifs"
12125 if test "X$pkg" = "X$p"; then
12126 enable_shared=yes
12127 fi
12128 done
12129 IFS="$lt_save_ifs"
12130 ;;
12131 esac
12132else
12133 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012134fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012135
Reid Spencera773bd52006-08-04 18:18:08 +000012136
12137# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012138if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012139 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012140 case $enableval in
12141 yes) enable_static=yes ;;
12142 no) enable_static=no ;;
12143 *)
12144 enable_static=no
12145 # Look at the argument we got. We use all the common list separators.
12146 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12147 for pkg in $enableval; do
12148 IFS="$lt_save_ifs"
12149 if test "X$pkg" = "X$p"; then
12150 enable_static=yes
12151 fi
12152 done
12153 IFS="$lt_save_ifs"
12154 ;;
12155 esac
12156else
12157 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012158fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012159
Reid Spencera773bd52006-08-04 18:18:08 +000012160
12161# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012162if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012163 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164 case $enableval in
12165 yes) enable_fast_install=yes ;;
12166 no) enable_fast_install=no ;;
12167 *)
12168 enable_fast_install=no
12169 # Look at the argument we got. We use all the common list separators.
12170 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12171 for pkg in $enableval; do
12172 IFS="$lt_save_ifs"
12173 if test "X$pkg" = "X$p"; then
12174 enable_fast_install=yes
12175 fi
12176 done
12177 IFS="$lt_save_ifs"
12178 ;;
12179 esac
12180else
12181 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012182fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183
Reid Spencera773bd52006-08-04 18:18:08 +000012184
12185{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12186echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012187if test "${lt_cv_path_SED+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
12190 # Loop through the user's path and test for sed and gsed.
12191# Then use that list of sed's as ones to test for truncation.
12192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for lt_ac_prog in sed gsed; do
12198 for ac_exec_ext in '' $ac_executable_extensions; do
12199 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12200 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12201 fi
12202 done
12203 done
12204done
12205lt_ac_max=0
12206lt_ac_count=0
12207# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12208# along with /bin/sed that truncates output.
12209for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012210 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211 cat /dev/null > conftest.in
12212 lt_ac_count=0
12213 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12214 # Check for GNU sed and select it if it is found.
12215 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12216 lt_cv_path_SED=$lt_ac_sed
12217 break
12218 fi
12219 while true; do
12220 cat conftest.in conftest.in >conftest.tmp
12221 mv conftest.tmp conftest.in
12222 cp conftest.in conftest.nl
12223 echo >>conftest.nl
12224 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12225 cmp -s conftest.out conftest.nl || break
12226 # 10000 chars as input seems more than enough
12227 test $lt_ac_count -gt 10 && break
12228 lt_ac_count=`expr $lt_ac_count + 1`
12229 if test $lt_ac_count -gt $lt_ac_max; then
12230 lt_ac_max=$lt_ac_count
12231 lt_cv_path_SED=$lt_ac_sed
12232 fi
12233 done
12234done
12235
12236fi
12237
12238SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012239{ echo "$as_me:$LINENO: result: $SED" >&5
12240echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012241
12242
Reid Spencera773bd52006-08-04 18:18:08 +000012243# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012245 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246else
12247 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012248fi
12249
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012250ac_prog=ld
12251if test "$GCC" = yes; then
12252 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012253 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12254echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012255 case $host in
12256 *-*-mingw*)
12257 # gcc leaves a trailing carriage return which upsets mingw
12258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12259 *)
12260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12261 esac
12262 case $ac_prog in
12263 # Accept absolute paths.
12264 [\\/]* | ?:[\\/]*)
12265 re_direlt='/[^/][^/]*/\.\./'
12266 # Canonicalize the pathname of ld
12267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12270 done
12271 test -z "$LD" && LD="$ac_prog"
12272 ;;
12273 "")
12274 # If it fails, then pretend we aren't using GCC.
12275 ac_prog=ld
12276 ;;
12277 *)
12278 # If it is relative, then search for the first ld in PATH.
12279 with_gnu_ld=unknown
12280 ;;
12281 esac
12282elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012283 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12284echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012285else
Reid Spencera773bd52006-08-04 18:18:08 +000012286 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12287echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012288fi
12289if test "${lt_cv_path_LD+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291else
12292 if test -z "$LD"; then
12293 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12294 for ac_dir in $PATH; do
12295 IFS="$lt_save_ifs"
12296 test -z "$ac_dir" && ac_dir=.
12297 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12298 lt_cv_path_LD="$ac_dir/$ac_prog"
12299 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012300 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012301 # Break only if it was the GNU/non-GNU ld that we prefer.
12302 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12303 *GNU* | *'with BFD'*)
12304 test "$with_gnu_ld" != no && break
12305 ;;
12306 *)
12307 test "$with_gnu_ld" != yes && break
12308 ;;
12309 esac
12310 fi
12311 done
12312 IFS="$lt_save_ifs"
12313else
12314 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12315fi
12316fi
12317
12318LD="$lt_cv_path_LD"
12319if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012320 { echo "$as_me:$LINENO: result: $LD" >&5
12321echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012322else
Reid Spencera773bd52006-08-04 18:18:08 +000012323 { echo "$as_me:$LINENO: result: no" >&5
12324echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012325fi
12326test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12327echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12328 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012329{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12330echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012331if test "${lt_cv_prog_gnu_ld+set}" = set; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333else
Reid Spencera773bd52006-08-04 18:18:08 +000012334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012335case `$LD -v 2>&1 </dev/null` in
12336*GNU* | *'with BFD'*)
12337 lt_cv_prog_gnu_ld=yes
12338 ;;
12339*)
12340 lt_cv_prog_gnu_ld=no
12341 ;;
12342esac
12343fi
Reid Spencera773bd52006-08-04 18:18:08 +000012344{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12345echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012346with_gnu_ld=$lt_cv_prog_gnu_ld
12347
12348
Reid Spencera773bd52006-08-04 18:18:08 +000012349{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12350echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012351if test "${lt_cv_ld_reload_flag+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12353else
12354 lt_cv_ld_reload_flag='-r'
12355fi
Reid Spencera773bd52006-08-04 18:18:08 +000012356{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12357echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012358reload_flag=$lt_cv_ld_reload_flag
12359case $reload_flag in
12360"" | " "*) ;;
12361*) reload_flag=" $reload_flag" ;;
12362esac
12363reload_cmds='$LD$reload_flag -o $output$reload_objs'
12364case $host_os in
12365 darwin*)
12366 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012367 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368 else
12369 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12370 fi
12371 ;;
12372esac
12373
Reid Spencera773bd52006-08-04 18:18:08 +000012374{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12375echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012376if test "${lt_cv_deplibs_check_method+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379 lt_cv_file_magic_cmd='$MAGIC_CMD'
12380lt_cv_file_magic_test_file=
12381lt_cv_deplibs_check_method='unknown'
12382# Need to set the preceding variable on all platforms that support
12383# interlibrary dependencies.
12384# 'none' -- dependencies not supported.
12385# `unknown' -- same as none, but documents that we really don't know.
12386# 'pass_all' -- all dependencies passed with no checks.
12387# 'test_compile' -- check by making test program.
12388# 'file_magic [[regex]]' -- check by looking for files in library path
12389# which responds to the $file_magic_cmd with a given extended regex.
12390# If you have `file' or equivalent on your system and you're not sure
12391# whether `pass_all' will *always* work, you probably want this one.
12392
12393case $host_os in
12394aix4* | aix5*)
12395 lt_cv_deplibs_check_method=pass_all
12396 ;;
12397
12398beos*)
12399 lt_cv_deplibs_check_method=pass_all
12400 ;;
12401
12402bsdi[45]*)
12403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12404 lt_cv_file_magic_cmd='/usr/bin/file -L'
12405 lt_cv_file_magic_test_file=/shlib/libc.so
12406 ;;
12407
12408cygwin*)
12409 # func_win32_libid is a shell function defined in ltmain.sh
12410 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12411 lt_cv_file_magic_cmd='func_win32_libid'
12412 ;;
12413
12414mingw* | pw32*)
12415 # Base MSYS/MinGW do not provide the 'file' command needed by
12416 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12417 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12418 lt_cv_file_magic_cmd='$OBJDUMP -f'
12419 ;;
12420
12421darwin* | rhapsody*)
12422 lt_cv_deplibs_check_method=pass_all
12423 ;;
12424
Reid Spencera773bd52006-08-04 18:18:08 +000012425freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12427 case $host_cpu in
12428 i*86 )
12429 # Not sure whether the presence of OpenBSD here was a mistake.
12430 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012431 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 +000012432 lt_cv_file_magic_cmd=/usr/bin/file
12433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12434 ;;
12435 esac
12436 else
12437 lt_cv_deplibs_check_method=pass_all
12438 fi
12439 ;;
12440
12441gnu*)
12442 lt_cv_deplibs_check_method=pass_all
12443 ;;
12444
12445hpux10.20* | hpux11*)
12446 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012447 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448 ia64*)
12449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12450 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12451 ;;
12452 hppa*64*)
12453 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]'
12454 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12455 ;;
12456 *)
12457 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12458 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12459 ;;
12460 esac
12461 ;;
12462
Reid Spencera773bd52006-08-04 18:18:08 +000012463interix3*)
12464 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12466 ;;
12467
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012468irix5* | irix6* | nonstopux*)
12469 case $LD in
12470 *-32|*"-32 ") libmagic=32-bit;;
12471 *-n32|*"-n32 ") libmagic=N32;;
12472 *-64|*"-64 ") libmagic=64-bit;;
12473 *) libmagic=never-match;;
12474 esac
12475 lt_cv_deplibs_check_method=pass_all
12476 ;;
12477
12478# This must be Linux ELF.
12479linux*)
12480 lt_cv_deplibs_check_method=pass_all
12481 ;;
12482
12483netbsd*)
12484 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12486 else
12487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12488 fi
12489 ;;
12490
12491newos6*)
12492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12493 lt_cv_file_magic_cmd=/usr/bin/file
12494 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12495 ;;
12496
12497nto-qnx*)
12498 lt_cv_deplibs_check_method=unknown
12499 ;;
12500
12501openbsd*)
12502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12504 else
12505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12506 fi
12507 ;;
12508
12509osf3* | osf4* | osf5*)
12510 lt_cv_deplibs_check_method=pass_all
12511 ;;
12512
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012513solaris*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
Reid Spencera773bd52006-08-04 18:18:08 +000012517sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518 case $host_vendor in
12519 motorola)
12520 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]'
12521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12522 ;;
12523 ncr)
12524 lt_cv_deplibs_check_method=pass_all
12525 ;;
12526 sequent)
12527 lt_cv_file_magic_cmd='/bin/file'
12528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12529 ;;
12530 sni)
12531 lt_cv_file_magic_cmd='/bin/file'
12532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12533 lt_cv_file_magic_test_file=/lib/libc.so
12534 ;;
12535 siemens)
12536 lt_cv_deplibs_check_method=pass_all
12537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012538 pc)
12539 lt_cv_deplibs_check_method=pass_all
12540 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012541 esac
12542 ;;
12543
Reid Spencera773bd52006-08-04 18:18:08 +000012544sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545 lt_cv_deplibs_check_method=pass_all
12546 ;;
12547esac
12548
12549fi
Reid Spencera773bd52006-08-04 18:18:08 +000012550{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12551echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012552file_magic_cmd=$lt_cv_file_magic_cmd
12553deplibs_check_method=$lt_cv_deplibs_check_method
12554test -z "$deplibs_check_method" && deplibs_check_method=unknown
12555
12556
12557
12558# If no C compiler was specified, use CC.
12559LTCC=${LTCC-"$CC"}
12560
Reid Spencera773bd52006-08-04 18:18:08 +000012561# If no C compiler flags were specified, use CFLAGS.
12562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12563
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564# Allow CC to be a program name with arguments.
12565compiler=$CC
12566
Reid Spencera773bd52006-08-04 18:18:08 +000012567# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012569 enableval=$enable_libtool_lock;
12570fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012571
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012572test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12573
12574# Some flags need to be propagated to the compiler or linker for good
12575# libtool support.
12576case $host in
12577ia64-*-hpux*)
12578 # Find out which ABI we are using.
12579 echo 'int i;' > conftest.$ac_ext
12580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12581 (eval $ac_compile) 2>&5
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; then
12585 case `/usr/bin/file conftest.$ac_objext` in
12586 *ELF-32*)
12587 HPUX_IA64_MODE="32"
12588 ;;
12589 *ELF-64*)
12590 HPUX_IA64_MODE="64"
12591 ;;
12592 esac
12593 fi
12594 rm -rf conftest*
12595 ;;
12596*-*-irix6*)
12597 # Find out which ABI we are using.
Nick Lewyckye9821dc2009-03-03 04:55:29 +000012598 echo '#line 12598 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; then
12604 if test "$lt_cv_prog_gnu_ld" = yes; then
12605 case `/usr/bin/file conftest.$ac_objext` in
12606 *32-bit*)
12607 LD="${LD-ld} -melf32bsmip"
12608 ;;
12609 *N32*)
12610 LD="${LD-ld} -melf32bmipn32"
12611 ;;
12612 *64-bit*)
12613 LD="${LD-ld} -melf64bmip"
12614 ;;
12615 esac
12616 else
12617 case `/usr/bin/file conftest.$ac_objext` in
12618 *32-bit*)
12619 LD="${LD-ld} -32"
12620 ;;
12621 *N32*)
12622 LD="${LD-ld} -n32"
12623 ;;
12624 *64-bit*)
12625 LD="${LD-ld} -64"
12626 ;;
12627 esac
12628 fi
12629 fi
12630 rm -rf conftest*
12631 ;;
12632
12633x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12634 # Find out which ABI we are using.
12635 echo 'int i;' > conftest.$ac_ext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>&5
12638 ac_status=$?
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012641 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012642 *32-bit*)
12643 case $host in
12644 x86_64-*linux*)
12645 LD="${LD-ld} -m elf_i386"
12646 ;;
12647 ppc64-*linux*|powerpc64-*linux*)
12648 LD="${LD-ld} -m elf32ppclinux"
12649 ;;
12650 s390x-*linux*)
12651 LD="${LD-ld} -m elf_s390"
12652 ;;
12653 sparc64-*linux*)
12654 LD="${LD-ld} -m elf32_sparc"
12655 ;;
12656 esac
12657 ;;
12658 *64-bit*)
12659 case $host in
12660 x86_64-*linux*)
12661 LD="${LD-ld} -m elf_x86_64"
12662 ;;
12663 ppc*-*linux*|powerpc*-*linux*)
12664 LD="${LD-ld} -m elf64ppc"
12665 ;;
12666 s390*-*linux*)
12667 LD="${LD-ld} -m elf64_s390"
12668 ;;
12669 sparc*-*linux*)
12670 LD="${LD-ld} -m elf64_sparc"
12671 ;;
12672 esac
12673 ;;
12674 esac
12675 fi
12676 rm -rf conftest*
12677 ;;
12678
12679*-*-sco3.2v5*)
12680 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12681 SAVE_CFLAGS="$CFLAGS"
12682 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012683 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12684echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012685if test "${lt_cv_cc_needs_belf+set}" = set; then
12686 echo $ECHO_N "(cached) $ECHO_C" >&6
12687else
12688 ac_ext=c
12689ac_cpp='$CPP $CPPFLAGS'
12690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12692ac_compiler_gnu=$ac_cv_c_compiler_gnu
12693
12694 cat >conftest.$ac_ext <<_ACEOF
12695/* confdefs.h. */
12696_ACEOF
12697cat confdefs.h >>conftest.$ac_ext
12698cat >>conftest.$ac_ext <<_ACEOF
12699/* end confdefs.h. */
12700
Reid Spencera773bd52006-08-04 18:18:08 +000012701int
12702main ()
12703{
12704
12705 ;
12706 return 0;
12707}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012708_ACEOF
12709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012710if { (ac_try="$ac_link"
12711case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12724 { (case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_try") 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; } &&
12733 { ac_try='test -s conftest$ac_exeext'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12737esac
12738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012743 lt_cv_cc_needs_belf=yes
12744else
12745 echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
Reid Spencera773bd52006-08-04 18:18:08 +000012748 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749fi
Reid Spencera773bd52006-08-04 18:18:08 +000012750
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012751rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012752 conftest$ac_exeext conftest.$ac_ext
12753 ac_ext=c
12754ac_cpp='$CPP $CPPFLAGS'
12755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12757ac_compiler_gnu=$ac_cv_c_compiler_gnu
12758
12759fi
Reid Spencera773bd52006-08-04 18:18:08 +000012760{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12761echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012762 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12763 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12764 CFLAGS="$SAVE_CFLAGS"
12765 fi
12766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012767sparc*-*solaris*)
12768 # Find out which ABI we are using.
12769 echo 'int i;' > conftest.$ac_ext
12770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12771 (eval $ac_compile) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; then
12775 case `/usr/bin/file conftest.o` in
12776 *64-bit*)
12777 case $lt_cv_prog_gnu_ld in
12778 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12779 *) LD="${LD-ld} -64" ;;
12780 esac
12781 ;;
12782 esac
12783 fi
12784 rm -rf conftest*
12785 ;;
12786
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012787
12788esac
12789
12790need_locks="$enable_libtool_lock"
12791
12792
Reid Spencer2706f8c2004-09-19 23:53:36 +000012793
12794
12795if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12796 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12797 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012798 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012799ac_cpp='$CXXCPP $CPPFLAGS'
12800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012803{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12804echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012805if test -z "$CXXCPP"; then
12806 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012807 echo $ECHO_N "(cached) $ECHO_C" >&6
12808else
John Criswell47fdd832003-07-14 16:52:07 +000012809 # Double quotes because CXXCPP needs to be expanded
12810 for CXXCPP in "$CXX -E" "/lib/cpp"
12811 do
12812 ac_preproc_ok=false
12813for ac_cxx_preproc_warn_flag in '' yes
12814do
12815 # Use a header file that comes with gcc, so configuring glibc
12816 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12818 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012819 # On the NeXT, cc -E runs the code through the compiler's parser,
12820 # not just through cpp. "Syntax error" is here to catch this case.
12821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012822/* confdefs.h. */
12823_ACEOF
12824cat confdefs.h >>conftest.$ac_ext
12825cat >>conftest.$ac_ext <<_ACEOF
12826/* end confdefs.h. */
12827#ifdef __STDC__
12828# include <limits.h>
12829#else
12830# include <assert.h>
12831#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012832 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012833_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012834if { (ac_try="$ac_cpp conftest.$ac_ext"
12835case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838esac
12839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012841 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012842 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012846 (exit $ac_status); } >/dev/null; then
12847 if test -s conftest.err; then
12848 ac_cpp_err=$ac_cxx_preproc_warn_flag
12849 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12850 else
12851 ac_cpp_err=
12852 fi
12853else
12854 ac_cpp_err=yes
12855fi
12856if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012857 :
12858else
12859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012860sed 's/^/| /' conftest.$ac_ext >&5
12861
John Criswell47fdd832003-07-14 16:52:07 +000012862 # Broken: fails on valid input.
12863continue
12864fi
Reid Spencera773bd52006-08-04 18:18:08 +000012865
John Criswell47fdd832003-07-14 16:52:07 +000012866rm -f conftest.err conftest.$ac_ext
12867
Reid Spencera773bd52006-08-04 18:18:08 +000012868 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012869 # can be detected and how.
12870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012871/* confdefs.h. */
12872_ACEOF
12873cat confdefs.h >>conftest.$ac_ext
12874cat >>conftest.$ac_ext <<_ACEOF
12875/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012876#include <ac_nonexistent.h>
12877_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012878if { (ac_try="$ac_cpp conftest.$ac_ext"
12879case "(($ac_try" in
12880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881 *) ac_try_echo=$ac_try;;
12882esac
12883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012885 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012886 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012890 (exit $ac_status); } >/dev/null; then
12891 if test -s conftest.err; then
12892 ac_cpp_err=$ac_cxx_preproc_warn_flag
12893 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12894 else
12895 ac_cpp_err=
12896 fi
12897else
12898 ac_cpp_err=yes
12899fi
12900if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012901 # Broken: success on invalid input.
12902continue
12903else
12904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012905sed 's/^/| /' conftest.$ac_ext >&5
12906
John Criswell47fdd832003-07-14 16:52:07 +000012907 # Passes both tests.
12908ac_preproc_ok=:
12909break
12910fi
Reid Spencera773bd52006-08-04 18:18:08 +000012911
John Criswell47fdd832003-07-14 16:52:07 +000012912rm -f conftest.err conftest.$ac_ext
12913
12914done
12915# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12916rm -f conftest.err conftest.$ac_ext
12917if $ac_preproc_ok; then
12918 break
John Criswell7a73b802003-06-30 21:59:07 +000012919fi
12920
John Criswell47fdd832003-07-14 16:52:07 +000012921 done
12922 ac_cv_prog_CXXCPP=$CXXCPP
12923
12924fi
12925 CXXCPP=$ac_cv_prog_CXXCPP
12926else
12927 ac_cv_prog_CXXCPP=$CXXCPP
12928fi
Reid Spencera773bd52006-08-04 18:18:08 +000012929{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12930echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012931ac_preproc_ok=false
12932for ac_cxx_preproc_warn_flag in '' yes
12933do
12934 # Use a header file that comes with gcc, so configuring glibc
12935 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012936 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12937 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012938 # On the NeXT, cc -E runs the code through the compiler's parser,
12939 # not just through cpp. "Syntax error" is here to catch this case.
12940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946#ifdef __STDC__
12947# include <limits.h>
12948#else
12949# include <assert.h>
12950#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012951 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012952_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012953if { (ac_try="$ac_cpp conftest.$ac_ext"
12954case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957esac
12958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012960 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012961 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000012965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_cxx_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12969 else
12970 ac_cpp_err=
12971 fi
12972else
12973 ac_cpp_err=yes
12974fi
12975if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000012976 :
12977else
12978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012979sed 's/^/| /' conftest.$ac_ext >&5
12980
John Criswell47fdd832003-07-14 16:52:07 +000012981 # Broken: fails on valid input.
12982continue
12983fi
Reid Spencera773bd52006-08-04 18:18:08 +000012984
John Criswell47fdd832003-07-14 16:52:07 +000012985rm -f conftest.err conftest.$ac_ext
12986
Reid Spencera773bd52006-08-04 18:18:08 +000012987 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012988 # can be detected and how.
12989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012995#include <ac_nonexistent.h>
12996_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012997if { (ac_try="$ac_cpp conftest.$ac_ext"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013004 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013005 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013006 rm -f conftest.er1
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_cxx_preproc_warn_flag
13012 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13013 else
13014 ac_cpp_err=
13015 fi
13016else
13017 ac_cpp_err=yes
13018fi
13019if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013020 # Broken: success on invalid input.
13021continue
13022else
13023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013024sed 's/^/| /' conftest.$ac_ext >&5
13025
John Criswell47fdd832003-07-14 16:52:07 +000013026 # Passes both tests.
13027ac_preproc_ok=:
13028break
13029fi
Reid Spencera773bd52006-08-04 18:18:08 +000013030
John Criswell47fdd832003-07-14 16:52:07 +000013031rm -f conftest.err conftest.$ac_ext
13032
13033done
13034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13035rm -f conftest.err conftest.$ac_ext
13036if $ac_preproc_ok; then
13037 :
13038else
John Criswell0c38eaf2003-09-10 15:17:25 +000013039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13040See \`config.log' for more details." >&5
13041echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13042See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013043 { (exit 1); exit 1; }; }
13044fi
13045
Reid Spencera773bd52006-08-04 18:18:08 +000013046ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013047ac_cpp='$CXXCPP $CPPFLAGS'
13048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13051
Reid Spencer2706f8c2004-09-19 23:53:36 +000013052fi
13053
John Criswell47fdd832003-07-14 16:52:07 +000013054
13055ac_ext=f
13056ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13057ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13059if test -n "$ac_tool_prefix"; then
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013060 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 +000013061 do
13062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013066if test "${ac_cv_prog_F77+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 if test -n "$F77"; then
13070 ac_cv_prog_F77="$F77" # Let the user override the test.
13071else
13072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
13077 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013078 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 +000013079 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13081 break 2
13082 fi
13083done
13084done
Reid Spencera773bd52006-08-04 18:18:08 +000013085IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013086
13087fi
13088fi
13089F77=$ac_cv_prog_F77
13090if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013091 { echo "$as_me:$LINENO: result: $F77" >&5
13092echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013093else
Reid Spencera773bd52006-08-04 18:18:08 +000013094 { echo "$as_me:$LINENO: result: no" >&5
13095echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013096fi
13097
Reid Spencera773bd52006-08-04 18:18:08 +000013098
John Criswell47fdd832003-07-14 16:52:07 +000013099 test -n "$F77" && break
13100 done
13101fi
13102if test -z "$F77"; then
13103 ac_ct_F77=$F77
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013104 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 +000013105do
13106 # Extract the first word of "$ac_prog", so it can be a program name with args.
13107set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013108{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013110if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13112else
13113 if test -n "$ac_ct_F77"; then
13114 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13115else
13116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117for as_dir in $PATH
13118do
13119 IFS=$as_save_IFS
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013122 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 +000013123 ac_cv_prog_ac_ct_F77="$ac_prog"
13124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13125 break 2
13126 fi
13127done
13128done
Reid Spencera773bd52006-08-04 18:18:08 +000013129IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013130
13131fi
13132fi
13133ac_ct_F77=$ac_cv_prog_ac_ct_F77
13134if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013135 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13136echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013137else
Reid Spencera773bd52006-08-04 18:18:08 +000013138 { echo "$as_me:$LINENO: result: no" >&5
13139echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013140fi
13141
Reid Spencera773bd52006-08-04 18:18:08 +000013142
John Criswell47fdd832003-07-14 16:52:07 +000013143 test -n "$ac_ct_F77" && break
13144done
13145
Reid Spencera773bd52006-08-04 18:18:08 +000013146 if test "x$ac_ct_F77" = x; then
13147 F77=""
13148 else
13149 case $cross_compiling:$ac_tool_warned in
13150yes:)
13151{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13152whose name does not start with the host triplet. If you think this
13153configuration is useful to you, please write to autoconf@gnu.org." >&5
13154echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13155whose name does not start with the host triplet. If you think this
13156configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13157ac_tool_warned=yes ;;
13158esac
13159 F77=$ac_ct_F77
13160 fi
John Criswell47fdd832003-07-14 16:52:07 +000013161fi
13162
13163
13164# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013165echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013166ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013167{ (ac_try="$ac_compiler --version >&5"
13168case "(($ac_try" in
13169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13171esac
13172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013177{ (ac_try="$ac_compiler -v >&5"
13178case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013187{ (ac_try="$ac_compiler -V >&5"
13188case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
13192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013197rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013198
13199# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013200# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013201ac_save_ext=$ac_ext
13202ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013203{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13204echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013205if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208 cat >conftest.$ac_ext <<_ACEOF
13209 program main
13210#ifndef __GNUC__
13211 choke me
13212#endif
13213
13214 end
13215_ACEOF
13216rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013217if { (ac_try="$ac_compile"
13218case "(($ac_try" in
13219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220 *) ac_try_echo=$ac_try;;
13221esac
13222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013224 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013225 grep -v '^ *+' conftest.er1 >conftest.err
13226 rm -f conftest.er1
13227 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13231 { (case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234esac
13235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236 (eval "$ac_try") 2>&5
13237 ac_status=$?
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; } &&
13240 { ac_try='test -s conftest.$ac_objext'
13241 { (case "(($ac_try" in
13242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243 *) ac_try_echo=$ac_try;;
13244esac
13245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246 (eval "$ac_try") 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013250 ac_compiler_gnu=yes
13251else
13252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013253sed 's/^/| /' conftest.$ac_ext >&5
13254
Reid Spencera773bd52006-08-04 18:18:08 +000013255 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013256fi
Reid Spencera773bd52006-08-04 18:18:08 +000013257
13258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013259ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13260
13261fi
Reid Spencera773bd52006-08-04 18:18:08 +000013262{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13263echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013264ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013265ac_test_FFLAGS=${FFLAGS+set}
13266ac_save_FFLAGS=$FFLAGS
13267FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013268{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13269echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013270if test "${ac_cv_prog_f77_g+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273 FFLAGS=-g
13274cat >conftest.$ac_ext <<_ACEOF
13275 program main
13276
13277 end
13278_ACEOF
13279rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013280if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013287 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013292 (exit $ac_status); } &&
13293 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297esac
13298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_try") 2>&5
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013313 ac_cv_prog_f77_g=yes
13314else
13315 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013316sed 's/^/| /' conftest.$ac_ext >&5
13317
Reid Spencera773bd52006-08-04 18:18:08 +000013318 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013319fi
Reid Spencera773bd52006-08-04 18:18:08 +000013320
13321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013322
13323fi
Reid Spencera773bd52006-08-04 18:18:08 +000013324{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13325echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013326if test "$ac_test_FFLAGS" = set; then
13327 FFLAGS=$ac_save_FFLAGS
13328elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013329 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013330 FFLAGS="-g -O2"
13331 else
13332 FFLAGS="-g"
13333 fi
13334else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013335 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013336 FFLAGS="-O2"
13337 else
13338 FFLAGS=
13339 fi
13340fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013341
13342G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013343ac_ext=c
13344ac_cpp='$CPP $CPPFLAGS'
13345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13347ac_compiler_gnu=$ac_cv_c_compiler_gnu
13348
13349
13350
13351# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13352
13353# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013354{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13355echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013356if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13358else
13359 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013360 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013361
13362 case $build_os in
13363 msdosdjgpp*)
13364 # On DJGPP, this test can blow up pretty badly due to problems in libc
13365 # (any single argument exceeding 2000 bytes causes a buffer overrun
13366 # during glob expansion). Even if it were fixed, the result of this
13367 # check would be larger than it should be.
13368 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13369 ;;
13370
13371 gnu*)
13372 # Under GNU Hurd, this test is not required because there is
13373 # no limit to the length of command line arguments.
13374 # Libtool will interpret -1 as no limit whatsoever
13375 lt_cv_sys_max_cmd_len=-1;
13376 ;;
13377
13378 cygwin* | mingw*)
13379 # On Win9x/ME, this test blows up -- it succeeds, but takes
13380 # about 5 minutes as the teststring grows exponentially.
13381 # Worse, since 9x/ME are not pre-emptively multitasking,
13382 # you end up with a "frozen" computer, even though with patience
13383 # the test eventually succeeds (with a max line length of 256k).
13384 # Instead, let's just punt: use the minimum linelength reported by
13385 # all of the supported platforms: 8192 (on NT/2K/XP).
13386 lt_cv_sys_max_cmd_len=8192;
13387 ;;
13388
Reid Spencer2706f8c2004-09-19 23:53:36 +000013389 amigaos*)
13390 # On AmigaOS with pdksh, this test takes hours, literally.
13391 # So we just punt and use a minimum line length of 8192.
13392 lt_cv_sys_max_cmd_len=8192;
13393 ;;
13394
Reid Spencera773bd52006-08-04 18:18:08 +000013395 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013396 # This has been around since 386BSD, at least. Likely further.
13397 if test -x /sbin/sysctl; then
13398 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13399 elif test -x /usr/sbin/sysctl; then
13400 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13401 else
Reid Spencera773bd52006-08-04 18:18:08 +000013402 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013403 fi
13404 # And add a safety zone
13405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013406 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013407 ;;
13408
Reid Spencera773bd52006-08-04 18:18:08 +000013409 interix*)
13410 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13411 lt_cv_sys_max_cmd_len=196608
13412 ;;
13413
13414 osf*)
13415 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13416 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13417 # nice to cause kernel panics so lets avoid the loop below.
13418 # First set a reasonable default.
13419 lt_cv_sys_max_cmd_len=16384
13420 #
13421 if test -x /sbin/sysconfig; then
13422 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13423 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13424 esac
13425 fi
13426 ;;
13427 sco3.2v5*)
13428 lt_cv_sys_max_cmd_len=102400
13429 ;;
13430 sysv5* | sco5v6* | sysv4.2uw2*)
13431 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13432 if test -n "$kargmax"; then
13433 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13434 else
13435 lt_cv_sys_max_cmd_len=32768
13436 fi
13437 ;;
13438 *)
John Criswell47fdd832003-07-14 16:52:07 +000013439 # If test is not a shell built-in, we'll probably end up computing a
13440 # maximum length that is only half of the actual maximum length, but
13441 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013442 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13443 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13444 = "XX$teststring") >/dev/null 2>&1 &&
13445 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013446 lt_cv_sys_max_cmd_len=$new_result &&
13447 test $i != 17 # 1/2 MB should be enough
13448 do
13449 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013450 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013451 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013453 # Add a significant safety factor because C++ compilers can tack on massive
13454 # amounts of additional arguments before passing them to the linker.
13455 # It appears as though 1/2 is a usable value.
13456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13457 ;;
13458 esac
13459
13460fi
13461
13462if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013463 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13464echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013465else
Reid Spencera773bd52006-08-04 18:18:08 +000013466 { echo "$as_me:$LINENO: result: none" >&5
13467echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013468fi
13469
13470
13471
13472
13473# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013474{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13475echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013476if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13477 echo $ECHO_N "(cached) $ECHO_C" >&6
13478else
13479
13480# These are sane defaults that work on at least a few old systems.
13481# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13482
13483# Character class describing NM global symbol codes.
13484symcode='[BCDEGRST]'
13485
13486# Regexp to match symbols that can be accessed directly from C.
13487sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13488
John Criswell47fdd832003-07-14 16:52:07 +000013489# Transform an extracted symbol line into a proper C declaration
13490lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13491
13492# Transform an extracted symbol line into symbol name and symbol address
13493lt_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'"
13494
13495# Define system-specific variables.
13496case $host_os in
13497aix*)
13498 symcode='[BCDT]'
13499 ;;
13500cygwin* | mingw* | pw32*)
13501 symcode='[ABCDGISTW]'
13502 ;;
13503hpux*) # Its linker distinguishes data from code symbols
13504 if test "$host_cpu" = ia64; then
13505 symcode='[ABCDEGRST]'
13506 fi
13507 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13508 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'"
13509 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013510linux*)
13511 if test "$host_cpu" = ia64; then
13512 symcode='[ABCDGIRSTW]'
13513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13514 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'"
13515 fi
13516 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013517irix* | nonstopux*)
13518 symcode='[BCDEGRST]'
13519 ;;
13520osf*)
13521 symcode='[BCDEGQRST]'
13522 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013523solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013524 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013525 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013526sco3.2v5*)
13527 symcode='[DT]'
13528 ;;
13529sysv4.2uw2*)
13530 symcode='[DT]'
13531 ;;
13532sysv5* | sco5v6* | unixware* | OpenUNIX*)
13533 symcode='[ABDT]'
13534 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013535sysv4)
13536 symcode='[DFNSTU]'
13537 ;;
13538esac
13539
13540# Handle CRLF in mingw tool chain
13541opt_cr=
13542case $build_os in
13543mingw*)
13544 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13545 ;;
13546esac
13547
13548# If we're using GNU nm, then use its standard symbol codes.
13549case `$NM -V 2>&1` in
13550*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013551 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013552esac
13553
13554# Try without a prefix undercore, then with it.
13555for ac_symprfx in "" "_"; do
13556
Reid Spencera773bd52006-08-04 18:18:08 +000013557 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13558 symxfrm="\\1 $ac_symprfx\\2 \\2"
13559
John Criswell47fdd832003-07-14 16:52:07 +000013560 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013561 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 +000013562
13563 # Check to see that the pipe works correctly.
13564 pipe_works=no
13565
13566 rm -f conftest*
13567 cat > conftest.$ac_ext <<EOF
13568#ifdef __cplusplus
13569extern "C" {
13570#endif
13571char nm_test_var;
13572void nm_test_func(){}
13573#ifdef __cplusplus
13574}
13575#endif
13576int main(){nm_test_var='a';nm_test_func();return(0);}
13577EOF
13578
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; then
13584 # Now try to grab the symbols.
13585 nlist=conftest.nm
13586 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13587 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); } && test -s "$nlist"; then
13591 # Try sorting and uniquifying the output.
13592 if sort "$nlist" | uniq > "$nlist"T; then
13593 mv -f "$nlist"T "$nlist"
13594 else
13595 rm -f "$nlist"T
13596 fi
13597
13598 # Make sure that we snagged all the symbols we need.
13599 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13600 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13601 cat <<EOF > conftest.$ac_ext
13602#ifdef __cplusplus
13603extern "C" {
13604#endif
13605
13606EOF
13607 # Now generate the symbol file.
13608 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13609
13610 cat <<EOF >> conftest.$ac_ext
13611#if defined (__STDC__) && __STDC__
13612# define lt_ptr_t void *
13613#else
13614# define lt_ptr_t char *
13615# define const
13616#endif
13617
13618/* The mapping between symbol names and symbols. */
13619const struct {
13620 const char *name;
13621 lt_ptr_t address;
13622}
13623lt_preloaded_symbols[] =
13624{
13625EOF
13626 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13627 cat <<\EOF >> conftest.$ac_ext
13628 {0, (lt_ptr_t) 0}
13629};
13630
13631#ifdef __cplusplus
13632}
13633#endif
13634EOF
13635 # Now try linking the two files.
13636 mv conftest.$ac_objext conftstm.$ac_objext
13637 lt_save_LIBS="$LIBS"
13638 lt_save_CFLAGS="$CFLAGS"
13639 LIBS="conftstm.$ac_objext"
13640 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13642 (eval $ac_link) 2>&5
13643 ac_status=$?
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13646 pipe_works=yes
13647 fi
13648 LIBS="$lt_save_LIBS"
13649 CFLAGS="$lt_save_CFLAGS"
13650 else
13651 echo "cannot find nm_test_func in $nlist" >&5
13652 fi
13653 else
13654 echo "cannot find nm_test_var in $nlist" >&5
13655 fi
13656 else
13657 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13658 fi
13659 else
13660 echo "$progname: failed program was:" >&5
13661 cat conftest.$ac_ext >&5
13662 fi
13663 rm -f conftest* conftst*
13664
13665 # Do not use the global_symbol_pipe unless it works.
13666 if test "$pipe_works" = yes; then
13667 break
13668 else
13669 lt_cv_sys_global_symbol_pipe=
13670 fi
13671done
13672
13673fi
13674
13675if test -z "$lt_cv_sys_global_symbol_pipe"; then
13676 lt_cv_sys_global_symbol_to_cdecl=
13677fi
13678if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013679 { echo "$as_me:$LINENO: result: failed" >&5
13680echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013681else
Reid Spencera773bd52006-08-04 18:18:08 +000013682 { echo "$as_me:$LINENO: result: ok" >&5
13683echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013684fi
13685
Reid Spencera773bd52006-08-04 18:18:08 +000013686{ echo "$as_me:$LINENO: checking for objdir" >&5
13687echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013688if test "${lt_cv_objdir+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13690else
13691 rm -f .libs 2>/dev/null
13692mkdir .libs 2>/dev/null
13693if test -d .libs; then
13694 lt_cv_objdir=.libs
13695else
13696 # MS-DOS does not allow filenames that begin with a dot.
13697 lt_cv_objdir=_libs
13698fi
13699rmdir .libs 2>/dev/null
13700fi
Reid Spencera773bd52006-08-04 18:18:08 +000013701{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13702echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013703objdir=$lt_cv_objdir
13704
13705
13706
13707
13708
13709case $host_os in
13710aix3*)
13711 # AIX sometimes has problems with the GCC collect2 program. For some
13712 # reason, if we set the COLLECT_NAMES environment variable, the problems
13713 # vanish in a puff of smoke.
13714 if test "X${COLLECT_NAMES+set}" != Xset; then
13715 COLLECT_NAMES=
13716 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013717 fi
13718 ;;
13719esac
13720
John Criswell47fdd832003-07-14 16:52:07 +000013721# Sed substitution that helps us do robust quoting. It backslashifies
13722# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013723Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013724sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13725
13726# Same as above, but do not quote variable references.
13727double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13728
13729# Sed substitution to delay expansion of an escaped shell variable in a
13730# double_quote_subst'ed string.
13731delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13732
13733# Sed substitution to avoid accidental globbing in evaled expressions
13734no_glob_subst='s/\*/\\\*/g'
13735
13736# Constants:
13737rm="rm -f"
13738
13739# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013740default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013741can_build_shared=yes
13742
Reid Spencera773bd52006-08-04 18:18:08 +000013743# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013744# which needs '.lib').
13745libext=a
13746ltmain="$ac_aux_dir/ltmain.sh"
13747ofile="$default_ofile"
13748with_gnu_ld="$lt_cv_prog_gnu_ld"
13749
13750if test -n "$ac_tool_prefix"; then
13751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13752set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013755if test "${ac_cv_prog_AR+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13757else
13758 if test -n "$AR"; then
13759 ac_cv_prog_AR="$AR" # Let the user override the test.
13760else
13761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13762for as_dir in $PATH
13763do
13764 IFS=$as_save_IFS
13765 test -z "$as_dir" && as_dir=.
13766 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013767 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 +000013768 ac_cv_prog_AR="${ac_tool_prefix}ar"
13769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13770 break 2
13771 fi
13772done
13773done
Reid Spencera773bd52006-08-04 18:18:08 +000013774IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013775
13776fi
13777fi
13778AR=$ac_cv_prog_AR
13779if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013780 { echo "$as_me:$LINENO: result: $AR" >&5
13781echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013782else
Reid Spencera773bd52006-08-04 18:18:08 +000013783 { echo "$as_me:$LINENO: result: no" >&5
13784echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013785fi
13786
Reid Spencera773bd52006-08-04 18:18:08 +000013787
John Criswell47fdd832003-07-14 16:52:07 +000013788fi
13789if test -z "$ac_cv_prog_AR"; then
13790 ac_ct_AR=$AR
13791 # Extract the first word of "ar", so it can be a program name with args.
13792set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013795if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 if test -n "$ac_ct_AR"; then
13799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013807 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 +000013808 ac_cv_prog_ac_ct_AR="ar"
13809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 break 2
13811 fi
13812done
13813done
Reid Spencera773bd52006-08-04 18:18:08 +000013814IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013815
John Criswell47fdd832003-07-14 16:52:07 +000013816fi
13817fi
13818ac_ct_AR=$ac_cv_prog_ac_ct_AR
13819if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013820 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13821echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013822else
Reid Spencera773bd52006-08-04 18:18:08 +000013823 { echo "$as_me:$LINENO: result: no" >&5
13824echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013825fi
13826
Reid Spencera773bd52006-08-04 18:18:08 +000013827 if test "x$ac_ct_AR" = x; then
13828 AR="false"
13829 else
13830 case $cross_compiling:$ac_tool_warned in
13831yes:)
13832{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13833whose name does not start with the host triplet. If you think this
13834configuration is useful to you, please write to autoconf@gnu.org." >&5
13835echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13836whose name does not start with the host triplet. If you think this
13837configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13838ac_tool_warned=yes ;;
13839esac
13840 AR=$ac_ct_AR
13841 fi
John Criswell47fdd832003-07-14 16:52:07 +000013842else
13843 AR="$ac_cv_prog_AR"
13844fi
13845
John Criswell7a73b802003-06-30 21:59:07 +000013846if test -n "$ac_tool_prefix"; then
13847 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13848set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013851if test "${ac_cv_prog_RANLIB+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854 if test -n "$RANLIB"; then
13855 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13856else
13857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858for as_dir in $PATH
13859do
13860 IFS=$as_save_IFS
13861 test -z "$as_dir" && as_dir=.
13862 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013863 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 +000013864 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13866 break 2
13867 fi
13868done
13869done
Reid Spencera773bd52006-08-04 18:18:08 +000013870IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013871
13872fi
13873fi
13874RANLIB=$ac_cv_prog_RANLIB
13875if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013876 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13877echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013878else
Reid Spencera773bd52006-08-04 18:18:08 +000013879 { echo "$as_me:$LINENO: result: no" >&5
13880echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013881fi
13882
Reid Spencera773bd52006-08-04 18:18:08 +000013883
John Criswell7a73b802003-06-30 21:59:07 +000013884fi
13885if test -z "$ac_cv_prog_RANLIB"; then
13886 ac_ct_RANLIB=$RANLIB
13887 # Extract the first word of "ranlib", so it can be a program name with args.
13888set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13893else
13894 if test -n "$ac_ct_RANLIB"; then
13895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13896else
13897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13898for as_dir in $PATH
13899do
13900 IFS=$as_save_IFS
13901 test -z "$as_dir" && as_dir=.
13902 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013903 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 +000013904 ac_cv_prog_ac_ct_RANLIB="ranlib"
13905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13906 break 2
13907 fi
13908done
13909done
Reid Spencera773bd52006-08-04 18:18:08 +000013910IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013911
John Criswell7a73b802003-06-30 21:59:07 +000013912fi
13913fi
13914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13915if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013916 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13917echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013918else
Reid Spencera773bd52006-08-04 18:18:08 +000013919 { echo "$as_me:$LINENO: result: no" >&5
13920echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013921fi
13922
Reid Spencera773bd52006-08-04 18:18:08 +000013923 if test "x$ac_ct_RANLIB" = x; then
13924 RANLIB=":"
13925 else
13926 case $cross_compiling:$ac_tool_warned in
13927yes:)
13928{ echo "$as_me:$LINENO: 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." >&5
13931echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13932whose name does not start with the host triplet. If you think this
13933configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13934ac_tool_warned=yes ;;
13935esac
13936 RANLIB=$ac_ct_RANLIB
13937 fi
John Criswell7a73b802003-06-30 21:59:07 +000013938else
13939 RANLIB="$ac_cv_prog_RANLIB"
13940fi
13941
13942if test -n "$ac_tool_prefix"; then
13943 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13944set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013945{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013947if test "${ac_cv_prog_STRIP+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950 if test -n "$STRIP"; then
13951 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13952else
13953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13954for as_dir in $PATH
13955do
13956 IFS=$as_save_IFS
13957 test -z "$as_dir" && as_dir=.
13958 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013959 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 +000013960 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13962 break 2
13963 fi
13964done
13965done
Reid Spencera773bd52006-08-04 18:18:08 +000013966IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013967
13968fi
13969fi
13970STRIP=$ac_cv_prog_STRIP
13971if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013972 { echo "$as_me:$LINENO: result: $STRIP" >&5
13973echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013974else
Reid Spencera773bd52006-08-04 18:18:08 +000013975 { echo "$as_me:$LINENO: result: no" >&5
13976echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013977fi
13978
Reid Spencera773bd52006-08-04 18:18:08 +000013979
John Criswell7a73b802003-06-30 21:59:07 +000013980fi
13981if test -z "$ac_cv_prog_STRIP"; then
13982 ac_ct_STRIP=$STRIP
13983 # Extract the first word of "strip", so it can be a program name with args.
13984set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013987if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13988 echo $ECHO_N "(cached) $ECHO_C" >&6
13989else
13990 if test -n "$ac_ct_STRIP"; then
13991 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13992else
13993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13994for as_dir in $PATH
13995do
13996 IFS=$as_save_IFS
13997 test -z "$as_dir" && as_dir=.
13998 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000013999 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 +000014000 ac_cv_prog_ac_ct_STRIP="strip"
14001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14002 break 2
14003 fi
14004done
14005done
Reid Spencera773bd52006-08-04 18:18:08 +000014006IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014007
John Criswell7a73b802003-06-30 21:59:07 +000014008fi
14009fi
14010ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14011if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014012 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14013echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014014else
Reid Spencera773bd52006-08-04 18:18:08 +000014015 { echo "$as_me:$LINENO: result: no" >&5
14016echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
14018
Reid Spencera773bd52006-08-04 18:18:08 +000014019 if test "x$ac_ct_STRIP" = x; then
14020 STRIP=":"
14021 else
14022 case $cross_compiling:$ac_tool_warned in
14023yes:)
14024{ echo "$as_me:$LINENO: 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." >&5
14027echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14028whose name does not start with the host triplet. If you think this
14029configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14030ac_tool_warned=yes ;;
14031esac
14032 STRIP=$ac_ct_STRIP
14033 fi
John Criswell7a73b802003-06-30 21:59:07 +000014034else
14035 STRIP="$ac_cv_prog_STRIP"
14036fi
14037
14038
John Criswell7a73b802003-06-30 21:59:07 +000014039old_CC="$CC"
14040old_CFLAGS="$CFLAGS"
14041
14042# Set sane defaults for various variables
14043test -z "$AR" && AR=ar
14044test -z "$AR_FLAGS" && AR_FLAGS=cru
14045test -z "$AS" && AS=as
14046test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014047test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014048test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014049test -z "$DLLTOOL" && DLLTOOL=dlltool
14050test -z "$LD" && LD=ld
14051test -z "$LN_S" && LN_S="ln -s"
14052test -z "$MAGIC_CMD" && MAGIC_CMD=file
14053test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014054test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014055test -z "$OBJDUMP" && OBJDUMP=objdump
14056test -z "$RANLIB" && RANLIB=:
14057test -z "$STRIP" && STRIP=:
14058test -z "$ac_objext" && ac_objext=o
14059
John Criswell7a73b802003-06-30 21:59:07 +000014060# Determine commands to create old-style static archives.
14061old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14062old_postinstall_cmds='chmod 644 $oldlib'
14063old_postuninstall_cmds=
14064
14065if test -n "$RANLIB"; then
14066 case $host_os in
14067 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014069 ;;
14070 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014072 ;;
14073 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014075fi
14076
Reid Spencera773bd52006-08-04 18:18:08 +000014077for cc_temp in $compiler""; do
14078 case $cc_temp in
14079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081 \-*) ;;
14082 *) break;;
14083 esac
14084done
14085cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14086
Reid Spencer2706f8c2004-09-19 23:53:36 +000014087
John Criswell47fdd832003-07-14 16:52:07 +000014088# Only perform the check for file, if the check method requires it
14089case $deplibs_check_method in
14090file_magic*)
14091 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014092 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14093echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014094if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014096else
John Criswell47fdd832003-07-14 16:52:07 +000014097 case $MAGIC_CMD in
14098[\\/*] | ?:[\\/]*)
14099 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14100 ;;
14101*)
14102 lt_save_MAGIC_CMD="$MAGIC_CMD"
14103 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14104 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14105 for ac_dir in $ac_dummy; do
14106 IFS="$lt_save_ifs"
14107 test -z "$ac_dir" && ac_dir=.
14108 if test -f $ac_dir/${ac_tool_prefix}file; then
14109 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14110 if test -n "$file_magic_test_file"; then
14111 case $deplibs_check_method in
14112 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014113 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014114 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14115 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14116 $EGREP "$file_magic_regex" > /dev/null; then
14117 :
14118 else
14119 cat <<EOF 1>&2
14120
14121*** Warning: the command libtool uses to detect shared libraries,
14122*** $file_magic_cmd, produces output that libtool cannot recognize.
14123*** The result is that libtool may fail to recognize shared libraries
14124*** as such. This will affect the creation of libtool libraries that
14125*** depend on shared libraries, but programs linked with such libtool
14126*** libraries will work regardless of this problem. Nevertheless, you
14127*** may want to report the problem to your system manager and/or to
14128*** bug-libtool@gnu.org
14129
14130EOF
14131 fi ;;
14132 esac
14133 fi
14134 break
14135 fi
14136 done
14137 IFS="$lt_save_ifs"
14138 MAGIC_CMD="$lt_save_MAGIC_CMD"
14139 ;;
14140esac
John Criswell7a73b802003-06-30 21:59:07 +000014141fi
John Criswell7a73b802003-06-30 21:59:07 +000014142
John Criswell47fdd832003-07-14 16:52:07 +000014143MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14144if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014145 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14146echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014147else
Reid Spencera773bd52006-08-04 18:18:08 +000014148 { echo "$as_me:$LINENO: result: no" >&5
14149echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014150fi
John Criswell7a73b802003-06-30 21:59:07 +000014151
John Criswell47fdd832003-07-14 16:52:07 +000014152if test -z "$lt_cv_path_MAGIC_CMD"; then
14153 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014154 { echo "$as_me:$LINENO: checking for file" >&5
14155echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014156if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158else
14159 case $MAGIC_CMD in
14160[\\/*] | ?:[\\/]*)
14161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14162 ;;
14163*)
14164 lt_save_MAGIC_CMD="$MAGIC_CMD"
14165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14167 for ac_dir in $ac_dummy; do
14168 IFS="$lt_save_ifs"
14169 test -z "$ac_dir" && ac_dir=.
14170 if test -f $ac_dir/file; then
14171 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14172 if test -n "$file_magic_test_file"; then
14173 case $deplibs_check_method in
14174 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14178 $EGREP "$file_magic_regex" > /dev/null; then
14179 :
14180 else
14181 cat <<EOF 1>&2
14182
14183*** Warning: the command libtool uses to detect shared libraries,
14184*** $file_magic_cmd, produces output that libtool cannot recognize.
14185*** The result is that libtool may fail to recognize shared libraries
14186*** as such. This will affect the creation of libtool libraries that
14187*** depend on shared libraries, but programs linked with such libtool
14188*** libraries will work regardless of this problem. Nevertheless, you
14189*** may want to report the problem to your system manager and/or to
14190*** bug-libtool@gnu.org
14191
14192EOF
14193 fi ;;
14194 esac
14195 fi
14196 break
14197 fi
14198 done
14199 IFS="$lt_save_ifs"
14200 MAGIC_CMD="$lt_save_MAGIC_CMD"
14201 ;;
14202esac
14203fi
14204
14205MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14206if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014207 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14208echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014209else
Reid Spencera773bd52006-08-04 18:18:08 +000014210 { echo "$as_me:$LINENO: result: no" >&5
14211echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014212fi
14213
14214 else
14215 MAGIC_CMD=:
14216 fi
14217fi
14218
14219 fi
14220 ;;
14221esac
14222
Reid Spencer17795972004-11-18 09:47:37 +000014223enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014224enable_win32_dll=no
14225
Reid Spencera773bd52006-08-04 18:18:08 +000014226# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014227if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014228 enableval=$enable_libtool_lock;
14229fi
John Criswell47fdd832003-07-14 16:52:07 +000014230
John Criswell47fdd832003-07-14 16:52:07 +000014231test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14232
John Criswell7a73b802003-06-30 21:59:07 +000014233
Reid Spencera773bd52006-08-04 18:18:08 +000014234# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014235if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014236 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014237else
14238 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014239fi
14240
John Criswell7a73b802003-06-30 21:59:07 +000014241test -z "$pic_mode" && pic_mode=default
14242
John Criswell47fdd832003-07-14 16:52:07 +000014243# Use C for the default configuration in the libtool script
14244tagname=
14245lt_save_CC="$CC"
14246ac_ext=c
14247ac_cpp='$CPP $CPPFLAGS'
14248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14250ac_compiler_gnu=$ac_cv_c_compiler_gnu
14251
14252
14253# Source file extension for C test sources.
14254ac_ext=c
14255
14256# Object file extension for compiled C test sources.
14257objext=o
14258objext=$objext
14259
14260# Code to be used in simple compile tests
14261lt_simple_compile_test_code="int some_variable = 0;\n"
14262
14263# Code to be used in simple link tests
14264lt_simple_link_test_code='int main(){return(0);}\n'
14265
14266
14267# If no C compiler was specified, use CC.
14268LTCC=${LTCC-"$CC"}
14269
Reid Spencera773bd52006-08-04 18:18:08 +000014270# If no C compiler flags were specified, use CFLAGS.
14271LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14272
John Criswell47fdd832003-07-14 16:52:07 +000014273# Allow CC to be a program name with arguments.
14274compiler=$CC
14275
14276
Reid Spencera773bd52006-08-04 18:18:08 +000014277# save warnings/boilerplate of simple test code
14278ac_outfile=conftest.$ac_objext
14279printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14280eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14281_lt_compiler_boilerplate=`cat conftest.err`
14282$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014283
Reid Spencera773bd52006-08-04 18:18:08 +000014284ac_outfile=conftest.$ac_objext
14285printf "$lt_simple_link_test_code" >conftest.$ac_ext
14286eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14287_lt_linker_boilerplate=`cat conftest.err`
14288$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014289
14290
John Criswell47fdd832003-07-14 16:52:07 +000014291
14292lt_prog_compiler_no_builtin_flag=
14293
14294if test "$GCC" = yes; then
14295 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14296
Reid Spencer2706f8c2004-09-19 23:53:36 +000014297
Reid Spencera773bd52006-08-04 18:18:08 +000014298{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14299echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014300if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14302else
14303 lt_cv_prog_compiler_rtti_exceptions=no
14304 ac_outfile=conftest.$ac_objext
14305 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="-fno-rtti -fno-exceptions"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014316 (eval echo "\"\$as_me:14316: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014317 (eval "$lt_compile" 2>conftest.err)
14318 ac_status=$?
14319 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014320 echo "$as_me:14320: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014323 # So say no if there are warnings other than the usual output.
14324 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014327 lt_cv_prog_compiler_rtti_exceptions=yes
14328 fi
14329 fi
14330 $rm conftest*
14331
14332fi
Reid Spencera773bd52006-08-04 18:18:08 +000014333{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14334echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014335
14336if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14337 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14338else
14339 :
14340fi
14341
14342fi
14343
14344lt_prog_compiler_wl=
14345lt_prog_compiler_pic=
14346lt_prog_compiler_static=
14347
Reid Spencera773bd52006-08-04 18:18:08 +000014348{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14349echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014350
14351 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014352 lt_prog_compiler_wl='-Wl,'
14353 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014354
14355 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014356 aix*)
14357 # All AIX code is PIC.
14358 if test "$host_cpu" = ia64; then
14359 # AIX 5 now supports IA64 processor
14360 lt_prog_compiler_static='-Bstatic'
14361 fi
John Criswell7a73b802003-06-30 21:59:07 +000014362 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014363
John Criswell7a73b802003-06-30 21:59:07 +000014364 amigaos*)
14365 # FIXME: we need at least 68020 code to build shared libraries, but
14366 # adding the `-m68020' flag to GCC prevents building anything better,
14367 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014368 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014369 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014370
14371 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014372 # PIC is the default for these OSes.
14373 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014374
14375 mingw* | pw32* | os2*)
14376 # This hack is so that the source file can tell whether it is being
14377 # built for inclusion in a dll (and should export symbols for example).
14378 lt_prog_compiler_pic='-DDLL_EXPORT'
14379 ;;
14380
John Criswell7a73b802003-06-30 21:59:07 +000014381 darwin* | rhapsody*)
14382 # PIC is the default on this platform
14383 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014384 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014385 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014386
Reid Spencera773bd52006-08-04 18:18:08 +000014387 interix3*)
14388 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14389 # Instead, we relocate shared libraries at runtime.
14390 ;;
14391
John Criswell47fdd832003-07-14 16:52:07 +000014392 msdosdjgpp*)
14393 # Just because we use GCC doesn't mean we suddenly get shared libraries
14394 # on systems that don't support them.
14395 lt_prog_compiler_can_build_shared=no
14396 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014397 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014398
John Criswell7a73b802003-06-30 21:59:07 +000014399 sysv4*MP*)
14400 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014402 fi
14403 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014404
14405 hpux*)
14406 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14407 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014408 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014409 hppa*64*|ia64*)
14410 # +Z the default
14411 ;;
14412 *)
14413 lt_prog_compiler_pic='-fPIC'
14414 ;;
14415 esac
14416 ;;
14417
John Criswell7a73b802003-06-30 21:59:07 +000014418 *)
John Criswell47fdd832003-07-14 16:52:07 +000014419 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014420 ;;
14421 esac
14422 else
John Criswell47fdd832003-07-14 16:52:07 +000014423 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014424 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014425 aix*)
14426 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014427 if test "$host_cpu" = ia64; then
14428 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014429 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014430 else
John Criswell47fdd832003-07-14 16:52:07 +000014431 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014432 fi
14433 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014434 darwin*)
14435 # PIC is the default on this platform
14436 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014437 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014438 xlc*)
14439 lt_prog_compiler_pic='-qnocommon'
14440 lt_prog_compiler_wl='-Wl,'
14441 ;;
14442 esac
14443 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014444
John Criswell47fdd832003-07-14 16:52:07 +000014445 mingw* | pw32* | os2*)
14446 # This hack is so that the source file can tell whether it is being
14447 # built for inclusion in a dll (and should export symbols for example).
14448 lt_prog_compiler_pic='-DDLL_EXPORT'
14449 ;;
14450
John Criswell7a73b802003-06-30 21:59:07 +000014451 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014452 lt_prog_compiler_wl='-Wl,'
14453 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14454 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014455 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014456 hppa*64*|ia64*)
14457 # +Z the default
14458 ;;
14459 *)
14460 lt_prog_compiler_pic='+Z'
14461 ;;
14462 esac
14463 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14464 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014465 ;;
14466
John Criswell47fdd832003-07-14 16:52:07 +000014467 irix5* | irix6* | nonstopux*)
14468 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014469 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014470 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014471 ;;
14472
14473 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014474 lt_prog_compiler_pic='-KPIC'
14475 lt_prog_compiler_static='-Bstatic'
14476 ;;
14477
14478 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014479 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014480 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014481 lt_prog_compiler_wl='-Wl,'
14482 lt_prog_compiler_pic='-KPIC'
14483 lt_prog_compiler_static='-static'
14484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014485 pgcc* | pgf77* | pgf90* | pgf95*)
14486 # Portland Group compilers (*not* the Pentium gcc compiler,
14487 # which looks to be a dead project)
14488 lt_prog_compiler_wl='-Wl,'
14489 lt_prog_compiler_pic='-fpic'
14490 lt_prog_compiler_static='-Bstatic'
14491 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014492 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014493 lt_prog_compiler_wl='-Wl,'
14494 # All Alpha code is PIC.
14495 lt_prog_compiler_static='-non_shared'
14496 ;;
14497 esac
John Criswell7a73b802003-06-30 21:59:07 +000014498 ;;
14499
14500 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014501 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014502 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014503 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014504 ;;
14505
John Criswell7a73b802003-06-30 21:59:07 +000014506 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014507 lt_prog_compiler_pic='-KPIC'
14508 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014509 case $cc_basename in
14510 f77* | f90* | f95*)
14511 lt_prog_compiler_wl='-Qoption ld ';;
14512 *)
14513 lt_prog_compiler_wl='-Wl,';;
14514 esac
John Criswell7a73b802003-06-30 21:59:07 +000014515 ;;
14516
14517 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014518 lt_prog_compiler_wl='-Qoption ld '
14519 lt_prog_compiler_pic='-PIC'
14520 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014521 ;;
14522
Reid Spencera773bd52006-08-04 18:18:08 +000014523 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014524 lt_prog_compiler_wl='-Wl,'
14525 lt_prog_compiler_pic='-KPIC'
14526 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014527 ;;
14528
14529 sysv4*MP*)
14530 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014531 lt_prog_compiler_pic='-Kconform_pic'
14532 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014533 fi
14534 ;;
14535
Reid Spencera773bd52006-08-04 18:18:08 +000014536 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14537 lt_prog_compiler_wl='-Wl,'
14538 lt_prog_compiler_pic='-KPIC'
14539 lt_prog_compiler_static='-Bstatic'
14540 ;;
14541
14542 unicos*)
14543 lt_prog_compiler_wl='-Wl,'
14544 lt_prog_compiler_can_build_shared=no
14545 ;;
14546
John Criswell47fdd832003-07-14 16:52:07 +000014547 uts4*)
14548 lt_prog_compiler_pic='-pic'
14549 lt_prog_compiler_static='-Bstatic'
14550 ;;
14551
John Criswell7a73b802003-06-30 21:59:07 +000014552 *)
John Criswell47fdd832003-07-14 16:52:07 +000014553 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014554 ;;
14555 esac
14556 fi
14557
Reid Spencera773bd52006-08-04 18:18:08 +000014558{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14559echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014560
John Criswell47fdd832003-07-14 16:52:07 +000014561#
14562# Check to make sure the PIC flag actually works.
14563#
14564if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014565
Reid Spencera773bd52006-08-04 18:18:08 +000014566{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14567echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014568if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570else
John Criswell47fdd832003-07-14 16:52:07 +000014571 lt_prog_compiler_pic_works=no
14572 ac_outfile=conftest.$ac_objext
14573 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14574 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14575 # Insert the option either (1) after the last *FLAGS variable, or
14576 # (2) before a word containing "conftest.", or (3) at the end.
14577 # Note that $ac_compile itself does not contain backslashes and begins
14578 # with a dollar sign (not a hyphen), so the echo should work correctly.
14579 # The option is referenced via a variable to avoid confusing sed.
14580 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14583 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014584 (eval echo "\"\$as_me:14584: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014585 (eval "$lt_compile" 2>conftest.err)
14586 ac_status=$?
14587 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014588 echo "$as_me:14588: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014589 if (exit $ac_status) && test -s "$ac_outfile"; then
14590 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014591 # So say no if there are warnings other than the usual output.
14592 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014595 lt_prog_compiler_pic_works=yes
14596 fi
14597 fi
14598 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014599
John Criswell47fdd832003-07-14 16:52:07 +000014600fi
Reid Spencera773bd52006-08-04 18:18:08 +000014601{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14602echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014603
John Criswell47fdd832003-07-14 16:52:07 +000014604if test x"$lt_prog_compiler_pic_works" = xyes; then
14605 case $lt_prog_compiler_pic in
14606 "" | " "*) ;;
14607 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14608 esac
John Criswell7a73b802003-06-30 21:59:07 +000014609else
John Criswell47fdd832003-07-14 16:52:07 +000014610 lt_prog_compiler_pic=
14611 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014612fi
14613
John Criswell7a73b802003-06-30 21:59:07 +000014614fi
Reid Spencera773bd52006-08-04 18:18:08 +000014615case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014616 # For platforms which do not support PIC, -DPIC is meaningless:
14617 *djgpp*)
14618 lt_prog_compiler_pic=
14619 ;;
14620 *)
14621 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14622 ;;
14623esac
John Criswell7a73b802003-06-30 21:59:07 +000014624
Reid Spencera773bd52006-08-04 18:18:08 +000014625#
14626# Check to make sure the static flag actually works.
14627#
14628wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14629{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14630echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14631if test "${lt_prog_compiler_static_works+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14633else
14634 lt_prog_compiler_static_works=no
14635 save_LDFLAGS="$LDFLAGS"
14636 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14637 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14638 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14639 # The linker can only warn and ignore the option if not recognized
14640 # So say no if there are warnings
14641 if test -s conftest.err; then
14642 # Append any errors to the config.log.
14643 cat conftest.err 1>&5
14644 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14646 if diff conftest.exp conftest.er2 >/dev/null; then
14647 lt_prog_compiler_static_works=yes
14648 fi
14649 else
14650 lt_prog_compiler_static_works=yes
14651 fi
14652 fi
14653 $rm conftest*
14654 LDFLAGS="$save_LDFLAGS"
14655
14656fi
14657{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14658echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14659
14660if test x"$lt_prog_compiler_static_works" = xyes; then
14661 :
14662else
14663 lt_prog_compiler_static=
14664fi
14665
14666
14667{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14668echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014669if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014670 echo $ECHO_N "(cached) $ECHO_C" >&6
14671else
John Criswell47fdd832003-07-14 16:52:07 +000014672 lt_cv_prog_compiler_c_o=no
14673 $rm -r conftest 2>/dev/null
14674 mkdir conftest
14675 cd conftest
14676 mkdir out
14677 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679 lt_compiler_flag="-o out/conftest2.$ac_objext"
14680 # Insert the option either (1) after the last *FLAGS variable, or
14681 # (2) before a word containing "conftest.", or (3) at the end.
14682 # Note that $ac_compile itself does not contain backslashes and begins
14683 # with a dollar sign (not a hyphen), so the echo should work correctly.
14684 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14687 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014688 (eval echo "\"\$as_me:14688: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014689 (eval "$lt_compile" 2>out/conftest.err)
14690 ac_status=$?
14691 cat out/conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000014692 echo "$as_me:14692: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014693 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14694 then
14695 # The compiler can only warn and ignore the option if not recognized
14696 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014697 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14698 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14699 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014700 lt_cv_prog_compiler_c_o=yes
14701 fi
14702 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014703 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014704 $rm conftest*
14705 # SGI C++ compiler will create directory out/ii_files/ for
14706 # template instantiation
14707 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14708 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014709 cd ..
14710 rmdir conftest
14711 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014712
14713fi
Reid Spencera773bd52006-08-04 18:18:08 +000014714{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14715echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014716
John Criswell7a73b802003-06-30 21:59:07 +000014717
John Criswell7a73b802003-06-30 21:59:07 +000014718hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014719if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014720 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014721 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14722echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014723 hard_links=yes
14724 $rm conftest*
14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 touch conftest.a
14727 ln conftest.a conftest.b 2>&5 || hard_links=no
14728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014729 { echo "$as_me:$LINENO: result: $hard_links" >&5
14730echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014731 if test "$hard_links" = no; then
14732 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14733echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14734 need_locks=warn
14735 fi
14736else
14737 need_locks=no
14738fi
John Criswell7a73b802003-06-30 21:59:07 +000014739
Reid Spencera773bd52006-08-04 18:18:08 +000014740{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14741echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014742
14743 runpath_var=
14744 allow_undefined_flag=
14745 enable_shared_with_static_runtimes=no
14746 archive_cmds=
14747 archive_expsym_cmds=
14748 old_archive_From_new_cmds=
14749 old_archive_from_expsyms_cmds=
14750 export_dynamic_flag_spec=
14751 whole_archive_flag_spec=
14752 thread_safe_flag_spec=
14753 hardcode_libdir_flag_spec=
14754 hardcode_libdir_flag_spec_ld=
14755 hardcode_libdir_separator=
14756 hardcode_direct=no
14757 hardcode_minus_L=no
14758 hardcode_shlibpath_var=unsupported
14759 link_all_deplibs=unknown
14760 hardcode_automatic=no
14761 module_cmds=
14762 module_expsym_cmds=
14763 always_export_symbols=no
14764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14765 # include_expsyms should be a list of space-separated symbols to be *always*
14766 # included in the symbol list
14767 include_expsyms=
14768 # exclude_expsyms can be an extended regexp of symbols to exclude
14769 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14770 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14771 # as well as any symbol that contains `d'.
14772 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14773 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14774 # platforms (ab)use it in PIC code, but their linkers get confused if
14775 # the symbol is explicitly referenced. Since portable code cannot
14776 # rely on this symbol name, it's probably fine to never include it in
14777 # preloaded symbol tables.
14778 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014779 # Just being paranoid about ensuring that cc_basename is set.
14780 for cc_temp in $compiler""; do
14781 case $cc_temp in
14782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14784 \-*) ;;
14785 *) break;;
14786 esac
14787done
14788cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014789
14790 case $host_os in
14791 cygwin* | mingw* | pw32*)
14792 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14793 # When not using gcc, we currently assume that we are using
14794 # Microsoft Visual C++.
14795 if test "$GCC" != yes; then
14796 with_gnu_ld=no
14797 fi
14798 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014799 interix*)
14800 # we just hope/assume this is gcc and not c89 (= MSVC++)
14801 with_gnu_ld=yes
14802 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014803 openbsd*)
14804 with_gnu_ld=no
14805 ;;
14806 esac
14807
14808 ld_shlibs=yes
14809 if test "$with_gnu_ld" = yes; then
14810 # If archive_cmds runs LD, not CC, wlarc should be empty
14811 wlarc='${wl}'
14812
Reid Spencera773bd52006-08-04 18:18:08 +000014813 # Set some defaults for GNU ld with shared library support. These
14814 # are reset later if shared libraries are not supported. Putting them
14815 # here allows them to be overridden if necessary.
14816 runpath_var=LD_RUN_PATH
14817 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14818 export_dynamic_flag_spec='${wl}--export-dynamic'
14819 # ancient GNU ld didn't support --whole-archive et. al.
14820 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14822 else
14823 whole_archive_flag_spec=
14824 fi
14825 supports_anon_versioning=no
14826 case `$LD -v 2>/dev/null` in
14827 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14828 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14829 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14830 *\ 2.11.*) ;; # other 2.11 versions
14831 *) supports_anon_versioning=yes ;;
14832 esac
14833
John Criswell47fdd832003-07-14 16:52:07 +000014834 # See if GNU ld supports shared libraries.
14835 case $host_os in
14836 aix3* | aix4* | aix5*)
14837 # On AIX/PPC, the GNU linker is very broken
14838 if test "$host_cpu" != ia64; then
14839 ld_shlibs=no
14840 cat <<EOF 1>&2
14841
14842*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14843*** to be unable to reliably create shared libraries on AIX.
14844*** Therefore, libtool is disabling shared libraries support. If you
14845*** really care for shared libraries, you may want to modify your PATH
14846*** so that a non-GNU linker is found, and then restart.
14847
14848EOF
14849 fi
14850 ;;
14851
14852 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014853 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 +000014854 hardcode_libdir_flag_spec='-L$libdir'
14855 hardcode_minus_L=yes
14856
14857 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14858 # that the semantics of dynamic libraries on AmigaOS, at least up
14859 # to version 4, is to share data among multiple programs linked
14860 # with the same dynamic library. Since this doesn't match the
14861 # behavior of shared libraries on other platforms, we can't use
14862 # them.
14863 ld_shlibs=no
14864 ;;
14865
14866 beos*)
14867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14868 allow_undefined_flag=unsupported
14869 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14870 # support --undefined. This deserves some investigation. FIXME
14871 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 else
14873 ld_shlibs=no
14874 fi
14875 ;;
14876
14877 cygwin* | mingw* | pw32*)
14878 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14879 # as there is no search path for DLLs.
14880 hardcode_libdir_flag_spec='-L$libdir'
14881 allow_undefined_flag=unsupported
14882 always_export_symbols=no
14883 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014884 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 +000014885
14886 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014887 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 +000014888 # If the export-symbols file already is a .def file (1st line
14889 # is EXPORTS), use it as is; otherwise, prepend...
14890 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14891 cp $export_symbols $output_objdir/$soname.def;
14892 else
14893 echo EXPORTS > $output_objdir/$soname.def;
14894 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014895 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014896 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14897 else
14898 ld_shlibs=no
14899 fi
14900 ;;
14901
14902 interix3*)
14903 hardcode_direct=no
14904 hardcode_shlibpath_var=no
14905 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14906 export_dynamic_flag_spec='${wl}-E'
14907 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14908 # Instead, shared libraries are loaded at an image base (0x10000000 by
14909 # default) and relocated if they conflict, which is a slow very memory
14910 # consuming and fragmenting process. To avoid this, we pick a random,
14911 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14912 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14913 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14914 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'
14915 ;;
14916
14917 linux*)
14918 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14919 tmp_addflag=
14920 case $cc_basename,$host_cpu in
14921 pgcc*) # Portland Group C compiler
14922 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'
14923 tmp_addflag=' $pic_flag'
14924 ;;
14925 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14926 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'
14927 tmp_addflag=' $pic_flag -Mnomain' ;;
14928 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14929 tmp_addflag=' -i_dynamic' ;;
14930 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14931 tmp_addflag=' -i_dynamic -nofor_main' ;;
14932 ifc* | ifort*) # Intel Fortran compiler
14933 tmp_addflag=' -nofor_main' ;;
14934 esac
14935 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14936
14937 if test $supports_anon_versioning = yes; then
14938 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14940 $echo "local: *; };" >> $output_objdir/$libname.ver~
14941 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14942 fi
John Criswell47fdd832003-07-14 16:52:07 +000014943 else
14944 ld_shlibs=no
14945 fi
14946 ;;
14947
14948 netbsd*)
14949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14950 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14951 wlarc=
14952 else
14953 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14954 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14955 fi
14956 ;;
14957
Reid Spencera773bd52006-08-04 18:18:08 +000014958 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014959 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14960 ld_shlibs=no
14961 cat <<EOF 1>&2
14962
14963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14964*** create shared libraries on Solaris systems. Therefore, libtool
14965*** is disabling shared libraries support. We urge you to upgrade GNU
14966*** binutils to release 2.9.1 or newer. Another option is to modify
14967*** your PATH or compiler configuration so that the native linker is
14968*** used, and then restart.
14969
14970EOF
14971 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14974 else
14975 ld_shlibs=no
14976 fi
14977 ;;
14978
Reid Spencera773bd52006-08-04 18:18:08 +000014979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14980 case `$LD -v 2>&1` in
14981 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14982 ld_shlibs=no
14983 cat <<_LT_EOF 1>&2
14984
14985*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14986*** reliably create shared libraries on SCO systems. Therefore, libtool
14987*** is disabling shared libraries support. We urge you to upgrade GNU
14988*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14989*** your PATH or compiler configuration so that the native linker is
14990*** used, and then restart.
14991
14992_LT_EOF
14993 ;;
14994 *)
14995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14996 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14997 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14998 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14999 else
15000 ld_shlibs=no
15001 fi
15002 ;;
15003 esac
15004 ;;
15005
John Criswell47fdd832003-07-14 16:52:07 +000015006 sunos4*)
15007 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15008 wlarc=
15009 hardcode_direct=yes
15010 hardcode_shlibpath_var=no
15011 ;;
15012
15013 *)
15014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15015 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15017 else
15018 ld_shlibs=no
15019 fi
15020 ;;
15021 esac
15022
Reid Spencera773bd52006-08-04 18:18:08 +000015023 if test "$ld_shlibs" = no; then
15024 runpath_var=
15025 hardcode_libdir_flag_spec=
15026 export_dynamic_flag_spec=
15027 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015028 fi
15029 else
15030 # PORTME fill in a description of your system's linker (not GNU ld)
15031 case $host_os in
15032 aix3*)
15033 allow_undefined_flag=unsupported
15034 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015035 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 +000015036 # Note: this linker hardcodes the directories in LIBPATH if there
15037 # are no directories specified by -L.
15038 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015039 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015040 # Neither direct hardcoding nor static linking is supported with a
15041 # broken collect2.
15042 hardcode_direct=unsupported
15043 fi
15044 ;;
15045
15046 aix4* | aix5*)
15047 if test "$host_cpu" = ia64; then
15048 # On IA64, the linker does run time linking by default, so we don't
15049 # have to do anything special.
15050 aix_use_runtimelinking=no
15051 exp_sym_flag='-Bexport'
15052 no_entry_flag=""
15053 else
15054 # If we're using GNU nm, then we don't want the "-C" option.
15055 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15056 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15057 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'
15058 else
15059 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'
15060 fi
15061 aix_use_runtimelinking=no
15062
15063 # Test if we are trying to use run time linking or normal
15064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15065 # need to do runtime linking.
15066 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15067 for ld_flag in $LDFLAGS; do
15068 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15069 aix_use_runtimelinking=yes
15070 break
15071 fi
15072 done
Reid Spencera773bd52006-08-04 18:18:08 +000015073 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015074 esac
15075
15076 exp_sym_flag='-bexport'
15077 no_entry_flag='-bnoentry'
15078 fi
15079
15080 # When large executables or shared objects are built, AIX ld can
15081 # have problems creating the table of contents. If linking a library
15082 # or program results in "error TOC overflow" add -mminimal-toc to
15083 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15084 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15085
15086 archive_cmds=''
15087 hardcode_direct=yes
15088 hardcode_libdir_separator=':'
15089 link_all_deplibs=yes
15090
15091 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015092 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015093 # We only want to do this on AIX 4.2 and lower, the check
15094 # below for broken collect2 doesn't work under 4.3+
15095 collect2name=`${CC} -print-prog-name=collect2`
15096 if test -f "$collect2name" && \
15097 strings "$collect2name" | grep resolve_lib_name >/dev/null
15098 then
15099 # We have reworked collect2
15100 hardcode_direct=yes
15101 else
15102 # We have old collect2
15103 hardcode_direct=unsupported
15104 # It fails to find uninstalled libraries when the uninstalled
15105 # path is not listed in the libpath. Setting hardcode_minus_L
15106 # to unsupported forces relinking
15107 hardcode_minus_L=yes
15108 hardcode_libdir_flag_spec='-L$libdir'
15109 hardcode_libdir_separator=
15110 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015111 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015112 esac
15113 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015114 if test "$aix_use_runtimelinking" = yes; then
15115 shared_flag="$shared_flag "'${wl}-G'
15116 fi
John Criswell47fdd832003-07-14 16:52:07 +000015117 else
15118 # not using gcc
15119 if test "$host_cpu" = ia64; then
15120 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15121 # chokes on -Wl,-G. The following line is correct:
15122 shared_flag='-G'
15123 else
Reid Spencera773bd52006-08-04 18:18:08 +000015124 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015125 shared_flag='${wl}-G'
15126 else
15127 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015128 fi
John Criswell47fdd832003-07-14 16:52:07 +000015129 fi
15130 fi
15131
15132 # It seems that -bexpall does not export symbols beginning with
15133 # underscore (_), so it is better to generate a list of symbols to export.
15134 always_export_symbols=yes
15135 if test "$aix_use_runtimelinking" = yes; then
15136 # Warning - without using the other runtime loading flags (-brtl),
15137 # -berok will link without error, but may produce a broken library.
15138 allow_undefined_flag='-berok'
15139 # Determine the default libpath from the value encoded in an empty executable.
15140 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015141/* confdefs.h. */
15142_ACEOF
15143cat confdefs.h >>conftest.$ac_ext
15144cat >>conftest.$ac_ext <<_ACEOF
15145/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015146
John Criswell7a73b802003-06-30 21:59:07 +000015147int
15148main ()
15149{
John Criswell47fdd832003-07-14 16:52:07 +000015150
John Criswell7a73b802003-06-30 21:59:07 +000015151 ;
15152 return 0;
15153}
15154_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015155rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015156if { (ac_try="$ac_link"
15157case "(($ac_try" in
15158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159 *) ac_try_echo=$ac_try;;
15160esac
15161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015164 grep -v '^ *+' conftest.er1 >conftest.err
15165 rm -f conftest.er1
15166 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015168 (exit $ac_status); } &&
15169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15170 { (case "(($ac_try" in
15171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172 *) ac_try_echo=$ac_try;;
15173esac
15174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15175 (eval "$ac_try") 2>&5
15176 ac_status=$?
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest$ac_exeext'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15182 *) ac_try_echo=$ac_try;;
15183esac
15184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015189
John Criswell47fdd832003-07-14 16:52:07 +000015190aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15191}'`
15192# Check for a 64-bit object if we didn't find anything.
15193if 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; }
15194}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015195else
15196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015197sed 's/^/| /' conftest.$ac_ext >&5
15198
Reid Spencera773bd52006-08-04 18:18:08 +000015199
John Criswell7a73b802003-06-30 21:59:07 +000015200fi
Reid Spencera773bd52006-08-04 18:18:08 +000015201
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015202rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015203 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015204if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015205
John Criswell47fdd832003-07-14 16:52:07 +000015206 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015207 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 +000015208 else
15209 if test "$host_cpu" = ia64; then
15210 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15211 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015212 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 +000015213 else
15214 # Determine the default libpath from the value encoded in an empty executable.
15215 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015221
John Criswell47fdd832003-07-14 16:52:07 +000015222int
15223main ()
15224{
John Criswell7a73b802003-06-30 21:59:07 +000015225
John Criswell47fdd832003-07-14 16:52:07 +000015226 ;
15227 return 0;
15228}
15229_ACEOF
15230rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015231if { (ac_try="$ac_link"
15232case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15235esac
15236eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015238 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015239 grep -v '^ *+' conftest.er1 >conftest.err
15240 rm -f conftest.er1
15241 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15248esac
15249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15251 ac_status=$?
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest$ac_exeext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258esac
15259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15261 ac_status=$?
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015264
John Criswell47fdd832003-07-14 16:52:07 +000015265aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15266}'`
15267# Check for a 64-bit object if we didn't find anything.
15268if 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; }
15269}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015270else
John Criswell47fdd832003-07-14 16:52:07 +000015271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015272sed 's/^/| /' conftest.$ac_ext >&5
15273
Reid Spencera773bd52006-08-04 18:18:08 +000015274
John Criswell47fdd832003-07-14 16:52:07 +000015275fi
Reid Spencera773bd52006-08-04 18:18:08 +000015276
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000015277rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015278 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015279if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015280
John Criswell47fdd832003-07-14 16:52:07 +000015281 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15282 # Warning - without using the other run time loading flags,
15283 # -berok will link without error, but may produce a broken library.
15284 no_undefined_flag=' ${wl}-bernotok'
15285 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015286 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015287 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015288 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015289 # This is similar to how AIX traditionally builds its shared libraries.
15290 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 +000015291 fi
15292 fi
John Criswell7a73b802003-06-30 21:59:07 +000015293 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015294
15295 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015296 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 +000015297 hardcode_libdir_flag_spec='-L$libdir'
15298 hardcode_minus_L=yes
15299 # see comment about different semantics on the GNU ld section
15300 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015301 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015302
Reid Spencer2706f8c2004-09-19 23:53:36 +000015303 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015304 export_dynamic_flag_spec=-rdynamic
15305 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015306
John Criswell47fdd832003-07-14 16:52:07 +000015307 cygwin* | mingw* | pw32*)
15308 # When not using gcc, we currently assume that we are using
15309 # Microsoft Visual C++.
15310 # hardcode_libdir_flag_spec is actually meaningless, as there is
15311 # no search path for DLLs.
15312 hardcode_libdir_flag_spec=' '
15313 allow_undefined_flag=unsupported
15314 # Tell ltmain to make .lib files, not .a files.
15315 libext=lib
15316 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015317 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015318 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015319 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015320 # The linker will automatically build a .lib file if we build a DLL.
15321 old_archive_From_new_cmds='true'
15322 # FIXME: Should let the user specify the lib program.
15323 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15324 fix_srcfile_path='`cygpath -w "$srcfile"`'
15325 enable_shared_with_static_runtimes=yes
15326 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015327
John Criswell47fdd832003-07-14 16:52:07 +000015328 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015329 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015330 rhapsody* | darwin1.[012])
15331 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15332 ;;
15333 *) # Darwin 1.3 on
15334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15335 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15336 else
15337 case ${MACOSX_DEPLOYMENT_TARGET} in
15338 10.[012])
15339 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15340 ;;
15341 10.*)
15342 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15343 ;;
15344 esac
15345 fi
15346 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015347 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015348 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015349 hardcode_direct=no
15350 hardcode_automatic=yes
15351 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015352 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015353 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015354 if test "$GCC" = yes ; then
15355 output_verbose_link_cmd='echo'
15356 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15357 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015358 # 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 +000015359 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}'
15360 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 +000015361 else
Reid Spencera773bd52006-08-04 18:18:08 +000015362 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015363 xlc*)
15364 output_verbose_link_cmd='echo'
15365 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15366 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015367 # 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 +000015368 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}'
15369 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 +000015370 ;;
15371 *)
15372 ld_shlibs=no
15373 ;;
15374 esac
John Criswell7a73b802003-06-30 21:59:07 +000015375 fi
John Criswell47fdd832003-07-14 16:52:07 +000015376 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015377
John Criswell47fdd832003-07-14 16:52:07 +000015378 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015380 hardcode_libdir_flag_spec='-L$libdir'
15381 hardcode_shlibpath_var=no
15382 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384 freebsd1*)
15385 ld_shlibs=no
15386 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015387
John Criswell47fdd832003-07-14 16:52:07 +000015388 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15389 # support. Future versions do this automatically, but an explicit c++rt0.o
15390 # does not break anything, and helps significantly (at the cost of a little
15391 # extra space).
15392 freebsd2.2*)
15393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15394 hardcode_libdir_flag_spec='-R$libdir'
15395 hardcode_direct=yes
15396 hardcode_shlibpath_var=no
15397 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015398
John Criswell47fdd832003-07-14 16:52:07 +000015399 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15400 freebsd2*)
15401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15402 hardcode_direct=yes
15403 hardcode_minus_L=yes
15404 hardcode_shlibpath_var=no
15405 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015406
John Criswell47fdd832003-07-14 16:52:07 +000015407 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015408 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015409 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15410 hardcode_libdir_flag_spec='-R$libdir'
15411 hardcode_direct=yes
15412 hardcode_shlibpath_var=no
15413 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015414
John Criswell47fdd832003-07-14 16:52:07 +000015415 hpux9*)
15416 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015417 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 +000015418 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015419 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 +000015420 fi
15421 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15422 hardcode_libdir_separator=:
15423 hardcode_direct=yes
15424
15425 # hardcode_minus_L: Not really in the search PATH,
15426 # but as the default location of the library.
15427 hardcode_minus_L=yes
15428 export_dynamic_flag_spec='${wl}-E'
15429 ;;
15430
Reid Spencera773bd52006-08-04 18:18:08 +000015431 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015432 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015433 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15434 else
15435 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15436 fi
15437 if test "$with_gnu_ld" = no; then
15438 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15439 hardcode_libdir_separator=:
15440
15441 hardcode_direct=yes
15442 export_dynamic_flag_spec='${wl}-E'
15443
15444 # hardcode_minus_L: Not really in the search PATH,
15445 # but as the default location of the library.
15446 hardcode_minus_L=yes
15447 fi
15448 ;;
15449
15450 hpux11*)
15451 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15452 case $host_cpu in
15453 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015454 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015456 ia64*)
15457 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15458 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015459 *)
15460 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15461 ;;
15462 esac
15463 else
Reid Spencera773bd52006-08-04 18:18:08 +000015464 case $host_cpu in
15465 hppa*64*)
15466 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15467 ;;
15468 ia64*)
15469 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015470 ;;
15471 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015472 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 +000015473 ;;
15474 esac
15475 fi
15476 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15478 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015479
Reid Spencera773bd52006-08-04 18:18:08 +000015480 case $host_cpu in
15481 hppa*64*|ia64*)
15482 hardcode_libdir_flag_spec_ld='+b $libdir'
15483 hardcode_direct=no
15484 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015485 ;;
15486 *)
John Criswell47fdd832003-07-14 16:52:07 +000015487 hardcode_direct=yes
15488 export_dynamic_flag_spec='${wl}-E'
15489
15490 # hardcode_minus_L: Not really in the search PATH,
15491 # but as the default location of the library.
15492 hardcode_minus_L=yes
15493 ;;
15494 esac
15495 fi
15496 ;;
15497
15498 irix5* | irix6* | nonstopux*)
15499 if test "$GCC" = yes; then
15500 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'
15501 else
15502 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'
15503 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15504 fi
15505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15506 hardcode_libdir_separator=:
15507 link_all_deplibs=yes
15508 ;;
15509
15510 netbsd*)
15511 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15513 else
15514 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15515 fi
15516 hardcode_libdir_flag_spec='-R$libdir'
15517 hardcode_direct=yes
15518 hardcode_shlibpath_var=no
15519 ;;
15520
15521 newsos6)
15522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15523 hardcode_direct=yes
15524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15525 hardcode_libdir_separator=:
15526 hardcode_shlibpath_var=no
15527 ;;
15528
15529 openbsd*)
15530 hardcode_direct=yes
15531 hardcode_shlibpath_var=no
15532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015534 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 +000015535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15536 export_dynamic_flag_spec='${wl}-E'
15537 else
15538 case $host_os in
15539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15541 hardcode_libdir_flag_spec='-R$libdir'
15542 ;;
15543 *)
15544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15546 ;;
15547 esac
15548 fi
15549 ;;
15550
15551 os2*)
15552 hardcode_libdir_flag_spec='-L$libdir'
15553 hardcode_minus_L=yes
15554 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015555 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 +000015556 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15557 ;;
15558
15559 osf3*)
15560 if test "$GCC" = yes; then
15561 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15562 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'
15563 else
15564 allow_undefined_flag=' -expect_unresolved \*'
15565 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'
15566 fi
15567 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15568 hardcode_libdir_separator=:
15569 ;;
15570
15571 osf4* | osf5*) # as osf3* with the addition of -msym flag
15572 if test "$GCC" = yes; then
15573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15574 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'
15575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15576 else
15577 allow_undefined_flag=' -expect_unresolved \*'
15578 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 +000015579 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 +000015580 $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 +000015581
John Criswell47fdd832003-07-14 16:52:07 +000015582 # Both c and cxx compiler support -rpath directly
15583 hardcode_libdir_flag_spec='-rpath $libdir'
15584 fi
15585 hardcode_libdir_separator=:
15586 ;;
15587
John Criswell47fdd832003-07-14 16:52:07 +000015588 solaris*)
15589 no_undefined_flag=' -z text'
15590 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015591 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015592 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015593 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15594 $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 +000015595 else
Reid Spencera773bd52006-08-04 18:18:08 +000015596 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015598 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15599 $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 +000015600 fi
15601 hardcode_libdir_flag_spec='-R$libdir'
15602 hardcode_shlibpath_var=no
15603 case $host_os in
15604 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015605 *)
15606 # The compiler driver will combine linker options so we
15607 # cannot just pass the convience library names through
15608 # without $wl, iff we do not link with $LD.
15609 # Luckily, gcc supports the same syntax we need for Sun Studio.
15610 # Supported since Solaris 2.6 (maybe 2.5.1?)
15611 case $wlarc in
15612 '')
15613 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15614 *)
15615 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' ;;
15616 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015617 esac
15618 link_all_deplibs=yes
15619 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015620
John Criswell47fdd832003-07-14 16:52:07 +000015621 sunos4*)
15622 if test "x$host_vendor" = xsequent; then
15623 # Use $CC to link under sequent, because it throws in some extra .o
15624 # files that make .init and .fini sections work.
15625 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15626 else
15627 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15628 fi
15629 hardcode_libdir_flag_spec='-L$libdir'
15630 hardcode_direct=yes
15631 hardcode_minus_L=yes
15632 hardcode_shlibpath_var=no
15633 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015634
John Criswell47fdd832003-07-14 16:52:07 +000015635 sysv4)
15636 case $host_vendor in
15637 sni)
15638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15639 hardcode_direct=yes # is this really true???
15640 ;;
15641 siemens)
15642 ## LD is ld it makes a PLAMLIB
15643 ## CC just makes a GrossModule.
15644 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15645 reload_cmds='$CC -r -o $output$reload_objs'
15646 hardcode_direct=no
15647 ;;
15648 motorola)
15649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15650 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15651 ;;
15652 esac
15653 runpath_var='LD_RUN_PATH'
15654 hardcode_shlibpath_var=no
15655 ;;
15656
15657 sysv4.3*)
15658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15659 hardcode_shlibpath_var=no
15660 export_dynamic_flag_spec='-Bexport'
15661 ;;
15662
15663 sysv4*MP*)
15664 if test -d /usr/nec; then
15665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15666 hardcode_shlibpath_var=no
15667 runpath_var=LD_RUN_PATH
15668 hardcode_runpath_var=yes
15669 ld_shlibs=yes
15670 fi
15671 ;;
15672
Reid Spencera773bd52006-08-04 18:18:08 +000015673 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15674 no_undefined_flag='${wl}-z,text'
15675 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015676 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015677 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015678
John Criswell47fdd832003-07-14 16:52:07 +000015679 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015680 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15681 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 +000015682 else
Reid Spencera773bd52006-08-04 18:18:08 +000015683 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15684 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 +000015685 fi
John Criswell47fdd832003-07-14 16:52:07 +000015686 ;;
15687
Reid Spencera773bd52006-08-04 18:18:08 +000015688 sysv5* | sco3.2v5* | sco5v6*)
15689 # Note: We can NOT use -z defs as we might desire, because we do not
15690 # link with -lc, and that would cause any symbols used from libc to
15691 # always be unresolved, which means just about no library would
15692 # ever link correctly. If we're not using GNU ld we use -z text
15693 # though, which does catch some bad symbols but isn't as heavy-handed
15694 # as -z defs.
15695 no_undefined_flag='${wl}-z,text'
15696 allow_undefined_flag='${wl}-z,nodefs'
15697 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015698 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015699 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15700 hardcode_libdir_separator=':'
15701 link_all_deplibs=yes
15702 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015703 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015704
15705 if test "$GCC" = yes; then
15706 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15707 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15708 else
15709 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15710 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15711 fi
John Criswell47fdd832003-07-14 16:52:07 +000015712 ;;
15713
15714 uts4*)
15715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15716 hardcode_libdir_flag_spec='-L$libdir'
15717 hardcode_shlibpath_var=no
15718 ;;
15719
15720 *)
15721 ld_shlibs=no
15722 ;;
15723 esac
15724 fi
15725
Reid Spencera773bd52006-08-04 18:18:08 +000015726{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15727echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015728test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015729
John Criswell47fdd832003-07-14 16:52:07 +000015730#
15731# Do we need to explicitly link libc?
15732#
15733case "x$archive_cmds_need_lc" in
15734x|xyes)
15735 # Assume -lc should be added
15736 archive_cmds_need_lc=yes
15737
15738 if test "$enable_shared" = yes && test "$GCC" = yes; then
15739 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015740 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015741 # FIXME: we may have to deal with multi-command sequences.
15742 ;;
15743 '$CC '*)
15744 # Test whether the compiler implicitly links with -lc since on some
15745 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15746 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015747 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15748echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015749 $rm conftest*
15750 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15751
15752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15753 (eval $ac_compile) 2>&5
15754 ac_status=$?
15755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756 (exit $ac_status); } 2>conftest.err; then
15757 soname=conftest
15758 lib=conftest
15759 libobjs=conftest.$ac_objext
15760 deplibs=
15761 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015762 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015763 compiler_flags=-v
15764 linker_flags=-v
15765 verstring=
15766 output_objdir=.
15767 libname=conftest
15768 lt_save_allow_undefined_flag=$allow_undefined_flag
15769 allow_undefined_flag=
15770 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15771 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }
15775 then
15776 archive_cmds_need_lc=no
15777 else
15778 archive_cmds_need_lc=yes
15779 fi
15780 allow_undefined_flag=$lt_save_allow_undefined_flag
15781 else
15782 cat conftest.err 1>&5
15783 fi
15784 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015785 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15786echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015787 ;;
15788 esac
15789 fi
15790 ;;
15791esac
15792
Reid Spencera773bd52006-08-04 18:18:08 +000015793{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15794echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015795library_names_spec=
15796libname_spec='lib$name'
15797soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015798shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015799postinstall_cmds=
15800postuninstall_cmds=
15801finish_cmds=
15802finish_eval=
15803shlibpath_var=
15804shlibpath_overrides_runpath=unknown
15805version_type=none
15806dynamic_linker="$host_os ld.so"
15807sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015808if test "$GCC" = yes; then
15809 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15810 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15811 # if the path contains ";" then we assume it to be the separator
15812 # otherwise default to the standard path separator (i.e. ":") - it is
15813 # assumed that no part of a normal pathname contains ";" but that should
15814 # okay in the real world where ";" in dirpaths is itself problematic.
15815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15816 else
15817 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15818 fi
15819else
15820 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15821fi
15822need_lib_prefix=unknown
15823hardcode_into_libs=no
15824
15825# when you set need_version to no, make sure it does not cause -set_version
15826# flags to be left without arguments
15827need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015828
15829case $host_os in
15830aix3*)
15831 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015833 shlibpath_var=LIBPATH
15834
John Criswell47fdd832003-07-14 16:52:07 +000015835 # AIX 3 has no versioning support, so we append a major version to the name.
15836 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015837 ;;
15838
15839aix4* | aix5*)
15840 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015841 need_lib_prefix=no
15842 need_version=no
15843 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015844 if test "$host_cpu" = ia64; then
15845 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015846 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015847 shlibpath_var=LD_LIBRARY_PATH
15848 else
15849 # With GCC up to 2.95.x, collect2 would create an import file
15850 # for dependence libraries. The import file would start with
15851 # the line `#! .'. This would cause the generated library to
15852 # depend on `.', always an invalid library. This was fixed in
15853 # development snapshots of GCC prior to 3.0.
15854 case $host_os in
15855 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015856 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15857 echo ' yes '
15858 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15859 :
15860 else
15861 can_build_shared=no
15862 fi
15863 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015864 esac
John Criswell47fdd832003-07-14 16:52:07 +000015865 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15866 # soname into executable. Probably we can add versioning support to
15867 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015868 if test "$aix_use_runtimelinking" = yes; then
15869 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15870 # instead of lib<name>.a to let people know that these are not
15871 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015873 else
15874 # We preserve .a as extension for shared libraries through AIX4.2
15875 # and later when we are not doing run time linking.
15876 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015877 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015878 fi
15879 shlibpath_var=LIBPATH
15880 fi
15881 ;;
15882
15883amigaos*)
15884 library_names_spec='$libname.ixlibrary $libname.a'
15885 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015886 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 +000015887 ;;
15888
15889beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015890 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015891 dynamic_linker="$host_os ld.so"
15892 shlibpath_var=LIBRARY_PATH
15893 ;;
15894
Reid Spencer2706f8c2004-09-19 23:53:36 +000015895bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015896 version_type=linux
15897 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15899 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015900 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15901 shlibpath_var=LD_LIBRARY_PATH
15902 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15903 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015904 # the default ld.so.conf also contains /usr/contrib/lib and
15905 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15906 # libtool to hard-code these into programs
15907 ;;
15908
15909cygwin* | mingw* | pw32*)
15910 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015911 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015912 need_version=no
15913 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015914
John Criswell7a73b802003-06-30 21:59:07 +000015915 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015916 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015917 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015918 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015919 postinstall_cmds='base_file=`basename \${file}`~
15920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15921 dldir=$destdir/`dirname \$dlpath`~
15922 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015923 $install_prog $dir/$dlname \$dldir/$dlname~
15924 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15926 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015927 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015928 shlibpath_overrides_runpath=yes
15929
15930 case $host_os in
15931 cygwin*)
15932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15933 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 +000015934 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015935 ;;
15936 mingw*)
15937 # MinGW DLLs use traditional 'lib' prefix
15938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15940 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15941 # It is most probably a Windows format PATH printed by
15942 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15943 # path with ; separators, and with drive letters. We can handle the
15944 # drive letters (cygwin fileutils understands them), so leave them,
15945 # especially as we might pass files found there to a mingw objdump,
15946 # which wouldn't understand a cygwinified path. Ahh.
15947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15948 else
15949 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15950 fi
15951 ;;
15952 pw32*)
15953 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015954 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 +000015955 ;;
15956 esac
John Criswell7a73b802003-06-30 21:59:07 +000015957 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015958
John Criswell7a73b802003-06-30 21:59:07 +000015959 *)
John Criswell47fdd832003-07-14 16:52:07 +000015960 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015961 ;;
15962 esac
15963 dynamic_linker='Win32 ld.exe'
15964 # FIXME: first we should search . and the directory the executable is in
15965 shlibpath_var=PATH
15966 ;;
15967
15968darwin* | rhapsody*)
15969 dynamic_linker="$host_os dyld"
15970 version_type=darwin
15971 need_lib_prefix=no
15972 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015973 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015974 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015975 shlibpath_overrides_runpath=yes
15976 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000015977 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000015978 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015979 if test "$GCC" = yes; then
15980 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"`
15981 else
15982 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015983 fi
15984 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15985 ;;
15986
15987dgux*)
15988 version_type=linux
15989 need_lib_prefix=no
15990 need_version=no
15991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015994 ;;
15995
15996freebsd1*)
15997 dynamic_linker=no
15998 ;;
15999
Reid Spencer2706f8c2004-09-19 23:53:36 +000016000kfreebsd*-gnu)
16001 version_type=linux
16002 need_lib_prefix=no
16003 need_version=no
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16005 soname_spec='${libname}${release}${shared_ext}$major'
16006 shlibpath_var=LD_LIBRARY_PATH
16007 shlibpath_overrides_runpath=no
16008 hardcode_into_libs=yes
16009 dynamic_linker='GNU ld.so'
16010 ;;
16011
Reid Spencera773bd52006-08-04 18:18:08 +000016012freebsd* | dragonfly*)
16013 # DragonFly does not have aout. When/if they implement a new
16014 # versioning mechanism, adjust this.
16015 if test -x /usr/bin/objformat; then
16016 objformat=`/usr/bin/objformat`
16017 else
16018 case $host_os in
16019 freebsd[123]*) objformat=aout ;;
16020 *) objformat=elf ;;
16021 esac
16022 fi
John Criswell7a73b802003-06-30 21:59:07 +000016023 version_type=freebsd-$objformat
16024 case $version_type in
16025 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016027 need_version=no
16028 need_lib_prefix=no
16029 ;;
16030 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016032 need_version=yes
16033 ;;
16034 esac
16035 shlibpath_var=LD_LIBRARY_PATH
16036 case $host_os in
16037 freebsd2*)
16038 shlibpath_overrides_runpath=yes
16039 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016040 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016041 shlibpath_overrides_runpath=yes
16042 hardcode_into_libs=yes
16043 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016044 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16045 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016046 shlibpath_overrides_runpath=no
16047 hardcode_into_libs=yes
16048 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016049 freebsd*) # from 4.6 on
16050 shlibpath_overrides_runpath=yes
16051 hardcode_into_libs=yes
16052 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016053 esac
16054 ;;
16055
16056gnu*)
16057 version_type=linux
16058 need_lib_prefix=no
16059 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16061 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016062 shlibpath_var=LD_LIBRARY_PATH
16063 hardcode_into_libs=yes
16064 ;;
16065
16066hpux9* | hpux10* | hpux11*)
16067 # Give a soname corresponding to the major version so that dld.sl refuses to
16068 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016069 version_type=sunos
16070 need_lib_prefix=no
16071 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016072 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016073 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016075 hardcode_into_libs=yes
16076 dynamic_linker="$host_os dld.so"
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 if test "X$HPUX_IA64_MODE" = X32; then
16082 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16083 else
16084 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16085 fi
16086 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16087 ;;
16088 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016089 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016090 hardcode_into_libs=yes
16091 dynamic_linker="$host_os dld.sl"
16092 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16093 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095 soname_spec='${libname}${release}${shared_ext}$major'
16096 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16098 ;;
16099 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016100 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016101 dynamic_linker="$host_os dld.sl"
16102 shlibpath_var=SHLIB_PATH
16103 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 soname_spec='${libname}${release}${shared_ext}$major'
16106 ;;
16107 esac
John Criswell7a73b802003-06-30 21:59:07 +000016108 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16109 postinstall_cmds='chmod 555 $lib'
16110 ;;
16111
Reid Spencera773bd52006-08-04 18:18:08 +000016112interix3*)
16113 version_type=linux
16114 need_lib_prefix=no
16115 need_version=no
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16117 soname_spec='${libname}${release}${shared_ext}$major'
16118 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16119 shlibpath_var=LD_LIBRARY_PATH
16120 shlibpath_overrides_runpath=no
16121 hardcode_into_libs=yes
16122 ;;
16123
John Criswell47fdd832003-07-14 16:52:07 +000016124irix5* | irix6* | nonstopux*)
16125 case $host_os in
16126 nonstopux*) version_type=nonstopux ;;
16127 *)
16128 if test "$lt_cv_prog_gnu_ld" = yes; then
16129 version_type=linux
16130 else
16131 version_type=irix
16132 fi ;;
16133 esac
John Criswell7a73b802003-06-30 21:59:07 +000016134 need_lib_prefix=no
16135 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016136 soname_spec='${libname}${release}${shared_ext}$major'
16137 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 +000016138 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016139 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016140 libsuff= shlibsuff=
16141 ;;
16142 *)
16143 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016144 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16145 libsuff= shlibsuff= libmagic=32-bit;;
16146 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16147 libsuff=32 shlibsuff=N32 libmagic=N32;;
16148 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16149 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016150 *) libsuff= shlibsuff= libmagic=never-match;;
16151 esac
16152 ;;
16153 esac
16154 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16155 shlibpath_overrides_runpath=no
16156 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16157 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016158 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016159 ;;
16160
16161# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016162linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016163 dynamic_linker=no
16164 ;;
16165
16166# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016167linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016168 version_type=linux
16169 need_lib_prefix=no
16170 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16174 shlibpath_var=LD_LIBRARY_PATH
16175 shlibpath_overrides_runpath=no
16176 # This implies no fast_install, which is unacceptable.
16177 # Some rework will be needed to allow for fast_install
16178 # before this can be enabled.
16179 hardcode_into_libs=yes
16180
Reid Spencer2706f8c2004-09-19 23:53:36 +000016181 # Append ld.so.conf contents to the search path
16182 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016183 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 +000016184 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16185 fi
16186
John Criswell7a73b802003-06-30 21:59:07 +000016187 # We used to test for /lib/ld.so.1 and disable shared libraries on
16188 # powerpc, because MkLinux only supported shared libraries with the
16189 # GNU dynamic linker. Since this was broken with cross compilers,
16190 # most powerpc-linux boxes support dynamic linking these days and
16191 # people can always --disable-shared, the test was removed, and we
16192 # assume the GNU/Linux dynamic linker is in use.
16193 dynamic_linker='GNU/Linux ld.so'
16194 ;;
16195
Reid Spencer2706f8c2004-09-19 23:53:36 +000016196knetbsd*-gnu)
16197 version_type=linux
16198 need_lib_prefix=no
16199 need_version=no
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16203 shlibpath_overrides_runpath=no
16204 hardcode_into_libs=yes
16205 dynamic_linker='GNU ld.so'
16206 ;;
16207
John Criswell7a73b802003-06-30 21:59:07 +000016208netbsd*)
16209 version_type=sunos
16210 need_lib_prefix=no
16211 need_version=no
16212 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16215 dynamic_linker='NetBSD (a.out) ld.so'
16216 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016218 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016219 dynamic_linker='NetBSD ld.elf_so'
16220 fi
16221 shlibpath_var=LD_LIBRARY_PATH
16222 shlibpath_overrides_runpath=yes
16223 hardcode_into_libs=yes
16224 ;;
16225
16226newsos6)
16227 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes
16231 ;;
16232
Reid Spencer2706f8c2004-09-19 23:53:36 +000016233nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016234 version_type=linux
16235 need_lib_prefix=no
16236 need_version=no
16237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16238 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016239 shlibpath_var=LD_LIBRARY_PATH
16240 shlibpath_overrides_runpath=yes
16241 ;;
16242
16243openbsd*)
16244 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016245 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016246 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016247 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16248 case $host_os in
16249 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16250 *) need_version=no ;;
16251 esac
John Criswell47fdd832003-07-14 16:52:07 +000016252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16254 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016255 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 +000016256 case $host_os in
16257 openbsd2.[89] | openbsd2.[89].*)
16258 shlibpath_overrides_runpath=no
16259 ;;
16260 *)
16261 shlibpath_overrides_runpath=yes
16262 ;;
16263 esac
John Criswell7a73b802003-06-30 21:59:07 +000016264 else
16265 shlibpath_overrides_runpath=yes
16266 fi
John Criswell7a73b802003-06-30 21:59:07 +000016267 ;;
16268
16269os2*)
16270 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016271 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016272 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016273 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016274 dynamic_linker='OS/2 ld.exe'
16275 shlibpath_var=LIBPATH
16276 ;;
16277
16278osf3* | osf4* | osf5*)
16279 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016280 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016281 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016282 soname_spec='${libname}${release}${shared_ext}$major'
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016284 shlibpath_var=LD_LIBRARY_PATH
16285 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16286 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16287 ;;
16288
John Criswell7a73b802003-06-30 21:59:07 +000016289solaris*)
16290 version_type=linux
16291 need_lib_prefix=no
16292 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16294 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016295 shlibpath_var=LD_LIBRARY_PATH
16296 shlibpath_overrides_runpath=yes
16297 hardcode_into_libs=yes
16298 # ldd complains unless libraries are executable
16299 postinstall_cmds='chmod +x $lib'
16300 ;;
16301
16302sunos4*)
16303 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16308 if test "$with_gnu_ld" = yes; then
16309 need_lib_prefix=no
16310 fi
16311 need_version=yes
16312 ;;
16313
Reid Spencera773bd52006-08-04 18:18:08 +000016314sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016315 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016318 shlibpath_var=LD_LIBRARY_PATH
16319 case $host_vendor in
16320 sni)
16321 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016322 need_lib_prefix=no
16323 export_dynamic_flag_spec='${wl}-Blargedynsym'
16324 runpath_var=LD_RUN_PATH
16325 ;;
16326 siemens)
16327 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016328 ;;
16329 motorola)
16330 need_lib_prefix=no
16331 need_version=no
16332 shlibpath_overrides_runpath=no
16333 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16334 ;;
16335 esac
16336 ;;
16337
John Criswell7a73b802003-06-30 21:59:07 +000016338sysv4*MP*)
16339 if test -d /usr/nec ;then
16340 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016341 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16342 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016343 shlibpath_var=LD_LIBRARY_PATH
16344 fi
16345 ;;
16346
Reid Spencera773bd52006-08-04 18:18:08 +000016347sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16348 version_type=freebsd-elf
16349 need_lib_prefix=no
16350 need_version=no
16351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16352 soname_spec='${libname}${release}${shared_ext}$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16354 hardcode_into_libs=yes
16355 if test "$with_gnu_ld" = yes; then
16356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16357 shlibpath_overrides_runpath=no
16358 else
16359 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16360 shlibpath_overrides_runpath=yes
16361 case $host_os in
16362 sco3.2v5*)
16363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16364 ;;
16365 esac
16366 fi
16367 sys_lib_dlsearch_path_spec='/usr/lib'
16368 ;;
16369
John Criswell47fdd832003-07-14 16:52:07 +000016370uts4*)
16371 version_type=linux
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 ;;
16376
John Criswell7a73b802003-06-30 21:59:07 +000016377*)
16378 dynamic_linker=no
16379 ;;
16380esac
Reid Spencera773bd52006-08-04 18:18:08 +000016381{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16382echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016383test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016384
Reid Spencera773bd52006-08-04 18:18:08 +000016385variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16386if test "$GCC" = yes; then
16387 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16388fi
16389
16390{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16391echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016392hardcode_action=
16393if test -n "$hardcode_libdir_flag_spec" || \
16394 test -n "$runpath_var" || \
16395 test "X$hardcode_automatic" = "Xyes" ; then
16396
16397 # We can hardcode non-existant directories.
16398 if test "$hardcode_direct" != no &&
16399 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16400 # have to relink, otherwise we might link with an installed library
16401 # when we should be linking with a yet-to-be-installed one
16402 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16403 test "$hardcode_minus_L" != no; then
16404 # Linking always hardcodes the temporary library directory.
16405 hardcode_action=relink
16406 else
16407 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16408 hardcode_action=immediate
16409 fi
16410else
16411 # We cannot hardcode anything, or else we can only hardcode existing
16412 # directories.
16413 hardcode_action=unsupported
16414fi
Reid Spencera773bd52006-08-04 18:18:08 +000016415{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16416echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016417
16418if test "$hardcode_action" = relink; then
16419 # Fast installation is not supported
16420 enable_fast_install=no
16421elif test "$shlibpath_overrides_runpath" = yes ||
16422 test "$enable_shared" = no; then
16423 # Fast installation is not necessary
16424 enable_fast_install=needless
16425fi
16426
16427striplib=
16428old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016429{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16430echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016431if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16432 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16433 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016434 { echo "$as_me:$LINENO: result: yes" >&5
16435echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016436else
16437# FIXME - insert some real tests, host_os isn't really good enough
16438 case $host_os in
16439 darwin*)
16440 if test -n "$STRIP" ; then
16441 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016442 { echo "$as_me:$LINENO: result: yes" >&5
16443echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016444 else
Reid Spencera773bd52006-08-04 18:18:08 +000016445 { echo "$as_me:$LINENO: result: no" >&5
16446echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016447fi
16448 ;;
16449 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016450 { echo "$as_me:$LINENO: result: no" >&5
16451echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016452 ;;
16453 esac
16454fi
16455
John Criswell7a73b802003-06-30 21:59:07 +000016456if test "x$enable_dlopen" != xyes; then
16457 enable_dlopen=unknown
16458 enable_dlopen_self=unknown
16459 enable_dlopen_self_static=unknown
16460else
16461 lt_cv_dlopen=no
16462 lt_cv_dlopen_libs=
16463
16464 case $host_os in
16465 beos*)
16466 lt_cv_dlopen="load_add_on"
16467 lt_cv_dlopen_libs=
16468 lt_cv_dlopen_self=yes
16469 ;;
16470
John Criswell47fdd832003-07-14 16:52:07 +000016471 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016472 lt_cv_dlopen="LoadLibrary"
16473 lt_cv_dlopen_libs=
16474 ;;
16475
John Criswell47fdd832003-07-14 16:52:07 +000016476 cygwin*)
16477 lt_cv_dlopen="dlopen"
16478 lt_cv_dlopen_libs=
16479 ;;
16480
16481 darwin*)
16482 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016483 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16484echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016485if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16486 echo $ECHO_N "(cached) $ECHO_C" >&6
16487else
16488 ac_check_lib_save_LIBS=$LIBS
16489LIBS="-ldl $LIBS"
16490cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016491/* confdefs.h. */
16492_ACEOF
16493cat confdefs.h >>conftest.$ac_ext
16494cat >>conftest.$ac_ext <<_ACEOF
16495/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016496
Reid Spencera773bd52006-08-04 18:18:08 +000016497/* Override any GCC internal prototype to avoid an error.
16498 Use char because int might match the return type of a GCC
16499 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016500#ifdef __cplusplus
16501extern "C"
16502#endif
John Criswell47fdd832003-07-14 16:52:07 +000016503char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016504int
16505main ()
16506{
Reid Spencera773bd52006-08-04 18:18:08 +000016507return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016508 ;
16509 return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016513if { (ac_try="$ac_link"
16514case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16527 { (case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16530esac
16531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_try") 2>&5
16533 ac_status=$?
16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); }; } &&
16536 { ac_try='test -s conftest$ac_exeext'
16537 { (case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16540esac
16541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_try") 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016546 ac_cv_lib_dl_dlopen=yes
16547else
16548 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016549sed 's/^/| /' conftest.$ac_ext >&5
16550
Reid Spencera773bd52006-08-04 18:18:08 +000016551 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016552fi
Reid Spencera773bd52006-08-04 18:18:08 +000016553
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016554rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016555 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016556LIBS=$ac_check_lib_save_LIBS
16557fi
Reid Spencera773bd52006-08-04 18:18:08 +000016558{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16559echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016560if test $ac_cv_lib_dl_dlopen = yes; then
16561 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16562else
16563
16564 lt_cv_dlopen="dyld"
16565 lt_cv_dlopen_libs=
16566 lt_cv_dlopen_self=yes
16567
16568fi
16569
16570 ;;
16571
John Criswell7a73b802003-06-30 21:59:07 +000016572 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016573 { echo "$as_me:$LINENO: checking for shl_load" >&5
16574echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016575if test "${ac_cv_func_shl_load+set}" = set; then
16576 echo $ECHO_N "(cached) $ECHO_C" >&6
16577else
16578 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016579/* confdefs.h. */
16580_ACEOF
16581cat confdefs.h >>conftest.$ac_ext
16582cat >>conftest.$ac_ext <<_ACEOF
16583/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016584/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16586#define shl_load innocuous_shl_load
16587
John Criswell7a73b802003-06-30 21:59:07 +000016588/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016589 which can conflict with char shl_load (); below.
16590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16591 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016592
John Criswell0c38eaf2003-09-10 15:17:25 +000016593#ifdef __STDC__
16594# include <limits.h>
16595#else
16596# include <assert.h>
16597#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016598
16599#undef shl_load
16600
Reid Spencera773bd52006-08-04 18:18:08 +000016601/* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016604#ifdef __cplusplus
16605extern "C"
16606#endif
John Criswell7a73b802003-06-30 21:59:07 +000016607char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016608/* The GNU C library defines this for functions which it implements
16609 to always fail with ENOSYS. Some functions are actually named
16610 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016611#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016612choke me
John Criswell7a73b802003-06-30 21:59:07 +000016613#endif
16614
John Criswell0c38eaf2003-09-10 15:17:25 +000016615int
16616main ()
16617{
Reid Spencera773bd52006-08-04 18:18:08 +000016618return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016619 ;
16620 return 0;
16621}
16622_ACEOF
16623rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016624if { (ac_try="$ac_link"
16625case "(($ac_try" in
16626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16627 *) ac_try_echo=$ac_try;;
16628esac
16629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16630 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016632 grep -v '^ *+' conftest.er1 >conftest.err
16633 rm -f conftest.er1
16634 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016636 (exit $ac_status); } &&
16637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16638 { (case "(($ac_try" in
16639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640 *) ac_try_echo=$ac_try;;
16641esac
16642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643 (eval "$ac_try") 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
16654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016657 ac_cv_func_shl_load=yes
16658else
16659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016660sed 's/^/| /' conftest.$ac_ext >&5
16661
Reid Spencera773bd52006-08-04 18:18:08 +000016662 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016663fi
Reid Spencera773bd52006-08-04 18:18:08 +000016664
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016665rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016666 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016667fi
Reid Spencera773bd52006-08-04 18:18:08 +000016668{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16669echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016670if test $ac_cv_func_shl_load = yes; then
16671 lt_cv_dlopen="shl_load"
16672else
Reid Spencera773bd52006-08-04 18:18:08 +000016673 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16674echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016675if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 ac_check_lib_save_LIBS=$LIBS
16679LIBS="-ldld $LIBS"
16680cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016681/* confdefs.h. */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016686
Reid Spencera773bd52006-08-04 18:18:08 +000016687/* Override any GCC internal prototype to avoid an error.
16688 Use char because int might match the return type of a GCC
16689 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016690#ifdef __cplusplus
16691extern "C"
16692#endif
John Criswell7a73b802003-06-30 21:59:07 +000016693char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016694int
16695main ()
16696{
Reid Spencera773bd52006-08-04 18:18:08 +000016697return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016698 ;
16699 return 0;
16700}
16701_ACEOF
16702rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016703if { (ac_try="$ac_link"
16704case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016710 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016711 grep -v '^ *+' conftest.er1 >conftest.err
16712 rm -f conftest.er1
16713 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016715 (exit $ac_status); } &&
16716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16717 { (case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16720esac
16721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_try") 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016736 ac_cv_lib_dld_shl_load=yes
16737else
16738 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016739sed 's/^/| /' conftest.$ac_ext >&5
16740
Reid Spencera773bd52006-08-04 18:18:08 +000016741 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016742fi
Reid Spencera773bd52006-08-04 18:18:08 +000016743
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016744rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016745 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016746LIBS=$ac_check_lib_save_LIBS
16747fi
Reid Spencera773bd52006-08-04 18:18:08 +000016748{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16749echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016750if test $ac_cv_lib_dld_shl_load = yes; then
16751 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16752else
Reid Spencera773bd52006-08-04 18:18:08 +000016753 { echo "$as_me:$LINENO: checking for dlopen" >&5
16754echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016755if test "${ac_cv_func_dlopen+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757else
16758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016759/* confdefs.h. */
16760_ACEOF
16761cat confdefs.h >>conftest.$ac_ext
16762cat >>conftest.$ac_ext <<_ACEOF
16763/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016764/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16766#define dlopen innocuous_dlopen
16767
John Criswell7a73b802003-06-30 21:59:07 +000016768/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016769 which can conflict with char dlopen (); below.
16770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16771 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772
John Criswell0c38eaf2003-09-10 15:17:25 +000016773#ifdef __STDC__
16774# include <limits.h>
16775#else
16776# include <assert.h>
16777#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016778
16779#undef dlopen
16780
Reid Spencera773bd52006-08-04 18:18:08 +000016781/* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016784#ifdef __cplusplus
16785extern "C"
16786#endif
John Criswell7a73b802003-06-30 21:59:07 +000016787char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016788/* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016791#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016792choke me
John Criswell7a73b802003-06-30 21:59:07 +000016793#endif
16794
John Criswell0c38eaf2003-09-10 15:17:25 +000016795int
16796main ()
16797{
Reid Spencera773bd52006-08-04 18:18:08 +000016798return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016799 ;
16800 return 0;
16801}
16802_ACEOF
16803rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016804if { (ac_try="$ac_link"
16805case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808esac
16809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016816 (exit $ac_status); } &&
16817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16818 { (case "(($ac_try" in
16819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820 *) ac_try_echo=$ac_try;;
16821esac
16822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823 (eval "$ac_try") 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; } &&
16827 { ac_try='test -s conftest$ac_exeext'
16828 { (case "(($ac_try" in
16829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16830 *) ac_try_echo=$ac_try;;
16831esac
16832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16833 (eval "$ac_try") 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016837 ac_cv_func_dlopen=yes
16838else
16839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016840sed 's/^/| /' conftest.$ac_ext >&5
16841
Reid Spencera773bd52006-08-04 18:18:08 +000016842 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016843fi
Reid Spencera773bd52006-08-04 18:18:08 +000016844
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016845rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016846 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016847fi
Reid Spencera773bd52006-08-04 18:18:08 +000016848{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16849echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016850if test $ac_cv_func_dlopen = yes; then
16851 lt_cv_dlopen="dlopen"
16852else
Reid Spencera773bd52006-08-04 18:18:08 +000016853 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16854echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016855if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857else
16858 ac_check_lib_save_LIBS=$LIBS
16859LIBS="-ldl $LIBS"
16860cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016861/* confdefs.h. */
16862_ACEOF
16863cat confdefs.h >>conftest.$ac_ext
16864cat >>conftest.$ac_ext <<_ACEOF
16865/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016866
Reid Spencera773bd52006-08-04 18:18:08 +000016867/* Override any GCC internal prototype to avoid an error.
16868 Use char because int might match the return type of a GCC
16869 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016870#ifdef __cplusplus
16871extern "C"
16872#endif
John Criswell7a73b802003-06-30 21:59:07 +000016873char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016874int
16875main ()
16876{
Reid Spencera773bd52006-08-04 18:18:08 +000016877return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016878 ;
16879 return 0;
16880}
16881_ACEOF
16882rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016883if { (ac_try="$ac_link"
16884case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16887esac
16888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016890 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016891 grep -v '^ *+' conftest.er1 >conftest.err
16892 rm -f conftest.er1
16893 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016895 (exit $ac_status); } &&
16896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
16903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; } &&
16906 { ac_try='test -s conftest$ac_exeext'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016916 ac_cv_lib_dl_dlopen=yes
16917else
16918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016919sed 's/^/| /' conftest.$ac_ext >&5
16920
Reid Spencera773bd52006-08-04 18:18:08 +000016921 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016922fi
Reid Spencera773bd52006-08-04 18:18:08 +000016923
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016924rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016925 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016926LIBS=$ac_check_lib_save_LIBS
16927fi
Reid Spencera773bd52006-08-04 18:18:08 +000016928{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16929echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016930if test $ac_cv_lib_dl_dlopen = yes; then
16931 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16932else
Reid Spencera773bd52006-08-04 18:18:08 +000016933 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16934echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016935if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16937else
16938 ac_check_lib_save_LIBS=$LIBS
16939LIBS="-lsvld $LIBS"
16940cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016946
Reid Spencera773bd52006-08-04 18:18:08 +000016947/* Override any GCC internal prototype to avoid an error.
16948 Use char because int might match the return type of a GCC
16949 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016950#ifdef __cplusplus
16951extern "C"
16952#endif
John Criswell7a73b802003-06-30 21:59:07 +000016953char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016954int
16955main ()
16956{
Reid Spencera773bd52006-08-04 18:18:08 +000016957return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016958 ;
16959 return 0;
16960}
16961_ACEOF
16962rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016963if { (ac_try="$ac_link"
16964case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16967esac
16968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000016975 (exit $ac_status); } &&
16976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16977 { (case "(($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_try") 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16990esac
16991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_try") 2>&5
16993 ac_status=$?
16994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000016996 ac_cv_lib_svld_dlopen=yes
16997else
16998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016999sed 's/^/| /' conftest.$ac_ext >&5
17000
Reid Spencera773bd52006-08-04 18:18:08 +000017001 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017002fi
Reid Spencera773bd52006-08-04 18:18:08 +000017003
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017004rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017005 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017006LIBS=$ac_check_lib_save_LIBS
17007fi
Reid Spencera773bd52006-08-04 18:18:08 +000017008{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17009echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017010if test $ac_cv_lib_svld_dlopen = yes; then
17011 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17012else
Reid Spencera773bd52006-08-04 18:18:08 +000017013 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17014echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017015if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17016 echo $ECHO_N "(cached) $ECHO_C" >&6
17017else
17018 ac_check_lib_save_LIBS=$LIBS
17019LIBS="-ldld $LIBS"
17020cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017021/* confdefs.h. */
17022_ACEOF
17023cat confdefs.h >>conftest.$ac_ext
17024cat >>conftest.$ac_ext <<_ACEOF
17025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017026
Reid Spencera773bd52006-08-04 18:18:08 +000017027/* Override any GCC internal prototype to avoid an error.
17028 Use char because int might match the return type of a GCC
17029 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017030#ifdef __cplusplus
17031extern "C"
17032#endif
John Criswell7a73b802003-06-30 21:59:07 +000017033char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017034int
17035main ()
17036{
Reid Spencera773bd52006-08-04 18:18:08 +000017037return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017038 ;
17039 return 0;
17040}
17041_ACEOF
17042rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017043if { (ac_try="$ac_link"
17044case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17047esac
17048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017050 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017051 grep -v '^ *+' conftest.er1 >conftest.err
17052 rm -f conftest.er1
17053 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($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_try") 2>&5
17063 ac_status=$?
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17070esac
17071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017076 ac_cv_lib_dld_dld_link=yes
17077else
17078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017079sed 's/^/| /' conftest.$ac_ext >&5
17080
Reid Spencera773bd52006-08-04 18:18:08 +000017081 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017082fi
Reid Spencera773bd52006-08-04 18:18:08 +000017083
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000017084rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017085 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017086LIBS=$ac_check_lib_save_LIBS
17087fi
Reid Spencera773bd52006-08-04 18:18:08 +000017088{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17089echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017090if test $ac_cv_lib_dld_dld_link = yes; then
17091 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17092fi
17093
17094
17095fi
17096
17097
17098fi
17099
17100
17101fi
17102
17103
17104fi
17105
17106
17107fi
17108
17109 ;;
17110 esac
17111
17112 if test "x$lt_cv_dlopen" != xno; then
17113 enable_dlopen=yes
17114 else
17115 enable_dlopen=no
17116 fi
17117
17118 case $lt_cv_dlopen in
17119 dlopen)
17120 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017121 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017122
17123 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017124 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017125
17126 save_LIBS="$LIBS"
17127 LIBS="$lt_cv_dlopen_libs $LIBS"
17128
Reid Spencera773bd52006-08-04 18:18:08 +000017129 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17130echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017131if test "${lt_cv_dlopen_self+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133else
17134 if test "$cross_compiling" = yes; then :
17135 lt_cv_dlopen_self=cross
17136else
John Criswell47fdd832003-07-14 16:52:07 +000017137 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017138 lt_status=$lt_dlunknown
17139 cat > conftest.$ac_ext <<EOF
Nick Lewyckye9821dc2009-03-03 04:55:29 +000017140#line 17140 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017141#include "confdefs.h"
17142
17143#if HAVE_DLFCN_H
17144#include <dlfcn.h>
17145#endif
17146
17147#include <stdio.h>
17148
17149#ifdef RTLD_GLOBAL
17150# define LT_DLGLOBAL RTLD_GLOBAL
17151#else
17152# ifdef DL_GLOBAL
17153# define LT_DLGLOBAL DL_GLOBAL
17154# else
17155# define LT_DLGLOBAL 0
17156# endif
17157#endif
17158
17159/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17160 find out it does not work in some platform. */
17161#ifndef LT_DLLAZY_OR_NOW
17162# ifdef RTLD_LAZY
17163# define LT_DLLAZY_OR_NOW RTLD_LAZY
17164# else
17165# ifdef DL_LAZY
17166# define LT_DLLAZY_OR_NOW DL_LAZY
17167# else
17168# ifdef RTLD_NOW
17169# define LT_DLLAZY_OR_NOW RTLD_NOW
17170# else
17171# ifdef DL_NOW
17172# define LT_DLLAZY_OR_NOW DL_NOW
17173# else
17174# define LT_DLLAZY_OR_NOW 0
17175# endif
17176# endif
17177# endif
17178# endif
17179#endif
17180
17181#ifdef __cplusplus
17182extern "C" void exit (int);
17183#endif
17184
17185void fnord() { int i=42;}
17186int main ()
17187{
17188 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17189 int status = $lt_dlunknown;
17190
17191 if (self)
17192 {
17193 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17194 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17195 /* dlclose (self); */
17196 }
Reid Spencera773bd52006-08-04 18:18:08 +000017197 else
17198 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017199
17200 exit (status);
17201}
17202EOF
17203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17204 (eval $ac_link) 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017208 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017209 lt_status=$?
17210 case x$lt_status in
17211 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17212 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017213 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017214 esac
17215 else :
17216 # compilation failed
17217 lt_cv_dlopen_self=no
17218 fi
17219fi
17220rm -fr conftest*
17221
17222
17223fi
Reid Spencera773bd52006-08-04 18:18:08 +000017224{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17225echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017226
17227 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017228 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17229 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17230echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017231if test "${lt_cv_dlopen_self_static+set}" = set; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17233else
17234 if test "$cross_compiling" = yes; then :
17235 lt_cv_dlopen_self_static=cross
17236else
John Criswell47fdd832003-07-14 16:52:07 +000017237 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017238 lt_status=$lt_dlunknown
17239 cat > conftest.$ac_ext <<EOF
Nick Lewyckye9821dc2009-03-03 04:55:29 +000017240#line 17240 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017241#include "confdefs.h"
17242
17243#if HAVE_DLFCN_H
17244#include <dlfcn.h>
17245#endif
17246
17247#include <stdio.h>
17248
17249#ifdef RTLD_GLOBAL
17250# define LT_DLGLOBAL RTLD_GLOBAL
17251#else
17252# ifdef DL_GLOBAL
17253# define LT_DLGLOBAL DL_GLOBAL
17254# else
17255# define LT_DLGLOBAL 0
17256# endif
17257#endif
17258
17259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17260 find out it does not work in some platform. */
17261#ifndef LT_DLLAZY_OR_NOW
17262# ifdef RTLD_LAZY
17263# define LT_DLLAZY_OR_NOW RTLD_LAZY
17264# else
17265# ifdef DL_LAZY
17266# define LT_DLLAZY_OR_NOW DL_LAZY
17267# else
17268# ifdef RTLD_NOW
17269# define LT_DLLAZY_OR_NOW RTLD_NOW
17270# else
17271# ifdef DL_NOW
17272# define LT_DLLAZY_OR_NOW DL_NOW
17273# else
17274# define LT_DLLAZY_OR_NOW 0
17275# endif
17276# endif
17277# endif
17278# endif
17279#endif
17280
17281#ifdef __cplusplus
17282extern "C" void exit (int);
17283#endif
17284
17285void fnord() { int i=42;}
17286int main ()
17287{
17288 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17289 int status = $lt_dlunknown;
17290
17291 if (self)
17292 {
17293 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17294 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17295 /* dlclose (self); */
17296 }
Reid Spencera773bd52006-08-04 18:18:08 +000017297 else
17298 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017299
17300 exit (status);
17301}
17302EOF
17303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17304 (eval $ac_link) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017308 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017309 lt_status=$?
17310 case x$lt_status in
17311 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17312 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017313 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017314 esac
17315 else :
17316 # compilation failed
17317 lt_cv_dlopen_self_static=no
17318 fi
17319fi
17320rm -fr conftest*
17321
17322
17323fi
Reid Spencera773bd52006-08-04 18:18:08 +000017324{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17325echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017326 fi
17327
17328 CPPFLAGS="$save_CPPFLAGS"
17329 LDFLAGS="$save_LDFLAGS"
17330 LIBS="$save_LIBS"
17331 ;;
17332 esac
17333
17334 case $lt_cv_dlopen_self in
17335 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17336 *) enable_dlopen_self=unknown ;;
17337 esac
17338
17339 case $lt_cv_dlopen_self_static in
17340 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17341 *) enable_dlopen_self_static=unknown ;;
17342 esac
17343fi
17344
17345
Reid Spencera773bd52006-08-04 18:18:08 +000017346# Report which library types will actually be built
17347{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17348echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17349{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17350echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017351
Reid Spencera773bd52006-08-04 18:18:08 +000017352{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17353echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017354test "$can_build_shared" = "no" && enable_shared=no
17355
17356# On AIX, shared libraries and static libraries use the same namespace, and
17357# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017358case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017359aix3*)
17360 test "$enable_shared" = yes && enable_static=no
17361 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017362 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017363 postinstall_cmds='$RANLIB $lib'
17364 fi
17365 ;;
17366
Reid Spencer2706f8c2004-09-19 23:53:36 +000017367aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017368 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17369 test "$enable_shared" = yes && enable_static=no
17370 fi
John Criswell7a73b802003-06-30 21:59:07 +000017371 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017372esac
Reid Spencera773bd52006-08-04 18:18:08 +000017373{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17374echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017375
Reid Spencera773bd52006-08-04 18:18:08 +000017376{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17377echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017378# Make sure either enable_shared or enable_static is yes.
17379test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017380{ echo "$as_me:$LINENO: result: $enable_static" >&5
17381echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017382
17383# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017384# libtool distribution, otherwise you forgot to ship ltmain.sh
17385# with your package, and you will get complaints that there are
17386# no rules to generate ltmain.sh.
17387if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017388 # See if we are running on zsh, and set the options which allow our commands through
17389 # without removal of \ escapes.
17390 if test -n "${ZSH_VERSION+set}" ; then
17391 setopt NO_GLOB_SUBST
17392 fi
John Criswell7a73b802003-06-30 21:59:07 +000017393 # Now quote all the things that may contain metacharacters while being
17394 # careful not to overquote the AC_SUBSTed values. We take copies of the
17395 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017396 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 +000017397 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017398 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17399 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17400 deplibs_check_method reload_flag reload_cmds need_locks \
17401 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17402 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017403 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017404 old_postinstall_cmds old_postuninstall_cmds \
17405 compiler \
17406 CC \
17407 LD \
17408 lt_prog_compiler_wl \
17409 lt_prog_compiler_pic \
17410 lt_prog_compiler_static \
17411 lt_prog_compiler_no_builtin_flag \
17412 export_dynamic_flag_spec \
17413 thread_safe_flag_spec \
17414 whole_archive_flag_spec \
17415 enable_shared_with_static_runtimes \
17416 old_archive_cmds \
17417 old_archive_from_new_cmds \
17418 predep_objects \
17419 postdep_objects \
17420 predeps \
17421 postdeps \
17422 compiler_lib_search_path \
17423 archive_cmds \
17424 archive_expsym_cmds \
17425 postinstall_cmds \
17426 postuninstall_cmds \
17427 old_archive_from_expsyms_cmds \
17428 allow_undefined_flag \
17429 no_undefined_flag \
17430 export_symbols_cmds \
17431 hardcode_libdir_flag_spec \
17432 hardcode_libdir_flag_spec_ld \
17433 hardcode_libdir_separator \
17434 hardcode_automatic \
17435 module_cmds \
17436 module_expsym_cmds \
17437 lt_cv_prog_compiler_c_o \
17438 exclude_expsyms \
17439 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017440
17441 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017442 old_archive_cmds | \
17443 old_archive_from_new_cmds | \
17444 archive_cmds | \
17445 archive_expsym_cmds | \
17446 module_cmds | \
17447 module_expsym_cmds | \
17448 old_archive_from_expsyms_cmds | \
17449 export_symbols_cmds | \
17450 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017451 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017452 old_postinstall_cmds | old_postuninstall_cmds | \
17453 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017454 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017455 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 +000017456 ;;
17457 *)
17458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17459 ;;
17460 esac
17461 done
17462
John Criswell47fdd832003-07-14 16:52:07 +000017463 case $lt_echo in
17464 *'\$0 --fallback-echo"')
17465 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17466 ;;
17467 esac
17468
17469cfgfile="${ofile}T"
17470 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17471 $rm -f "$cfgfile"
17472 { echo "$as_me:$LINENO: creating $ofile" >&5
17473echo "$as_me: creating $ofile" >&6;}
17474
17475 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017476#! $SHELL
17477
John Criswell47fdd832003-07-14 16:52:07 +000017478# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017479# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17480# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17481#
John Criswell47fdd832003-07-14 16:52:07 +000017482# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17483# Free Software Foundation, Inc.
17484#
17485# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017486# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17487#
17488# This program is free software; you can redistribute it and/or modify
17489# it under the terms of the GNU General Public License as published by
17490# the Free Software Foundation; either version 2 of the License, or
17491# (at your option) any later version.
17492#
17493# This program is distributed in the hope that it will be useful, but
17494# WITHOUT ANY WARRANTY; without even the implied warranty of
17495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17496# General Public License for more details.
17497#
17498# You should have received a copy of the GNU General Public License
17499# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017500# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017501#
17502# As a special exception to the GNU General Public License, if you
17503# distribute this file as part of a program that contains a
17504# configuration script generated by Autoconf, you may include it under
17505# the same distribution terms that you use for the rest of that program.
17506
John Criswell47fdd832003-07-14 16:52:07 +000017507# A sed program that does not truncate output.
17508SED=$lt_SED
17509
John Criswell7a73b802003-06-30 21:59:07 +000017510# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017511Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017512
17513# The HP-UX ksh and POSIX shell print the target directory to stdout
17514# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017516
John Criswell47fdd832003-07-14 16:52:07 +000017517# The names of the tagged configurations supported by this script.
17518available_tags=
17519
John Criswell7a73b802003-06-30 21:59:07 +000017520# ### BEGIN LIBTOOL CONFIG
17521
17522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17523
17524# Shell to use when invoking shell scripts.
17525SHELL=$lt_SHELL
17526
17527# Whether or not to build shared libraries.
17528build_libtool_libs=$enable_shared
17529
17530# Whether or not to build static libraries.
17531build_old_libs=$enable_static
17532
17533# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017534build_libtool_need_lc=$archive_cmds_need_lc
17535
17536# Whether or not to disallow shared libs when runtime libs are static
17537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017538
17539# Whether or not to optimize for fast installation.
17540fast_install=$enable_fast_install
17541
17542# The host system.
17543host_alias=$host_alias
17544host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017545host_os=$host_os
17546
17547# The build system.
17548build_alias=$build_alias
17549build=$build
17550build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017551
17552# An echo program that does not interpret backslashes.
17553echo=$lt_echo
17554
17555# The archiver.
17556AR=$lt_AR
17557AR_FLAGS=$lt_AR_FLAGS
17558
John Criswell47fdd832003-07-14 16:52:07 +000017559# A C compiler.
17560LTCC=$lt_LTCC
17561
Reid Spencera773bd52006-08-04 18:18:08 +000017562# LTCC compiler flags.
17563LTCFLAGS=$lt_LTCFLAGS
17564
John Criswell47fdd832003-07-14 16:52:07 +000017565# A language-specific compiler.
17566CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017567
17568# Is the compiler the GNU C compiler?
17569with_gcc=$GCC
17570
John Criswell47fdd832003-07-14 16:52:07 +000017571# An ERE matcher.
17572EGREP=$lt_EGREP
17573
John Criswell7a73b802003-06-30 21:59:07 +000017574# The linker used to build libraries.
17575LD=$lt_LD
17576
17577# Whether we need hard or soft links.
17578LN_S=$lt_LN_S
17579
17580# A BSD-compatible nm program.
17581NM=$lt_NM
17582
17583# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017584STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017585
17586# Used to examine libraries when file_magic_cmd begins "file"
17587MAGIC_CMD=$MAGIC_CMD
17588
17589# Used on cygwin: DLL creation program.
17590DLLTOOL="$DLLTOOL"
17591
17592# Used on cygwin: object dumper.
17593OBJDUMP="$OBJDUMP"
17594
17595# Used on cygwin: assembler.
17596AS="$AS"
17597
17598# The name of the directory that contains temporary libtool files.
17599objdir=$objdir
17600
17601# How to create reloadable object files.
17602reload_flag=$lt_reload_flag
17603reload_cmds=$lt_reload_cmds
17604
17605# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017606wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017607
17608# Object file suffix (normally "o").
17609objext="$ac_objext"
17610
17611# Old archive suffix (normally "a").
17612libext="$libext"
17613
John Criswell47fdd832003-07-14 16:52:07 +000017614# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017615shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017616
John Criswell7a73b802003-06-30 21:59:07 +000017617# Executable file suffix (normally "").
17618exeext="$exeext"
17619
17620# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017621pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017622pic_mode=$pic_mode
17623
John Criswell47fdd832003-07-14 16:52:07 +000017624# What is the maximum length of a command?
17625max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017626
John Criswell47fdd832003-07-14 16:52:07 +000017627# Does compiler simultaneously support -c and -o options?
17628compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017629
Reid Spencera773bd52006-08-04 18:18:08 +000017630# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017631need_locks=$lt_need_locks
17632
17633# Do we need the lib prefix for modules?
17634need_lib_prefix=$need_lib_prefix
17635
17636# Do we need a version for libraries?
17637need_version=$need_version
17638
17639# Whether dlopen is supported.
17640dlopen_support=$enable_dlopen
17641
17642# Whether dlopen of programs is supported.
17643dlopen_self=$enable_dlopen_self
17644
17645# Whether dlopen of statically linked programs is supported.
17646dlopen_self_static=$enable_dlopen_self_static
17647
17648# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017649link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017650
17651# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017652no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017653
17654# Compiler flag to allow reflexive dlopens.
17655export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17656
17657# Compiler flag to generate shared objects directly from archives.
17658whole_archive_flag_spec=$lt_whole_archive_flag_spec
17659
17660# Compiler flag to generate thread-safe objects.
17661thread_safe_flag_spec=$lt_thread_safe_flag_spec
17662
17663# Library versioning type.
17664version_type=$version_type
17665
17666# Format of library name prefix.
17667libname_spec=$lt_libname_spec
17668
17669# List of archive names. First name is the real one, the rest are links.
17670# The last name is the one that the linker finds with -lNAME.
17671library_names_spec=$lt_library_names_spec
17672
17673# The coded name of the library, if different from the real name.
17674soname_spec=$lt_soname_spec
17675
17676# Commands used to build and install an old-style archive.
17677RANLIB=$lt_RANLIB
17678old_archive_cmds=$lt_old_archive_cmds
17679old_postinstall_cmds=$lt_old_postinstall_cmds
17680old_postuninstall_cmds=$lt_old_postuninstall_cmds
17681
17682# Create an old-style archive from a shared archive.
17683old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17684
17685# Create a temporary old-style archive to link instead of a shared archive.
17686old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17687
17688# Commands used to build and install a shared archive.
17689archive_cmds=$lt_archive_cmds
17690archive_expsym_cmds=$lt_archive_expsym_cmds
17691postinstall_cmds=$lt_postinstall_cmds
17692postuninstall_cmds=$lt_postuninstall_cmds
17693
John Criswell47fdd832003-07-14 16:52:07 +000017694# Commands used to build a loadable module (assumed same as above if empty)
17695module_cmds=$lt_module_cmds
17696module_expsym_cmds=$lt_module_expsym_cmds
17697
John Criswell7a73b802003-06-30 21:59:07 +000017698# Commands to strip libraries.
17699old_striplib=$lt_old_striplib
17700striplib=$lt_striplib
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702# Dependencies to place before the objects being linked to create a
17703# shared library.
17704predep_objects=$lt_predep_objects
17705
17706# Dependencies to place after the objects being linked to create a
17707# shared library.
17708postdep_objects=$lt_postdep_objects
17709
17710# Dependencies to place before the objects being linked to create a
17711# shared library.
17712predeps=$lt_predeps
17713
17714# Dependencies to place after the objects being linked to create a
17715# shared library.
17716postdeps=$lt_postdeps
17717
17718# The library search path used internally by the compiler when linking
17719# a shared library.
17720compiler_lib_search_path=$lt_compiler_lib_search_path
17721
John Criswell7a73b802003-06-30 21:59:07 +000017722# Method to check whether dependent libraries are shared objects.
17723deplibs_check_method=$lt_deplibs_check_method
17724
17725# Command to use when deplibs_check_method == file_magic.
17726file_magic_cmd=$lt_file_magic_cmd
17727
17728# Flag that allows shared libraries with undefined symbols to be built.
17729allow_undefined_flag=$lt_allow_undefined_flag
17730
17731# Flag that forces no undefined symbols.
17732no_undefined_flag=$lt_no_undefined_flag
17733
17734# Commands used to finish a libtool library installation in a directory.
17735finish_cmds=$lt_finish_cmds
17736
17737# Same as above, but a single script fragment to be evaled but not shown.
17738finish_eval=$lt_finish_eval
17739
17740# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017741global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017742
17743# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017744global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017745
17746# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017747global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017748
17749# This is the shared library runtime path variable.
17750runpath_var=$runpath_var
17751
17752# This is the shared library path variable.
17753shlibpath_var=$shlibpath_var
17754
17755# Is shlibpath searched before the hard-coded library search path?
17756shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17757
17758# How to hardcode a shared library path into an executable.
17759hardcode_action=$hardcode_action
17760
17761# Whether we should hardcode library paths into libraries.
17762hardcode_into_libs=$hardcode_into_libs
17763
17764# Flag to hardcode \$libdir into a binary during linking.
17765# This must work even if \$libdir does not exist.
17766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17767
John Criswell47fdd832003-07-14 16:52:07 +000017768# If ld is used when linking, flag to hardcode \$libdir into
17769# a binary during linking. This must work even if \$libdir does
17770# not exist.
17771hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17772
John Criswell7a73b802003-06-30 21:59:07 +000017773# Whether we need a single -rpath flag with a separated argument.
17774hardcode_libdir_separator=$lt_hardcode_libdir_separator
17775
John Criswell47fdd832003-07-14 16:52:07 +000017776# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017777# resulting binary.
17778hardcode_direct=$hardcode_direct
17779
17780# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17781# resulting binary.
17782hardcode_minus_L=$hardcode_minus_L
17783
17784# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17785# the resulting binary.
17786hardcode_shlibpath_var=$hardcode_shlibpath_var
17787
John Criswell47fdd832003-07-14 16:52:07 +000017788# Set to yes if building a shared library automatically hardcodes DIR into the library
17789# and all subsequent libraries and executables linked against it.
17790hardcode_automatic=$hardcode_automatic
17791
John Criswell7a73b802003-06-30 21:59:07 +000017792# Variables whose values should be saved in libtool wrapper scripts and
17793# restored at relink time.
17794variables_saved_for_relink="$variables_saved_for_relink"
17795
17796# Whether libtool must link a program against all its dependency libraries.
17797link_all_deplibs=$link_all_deplibs
17798
17799# Compile-time system search path for libraries
17800sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17801
17802# Run-time system search path for libraries
17803sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17804
17805# Fix the shell variable \$srcfile for the compiler.
17806fix_srcfile_path="$fix_srcfile_path"
17807
17808# Set to yes if exported symbols are required.
17809always_export_symbols=$always_export_symbols
17810
17811# The commands to list exported symbols.
17812export_symbols_cmds=$lt_export_symbols_cmds
17813
17814# The commands to extract the exported symbol list from a shared archive.
17815extract_expsyms_cmds=$lt_extract_expsyms_cmds
17816
17817# Symbols that should not be listed in the preloaded symbols.
17818exclude_expsyms=$lt_exclude_expsyms
17819
17820# Symbols that must always be exported.
17821include_expsyms=$lt_include_expsyms
17822
17823# ### END LIBTOOL CONFIG
17824
17825__EOF__
17826
John Criswell47fdd832003-07-14 16:52:07 +000017827
John Criswell7a73b802003-06-30 21:59:07 +000017828 case $host_os in
17829 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017830 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017831
17832# AIX sometimes has problems with the GCC collect2 program. For some
17833# reason, if we set the COLLECT_NAMES environment variable, the problems
17834# vanish in a puff of smoke.
17835if test "X${COLLECT_NAMES+set}" != Xset; then
17836 COLLECT_NAMES=
17837 export COLLECT_NAMES
17838fi
17839EOF
17840 ;;
17841 esac
17842
John Criswell7a73b802003-06-30 21:59:07 +000017843 # We use sed instead of cat because bash on DJGPP gets confused if
17844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17845 # text mode, it properly converts lines to CR/LF. This bash problem
17846 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017847 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017848
John Criswell47fdd832003-07-14 16:52:07 +000017849 mv -f "$cfgfile" "$ofile" || \
17850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017851 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017852
17853else
17854 # If there is no Makefile yet, we rely on a make rule to execute
17855 # `config.status --recheck' to rerun these tests and create the
17856 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017857 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17858 if test -f "$ltmain_in"; then
17859 test -f Makefile && make "$ltmain"
17860 fi
John Criswell7a73b802003-06-30 21:59:07 +000017861fi
John Criswell7a73b802003-06-30 21:59:07 +000017862
17863
John Criswell47fdd832003-07-14 16:52:07 +000017864ac_ext=c
17865ac_cpp='$CPP $CPPFLAGS'
17866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17868ac_compiler_gnu=$ac_cv_c_compiler_gnu
17869
17870CC="$lt_save_CC"
17871
17872
Reid Spencera773bd52006-08-04 18:18:08 +000017873# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017874if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017875 withval=$with_tags; tagnames="$withval"
17876fi
17877
John Criswell47fdd832003-07-14 16:52:07 +000017878
17879if test -f "$ltmain" && test -n "$tagnames"; then
17880 if test ! -f "${ofile}"; then
17881 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17882echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17883 fi
17884
17885 if test -z "$LTCC"; then
17886 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17887 if test -z "$LTCC"; then
17888 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17889echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17890 else
17891 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17892echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17893 fi
17894 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017895 if test -z "$LTCFLAGS"; then
17896 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17897 fi
John Criswell47fdd832003-07-14 16:52:07 +000017898
17899 # Extract list of available tagged configurations in $ofile.
17900 # Note that this assumes the entire list is on one line.
17901 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17902
17903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17904 for tagname in $tagnames; do
17905 IFS="$lt_save_ifs"
17906 # Check whether tagname contains only valid characters
17907 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17908 "") ;;
17909 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17910echo "$as_me: error: invalid tag name: $tagname" >&2;}
17911 { (exit 1); exit 1; }; }
17912 ;;
17913 esac
17914
17915 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17916 then
17917 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17918echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17919 { (exit 1); exit 1; }; }
17920 fi
17921
17922 # Update the list of available tags.
17923 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017924 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017925
17926 case $tagname in
17927 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017928 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17929 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17930 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017931 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017932ac_cpp='$CXXCPP $CPPFLAGS'
17933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17936
17937
17938
17939
17940archive_cmds_need_lc_CXX=no
17941allow_undefined_flag_CXX=
17942always_export_symbols_CXX=no
17943archive_expsym_cmds_CXX=
17944export_dynamic_flag_spec_CXX=
17945hardcode_direct_CXX=no
17946hardcode_libdir_flag_spec_CXX=
17947hardcode_libdir_flag_spec_ld_CXX=
17948hardcode_libdir_separator_CXX=
17949hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017950hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017951hardcode_automatic_CXX=no
17952module_cmds_CXX=
17953module_expsym_cmds_CXX=
17954link_all_deplibs_CXX=unknown
17955old_archive_cmds_CXX=$old_archive_cmds
17956no_undefined_flag_CXX=
17957whole_archive_flag_spec_CXX=
17958enable_shared_with_static_runtimes_CXX=no
17959
17960# Dependencies to place before and after the object being linked:
17961predep_objects_CXX=
17962postdep_objects_CXX=
17963predeps_CXX=
17964postdeps_CXX=
17965compiler_lib_search_path_CXX=
17966
17967# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017968ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017969
17970# Object file extension for compiled C++ test sources.
17971objext=o
17972objext_CXX=$objext
17973
17974# Code to be used in simple compile tests
17975lt_simple_compile_test_code="int some_variable = 0;\n"
17976
17977# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017978lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017979
17980# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17981
17982# If no C compiler was specified, use CC.
17983LTCC=${LTCC-"$CC"}
17984
Reid Spencera773bd52006-08-04 18:18:08 +000017985# If no C compiler flags were specified, use CFLAGS.
17986LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17987
John Criswell47fdd832003-07-14 16:52:07 +000017988# Allow CC to be a program name with arguments.
17989compiler=$CC
17990
17991
Reid Spencera773bd52006-08-04 18:18:08 +000017992# save warnings/boilerplate of simple test code
17993ac_outfile=conftest.$ac_objext
17994printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17996_lt_compiler_boilerplate=`cat conftest.err`
17997$rm conftest*
17998
17999ac_outfile=conftest.$ac_objext
18000printf "$lt_simple_link_test_code" >conftest.$ac_ext
18001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18002_lt_linker_boilerplate=`cat conftest.err`
18003$rm conftest*
18004
18005
John Criswell47fdd832003-07-14 16:52:07 +000018006# Allow CC to be a program name with arguments.
18007lt_save_CC=$CC
18008lt_save_LD=$LD
18009lt_save_GCC=$GCC
18010GCC=$GXX
18011lt_save_with_gnu_ld=$with_gnu_ld
18012lt_save_path_LD=$lt_cv_path_LD
18013if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18014 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18015else
Reid Spencera773bd52006-08-04 18:18:08 +000018016 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018017fi
18018if test -n "${lt_cv_path_LDCXX+set}"; then
18019 lt_cv_path_LD=$lt_cv_path_LDCXX
18020else
Reid Spencera773bd52006-08-04 18:18:08 +000018021 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018022fi
18023test -z "${LDCXX+set}" || LD=$LDCXX
18024CC=${CXX-"c++"}
18025compiler=$CC
18026compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018027for cc_temp in $compiler""; do
18028 case $cc_temp in
18029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18031 \-*) ;;
18032 *) break;;
18033 esac
18034done
18035cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18036
John Criswell47fdd832003-07-14 16:52:07 +000018037
18038# We don't want -fno-exception wen compiling C++ code, so set the
18039# no_builtin_flag separately
18040if test "$GXX" = yes; then
18041 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18042else
18043 lt_prog_compiler_no_builtin_flag_CXX=
18044fi
18045
18046if test "$GXX" = yes; then
18047 # Set up default GNU C++ configuration
18048
18049
Reid Spencera773bd52006-08-04 18:18:08 +000018050# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018051if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018053else
18054 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018055fi
18056
John Criswell47fdd832003-07-14 16:52:07 +000018057ac_prog=ld
18058if test "$GCC" = yes; then
18059 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18061echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018062 case $host in
18063 *-*-mingw*)
18064 # gcc leaves a trailing carriage return which upsets mingw
18065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18066 *)
18067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18068 esac
18069 case $ac_prog in
18070 # Accept absolute paths.
18071 [\\/]* | ?:[\\/]*)
18072 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018073 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18077 done
18078 test -z "$LD" && LD="$ac_prog"
18079 ;;
18080 "")
18081 # If it fails, then pretend we aren't using GCC.
18082 ac_prog=ld
18083 ;;
18084 *)
18085 # If it is relative, then search for the first ld in PATH.
18086 with_gnu_ld=unknown
18087 ;;
18088 esac
18089elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18091echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018092else
Reid Spencera773bd52006-08-04 18:18:08 +000018093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18094echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018095fi
18096if test "${lt_cv_path_LD+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098else
18099 if test -z "$LD"; then
18100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18101 for ac_dir in $PATH; do
18102 IFS="$lt_save_ifs"
18103 test -z "$ac_dir" && ac_dir=.
18104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18105 lt_cv_path_LD="$ac_dir/$ac_prog"
18106 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018107 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018108 # Break only if it was the GNU/non-GNU ld that we prefer.
18109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18110 *GNU* | *'with BFD'*)
18111 test "$with_gnu_ld" != no && break
18112 ;;
18113 *)
18114 test "$with_gnu_ld" != yes && break
18115 ;;
18116 esac
18117 fi
18118 done
18119 IFS="$lt_save_ifs"
18120else
18121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18122fi
18123fi
18124
18125LD="$lt_cv_path_LD"
18126if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018127 { echo "$as_me:$LINENO: result: $LD" >&5
18128echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018129else
Reid Spencera773bd52006-08-04 18:18:08 +000018130 { echo "$as_me:$LINENO: result: no" >&5
18131echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018132fi
18133test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18134echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18135 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018136{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18137echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018138if test "${lt_cv_prog_gnu_ld+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18140else
Reid Spencera773bd52006-08-04 18:18:08 +000018141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018142case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018143*GNU* | *'with BFD'*)
18144 lt_cv_prog_gnu_ld=yes
18145 ;;
18146*)
18147 lt_cv_prog_gnu_ld=no
18148 ;;
18149esac
18150fi
Reid Spencera773bd52006-08-04 18:18:08 +000018151{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18152echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018153with_gnu_ld=$lt_cv_prog_gnu_ld
18154
18155
18156
18157 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18158 # archiving commands below assume that GNU ld is being used.
18159 if test "$with_gnu_ld" = yes; then
18160 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18161 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'
18162
18163 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18164 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18165
18166 # If archive_cmds runs LD, not CC, wlarc should be empty
18167 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18168 # investigate it a little bit more. (MM)
18169 wlarc='${wl}'
18170
18171 # ancient GNU ld didn't support --whole-archive et. al.
18172 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18173 grep 'no-whole-archive' > /dev/null; then
18174 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18175 else
18176 whole_archive_flag_spec_CXX=
18177 fi
18178 else
18179 with_gnu_ld=no
18180 wlarc=
18181
18182 # A generic and very simple default shared library creation
18183 # command for GNU C++ for the case where it uses the native
18184 # linker, instead of GNU ld. If possible, this setting should
18185 # overridden to take advantage of the native linker features on
18186 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018187 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018188 fi
18189
18190 # Commands to make compiler produce verbose output that lists
18191 # what "hidden" libraries, object files and flags are used when
18192 # linking a shared library.
18193 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18194
18195else
18196 GXX=no
18197 with_gnu_ld=no
18198 wlarc=
18199fi
18200
18201# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018202{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18203echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018204ld_shlibs_CXX=yes
18205case $host_os in
18206 aix3*)
18207 # FIXME: insert proper C++ library support
18208 ld_shlibs_CXX=no
18209 ;;
18210 aix4* | aix5*)
18211 if test "$host_cpu" = ia64; then
18212 # On IA64, the linker does run time linking by default, so we don't
18213 # have to do anything special.
18214 aix_use_runtimelinking=no
18215 exp_sym_flag='-Bexport'
18216 no_entry_flag=""
18217 else
18218 aix_use_runtimelinking=no
18219
18220 # Test if we are trying to use run time linking or normal
18221 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18222 # need to do runtime linking.
18223 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18224 for ld_flag in $LDFLAGS; do
18225 case $ld_flag in
18226 *-brtl*)
18227 aix_use_runtimelinking=yes
18228 break
18229 ;;
18230 esac
18231 done
Reid Spencera773bd52006-08-04 18:18:08 +000018232 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018233 esac
18234
18235 exp_sym_flag='-bexport'
18236 no_entry_flag='-bnoentry'
18237 fi
18238
18239 # When large executables or shared objects are built, AIX ld can
18240 # have problems creating the table of contents. If linking a library
18241 # or program results in "error TOC overflow" add -mminimal-toc to
18242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18244
18245 archive_cmds_CXX=''
18246 hardcode_direct_CXX=yes
18247 hardcode_libdir_separator_CXX=':'
18248 link_all_deplibs_CXX=yes
18249
18250 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018251 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018252 # We only want to do this on AIX 4.2 and lower, the check
18253 # below for broken collect2 doesn't work under 4.3+
18254 collect2name=`${CC} -print-prog-name=collect2`
18255 if test -f "$collect2name" && \
18256 strings "$collect2name" | grep resolve_lib_name >/dev/null
18257 then
18258 # We have reworked collect2
18259 hardcode_direct_CXX=yes
18260 else
18261 # We have old collect2
18262 hardcode_direct_CXX=unsupported
18263 # It fails to find uninstalled libraries when the uninstalled
18264 # path is not listed in the libpath. Setting hardcode_minus_L
18265 # to unsupported forces relinking
18266 hardcode_minus_L_CXX=yes
18267 hardcode_libdir_flag_spec_CXX='-L$libdir'
18268 hardcode_libdir_separator_CXX=
18269 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018270 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018271 esac
18272 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018273 if test "$aix_use_runtimelinking" = yes; then
18274 shared_flag="$shared_flag "'${wl}-G'
18275 fi
John Criswell47fdd832003-07-14 16:52:07 +000018276 else
18277 # not using gcc
18278 if test "$host_cpu" = ia64; then
18279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18280 # chokes on -Wl,-G. The following line is correct:
18281 shared_flag='-G'
18282 else
18283 if test "$aix_use_runtimelinking" = yes; then
18284 shared_flag='${wl}-G'
18285 else
18286 shared_flag='${wl}-bM:SRE'
18287 fi
18288 fi
18289 fi
18290
18291 # It seems that -bexpall does not export symbols beginning with
18292 # underscore (_), so it is better to generate a list of symbols to export.
18293 always_export_symbols_CXX=yes
18294 if test "$aix_use_runtimelinking" = yes; then
18295 # Warning - without using the other runtime loading flags (-brtl),
18296 # -berok will link without error, but may produce a broken library.
18297 allow_undefined_flag_CXX='-berok'
18298 # Determine the default libpath from the value encoded in an empty executable.
18299 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018300/* confdefs.h. */
18301_ACEOF
18302cat confdefs.h >>conftest.$ac_ext
18303cat >>conftest.$ac_ext <<_ACEOF
18304/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018305
John Criswell47fdd832003-07-14 16:52:07 +000018306int
18307main ()
18308{
18309
18310 ;
18311 return 0;
18312}
18313_ACEOF
18314rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018315if { (ac_try="$ac_link"
18316case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18319esac
18320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018322 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018323 grep -v '^ *+' conftest.er1 >conftest.err
18324 rm -f conftest.er1
18325 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018327 (exit $ac_status); } &&
18328 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18329 { (case "(($ac_try" in
18330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331 *) ac_try_echo=$ac_try;;
18332esac
18333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334 (eval "$ac_try") 2>&5
18335 ac_status=$?
18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337 (exit $ac_status); }; } &&
18338 { ac_try='test -s conftest$ac_exeext'
18339 { (case "(($ac_try" in
18340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341 *) ac_try_echo=$ac_try;;
18342esac
18343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344 (eval "$ac_try") 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018348
18349aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18350}'`
18351# Check for a 64-bit object if we didn't find anything.
18352if 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; }
18353}'`; fi
18354else
18355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018356sed 's/^/| /' conftest.$ac_ext >&5
18357
Reid Spencera773bd52006-08-04 18:18:08 +000018358
John Criswell47fdd832003-07-14 16:52:07 +000018359fi
Reid Spencera773bd52006-08-04 18:18:08 +000018360
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018361rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018362 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018363if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18364
18365 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18366
Reid Spencera773bd52006-08-04 18:18:08 +000018367 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 +000018368 else
18369 if test "$host_cpu" = ia64; then
18370 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18371 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018372 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 +000018373 else
18374 # Determine the default libpath from the value encoded in an empty executable.
18375 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018376/* confdefs.h. */
18377_ACEOF
18378cat confdefs.h >>conftest.$ac_ext
18379cat >>conftest.$ac_ext <<_ACEOF
18380/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018381
John Criswell47fdd832003-07-14 16:52:07 +000018382int
18383main ()
18384{
18385
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018391if { (ac_try="$ac_link"
18392case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395esac
18396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18397 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018399 grep -v '^ *+' conftest.er1 >conftest.err
18400 rm -f conftest.er1
18401 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018403 (exit $ac_status); } &&
18404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18405 { (case "(($ac_try" in
18406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18407 *) ac_try_echo=$ac_try;;
18408esac
18409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18410 (eval "$ac_try") 2>&5
18411 ac_status=$?
18412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18413 (exit $ac_status); }; } &&
18414 { ac_try='test -s conftest$ac_exeext'
18415 { (case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18418esac
18419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_try") 2>&5
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018424
18425aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18426}'`
18427# Check for a 64-bit object if we didn't find anything.
18428if 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; }
18429}'`; fi
18430else
18431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018432sed 's/^/| /' conftest.$ac_ext >&5
18433
Reid Spencera773bd52006-08-04 18:18:08 +000018434
John Criswell47fdd832003-07-14 16:52:07 +000018435fi
Reid Spencera773bd52006-08-04 18:18:08 +000018436
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000018437rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018438 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018439if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18440
18441 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18442 # Warning - without using the other run time loading flags,
18443 # -berok will link without error, but may produce a broken library.
18444 no_undefined_flag_CXX=' ${wl}-bernotok'
18445 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018446 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018447 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018448 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018449 # This is similar to how AIX traditionally builds its shared libraries.
18450 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 +000018451 fi
18452 fi
18453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018454
18455 beos*)
18456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18457 allow_undefined_flag_CXX=unsupported
18458 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18459 # support --undefined. This deserves some investigation. FIXME
18460 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18461 else
18462 ld_shlibs_CXX=no
18463 fi
18464 ;;
18465
John Criswell47fdd832003-07-14 16:52:07 +000018466 chorus*)
18467 case $cc_basename in
18468 *)
18469 # FIXME: insert proper C++ library support
18470 ld_shlibs_CXX=no
18471 ;;
18472 esac
18473 ;;
18474
18475 cygwin* | mingw* | pw32*)
18476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18477 # as there is no search path for DLLs.
18478 hardcode_libdir_flag_spec_CXX='-L$libdir'
18479 allow_undefined_flag_CXX=unsupported
18480 always_export_symbols_CXX=no
18481 enable_shared_with_static_runtimes_CXX=yes
18482
18483 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018484 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 +000018485 # If the export-symbols file already is a .def file (1st line
18486 # is EXPORTS), use it as is; otherwise, prepend...
18487 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18488 cp $export_symbols $output_objdir/$soname.def;
18489 else
18490 echo EXPORTS > $output_objdir/$soname.def;
18491 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018492 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018493 $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 +000018494 else
18495 ld_shlibs_CXX=no
18496 fi
18497 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018498 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018499 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018500 rhapsody* | darwin1.[012])
18501 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18502 ;;
18503 *) # Darwin 1.3 on
18504 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18505 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18506 else
18507 case ${MACOSX_DEPLOYMENT_TARGET} in
18508 10.[012])
18509 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18510 ;;
18511 10.*)
18512 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18513 ;;
18514 esac
18515 fi
18516 ;;
18517 esac
18518 archive_cmds_need_lc_CXX=no
18519 hardcode_direct_CXX=no
18520 hardcode_automatic_CXX=yes
18521 hardcode_shlibpath_var_CXX=unsupported
18522 whole_archive_flag_spec_CXX=''
18523 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018524
Reid Spencer2706f8c2004-09-19 23:53:36 +000018525 if test "$GXX" = yes ; then
18526 lt_int_apple_cc_single_mod=no
18527 output_verbose_link_cmd='echo'
18528 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18529 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018530 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018531 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018532 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 +000018533 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018534 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 +000018535 fi
18536 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018537 # 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 +000018538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018539 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 +000018540 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018541 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 +000018542 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018543 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 +000018544 else
Reid Spencera773bd52006-08-04 18:18:08 +000018545 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018546 xlc*)
18547 output_verbose_link_cmd='echo'
18548 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'
18549 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018550 # 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 +000018551 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}'
18552 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 +000018553 ;;
18554 *)
18555 ld_shlibs_CXX=no
18556 ;;
18557 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018558 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018559 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018560
18561 dgux*)
18562 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018563 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018564 # FIXME: insert proper C++ library support
18565 ld_shlibs_CXX=no
18566 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018567 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018568 # Green Hills C++ Compiler
18569 # FIXME: insert proper C++ library support
18570 ld_shlibs_CXX=no
18571 ;;
18572 *)
18573 # FIXME: insert proper C++ library support
18574 ld_shlibs_CXX=no
18575 ;;
18576 esac
18577 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018578 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018579 # C++ shared libraries reported to be fairly broken before switch to ELF
18580 ld_shlibs_CXX=no
18581 ;;
18582 freebsd-elf*)
18583 archive_cmds_need_lc_CXX=no
18584 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018585 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018586 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18587 # conventions
18588 ld_shlibs_CXX=yes
18589 ;;
18590 gnu*)
18591 ;;
18592 hpux9*)
18593 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18594 hardcode_libdir_separator_CXX=:
18595 export_dynamic_flag_spec_CXX='${wl}-E'
18596 hardcode_direct_CXX=yes
18597 hardcode_minus_L_CXX=yes # Not in the search PATH,
18598 # but as the default
18599 # location of the library.
18600
18601 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018602 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018603 # FIXME: insert proper C++ library support
18604 ld_shlibs_CXX=no
18605 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018606 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018607 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 +000018608 # Commands to make compiler produce verbose output that lists
18609 # what "hidden" libraries, object files and flags are used when
18610 # linking a shared library.
18611 #
18612 # There doesn't appear to be a way to prevent this compiler from
18613 # explicitly linking system object files so we need to strip them
18614 # from the output so that they don't get included in the library
18615 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018616 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 +000018617 ;;
18618 *)
18619 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018620 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 +000018621 else
18622 # FIXME: insert proper C++ library support
18623 ld_shlibs_CXX=no
18624 fi
18625 ;;
18626 esac
18627 ;;
18628 hpux10*|hpux11*)
18629 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018630 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18631 hardcode_libdir_separator_CXX=:
18632
18633 case $host_cpu in
18634 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018635 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018636 ;;
18637 *)
John Criswell47fdd832003-07-14 16:52:07 +000018638 export_dynamic_flag_spec_CXX='${wl}-E'
18639 ;;
18640 esac
18641 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018642 case $host_cpu in
18643 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018644 hardcode_direct_CXX=no
18645 hardcode_shlibpath_var_CXX=no
18646 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018647 *)
18648 hardcode_direct_CXX=yes
18649 hardcode_minus_L_CXX=yes # Not in the search PATH,
18650 # but as the default
18651 # location of the library.
18652 ;;
18653 esac
18654
18655 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018656 CC*)
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 aCC*)
18661 case $host_cpu in
18662 hppa*64*)
18663 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18664 ;;
18665 ia64*)
18666 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 +000018667 ;;
18668 *)
18669 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18670 ;;
18671 esac
18672 # Commands to make compiler produce verbose output that lists
18673 # what "hidden" libraries, object files and flags are used when
18674 # linking a shared library.
18675 #
18676 # There doesn't appear to be a way to prevent this compiler from
18677 # explicitly linking system object files so we need to strip them
18678 # from the output so that they don't get included in the library
18679 # dependencies.
18680 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'
18681 ;;
18682 *)
18683 if test "$GXX" = yes; then
18684 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018685 case $host_cpu in
18686 hppa*64*)
18687 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18688 ;;
18689 ia64*)
18690 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 +000018691 ;;
18692 *)
18693 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'
18694 ;;
18695 esac
18696 fi
18697 else
18698 # FIXME: insert proper C++ library support
18699 ld_shlibs_CXX=no
18700 fi
18701 ;;
18702 esac
18703 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018704 interix3*)
18705 hardcode_direct_CXX=no
18706 hardcode_shlibpath_var_CXX=no
18707 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18708 export_dynamic_flag_spec_CXX='${wl}-E'
18709 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18710 # Instead, shared libraries are loaded at an image base (0x10000000 by
18711 # default) and relocated if they conflict, which is a slow very memory
18712 # consuming and fragmenting process. To avoid this, we pick a random,
18713 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18714 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18715 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'
18716 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'
18717 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018718 irix5* | irix6*)
18719 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018720 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018721 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018722 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 +000018723
18724 # Archives containing C++ object files must be created using
18725 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18726 # necessary to make sure instantiated templates are included
18727 # in the archive.
18728 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18729 ;;
18730 *)
18731 if test "$GXX" = yes; then
18732 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018733 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 +000018734 else
18735 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'
18736 fi
18737 fi
18738 link_all_deplibs_CXX=yes
18739 ;;
18740 esac
18741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18742 hardcode_libdir_separator_CXX=:
18743 ;;
18744 linux*)
18745 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018746 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018747 # Kuck and Associates, Inc. (KAI) C++ Compiler
18748
18749 # KCC will only create a shared library if the output file
18750 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18751 # to its proper name (with version) after linking.
18752 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'
18753 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'
18754 # Commands to make compiler produce verbose output that lists
18755 # what "hidden" libraries, object files and flags are used when
18756 # linking a shared library.
18757 #
18758 # There doesn't appear to be a way to prevent this compiler from
18759 # explicitly linking system object files so we need to strip them
18760 # from the output so that they don't get included in the library
18761 # dependencies.
18762 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'
18763
18764 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18766
18767 # Archives containing C++ object files must be created using
18768 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18769 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18770 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018771 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018772 # Intel C++
18773 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018774 # version 8.0 and above of icpc choke on multiply defined symbols
18775 # if we add $predep_objects and $postdep_objects, however 7.1 and
18776 # earlier do not add the objects themselves.
18777 case `$CC -V 2>&1` in
18778 *"Version 7."*)
18779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18780 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'
18781 ;;
18782 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018783 tmp_idyn=
18784 case $host_cpu in
18785 ia64*) tmp_idyn=' -i_dynamic';;
18786 esac
18787 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18788 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 +000018789 ;;
18790 esac
John Criswell47fdd832003-07-14 16:52:07 +000018791 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018792 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18793 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18794 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18795 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018796 pgCC*)
18797 # Portland Group C++ compiler
18798 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18799 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'
18800
18801 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18802 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18803 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'
18804 ;;
18805 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018806 # Compaq C++
18807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18808 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'
18809
18810 runpath_var=LD_RUN_PATH
18811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812 hardcode_libdir_separator_CXX=:
18813
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18817 #
18818 # There doesn't appear to be a way to prevent this compiler from
18819 # explicitly linking system object files so we need to strip them
18820 # from the output so that they don't get included in the library
18821 # dependencies.
18822 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'
18823 ;;
18824 esac
18825 ;;
18826 lynxos*)
18827 # FIXME: insert proper C++ library support
18828 ld_shlibs_CXX=no
18829 ;;
18830 m88k*)
18831 # FIXME: insert proper C++ library support
18832 ld_shlibs_CXX=no
18833 ;;
18834 mvs*)
18835 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018836 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018837 # FIXME: insert proper C++ library support
18838 ld_shlibs_CXX=no
18839 ;;
18840 *)
18841 # FIXME: insert proper C++ library support
18842 ld_shlibs_CXX=no
18843 ;;
18844 esac
18845 ;;
18846 netbsd*)
18847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18849 wlarc=
18850 hardcode_libdir_flag_spec_CXX='-R$libdir'
18851 hardcode_direct_CXX=yes
18852 hardcode_shlibpath_var_CXX=no
18853 fi
18854 # Workaround some broken pre-1.5 toolchains
18855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18856 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018857 openbsd2*)
18858 # C++ shared libraries are fairly broken
18859 ld_shlibs_CXX=no
18860 ;;
18861 openbsd*)
18862 hardcode_direct_CXX=yes
18863 hardcode_shlibpath_var_CXX=no
18864 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18865 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18866 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18867 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18868 export_dynamic_flag_spec_CXX='${wl}-E'
18869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18870 fi
18871 output_verbose_link_cmd='echo'
18872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018873 osf3*)
18874 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018875 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018876 # Kuck and Associates, Inc. (KAI) C++ Compiler
18877
18878 # KCC will only create a shared library if the output file
18879 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18880 # to its proper name (with version) after linking.
18881 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'
18882
18883 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18884 hardcode_libdir_separator_CXX=:
18885
18886 # Archives containing C++ object files must be created using
18887 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18888 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18889
18890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018891 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018892 # Rational C++ 2.4.1
18893 # FIXME: insert proper C++ library support
18894 ld_shlibs_CXX=no
18895 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018896 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018897 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018898 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 +000018899
18900 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18901 hardcode_libdir_separator_CXX=:
18902
18903 # Commands to make compiler produce verbose output that lists
18904 # what "hidden" libraries, object files and flags are used when
18905 # linking a shared library.
18906 #
18907 # There doesn't appear to be a way to prevent this compiler from
18908 # explicitly linking system object files so we need to strip them
18909 # from the output so that they don't get included in the library
18910 # dependencies.
18911 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'
18912 ;;
18913 *)
18914 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18915 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018916 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 +000018917
18918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18919 hardcode_libdir_separator_CXX=:
18920
18921 # Commands to make compiler produce verbose output that lists
18922 # what "hidden" libraries, object files and flags are used when
18923 # linking a shared library.
18924 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18925
18926 else
18927 # FIXME: insert proper C++ library support
18928 ld_shlibs_CXX=no
18929 fi
18930 ;;
18931 esac
18932 ;;
18933 osf4* | osf5*)
18934 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018935 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018936 # Kuck and Associates, Inc. (KAI) C++ Compiler
18937
18938 # KCC will only create a shared library if the output file
18939 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18940 # to its proper name (with version) after linking.
18941 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'
18942
18943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18944 hardcode_libdir_separator_CXX=:
18945
18946 # Archives containing C++ object files must be created using
18947 # the KAI C++ compiler.
18948 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18949 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018950 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018951 # Rational C++ 2.4.1
18952 # FIXME: insert proper C++ library support
18953 ld_shlibs_CXX=no
18954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018955 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018956 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018957 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 +000018958 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18959 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018960 $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 +000018961 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018962
18963 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18964 hardcode_libdir_separator_CXX=:
18965
18966 # Commands to make compiler produce verbose output that lists
18967 # what "hidden" libraries, object files and flags are used when
18968 # linking a shared library.
18969 #
18970 # There doesn't appear to be a way to prevent this compiler from
18971 # explicitly linking system object files so we need to strip them
18972 # from the output so that they don't get included in the library
18973 # dependencies.
18974 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'
18975 ;;
18976 *)
18977 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18978 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018979 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 +000018980
18981 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18982 hardcode_libdir_separator_CXX=:
18983
18984 # Commands to make compiler produce verbose output that lists
18985 # what "hidden" libraries, object files and flags are used when
18986 # linking a shared library.
18987 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18988
18989 else
18990 # FIXME: insert proper C++ library support
18991 ld_shlibs_CXX=no
18992 fi
18993 ;;
18994 esac
18995 ;;
18996 psos*)
18997 # FIXME: insert proper C++ library support
18998 ld_shlibs_CXX=no
18999 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019000 sunos4*)
19001 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019002 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019003 # Sun C++ 4.x
19004 # FIXME: insert proper C++ library support
19005 ld_shlibs_CXX=no
19006 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019007 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019008 # Lucid
19009 # FIXME: insert proper C++ library support
19010 ld_shlibs_CXX=no
19011 ;;
19012 *)
19013 # FIXME: insert proper C++ library support
19014 ld_shlibs_CXX=no
19015 ;;
19016 esac
19017 ;;
19018 solaris*)
19019 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019020 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019021 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019022 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019023 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019024 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 +000019025 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 +000019026 $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 +000019027
19028 hardcode_libdir_flag_spec_CXX='-R$libdir'
19029 hardcode_shlibpath_var_CXX=no
19030 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019031 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019032 *)
19033 # The C++ compiler is used as linker so we must use $wl
19034 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019035 # linker. We must also pass each convience library through
19036 # to the system linker between allextract/defaultextract.
19037 # The C++ compiler will combine linker options so we
19038 # cannot just pass the convience library names through
19039 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019040 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019041 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 +000019042 ;;
19043 esac
19044 link_all_deplibs_CXX=yes
19045
Reid Spencera773bd52006-08-04 18:18:08 +000019046 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019047
19048 # Archives containing C++ object files must be created using
19049 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19050 # necessary to make sure instantiated templates are included
19051 # in the archive.
19052 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19053 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019054 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019055 # Green Hills C++ Compiler
19056 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19057
19058 # The C++ compiler must be used to create the archive.
19059 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19060 ;;
19061 *)
19062 # GNU C++ compiler with Solaris linker
19063 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19064 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19065 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019066 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 +000019067 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19068 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19069
John Criswell47fdd832003-07-14 16:52:07 +000019070 # Commands to make compiler produce verbose output that lists
19071 # what "hidden" libraries, object files and flags are used when
19072 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019073 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019074 else
19075 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19076 # platform.
19077 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 +000019078 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19079 $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 +000019080
19081 # Commands to make compiler produce verbose output that lists
19082 # what "hidden" libraries, object files and flags are used when
19083 # linking a shared library.
19084 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19085 fi
19086
19087 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19088 fi
19089 ;;
19090 esac
19091 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019092 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19093 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019094 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019095 hardcode_shlibpath_var_CXX=no
19096 runpath_var='LD_RUN_PATH'
19097
19098 case $cc_basename in
19099 CC*)
19100 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19101 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19102 ;;
19103 *)
19104 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19105 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19106 ;;
19107 esac
19108 ;;
19109 sysv5* | sco3.2v5* | sco5v6*)
19110 # Note: We can NOT use -z defs as we might desire, because we do not
19111 # link with -lc, and that would cause any symbols used from libc to
19112 # always be unresolved, which means just about no library would
19113 # ever link correctly. If we're not using GNU ld we use -z text
19114 # though, which does catch some bad symbols but isn't as heavy-handed
19115 # as -z defs.
19116 # For security reasons, it is highly recommended that you always
19117 # use absolute paths for naming shared libraries, and exclude the
19118 # DT_RUNPATH tag from executables and libraries. But doing so
19119 # requires that you compile everything twice, which is a pain.
19120 # So that behaviour is only enabled if SCOABSPATH is set to a
19121 # non-empty value in the environment. Most likely only useful for
19122 # creating official distributions of packages.
19123 # This is a hack until libtool officially supports absolute path
19124 # names for shared libraries.
19125 no_undefined_flag_CXX='${wl}-z,text'
19126 allow_undefined_flag_CXX='${wl}-z,nodefs'
19127 archive_cmds_need_lc_CXX=no
19128 hardcode_shlibpath_var_CXX=no
19129 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19130 hardcode_libdir_separator_CXX=':'
19131 link_all_deplibs_CXX=yes
19132 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19133 runpath_var='LD_RUN_PATH'
19134
19135 case $cc_basename in
19136 CC*)
19137 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19139 ;;
19140 *)
19141 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19142 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19143 ;;
19144 esac
John Criswell47fdd832003-07-14 16:52:07 +000019145 ;;
19146 tandem*)
19147 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019148 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019149 # NonStop-UX NCC 3.20
19150 # FIXME: insert proper C++ library support
19151 ld_shlibs_CXX=no
19152 ;;
19153 *)
19154 # FIXME: insert proper C++ library support
19155 ld_shlibs_CXX=no
19156 ;;
19157 esac
19158 ;;
19159 vxworks*)
19160 # FIXME: insert proper C++ library support
19161 ld_shlibs_CXX=no
19162 ;;
19163 *)
19164 # FIXME: insert proper C++ library support
19165 ld_shlibs_CXX=no
19166 ;;
19167esac
Reid Spencera773bd52006-08-04 18:18:08 +000019168{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19169echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019170test "$ld_shlibs_CXX" = no && can_build_shared=no
19171
19172GCC_CXX="$GXX"
19173LD_CXX="$LD"
19174
John Criswell47fdd832003-07-14 16:52:07 +000019175
19176cat > conftest.$ac_ext <<EOF
19177class Foo
19178{
19179public:
19180 Foo (void) { a = 0; }
19181private:
19182 int a;
19183};
19184EOF
19185
19186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; then
19191 # Parse the compiler output and extract the necessary
19192 # objects, libraries and library flags.
19193
19194 # Sentinel used to keep track of whether or not we are before
19195 # the conftest object file.
19196 pre_test_object_deps_done=no
19197
19198 # The `*' in the case matches for architectures that use `case' in
19199 # $output_verbose_cmd can trigger glob expansion during the loop
19200 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019201 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019202
19203 for p in `eval $output_verbose_link_cmd`; do
19204 case $p in
19205
19206 -L* | -R* | -l*)
19207 # Some compilers place space between "-{L,R}" and the path.
19208 # Remove the space.
19209 if test $p = "-L" \
19210 || test $p = "-R"; then
19211 prev=$p
19212 continue
19213 else
19214 prev=
19215 fi
19216
19217 if test "$pre_test_object_deps_done" = no; then
19218 case $p in
19219 -L* | -R*)
19220 # Internal compiler library paths should come after those
19221 # provided the user. The postdeps already come after the
19222 # user supplied libs so there is no need to process them.
19223 if test -z "$compiler_lib_search_path_CXX"; then
19224 compiler_lib_search_path_CXX="${prev}${p}"
19225 else
19226 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19227 fi
19228 ;;
19229 # The "-l" case would never come before the object being
19230 # linked, so don't bother handling this case.
19231 esac
19232 else
19233 if test -z "$postdeps_CXX"; then
19234 postdeps_CXX="${prev}${p}"
19235 else
19236 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19237 fi
19238 fi
19239 ;;
19240
19241 *.$objext)
19242 # This assumes that the test object file only shows up
19243 # once in the compiler output.
19244 if test "$p" = "conftest.$objext"; then
19245 pre_test_object_deps_done=yes
19246 continue
19247 fi
19248
19249 if test "$pre_test_object_deps_done" = no; then
19250 if test -z "$predep_objects_CXX"; then
19251 predep_objects_CXX="$p"
19252 else
19253 predep_objects_CXX="$predep_objects_CXX $p"
19254 fi
19255 else
19256 if test -z "$postdep_objects_CXX"; then
19257 postdep_objects_CXX="$p"
19258 else
19259 postdep_objects_CXX="$postdep_objects_CXX $p"
19260 fi
19261 fi
19262 ;;
19263
19264 *) ;; # Ignore the rest.
19265
19266 esac
19267 done
19268
19269 # Clean up.
19270 rm -f a.out a.exe
19271else
19272 echo "libtool.m4: error: problem compiling CXX test program"
19273fi
19274
19275$rm -f confest.$objext
19276
Reid Spencera773bd52006-08-04 18:18:08 +000019277# PORTME: override above test on systems where it is broken
19278case $host_os in
19279interix3*)
19280 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19281 # hack all around it, let's just trust "g++" to DTRT.
19282 predep_objects_CXX=
19283 postdep_objects_CXX=
19284 postdeps_CXX=
19285 ;;
19286
19287solaris*)
19288 case $cc_basename in
19289 CC*)
19290 # Adding this requires a known-good setup of shared libraries for
19291 # Sun compiler versions before 5.6, else PIC objects from an old
19292 # archive will be linked into the output, leading to subtle bugs.
19293 postdeps_CXX='-lCstd -lCrun'
19294 ;;
19295 esac
19296 ;;
19297esac
19298
19299
John Criswell47fdd832003-07-14 16:52:07 +000019300case " $postdeps_CXX " in
19301*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19302esac
19303
19304lt_prog_compiler_wl_CXX=
19305lt_prog_compiler_pic_CXX=
19306lt_prog_compiler_static_CXX=
19307
Reid Spencera773bd52006-08-04 18:18:08 +000019308{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19309echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019310
19311 # C++ specific cases for pic, static, wl, etc.
19312 if test "$GXX" = yes; then
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_static_CXX='-static'
19315
19316 case $host_os in
19317 aix*)
19318 # All AIX code is PIC.
19319 if test "$host_cpu" = ia64; then
19320 # AIX 5 now supports IA64 processor
19321 lt_prog_compiler_static_CXX='-Bstatic'
19322 fi
19323 ;;
19324 amigaos*)
19325 # FIXME: we need at least 68020 code to build shared libraries, but
19326 # adding the `-m68020' flag to GCC prevents building anything better,
19327 # like `-m68040'.
19328 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19329 ;;
19330 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19331 # PIC is the default for these OSes.
19332 ;;
19333 mingw* | os2* | pw32*)
19334 # This hack is so that the source file can tell whether it is being
19335 # built for inclusion in a dll (and should export symbols for example).
19336 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19337 ;;
19338 darwin* | rhapsody*)
19339 # PIC is the default on this platform
19340 # Common symbols not allowed in MH_DYLIB files
19341 lt_prog_compiler_pic_CXX='-fno-common'
19342 ;;
19343 *djgpp*)
19344 # DJGPP does not support shared libraries at all
19345 lt_prog_compiler_pic_CXX=
19346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019347 interix3*)
19348 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19349 # Instead, we relocate shared libraries at runtime.
19350 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019351 sysv4*MP*)
19352 if test -d /usr/nec; then
19353 lt_prog_compiler_pic_CXX=-Kconform_pic
19354 fi
19355 ;;
19356 hpux*)
19357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19358 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019359 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019360 hppa*64*|ia64*)
19361 ;;
19362 *)
19363 lt_prog_compiler_pic_CXX='-fPIC'
19364 ;;
19365 esac
19366 ;;
19367 *)
19368 lt_prog_compiler_pic_CXX='-fPIC'
19369 ;;
19370 esac
19371 else
19372 case $host_os in
19373 aix4* | aix5*)
19374 # All AIX code is PIC.
19375 if test "$host_cpu" = ia64; then
19376 # AIX 5 now supports IA64 processor
19377 lt_prog_compiler_static_CXX='-Bstatic'
19378 else
19379 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19380 fi
19381 ;;
19382 chorus*)
19383 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019384 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019385 # Green Hills C++ Compiler
19386 # _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"
19387 ;;
19388 esac
19389 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019390 darwin*)
19391 # PIC is the default on this platform
19392 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019393 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019394 xlc*)
19395 lt_prog_compiler_pic_CXX='-qnocommon'
19396 lt_prog_compiler_wl_CXX='-Wl,'
19397 ;;
19398 esac
19399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019400 dgux*)
19401 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019402 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019403 lt_prog_compiler_pic_CXX='-KPIC'
19404 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019405 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019406 # Green Hills C++ Compiler
19407 lt_prog_compiler_pic_CXX='-pic'
19408 ;;
19409 *)
19410 ;;
19411 esac
19412 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019413 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019414 # FreeBSD uses GNU C++
19415 ;;
19416 hpux9* | hpux10* | hpux11*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019421 if test "$host_cpu" != ia64; then
19422 lt_prog_compiler_pic_CXX='+Z'
19423 fi
19424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019425 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019426 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19428 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019429 hppa*64*|ia64*)
19430 # +Z the default
19431 ;;
19432 *)
19433 lt_prog_compiler_pic_CXX='+Z'
19434 ;;
19435 esac
19436 ;;
19437 *)
19438 ;;
19439 esac
19440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019441 interix*)
19442 # This is c89, which is MS Visual C++ (no shared libs)
19443 # Anyone wants to do a port?
19444 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019445 irix5* | irix6* | nonstopux*)
19446 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019447 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019448 lt_prog_compiler_wl_CXX='-Wl,'
19449 lt_prog_compiler_static_CXX='-non_shared'
19450 # CC pic flag -KPIC is the default.
19451 ;;
19452 *)
19453 ;;
19454 esac
19455 ;;
19456 linux*)
19457 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019458 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019459 # KAI C++ Compiler
19460 lt_prog_compiler_wl_CXX='--backend -Wl,'
19461 lt_prog_compiler_pic_CXX='-fPIC'
19462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019463 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019464 # Intel C++
19465 lt_prog_compiler_wl_CXX='-Wl,'
19466 lt_prog_compiler_pic_CXX='-KPIC'
19467 lt_prog_compiler_static_CXX='-static'
19468 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019469 pgCC*)
19470 # Portland Group C++ compiler.
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 lt_prog_compiler_pic_CXX='-fpic'
19473 lt_prog_compiler_static_CXX='-Bstatic'
19474 ;;
19475 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019476 # Compaq C++
19477 # Make sure the PIC flag is empty. It appears that all Alpha
19478 # Linux and Compaq Tru64 Unix objects are PIC.
19479 lt_prog_compiler_pic_CXX=
19480 lt_prog_compiler_static_CXX='-non_shared'
19481 ;;
19482 *)
19483 ;;
19484 esac
19485 ;;
19486 lynxos*)
19487 ;;
19488 m88k*)
19489 ;;
19490 mvs*)
19491 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019492 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019493 lt_prog_compiler_pic_CXX='-W c,exportall'
19494 ;;
19495 *)
19496 ;;
19497 esac
19498 ;;
19499 netbsd*)
19500 ;;
19501 osf3* | osf4* | osf5*)
19502 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019503 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019504 lt_prog_compiler_wl_CXX='--backend -Wl,'
19505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019506 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019507 # Rational C++ 2.4.1
19508 lt_prog_compiler_pic_CXX='-pic'
19509 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019510 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019511 # Digital/Compaq C++
19512 lt_prog_compiler_wl_CXX='-Wl,'
19513 # Make sure the PIC flag is empty. It appears that all Alpha
19514 # Linux and Compaq Tru64 Unix objects are PIC.
19515 lt_prog_compiler_pic_CXX=
19516 lt_prog_compiler_static_CXX='-non_shared'
19517 ;;
19518 *)
19519 ;;
19520 esac
19521 ;;
19522 psos*)
19523 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019524 solaris*)
19525 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019526 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019527 # Sun C++ 4.2, 5.x and Centerline C++
19528 lt_prog_compiler_pic_CXX='-KPIC'
19529 lt_prog_compiler_static_CXX='-Bstatic'
19530 lt_prog_compiler_wl_CXX='-Qoption ld '
19531 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019532 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019533 # Green Hills C++ Compiler
19534 lt_prog_compiler_pic_CXX='-PIC'
19535 ;;
19536 *)
19537 ;;
19538 esac
19539 ;;
19540 sunos4*)
19541 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019542 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019543 # Sun C++ 4.x
19544 lt_prog_compiler_pic_CXX='-pic'
19545 lt_prog_compiler_static_CXX='-Bstatic'
19546 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019547 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019548 # Lucid
19549 lt_prog_compiler_pic_CXX='-pic'
19550 ;;
19551 *)
19552 ;;
19553 esac
19554 ;;
19555 tandem*)
19556 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019557 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019558 # NonStop-UX NCC 3.20
19559 lt_prog_compiler_pic_CXX='-KPIC'
19560 ;;
19561 *)
19562 ;;
19563 esac
19564 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19566 case $cc_basename in
19567 CC*)
19568 lt_prog_compiler_wl_CXX='-Wl,'
19569 lt_prog_compiler_pic_CXX='-KPIC'
19570 lt_prog_compiler_static_CXX='-Bstatic'
19571 ;;
19572 esac
John Criswell47fdd832003-07-14 16:52:07 +000019573 ;;
19574 vxworks*)
19575 ;;
19576 *)
19577 lt_prog_compiler_can_build_shared_CXX=no
19578 ;;
19579 esac
19580 fi
19581
Reid Spencera773bd52006-08-04 18:18:08 +000019582{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19583echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019584
19585#
19586# Check to make sure the PIC flag actually works.
19587#
19588if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019589
Reid Spencera773bd52006-08-04 18:18:08 +000019590{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19591echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019592if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594else
19595 lt_prog_compiler_pic_works_CXX=no
19596 ac_outfile=conftest.$ac_objext
19597 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19599 # Insert the option either (1) after the last *FLAGS variable, or
19600 # (2) before a word containing "conftest.", or (3) at the end.
19601 # Note that $ac_compile itself does not contain backslashes and begins
19602 # with a dollar sign (not a hyphen), so the echo should work correctly.
19603 # The option is referenced via a variable to avoid confusing sed.
19604 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19607 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019608 (eval echo "\"\$as_me:19608: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019609 (eval "$lt_compile" 2>conftest.err)
19610 ac_status=$?
19611 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019612 echo "$as_me:19612: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019613 if (exit $ac_status) && test -s "$ac_outfile"; then
19614 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019615 # So say no if there are warnings other than the usual output.
19616 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019619 lt_prog_compiler_pic_works_CXX=yes
19620 fi
19621 fi
19622 $rm conftest*
19623
19624fi
Reid Spencera773bd52006-08-04 18:18:08 +000019625{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19626echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019627
19628if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19629 case $lt_prog_compiler_pic_CXX in
19630 "" | " "*) ;;
19631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19632 esac
19633else
19634 lt_prog_compiler_pic_CXX=
19635 lt_prog_compiler_can_build_shared_CXX=no
19636fi
19637
19638fi
Reid Spencera773bd52006-08-04 18:18:08 +000019639case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019640 # For platforms which do not support PIC, -DPIC is meaningless:
19641 *djgpp*)
19642 lt_prog_compiler_pic_CXX=
19643 ;;
19644 *)
19645 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19646 ;;
19647esac
19648
Reid Spencera773bd52006-08-04 18:18:08 +000019649#
19650# Check to make sure the static flag actually works.
19651#
19652wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19653{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19654echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19655if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658 lt_prog_compiler_static_works_CXX=no
19659 save_LDFLAGS="$LDFLAGS"
19660 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19661 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19663 # The linker can only warn and ignore the option if not recognized
19664 # So say no if there are warnings
19665 if test -s conftest.err; then
19666 # Append any errors to the config.log.
19667 cat conftest.err 1>&5
19668 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19670 if diff conftest.exp conftest.er2 >/dev/null; then
19671 lt_prog_compiler_static_works_CXX=yes
19672 fi
19673 else
19674 lt_prog_compiler_static_works_CXX=yes
19675 fi
19676 fi
19677 $rm conftest*
19678 LDFLAGS="$save_LDFLAGS"
19679
19680fi
19681{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19682echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19683
19684if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19685 :
19686else
19687 lt_prog_compiler_static_CXX=
19688fi
19689
19690
19691{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19692echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019693if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695else
19696 lt_cv_prog_compiler_c_o_CXX=no
19697 $rm -r conftest 2>/dev/null
19698 mkdir conftest
19699 cd conftest
19700 mkdir out
19701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19702
John Criswell47fdd832003-07-14 16:52:07 +000019703 lt_compiler_flag="-o out/conftest2.$ac_objext"
19704 # Insert the option either (1) after the last *FLAGS variable, or
19705 # (2) before a word containing "conftest.", or (3) at the end.
19706 # Note that $ac_compile itself does not contain backslashes and begins
19707 # with a dollar sign (not a hyphen), so the echo should work correctly.
19708 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19711 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019712 (eval echo "\"\$as_me:19712: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019713 (eval "$lt_compile" 2>out/conftest.err)
19714 ac_status=$?
19715 cat out/conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000019716 echo "$as_me:19716: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019717 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19718 then
19719 # The compiler can only warn and ignore the option if not recognized
19720 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019721 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19722 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19723 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019724 lt_cv_prog_compiler_c_o_CXX=yes
19725 fi
19726 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019727 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019728 $rm conftest*
19729 # SGI C++ compiler will create directory out/ii_files/ for
19730 # template instantiation
19731 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19732 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019733 cd ..
19734 rmdir conftest
19735 $rm conftest*
19736
19737fi
Reid Spencera773bd52006-08-04 18:18:08 +000019738{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19739echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019740
19741
19742hard_links="nottested"
19743if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19744 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019745 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19746echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019747 hard_links=yes
19748 $rm conftest*
19749 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19750 touch conftest.a
19751 ln conftest.a conftest.b 2>&5 || hard_links=no
19752 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019753 { echo "$as_me:$LINENO: result: $hard_links" >&5
19754echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019755 if test "$hard_links" = no; then
19756 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19757echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19758 need_locks=warn
19759 fi
19760else
19761 need_locks=no
19762fi
19763
Reid Spencera773bd52006-08-04 18:18:08 +000019764{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19765echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019766
19767 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19768 case $host_os in
19769 aix4* | aix5*)
19770 # If we're using GNU nm, then we don't want the "-C" option.
19771 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19772 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19773 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'
19774 else
19775 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'
19776 fi
19777 ;;
19778 pw32*)
19779 export_symbols_cmds_CXX="$ltdll_cmds"
19780 ;;
19781 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019782 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 +000019783 ;;
19784 *)
19785 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19786 ;;
19787 esac
19788
Reid Spencera773bd52006-08-04 18:18:08 +000019789{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19790echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019791test "$ld_shlibs_CXX" = no && can_build_shared=no
19792
John Criswell47fdd832003-07-14 16:52:07 +000019793#
19794# Do we need to explicitly link libc?
19795#
19796case "x$archive_cmds_need_lc_CXX" in
19797x|xyes)
19798 # Assume -lc should be added
19799 archive_cmds_need_lc_CXX=yes
19800
19801 if test "$enable_shared" = yes && test "$GCC" = yes; then
19802 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019803 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019804 # FIXME: we may have to deal with multi-command sequences.
19805 ;;
19806 '$CC '*)
19807 # Test whether the compiler implicitly links with -lc since on some
19808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19809 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019810 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19811echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019812 $rm conftest*
19813 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19814
19815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19816 (eval $ac_compile) 2>&5
19817 ac_status=$?
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } 2>conftest.err; then
19820 soname=conftest
19821 lib=conftest
19822 libobjs=conftest.$ac_objext
19823 deplibs=
19824 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019825 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019826 compiler_flags=-v
19827 linker_flags=-v
19828 verstring=
19829 output_objdir=.
19830 libname=conftest
19831 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19832 allow_undefined_flag_CXX=
19833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19834 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }
19838 then
19839 archive_cmds_need_lc_CXX=no
19840 else
19841 archive_cmds_need_lc_CXX=yes
19842 fi
19843 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19844 else
19845 cat conftest.err 1>&5
19846 fi
19847 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019848 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19849echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019850 ;;
19851 esac
19852 fi
19853 ;;
19854esac
19855
Reid Spencera773bd52006-08-04 18:18:08 +000019856{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19857echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019858library_names_spec=
19859libname_spec='lib$name'
19860soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019861shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019862postinstall_cmds=
19863postuninstall_cmds=
19864finish_cmds=
19865finish_eval=
19866shlibpath_var=
19867shlibpath_overrides_runpath=unknown
19868version_type=none
19869dynamic_linker="$host_os ld.so"
19870sys_lib_dlsearch_path_spec="/lib /usr/lib"
19871if test "$GCC" = yes; then
19872 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19873 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19874 # if the path contains ";" then we assume it to be the separator
19875 # otherwise default to the standard path separator (i.e. ":") - it is
19876 # assumed that no part of a normal pathname contains ";" but that should
19877 # okay in the real world where ";" in dirpaths is itself problematic.
19878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19879 else
19880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19881 fi
19882else
19883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19884fi
19885need_lib_prefix=unknown
19886hardcode_into_libs=no
19887
19888# when you set need_version to no, make sure it does not cause -set_version
19889# flags to be left without arguments
19890need_version=unknown
19891
19892case $host_os in
19893aix3*)
19894 version_type=linux
19895 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19896 shlibpath_var=LIBPATH
19897
19898 # AIX 3 has no versioning support, so we append a major version to the name.
19899 soname_spec='${libname}${release}${shared_ext}$major'
19900 ;;
19901
19902aix4* | aix5*)
19903 version_type=linux
19904 need_lib_prefix=no
19905 need_version=no
19906 hardcode_into_libs=yes
19907 if test "$host_cpu" = ia64; then
19908 # AIX 5 supports IA64
19909 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19910 shlibpath_var=LD_LIBRARY_PATH
19911 else
19912 # With GCC up to 2.95.x, collect2 would create an import file
19913 # for dependence libraries. The import file would start with
19914 # the line `#! .'. This would cause the generated library to
19915 # depend on `.', always an invalid library. This was fixed in
19916 # development snapshots of GCC prior to 3.0.
19917 case $host_os in
19918 aix4 | aix4.[01] | aix4.[01].*)
19919 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19920 echo ' yes '
19921 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19922 :
19923 else
19924 can_build_shared=no
19925 fi
19926 ;;
19927 esac
19928 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19929 # soname into executable. Probably we can add versioning support to
19930 # collect2, so additional links can be useful in future.
19931 if test "$aix_use_runtimelinking" = yes; then
19932 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19933 # instead of lib<name>.a to let people know that these are not
19934 # typical AIX shared libraries.
19935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19936 else
19937 # We preserve .a as extension for shared libraries through AIX4.2
19938 # and later when we are not doing run time linking.
19939 library_names_spec='${libname}${release}.a $libname.a'
19940 soname_spec='${libname}${release}${shared_ext}$major'
19941 fi
19942 shlibpath_var=LIBPATH
19943 fi
19944 ;;
19945
19946amigaos*)
19947 library_names_spec='$libname.ixlibrary $libname.a'
19948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019949 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 +000019950 ;;
19951
19952beos*)
19953 library_names_spec='${libname}${shared_ext}'
19954 dynamic_linker="$host_os ld.so"
19955 shlibpath_var=LIBRARY_PATH
19956 ;;
19957
Reid Spencer2706f8c2004-09-19 23:53:36 +000019958bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019959 version_type=linux
19960 need_version=no
19961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19962 soname_spec='${libname}${release}${shared_ext}$major'
19963 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19966 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19967 # the default ld.so.conf also contains /usr/contrib/lib and
19968 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19969 # libtool to hard-code these into programs
19970 ;;
19971
19972cygwin* | mingw* | pw32*)
19973 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019974 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019975 need_version=no
19976 need_lib_prefix=no
19977
19978 case $GCC,$host_os in
19979 yes,cygwin* | yes,mingw* | yes,pw32*)
19980 library_names_spec='$libname.dll.a'
19981 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019982 postinstall_cmds='base_file=`basename \${file}`~
19983 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19984 dldir=$destdir/`dirname \$dlpath`~
19985 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019986 $install_prog $dir/$dlname \$dldir/$dlname~
19987 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019988 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19989 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019990 $rm \$dlpath'
19991 shlibpath_overrides_runpath=yes
19992
19993 case $host_os in
19994 cygwin*)
19995 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19996 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 +000019997 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019998 ;;
19999 mingw*)
20000 # MinGW DLLs use traditional 'lib' prefix
20001 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20002 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20003 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20004 # It is most probably a Windows format PATH printed by
20005 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20006 # path with ; separators, and with drive letters. We can handle the
20007 # drive letters (cygwin fileutils understands them), so leave them,
20008 # especially as we might pass files found there to a mingw objdump,
20009 # which wouldn't understand a cygwinified path. Ahh.
20010 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20011 else
20012 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20013 fi
20014 ;;
20015 pw32*)
20016 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020017 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 +000020018 ;;
20019 esac
20020 ;;
20021
20022 *)
20023 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20024 ;;
20025 esac
20026 dynamic_linker='Win32 ld.exe'
20027 # FIXME: first we should search . and the directory the executable is in
20028 shlibpath_var=PATH
20029 ;;
20030
20031darwin* | rhapsody*)
20032 dynamic_linker="$host_os dyld"
20033 version_type=darwin
20034 need_lib_prefix=no
20035 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020036 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020037 soname_spec='${libname}${release}${major}$shared_ext'
20038 shlibpath_overrides_runpath=yes
20039 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020040 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020041 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020042 if test "$GCC" = yes; then
20043 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"`
20044 else
20045 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020046 fi
20047 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20048 ;;
20049
20050dgux*)
20051 version_type=linux
20052 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
20057 ;;
20058
20059freebsd1*)
20060 dynamic_linker=no
20061 ;;
20062
Reid Spencer2706f8c2004-09-19 23:53:36 +000020063kfreebsd*-gnu)
20064 version_type=linux
20065 need_lib_prefix=no
20066 need_version=no
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 shlibpath_var=LD_LIBRARY_PATH
20070 shlibpath_overrides_runpath=no
20071 hardcode_into_libs=yes
20072 dynamic_linker='GNU ld.so'
20073 ;;
20074
Reid Spencera773bd52006-08-04 18:18:08 +000020075freebsd* | dragonfly*)
20076 # DragonFly does not have aout. When/if they implement a new
20077 # versioning mechanism, adjust this.
20078 if test -x /usr/bin/objformat; then
20079 objformat=`/usr/bin/objformat`
20080 else
20081 case $host_os in
20082 freebsd[123]*) objformat=aout ;;
20083 *) objformat=elf ;;
20084 esac
20085 fi
John Criswell47fdd832003-07-14 16:52:07 +000020086 version_type=freebsd-$objformat
20087 case $version_type in
20088 freebsd-elf*)
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 need_version=no
20091 need_lib_prefix=no
20092 ;;
20093 freebsd-*)
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20095 need_version=yes
20096 ;;
20097 esac
20098 shlibpath_var=LD_LIBRARY_PATH
20099 case $host_os in
20100 freebsd2*)
20101 shlibpath_overrides_runpath=yes
20102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020103 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020104 shlibpath_overrides_runpath=yes
20105 hardcode_into_libs=yes
20106 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20111 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020112 freebsd*) # from 4.6 on
20113 shlibpath_overrides_runpath=yes
20114 hardcode_into_libs=yes
20115 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020116 esac
20117 ;;
20118
20119gnu*)
20120 version_type=linux
20121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
20126 hardcode_into_libs=yes
20127 ;;
20128
20129hpux9* | hpux10* | hpux11*)
20130 # Give a soname corresponding to the major version so that dld.sl refuses to
20131 # link against other versions.
20132 version_type=sunos
20133 need_lib_prefix=no
20134 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020135 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020136 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020137 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020138 hardcode_into_libs=yes
20139 dynamic_linker="$host_os dld.so"
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 if test "X$HPUX_IA64_MODE" = X32; then
20145 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20146 else
20147 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20148 fi
20149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20150 ;;
20151 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020153 hardcode_into_libs=yes
20154 dynamic_linker="$host_os dld.sl"
20155 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20160 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20161 ;;
20162 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020163 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020164 dynamic_linker="$host_os dld.sl"
20165 shlibpath_var=SHLIB_PATH
20166 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 soname_spec='${libname}${release}${shared_ext}$major'
20169 ;;
20170 esac
20171 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20172 postinstall_cmds='chmod 555 $lib'
20173 ;;
20174
Reid Spencera773bd52006-08-04 18:18:08 +000020175interix3*)
20176 version_type=linux
20177 need_lib_prefix=no
20178 need_version=no
20179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20180 soname_spec='${libname}${release}${shared_ext}$major'
20181 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=no
20184 hardcode_into_libs=yes
20185 ;;
20186
John Criswell47fdd832003-07-14 16:52:07 +000020187irix5* | irix6* | nonstopux*)
20188 case $host_os in
20189 nonstopux*) version_type=nonstopux ;;
20190 *)
20191 if test "$lt_cv_prog_gnu_ld" = yes; then
20192 version_type=linux
20193 else
20194 version_type=irix
20195 fi ;;
20196 esac
20197 need_lib_prefix=no
20198 need_version=no
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20201 case $host_os in
20202 irix5* | nonstopux*)
20203 libsuff= shlibsuff=
20204 ;;
20205 *)
20206 case $LD in # libtool.m4 will add one of these switches to LD
20207 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20208 libsuff= shlibsuff= libmagic=32-bit;;
20209 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20210 libsuff=32 shlibsuff=N32 libmagic=N32;;
20211 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20212 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20213 *) libsuff= shlibsuff= libmagic=never-match;;
20214 esac
20215 ;;
20216 esac
20217 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20218 shlibpath_overrides_runpath=no
20219 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20220 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20221 hardcode_into_libs=yes
20222 ;;
20223
20224# No shared lib support for Linux oldld, aout, or coff.
20225linux*oldld* | linux*aout* | linux*coff*)
20226 dynamic_linker=no
20227 ;;
20228
20229# This must be Linux ELF.
20230linux*)
20231 version_type=linux
20232 need_lib_prefix=no
20233 need_version=no
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20237 shlibpath_var=LD_LIBRARY_PATH
20238 shlibpath_overrides_runpath=no
20239 # This implies no fast_install, which is unacceptable.
20240 # Some rework will be needed to allow for fast_install
20241 # before this can be enabled.
20242 hardcode_into_libs=yes
20243
Reid Spencer2706f8c2004-09-19 23:53:36 +000020244 # Append ld.so.conf contents to the search path
20245 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020246 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 +000020247 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20248 fi
20249
John Criswell47fdd832003-07-14 16:52:07 +000020250 # We used to test for /lib/ld.so.1 and disable shared libraries on
20251 # powerpc, because MkLinux only supported shared libraries with the
20252 # GNU dynamic linker. Since this was broken with cross compilers,
20253 # most powerpc-linux boxes support dynamic linking these days and
20254 # people can always --disable-shared, the test was removed, and we
20255 # assume the GNU/Linux dynamic linker is in use.
20256 dynamic_linker='GNU/Linux ld.so'
20257 ;;
20258
Reid Spencer2706f8c2004-09-19 23:53:36 +000020259knetbsd*-gnu)
20260 version_type=linux
20261 need_lib_prefix=no
20262 need_version=no
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20264 soname_spec='${libname}${release}${shared_ext}$major'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 shlibpath_overrides_runpath=no
20267 hardcode_into_libs=yes
20268 dynamic_linker='GNU ld.so'
20269 ;;
20270
John Criswell47fdd832003-07-14 16:52:07 +000020271netbsd*)
20272 version_type=sunos
20273 need_lib_prefix=no
20274 need_version=no
20275 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20277 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20278 dynamic_linker='NetBSD (a.out) ld.so'
20279 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020281 soname_spec='${libname}${release}${shared_ext}$major'
20282 dynamic_linker='NetBSD ld.elf_so'
20283 fi
20284 shlibpath_var=LD_LIBRARY_PATH
20285 shlibpath_overrides_runpath=yes
20286 hardcode_into_libs=yes
20287 ;;
20288
20289newsos6)
20290 version_type=linux
20291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 shlibpath_overrides_runpath=yes
20294 ;;
20295
Reid Spencer2706f8c2004-09-19 23:53:36 +000020296nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020297 version_type=linux
20298 need_lib_prefix=no
20299 need_version=no
20300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20301 soname_spec='${libname}${release}${shared_ext}$major'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=yes
20304 ;;
20305
20306openbsd*)
20307 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020308 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020309 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020310 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20311 case $host_os in
20312 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20313 *) need_version=no ;;
20314 esac
John Criswell47fdd832003-07-14 16:52:07 +000020315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20319 case $host_os in
20320 openbsd2.[89] | openbsd2.[89].*)
20321 shlibpath_overrides_runpath=no
20322 ;;
20323 *)
20324 shlibpath_overrides_runpath=yes
20325 ;;
20326 esac
20327 else
20328 shlibpath_overrides_runpath=yes
20329 fi
20330 ;;
20331
20332os2*)
20333 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020334 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020335 need_lib_prefix=no
20336 library_names_spec='$libname${shared_ext} $libname.a'
20337 dynamic_linker='OS/2 ld.exe'
20338 shlibpath_var=LIBPATH
20339 ;;
20340
20341osf3* | osf4* | osf5*)
20342 version_type=osf
20343 need_lib_prefix=no
20344 need_version=no
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20349 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20350 ;;
20351
John Criswell47fdd832003-07-14 16:52:07 +000020352solaris*)
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=yes
20360 hardcode_into_libs=yes
20361 # ldd complains unless libraries are executable
20362 postinstall_cmds='chmod +x $lib'
20363 ;;
20364
20365sunos4*)
20366 version_type=sunos
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20368 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 shlibpath_overrides_runpath=yes
20371 if test "$with_gnu_ld" = yes; then
20372 need_lib_prefix=no
20373 fi
20374 need_version=yes
20375 ;;
20376
Reid Spencera773bd52006-08-04 18:18:08 +000020377sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020378 version_type=linux
20379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20380 soname_spec='${libname}${release}${shared_ext}$major'
20381 shlibpath_var=LD_LIBRARY_PATH
20382 case $host_vendor in
20383 sni)
20384 shlibpath_overrides_runpath=no
20385 need_lib_prefix=no
20386 export_dynamic_flag_spec='${wl}-Blargedynsym'
20387 runpath_var=LD_RUN_PATH
20388 ;;
20389 siemens)
20390 need_lib_prefix=no
20391 ;;
20392 motorola)
20393 need_lib_prefix=no
20394 need_version=no
20395 shlibpath_overrides_runpath=no
20396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20397 ;;
20398 esac
20399 ;;
20400
20401sysv4*MP*)
20402 if test -d /usr/nec ;then
20403 version_type=linux
20404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20405 soname_spec='$libname${shared_ext}.$major'
20406 shlibpath_var=LD_LIBRARY_PATH
20407 fi
20408 ;;
20409
Reid Spencera773bd52006-08-04 18:18:08 +000020410sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20411 version_type=freebsd-elf
20412 need_lib_prefix=no
20413 need_version=no
20414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20415 soname_spec='${libname}${release}${shared_ext}$major'
20416 shlibpath_var=LD_LIBRARY_PATH
20417 hardcode_into_libs=yes
20418 if test "$with_gnu_ld" = yes; then
20419 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20420 shlibpath_overrides_runpath=no
20421 else
20422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20423 shlibpath_overrides_runpath=yes
20424 case $host_os in
20425 sco3.2v5*)
20426 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20427 ;;
20428 esac
20429 fi
20430 sys_lib_dlsearch_path_spec='/usr/lib'
20431 ;;
20432
John Criswell47fdd832003-07-14 16:52:07 +000020433uts4*)
20434 version_type=linux
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 shlibpath_var=LD_LIBRARY_PATH
20438 ;;
20439
20440*)
20441 dynamic_linker=no
20442 ;;
20443esac
Reid Spencera773bd52006-08-04 18:18:08 +000020444{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20445echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020446test "$dynamic_linker" = no && can_build_shared=no
20447
Reid Spencera773bd52006-08-04 18:18:08 +000020448variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20449if test "$GCC" = yes; then
20450 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20451fi
20452
20453{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20454echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020455hardcode_action_CXX=
20456if test -n "$hardcode_libdir_flag_spec_CXX" || \
20457 test -n "$runpath_var_CXX" || \
20458 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20459
20460 # We can hardcode non-existant directories.
20461 if test "$hardcode_direct_CXX" != no &&
20462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20463 # have to relink, otherwise we might link with an installed library
20464 # when we should be linking with a yet-to-be-installed one
20465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20466 test "$hardcode_minus_L_CXX" != no; then
20467 # Linking always hardcodes the temporary library directory.
20468 hardcode_action_CXX=relink
20469 else
20470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20471 hardcode_action_CXX=immediate
20472 fi
20473else
20474 # We cannot hardcode anything, or else we can only hardcode existing
20475 # directories.
20476 hardcode_action_CXX=unsupported
20477fi
Reid Spencera773bd52006-08-04 18:18:08 +000020478{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20479echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020480
20481if test "$hardcode_action_CXX" = relink; then
20482 # Fast installation is not supported
20483 enable_fast_install=no
20484elif test "$shlibpath_overrides_runpath" = yes ||
20485 test "$enable_shared" = no; then
20486 # Fast installation is not necessary
20487 enable_fast_install=needless
20488fi
20489
John Criswell47fdd832003-07-14 16:52:07 +000020490
20491# The else clause should only fire when bootstrapping the
20492# libtool distribution, otherwise you forgot to ship ltmain.sh
20493# with your package, and you will get complaints that there are
20494# no rules to generate ltmain.sh.
20495if test -f "$ltmain"; then
20496 # See if we are running on zsh, and set the options which allow our commands through
20497 # without removal of \ escapes.
20498 if test -n "${ZSH_VERSION+set}" ; then
20499 setopt NO_GLOB_SUBST
20500 fi
20501 # Now quote all the things that may contain metacharacters while being
20502 # careful not to overquote the AC_SUBSTed values. We take copies of the
20503 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020504 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 +000020505 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020506 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20507 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20508 deplibs_check_method reload_flag reload_cmds need_locks \
20509 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20510 lt_cv_sys_global_symbol_to_c_name_address \
20511 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20512 old_postinstall_cmds old_postuninstall_cmds \
20513 compiler_CXX \
20514 CC_CXX \
20515 LD_CXX \
20516 lt_prog_compiler_wl_CXX \
20517 lt_prog_compiler_pic_CXX \
20518 lt_prog_compiler_static_CXX \
20519 lt_prog_compiler_no_builtin_flag_CXX \
20520 export_dynamic_flag_spec_CXX \
20521 thread_safe_flag_spec_CXX \
20522 whole_archive_flag_spec_CXX \
20523 enable_shared_with_static_runtimes_CXX \
20524 old_archive_cmds_CXX \
20525 old_archive_from_new_cmds_CXX \
20526 predep_objects_CXX \
20527 postdep_objects_CXX \
20528 predeps_CXX \
20529 postdeps_CXX \
20530 compiler_lib_search_path_CXX \
20531 archive_cmds_CXX \
20532 archive_expsym_cmds_CXX \
20533 postinstall_cmds_CXX \
20534 postuninstall_cmds_CXX \
20535 old_archive_from_expsyms_cmds_CXX \
20536 allow_undefined_flag_CXX \
20537 no_undefined_flag_CXX \
20538 export_symbols_cmds_CXX \
20539 hardcode_libdir_flag_spec_CXX \
20540 hardcode_libdir_flag_spec_ld_CXX \
20541 hardcode_libdir_separator_CXX \
20542 hardcode_automatic_CXX \
20543 module_cmds_CXX \
20544 module_expsym_cmds_CXX \
20545 lt_cv_prog_compiler_c_o_CXX \
20546 exclude_expsyms_CXX \
20547 include_expsyms_CXX; do
20548
20549 case $var in
20550 old_archive_cmds_CXX | \
20551 old_archive_from_new_cmds_CXX | \
20552 archive_cmds_CXX | \
20553 archive_expsym_cmds_CXX | \
20554 module_cmds_CXX | \
20555 module_expsym_cmds_CXX | \
20556 old_archive_from_expsyms_cmds_CXX | \
20557 export_symbols_cmds_CXX | \
20558 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20559 postinstall_cmds | postuninstall_cmds | \
20560 old_postinstall_cmds | old_postuninstall_cmds | \
20561 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20562 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 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 +000020564 ;;
20565 *)
20566 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20567 ;;
20568 esac
20569 done
20570
20571 case $lt_echo in
20572 *'\$0 --fallback-echo"')
20573 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20574 ;;
20575 esac
20576
20577cfgfile="$ofile"
20578
20579 cat <<__EOF__ >> "$cfgfile"
20580# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20581
20582# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20583
20584# Shell to use when invoking shell scripts.
20585SHELL=$lt_SHELL
20586
20587# Whether or not to build shared libraries.
20588build_libtool_libs=$enable_shared
20589
20590# Whether or not to build static libraries.
20591build_old_libs=$enable_static
20592
20593# Whether or not to add -lc for building shared libraries.
20594build_libtool_need_lc=$archive_cmds_need_lc_CXX
20595
20596# Whether or not to disallow shared libs when runtime libs are static
20597allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20598
20599# Whether or not to optimize for fast installation.
20600fast_install=$enable_fast_install
20601
20602# The host system.
20603host_alias=$host_alias
20604host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020605host_os=$host_os
20606
20607# The build system.
20608build_alias=$build_alias
20609build=$build
20610build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020611
20612# An echo program that does not interpret backslashes.
20613echo=$lt_echo
20614
20615# The archiver.
20616AR=$lt_AR
20617AR_FLAGS=$lt_AR_FLAGS
20618
20619# A C compiler.
20620LTCC=$lt_LTCC
20621
Reid Spencera773bd52006-08-04 18:18:08 +000020622# LTCC compiler flags.
20623LTCFLAGS=$lt_LTCFLAGS
20624
John Criswell47fdd832003-07-14 16:52:07 +000020625# A language-specific compiler.
20626CC=$lt_compiler_CXX
20627
20628# Is the compiler the GNU C compiler?
20629with_gcc=$GCC_CXX
20630
20631# An ERE matcher.
20632EGREP=$lt_EGREP
20633
20634# The linker used to build libraries.
20635LD=$lt_LD_CXX
20636
20637# Whether we need hard or soft links.
20638LN_S=$lt_LN_S
20639
20640# A BSD-compatible nm program.
20641NM=$lt_NM
20642
20643# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020644STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020645
20646# Used to examine libraries when file_magic_cmd begins "file"
20647MAGIC_CMD=$MAGIC_CMD
20648
20649# Used on cygwin: DLL creation program.
20650DLLTOOL="$DLLTOOL"
20651
20652# Used on cygwin: object dumper.
20653OBJDUMP="$OBJDUMP"
20654
20655# Used on cygwin: assembler.
20656AS="$AS"
20657
20658# The name of the directory that contains temporary libtool files.
20659objdir=$objdir
20660
20661# How to create reloadable object files.
20662reload_flag=$lt_reload_flag
20663reload_cmds=$lt_reload_cmds
20664
20665# How to pass a linker flag through the compiler.
20666wl=$lt_lt_prog_compiler_wl_CXX
20667
20668# Object file suffix (normally "o").
20669objext="$ac_objext"
20670
20671# Old archive suffix (normally "a").
20672libext="$libext"
20673
20674# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020675shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020676
20677# Executable file suffix (normally "").
20678exeext="$exeext"
20679
20680# Additional compiler flags for building library objects.
20681pic_flag=$lt_lt_prog_compiler_pic_CXX
20682pic_mode=$pic_mode
20683
20684# What is the maximum length of a command?
20685max_cmd_len=$lt_cv_sys_max_cmd_len
20686
20687# Does compiler simultaneously support -c and -o options?
20688compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20689
Reid Spencera773bd52006-08-04 18:18:08 +000020690# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020691need_locks=$lt_need_locks
20692
20693# Do we need the lib prefix for modules?
20694need_lib_prefix=$need_lib_prefix
20695
20696# Do we need a version for libraries?
20697need_version=$need_version
20698
20699# Whether dlopen is supported.
20700dlopen_support=$enable_dlopen
20701
20702# Whether dlopen of programs is supported.
20703dlopen_self=$enable_dlopen_self
20704
20705# Whether dlopen of statically linked programs is supported.
20706dlopen_self_static=$enable_dlopen_self_static
20707
20708# Compiler flag to prevent dynamic linking.
20709link_static_flag=$lt_lt_prog_compiler_static_CXX
20710
20711# Compiler flag to turn off builtin functions.
20712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20713
20714# Compiler flag to allow reflexive dlopens.
20715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20716
20717# Compiler flag to generate shared objects directly from archives.
20718whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20719
20720# Compiler flag to generate thread-safe objects.
20721thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20722
20723# Library versioning type.
20724version_type=$version_type
20725
20726# Format of library name prefix.
20727libname_spec=$lt_libname_spec
20728
20729# List of archive names. First name is the real one, the rest are links.
20730# The last name is the one that the linker finds with -lNAME.
20731library_names_spec=$lt_library_names_spec
20732
20733# The coded name of the library, if different from the real name.
20734soname_spec=$lt_soname_spec
20735
20736# Commands used to build and install an old-style archive.
20737RANLIB=$lt_RANLIB
20738old_archive_cmds=$lt_old_archive_cmds_CXX
20739old_postinstall_cmds=$lt_old_postinstall_cmds
20740old_postuninstall_cmds=$lt_old_postuninstall_cmds
20741
20742# Create an old-style archive from a shared archive.
20743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20744
20745# Create a temporary old-style archive to link instead of a shared archive.
20746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20747
20748# Commands used to build and install a shared archive.
20749archive_cmds=$lt_archive_cmds_CXX
20750archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20751postinstall_cmds=$lt_postinstall_cmds
20752postuninstall_cmds=$lt_postuninstall_cmds
20753
20754# Commands used to build a loadable module (assumed same as above if empty)
20755module_cmds=$lt_module_cmds_CXX
20756module_expsym_cmds=$lt_module_expsym_cmds_CXX
20757
20758# Commands to strip libraries.
20759old_striplib=$lt_old_striplib
20760striplib=$lt_striplib
20761
20762# Dependencies to place before the objects being linked to create a
20763# shared library.
20764predep_objects=$lt_predep_objects_CXX
20765
20766# Dependencies to place after the objects being linked to create a
20767# shared library.
20768postdep_objects=$lt_postdep_objects_CXX
20769
20770# Dependencies to place before the objects being linked to create a
20771# shared library.
20772predeps=$lt_predeps_CXX
20773
20774# Dependencies to place after the objects being linked to create a
20775# shared library.
20776postdeps=$lt_postdeps_CXX
20777
20778# The library search path used internally by the compiler when linking
20779# a shared library.
20780compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20781
20782# Method to check whether dependent libraries are shared objects.
20783deplibs_check_method=$lt_deplibs_check_method
20784
20785# Command to use when deplibs_check_method == file_magic.
20786file_magic_cmd=$lt_file_magic_cmd
20787
20788# Flag that allows shared libraries with undefined symbols to be built.
20789allow_undefined_flag=$lt_allow_undefined_flag_CXX
20790
20791# Flag that forces no undefined symbols.
20792no_undefined_flag=$lt_no_undefined_flag_CXX
20793
20794# Commands used to finish a libtool library installation in a directory.
20795finish_cmds=$lt_finish_cmds
20796
20797# Same as above, but a single script fragment to be evaled but not shown.
20798finish_eval=$lt_finish_eval
20799
20800# Take the output of nm and produce a listing of raw symbols and C names.
20801global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20802
20803# Transform the output of nm in a proper C declaration
20804global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20805
20806# Transform the output of nm in a C name address pair
20807global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20808
20809# This is the shared library runtime path variable.
20810runpath_var=$runpath_var
20811
20812# This is the shared library path variable.
20813shlibpath_var=$shlibpath_var
20814
20815# Is shlibpath searched before the hard-coded library search path?
20816shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20817
20818# How to hardcode a shared library path into an executable.
20819hardcode_action=$hardcode_action_CXX
20820
20821# Whether we should hardcode library paths into libraries.
20822hardcode_into_libs=$hardcode_into_libs
20823
20824# Flag to hardcode \$libdir into a binary during linking.
20825# This must work even if \$libdir does not exist.
20826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20827
20828# If ld is used when linking, flag to hardcode \$libdir into
20829# a binary during linking. This must work even if \$libdir does
20830# not exist.
20831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20832
20833# Whether we need a single -rpath flag with a separated argument.
20834hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20835
20836# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20837# resulting binary.
20838hardcode_direct=$hardcode_direct_CXX
20839
20840# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20841# resulting binary.
20842hardcode_minus_L=$hardcode_minus_L_CXX
20843
20844# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20845# the resulting binary.
20846hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20847
20848# Set to yes if building a shared library automatically hardcodes DIR into the library
20849# and all subsequent libraries and executables linked against it.
20850hardcode_automatic=$hardcode_automatic_CXX
20851
20852# Variables whose values should be saved in libtool wrapper scripts and
20853# restored at relink time.
20854variables_saved_for_relink="$variables_saved_for_relink"
20855
20856# Whether libtool must link a program against all its dependency libraries.
20857link_all_deplibs=$link_all_deplibs_CXX
20858
20859# Compile-time system search path for libraries
20860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20861
20862# Run-time system search path for libraries
20863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20864
20865# Fix the shell variable \$srcfile for the compiler.
20866fix_srcfile_path="$fix_srcfile_path_CXX"
20867
20868# Set to yes if exported symbols are required.
20869always_export_symbols=$always_export_symbols_CXX
20870
20871# The commands to list exported symbols.
20872export_symbols_cmds=$lt_export_symbols_cmds_CXX
20873
20874# The commands to extract the exported symbol list from a shared archive.
20875extract_expsyms_cmds=$lt_extract_expsyms_cmds
20876
20877# Symbols that should not be listed in the preloaded symbols.
20878exclude_expsyms=$lt_exclude_expsyms_CXX
20879
20880# Symbols that must always be exported.
20881include_expsyms=$lt_include_expsyms_CXX
20882
20883# ### END LIBTOOL TAG CONFIG: $tagname
20884
20885__EOF__
20886
20887
20888else
20889 # If there is no Makefile yet, we rely on a make rule to execute
20890 # `config.status --recheck' to rerun these tests and create the
20891 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20893 if test -f "$ltmain_in"; then
20894 test -f Makefile && make "$ltmain"
20895 fi
John Criswell47fdd832003-07-14 16:52:07 +000020896fi
20897
20898
20899ac_ext=c
20900ac_cpp='$CPP $CPPFLAGS'
20901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903ac_compiler_gnu=$ac_cv_c_compiler_gnu
20904
20905CC=$lt_save_CC
20906LDCXX=$LD
20907LD=$lt_save_LD
20908GCC=$lt_save_GCC
20909with_gnu_ldcxx=$with_gnu_ld
20910with_gnu_ld=$lt_save_with_gnu_ld
20911lt_cv_path_LDCXX=$lt_cv_path_LD
20912lt_cv_path_LD=$lt_save_path_LD
20913lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20914lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20915
20916 else
20917 tagname=""
20918 fi
20919 ;;
20920
20921 F77)
20922 if test -n "$F77" && test "X$F77" != "Xno"; then
20923
20924ac_ext=f
20925ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20926ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20927ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20928
20929
20930archive_cmds_need_lc_F77=no
20931allow_undefined_flag_F77=
20932always_export_symbols_F77=no
20933archive_expsym_cmds_F77=
20934export_dynamic_flag_spec_F77=
20935hardcode_direct_F77=no
20936hardcode_libdir_flag_spec_F77=
20937hardcode_libdir_flag_spec_ld_F77=
20938hardcode_libdir_separator_F77=
20939hardcode_minus_L_F77=no
20940hardcode_automatic_F77=no
20941module_cmds_F77=
20942module_expsym_cmds_F77=
20943link_all_deplibs_F77=unknown
20944old_archive_cmds_F77=$old_archive_cmds
20945no_undefined_flag_F77=
20946whole_archive_flag_spec_F77=
20947enable_shared_with_static_runtimes_F77=no
20948
20949# Source file extension for f77 test sources.
20950ac_ext=f
20951
20952# Object file extension for compiled f77 test sources.
20953objext=o
20954objext_F77=$objext
20955
20956# Code to be used in simple compile tests
20957lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20958
20959# Code to be used in simple link tests
20960lt_simple_link_test_code=" program t\n end\n"
20961
20962# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20963
20964# If no C compiler was specified, use CC.
20965LTCC=${LTCC-"$CC"}
20966
Reid Spencera773bd52006-08-04 18:18:08 +000020967# If no C compiler flags were specified, use CFLAGS.
20968LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20969
John Criswell47fdd832003-07-14 16:52:07 +000020970# Allow CC to be a program name with arguments.
20971compiler=$CC
20972
20973
Reid Spencera773bd52006-08-04 18:18:08 +000020974# save warnings/boilerplate of simple test code
20975ac_outfile=conftest.$ac_objext
20976printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20978_lt_compiler_boilerplate=`cat conftest.err`
20979$rm conftest*
20980
20981ac_outfile=conftest.$ac_objext
20982printf "$lt_simple_link_test_code" >conftest.$ac_ext
20983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20984_lt_linker_boilerplate=`cat conftest.err`
20985$rm conftest*
20986
20987
John Criswell47fdd832003-07-14 16:52:07 +000020988# Allow CC to be a program name with arguments.
20989lt_save_CC="$CC"
20990CC=${F77-"f77"}
20991compiler=$CC
20992compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020993for cc_temp in $compiler""; do
20994 case $cc_temp in
20995 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20996 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20997 \-*) ;;
20998 *) break;;
20999 esac
21000done
21001cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021002
John Criswell47fdd832003-07-14 16:52:07 +000021003
Reid Spencera773bd52006-08-04 18:18:08 +000021004{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21005echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21006{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21007echo "${ECHO_T}$can_build_shared" >&6; }
21008
21009{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21010echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021011test "$can_build_shared" = "no" && enable_shared=no
21012
21013# On AIX, shared libraries and static libraries use the same namespace, and
21014# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021015case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021016aix3*)
21017 test "$enable_shared" = yes && enable_static=no
21018 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021019 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021020 postinstall_cmds='$RANLIB $lib'
21021 fi
21022 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021023aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021024 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21025 test "$enable_shared" = yes && enable_static=no
21026 fi
John Criswell47fdd832003-07-14 16:52:07 +000021027 ;;
21028esac
Reid Spencera773bd52006-08-04 18:18:08 +000021029{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21030echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021031
Reid Spencera773bd52006-08-04 18:18:08 +000021032{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21033echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021034# Make sure either enable_shared or enable_static is yes.
21035test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021036{ echo "$as_me:$LINENO: result: $enable_static" >&5
21037echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021038
21039GCC_F77="$G77"
21040LD_F77="$LD"
21041
21042lt_prog_compiler_wl_F77=
21043lt_prog_compiler_pic_F77=
21044lt_prog_compiler_static_F77=
21045
Reid Spencera773bd52006-08-04 18:18:08 +000021046{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21047echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021048
21049 if test "$GCC" = yes; then
21050 lt_prog_compiler_wl_F77='-Wl,'
21051 lt_prog_compiler_static_F77='-static'
21052
21053 case $host_os in
21054 aix*)
21055 # All AIX code is PIC.
21056 if test "$host_cpu" = ia64; then
21057 # AIX 5 now supports IA64 processor
21058 lt_prog_compiler_static_F77='-Bstatic'
21059 fi
21060 ;;
21061
21062 amigaos*)
21063 # FIXME: we need at least 68020 code to build shared libraries, but
21064 # adding the `-m68020' flag to GCC prevents building anything better,
21065 # like `-m68040'.
21066 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21067 ;;
21068
21069 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21070 # PIC is the default for these OSes.
21071 ;;
21072
21073 mingw* | pw32* | os2*)
21074 # This hack is so that the source file can tell whether it is being
21075 # built for inclusion in a dll (and should export symbols for example).
21076 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21077 ;;
21078
21079 darwin* | rhapsody*)
21080 # PIC is the default on this platform
21081 # Common symbols not allowed in MH_DYLIB files
21082 lt_prog_compiler_pic_F77='-fno-common'
21083 ;;
21084
Reid Spencera773bd52006-08-04 18:18:08 +000021085 interix3*)
21086 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21087 # Instead, we relocate shared libraries at runtime.
21088 ;;
21089
John Criswell47fdd832003-07-14 16:52:07 +000021090 msdosdjgpp*)
21091 # Just because we use GCC doesn't mean we suddenly get shared libraries
21092 # on systems that don't support them.
21093 lt_prog_compiler_can_build_shared_F77=no
21094 enable_shared=no
21095 ;;
21096
21097 sysv4*MP*)
21098 if test -d /usr/nec; then
21099 lt_prog_compiler_pic_F77=-Kconform_pic
21100 fi
21101 ;;
21102
21103 hpux*)
21104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21105 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021106 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021107 hppa*64*|ia64*)
21108 # +Z the default
21109 ;;
21110 *)
21111 lt_prog_compiler_pic_F77='-fPIC'
21112 ;;
21113 esac
21114 ;;
21115
21116 *)
21117 lt_prog_compiler_pic_F77='-fPIC'
21118 ;;
21119 esac
21120 else
21121 # PORTME Check for flag to pass linker flags through the system compiler.
21122 case $host_os in
21123 aix*)
21124 lt_prog_compiler_wl_F77='-Wl,'
21125 if test "$host_cpu" = ia64; then
21126 # AIX 5 now supports IA64 processor
21127 lt_prog_compiler_static_F77='-Bstatic'
21128 else
21129 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21130 fi
21131 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021132 darwin*)
21133 # PIC is the default on this platform
21134 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021135 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021136 xlc*)
21137 lt_prog_compiler_pic_F77='-qnocommon'
21138 lt_prog_compiler_wl_F77='-Wl,'
21139 ;;
21140 esac
21141 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021142
21143 mingw* | pw32* | os2*)
21144 # This hack is so that the source file can tell whether it is being
21145 # built for inclusion in a dll (and should export symbols for example).
21146 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21147 ;;
21148
21149 hpux9* | hpux10* | hpux11*)
21150 lt_prog_compiler_wl_F77='-Wl,'
21151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21152 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021153 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021154 hppa*64*|ia64*)
21155 # +Z the default
21156 ;;
21157 *)
21158 lt_prog_compiler_pic_F77='+Z'
21159 ;;
21160 esac
21161 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21162 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21163 ;;
21164
21165 irix5* | irix6* | nonstopux*)
21166 lt_prog_compiler_wl_F77='-Wl,'
21167 # PIC (with -KPIC) is the default.
21168 lt_prog_compiler_static_F77='-non_shared'
21169 ;;
21170
21171 newsos6)
21172 lt_prog_compiler_pic_F77='-KPIC'
21173 lt_prog_compiler_static_F77='-Bstatic'
21174 ;;
21175
21176 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021177 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021178 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021179 lt_prog_compiler_wl_F77='-Wl,'
21180 lt_prog_compiler_pic_F77='-KPIC'
21181 lt_prog_compiler_static_F77='-static'
21182 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021183 pgcc* | pgf77* | pgf90* | pgf95*)
21184 # Portland Group compilers (*not* the Pentium gcc compiler,
21185 # which looks to be a dead project)
21186 lt_prog_compiler_wl_F77='-Wl,'
21187 lt_prog_compiler_pic_F77='-fpic'
21188 lt_prog_compiler_static_F77='-Bstatic'
21189 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021190 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021191 lt_prog_compiler_wl_F77='-Wl,'
21192 # All Alpha code is PIC.
21193 lt_prog_compiler_static_F77='-non_shared'
21194 ;;
21195 esac
21196 ;;
21197
21198 osf3* | osf4* | osf5*)
21199 lt_prog_compiler_wl_F77='-Wl,'
21200 # All OSF/1 code is PIC.
21201 lt_prog_compiler_static_F77='-non_shared'
21202 ;;
21203
John Criswell47fdd832003-07-14 16:52:07 +000021204 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021205 lt_prog_compiler_pic_F77='-KPIC'
21206 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021207 case $cc_basename in
21208 f77* | f90* | f95*)
21209 lt_prog_compiler_wl_F77='-Qoption ld ';;
21210 *)
21211 lt_prog_compiler_wl_F77='-Wl,';;
21212 esac
John Criswell47fdd832003-07-14 16:52:07 +000021213 ;;
21214
21215 sunos4*)
21216 lt_prog_compiler_wl_F77='-Qoption ld '
21217 lt_prog_compiler_pic_F77='-PIC'
21218 lt_prog_compiler_static_F77='-Bstatic'
21219 ;;
21220
Reid Spencera773bd52006-08-04 18:18:08 +000021221 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021222 lt_prog_compiler_wl_F77='-Wl,'
21223 lt_prog_compiler_pic_F77='-KPIC'
21224 lt_prog_compiler_static_F77='-Bstatic'
21225 ;;
21226
21227 sysv4*MP*)
21228 if test -d /usr/nec ;then
21229 lt_prog_compiler_pic_F77='-Kconform_pic'
21230 lt_prog_compiler_static_F77='-Bstatic'
21231 fi
21232 ;;
21233
Reid Spencera773bd52006-08-04 18:18:08 +000021234 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21235 lt_prog_compiler_wl_F77='-Wl,'
21236 lt_prog_compiler_pic_F77='-KPIC'
21237 lt_prog_compiler_static_F77='-Bstatic'
21238 ;;
21239
21240 unicos*)
21241 lt_prog_compiler_wl_F77='-Wl,'
21242 lt_prog_compiler_can_build_shared_F77=no
21243 ;;
21244
John Criswell47fdd832003-07-14 16:52:07 +000021245 uts4*)
21246 lt_prog_compiler_pic_F77='-pic'
21247 lt_prog_compiler_static_F77='-Bstatic'
21248 ;;
21249
21250 *)
21251 lt_prog_compiler_can_build_shared_F77=no
21252 ;;
21253 esac
21254 fi
21255
Reid Spencera773bd52006-08-04 18:18:08 +000021256{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21257echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021258
21259#
21260# Check to make sure the PIC flag actually works.
21261#
21262if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021263
Reid Spencera773bd52006-08-04 18:18:08 +000021264{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21265echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021266if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268else
21269 lt_prog_compiler_pic_works_F77=no
21270 ac_outfile=conftest.$ac_objext
21271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21272 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21273 # Insert the option either (1) after the last *FLAGS variable, or
21274 # (2) before a word containing "conftest.", or (3) at the end.
21275 # Note that $ac_compile itself does not contain backslashes and begins
21276 # with a dollar sign (not a hyphen), so the echo should work correctly.
21277 # The option is referenced via a variable to avoid confusing sed.
21278 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21281 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021282 (eval echo "\"\$as_me:21282: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021283 (eval "$lt_compile" 2>conftest.err)
21284 ac_status=$?
21285 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021286 echo "$as_me:21286: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021287 if (exit $ac_status) && test -s "$ac_outfile"; then
21288 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021289 # So say no if there are warnings other than the usual output.
21290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021293 lt_prog_compiler_pic_works_F77=yes
21294 fi
21295 fi
21296 $rm conftest*
21297
21298fi
Reid Spencera773bd52006-08-04 18:18:08 +000021299{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21300echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021301
21302if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21303 case $lt_prog_compiler_pic_F77 in
21304 "" | " "*) ;;
21305 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21306 esac
21307else
21308 lt_prog_compiler_pic_F77=
21309 lt_prog_compiler_can_build_shared_F77=no
21310fi
21311
21312fi
Reid Spencera773bd52006-08-04 18:18:08 +000021313case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021314 # For platforms which do not support PIC, -DPIC is meaningless:
21315 *djgpp*)
21316 lt_prog_compiler_pic_F77=
21317 ;;
21318 *)
21319 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21320 ;;
21321esac
21322
Reid Spencera773bd52006-08-04 18:18:08 +000021323#
21324# Check to make sure the static flag actually works.
21325#
21326wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21327{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21328echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21329if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21330 echo $ECHO_N "(cached) $ECHO_C" >&6
21331else
21332 lt_prog_compiler_static_works_F77=no
21333 save_LDFLAGS="$LDFLAGS"
21334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21335 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21337 # The linker can only warn and ignore the option if not recognized
21338 # So say no if there are warnings
21339 if test -s conftest.err; then
21340 # Append any errors to the config.log.
21341 cat conftest.err 1>&5
21342 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21344 if diff conftest.exp conftest.er2 >/dev/null; then
21345 lt_prog_compiler_static_works_F77=yes
21346 fi
21347 else
21348 lt_prog_compiler_static_works_F77=yes
21349 fi
21350 fi
21351 $rm conftest*
21352 LDFLAGS="$save_LDFLAGS"
21353
21354fi
21355{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21356echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21357
21358if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21359 :
21360else
21361 lt_prog_compiler_static_F77=
21362fi
21363
21364
21365{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21366echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021367if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369else
21370 lt_cv_prog_compiler_c_o_F77=no
21371 $rm -r conftest 2>/dev/null
21372 mkdir conftest
21373 cd conftest
21374 mkdir out
21375 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21376
John Criswell47fdd832003-07-14 16:52:07 +000021377 lt_compiler_flag="-o out/conftest2.$ac_objext"
21378 # Insert the option either (1) after the last *FLAGS variable, or
21379 # (2) before a word containing "conftest.", or (3) at the end.
21380 # Note that $ac_compile itself does not contain backslashes and begins
21381 # with a dollar sign (not a hyphen), so the echo should work correctly.
21382 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021383 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021384 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21385 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021386 (eval echo "\"\$as_me:21386: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021387 (eval "$lt_compile" 2>out/conftest.err)
21388 ac_status=$?
21389 cat out/conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000021390 echo "$as_me:21390: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021391 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21392 then
21393 # The compiler can only warn and ignore the option if not recognized
21394 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021395 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21396 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21397 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021398 lt_cv_prog_compiler_c_o_F77=yes
21399 fi
21400 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021401 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402 $rm conftest*
21403 # SGI C++ compiler will create directory out/ii_files/ for
21404 # template instantiation
21405 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21406 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021407 cd ..
21408 rmdir conftest
21409 $rm conftest*
21410
21411fi
Reid Spencera773bd52006-08-04 18:18:08 +000021412{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21413echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021414
21415
21416hard_links="nottested"
21417if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21418 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021419 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21420echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021421 hard_links=yes
21422 $rm conftest*
21423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21424 touch conftest.a
21425 ln conftest.a conftest.b 2>&5 || hard_links=no
21426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021427 { echo "$as_me:$LINENO: result: $hard_links" >&5
21428echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021429 if test "$hard_links" = no; then
21430 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21431echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21432 need_locks=warn
21433 fi
21434else
21435 need_locks=no
21436fi
21437
Reid Spencera773bd52006-08-04 18:18:08 +000021438{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21439echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021440
21441 runpath_var=
21442 allow_undefined_flag_F77=
21443 enable_shared_with_static_runtimes_F77=no
21444 archive_cmds_F77=
21445 archive_expsym_cmds_F77=
21446 old_archive_From_new_cmds_F77=
21447 old_archive_from_expsyms_cmds_F77=
21448 export_dynamic_flag_spec_F77=
21449 whole_archive_flag_spec_F77=
21450 thread_safe_flag_spec_F77=
21451 hardcode_libdir_flag_spec_F77=
21452 hardcode_libdir_flag_spec_ld_F77=
21453 hardcode_libdir_separator_F77=
21454 hardcode_direct_F77=no
21455 hardcode_minus_L_F77=no
21456 hardcode_shlibpath_var_F77=unsupported
21457 link_all_deplibs_F77=unknown
21458 hardcode_automatic_F77=no
21459 module_cmds_F77=
21460 module_expsym_cmds_F77=
21461 always_export_symbols_F77=no
21462 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21463 # include_expsyms should be a list of space-separated symbols to be *always*
21464 # included in the symbol list
21465 include_expsyms_F77=
21466 # exclude_expsyms can be an extended regexp of symbols to exclude
21467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21469 # as well as any symbol that contains `d'.
21470 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21472 # platforms (ab)use it in PIC code, but their linkers get confused if
21473 # the symbol is explicitly referenced. Since portable code cannot
21474 # rely on this symbol name, it's probably fine to never include it in
21475 # preloaded symbol tables.
21476 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021477 # Just being paranoid about ensuring that cc_basename is set.
21478 for cc_temp in $compiler""; do
21479 case $cc_temp in
21480 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21481 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21482 \-*) ;;
21483 *) break;;
21484 esac
21485done
21486cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021487
21488 case $host_os in
21489 cygwin* | mingw* | pw32*)
21490 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21491 # When not using gcc, we currently assume that we are using
21492 # Microsoft Visual C++.
21493 if test "$GCC" != yes; then
21494 with_gnu_ld=no
21495 fi
21496 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021497 interix*)
21498 # we just hope/assume this is gcc and not c89 (= MSVC++)
21499 with_gnu_ld=yes
21500 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021501 openbsd*)
21502 with_gnu_ld=no
21503 ;;
21504 esac
21505
21506 ld_shlibs_F77=yes
21507 if test "$with_gnu_ld" = yes; then
21508 # If archive_cmds runs LD, not CC, wlarc should be empty
21509 wlarc='${wl}'
21510
Reid Spencera773bd52006-08-04 18:18:08 +000021511 # Set some defaults for GNU ld with shared library support. These
21512 # are reset later if shared libraries are not supported. Putting them
21513 # here allows them to be overridden if necessary.
21514 runpath_var=LD_RUN_PATH
21515 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21516 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21517 # ancient GNU ld didn't support --whole-archive et. al.
21518 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21519 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21520 else
21521 whole_archive_flag_spec_F77=
21522 fi
21523 supports_anon_versioning=no
21524 case `$LD -v 2>/dev/null` in
21525 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21526 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21527 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21528 *\ 2.11.*) ;; # other 2.11 versions
21529 *) supports_anon_versioning=yes ;;
21530 esac
21531
John Criswell47fdd832003-07-14 16:52:07 +000021532 # See if GNU ld supports shared libraries.
21533 case $host_os in
21534 aix3* | aix4* | aix5*)
21535 # On AIX/PPC, the GNU linker is very broken
21536 if test "$host_cpu" != ia64; then
21537 ld_shlibs_F77=no
21538 cat <<EOF 1>&2
21539
21540*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21541*** to be unable to reliably create shared libraries on AIX.
21542*** Therefore, libtool is disabling shared libraries support. If you
21543*** really care for shared libraries, you may want to modify your PATH
21544*** so that a non-GNU linker is found, and then restart.
21545
21546EOF
21547 fi
21548 ;;
21549
21550 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021551 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 +000021552 hardcode_libdir_flag_spec_F77='-L$libdir'
21553 hardcode_minus_L_F77=yes
21554
21555 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21556 # that the semantics of dynamic libraries on AmigaOS, at least up
21557 # to version 4, is to share data among multiple programs linked
21558 # with the same dynamic library. Since this doesn't match the
21559 # behavior of shared libraries on other platforms, we can't use
21560 # them.
21561 ld_shlibs_F77=no
21562 ;;
21563
21564 beos*)
21565 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21566 allow_undefined_flag_F77=unsupported
21567 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21568 # support --undefined. This deserves some investigation. FIXME
21569 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21570 else
21571 ld_shlibs_F77=no
21572 fi
21573 ;;
21574
21575 cygwin* | mingw* | pw32*)
21576 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21577 # as there is no search path for DLLs.
21578 hardcode_libdir_flag_spec_F77='-L$libdir'
21579 allow_undefined_flag_F77=unsupported
21580 always_export_symbols_F77=no
21581 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021582 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 +000021583
21584 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021585 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 +000021586 # If the export-symbols file already is a .def file (1st line
21587 # is EXPORTS), use it as is; otherwise, prepend...
21588 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21589 cp $export_symbols $output_objdir/$soname.def;
21590 else
21591 echo EXPORTS > $output_objdir/$soname.def;
21592 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021593 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021594 $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 +000021595 else
Reid Spencera773bd52006-08-04 18:18:08 +000021596 ld_shlibs_F77=no
21597 fi
21598 ;;
21599
21600 interix3*)
21601 hardcode_direct_F77=no
21602 hardcode_shlibpath_var_F77=no
21603 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21604 export_dynamic_flag_spec_F77='${wl}-E'
21605 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21606 # Instead, shared libraries are loaded at an image base (0x10000000 by
21607 # default) and relocated if they conflict, which is a slow very memory
21608 # consuming and fragmenting process. To avoid this, we pick a random,
21609 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21610 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21611 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'
21612 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'
21613 ;;
21614
21615 linux*)
21616 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21617 tmp_addflag=
21618 case $cc_basename,$host_cpu in
21619 pgcc*) # Portland Group C compiler
21620 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'
21621 tmp_addflag=' $pic_flag'
21622 ;;
21623 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21624 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'
21625 tmp_addflag=' $pic_flag -Mnomain' ;;
21626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21627 tmp_addflag=' -i_dynamic' ;;
21628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21629 tmp_addflag=' -i_dynamic -nofor_main' ;;
21630 ifc* | ifort*) # Intel Fortran compiler
21631 tmp_addflag=' -nofor_main' ;;
21632 esac
21633 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21634
21635 if test $supports_anon_versioning = yes; then
21636 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21637 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21638 $echo "local: *; };" >> $output_objdir/$libname.ver~
21639 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21640 fi
21641 else
21642 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021643 fi
21644 ;;
21645
21646 netbsd*)
21647 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21648 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21649 wlarc=
21650 else
21651 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21652 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21653 fi
21654 ;;
21655
Reid Spencera773bd52006-08-04 18:18:08 +000021656 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021657 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21658 ld_shlibs_F77=no
21659 cat <<EOF 1>&2
21660
21661*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21662*** create shared libraries on Solaris systems. Therefore, libtool
21663*** is disabling shared libraries support. We urge you to upgrade GNU
21664*** binutils to release 2.9.1 or newer. Another option is to modify
21665*** your PATH or compiler configuration so that the native linker is
21666*** used, and then restart.
21667
21668EOF
21669 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21670 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21671 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21672 else
21673 ld_shlibs_F77=no
21674 fi
21675 ;;
21676
Reid Spencera773bd52006-08-04 18:18:08 +000021677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21678 case `$LD -v 2>&1` in
21679 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21680 ld_shlibs_F77=no
21681 cat <<_LT_EOF 1>&2
21682
21683*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21684*** reliably create shared libraries on SCO systems. Therefore, libtool
21685*** is disabling shared libraries support. We urge you to upgrade GNU
21686*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21687*** your PATH or compiler configuration so that the native linker is
21688*** used, and then restart.
21689
21690_LT_EOF
21691 ;;
21692 *)
21693 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21694 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21695 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21696 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21697 else
21698 ld_shlibs_F77=no
21699 fi
21700 ;;
21701 esac
21702 ;;
21703
John Criswell47fdd832003-07-14 16:52:07 +000021704 sunos4*)
21705 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21706 wlarc=
21707 hardcode_direct_F77=yes
21708 hardcode_shlibpath_var_F77=no
21709 ;;
21710
21711 *)
21712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21715 else
21716 ld_shlibs_F77=no
21717 fi
21718 ;;
21719 esac
21720
Reid Spencera773bd52006-08-04 18:18:08 +000021721 if test "$ld_shlibs_F77" = no; then
21722 runpath_var=
21723 hardcode_libdir_flag_spec_F77=
21724 export_dynamic_flag_spec_F77=
21725 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021726 fi
21727 else
21728 # PORTME fill in a description of your system's linker (not GNU ld)
21729 case $host_os in
21730 aix3*)
21731 allow_undefined_flag_F77=unsupported
21732 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021733 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 +000021734 # Note: this linker hardcodes the directories in LIBPATH if there
21735 # are no directories specified by -L.
21736 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021737 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021738 # Neither direct hardcoding nor static linking is supported with a
21739 # broken collect2.
21740 hardcode_direct_F77=unsupported
21741 fi
21742 ;;
21743
21744 aix4* | aix5*)
21745 if test "$host_cpu" = ia64; then
21746 # On IA64, the linker does run time linking by default, so we don't
21747 # have to do anything special.
21748 aix_use_runtimelinking=no
21749 exp_sym_flag='-Bexport'
21750 no_entry_flag=""
21751 else
21752 # If we're using GNU nm, then we don't want the "-C" option.
21753 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21754 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21755 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'
21756 else
21757 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'
21758 fi
21759 aix_use_runtimelinking=no
21760
21761 # Test if we are trying to use run time linking or normal
21762 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21763 # need to do runtime linking.
21764 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21765 for ld_flag in $LDFLAGS; do
21766 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21767 aix_use_runtimelinking=yes
21768 break
21769 fi
21770 done
Reid Spencera773bd52006-08-04 18:18:08 +000021771 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021772 esac
21773
21774 exp_sym_flag='-bexport'
21775 no_entry_flag='-bnoentry'
21776 fi
21777
21778 # When large executables or shared objects are built, AIX ld can
21779 # have problems creating the table of contents. If linking a library
21780 # or program results in "error TOC overflow" add -mminimal-toc to
21781 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21782 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21783
21784 archive_cmds_F77=''
21785 hardcode_direct_F77=yes
21786 hardcode_libdir_separator_F77=':'
21787 link_all_deplibs_F77=yes
21788
21789 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021790 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021791 # We only want to do this on AIX 4.2 and lower, the check
21792 # below for broken collect2 doesn't work under 4.3+
21793 collect2name=`${CC} -print-prog-name=collect2`
21794 if test -f "$collect2name" && \
21795 strings "$collect2name" | grep resolve_lib_name >/dev/null
21796 then
21797 # We have reworked collect2
21798 hardcode_direct_F77=yes
21799 else
21800 # We have old collect2
21801 hardcode_direct_F77=unsupported
21802 # It fails to find uninstalled libraries when the uninstalled
21803 # path is not listed in the libpath. Setting hardcode_minus_L
21804 # to unsupported forces relinking
21805 hardcode_minus_L_F77=yes
21806 hardcode_libdir_flag_spec_F77='-L$libdir'
21807 hardcode_libdir_separator_F77=
21808 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021809 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021810 esac
21811 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021812 if test "$aix_use_runtimelinking" = yes; then
21813 shared_flag="$shared_flag "'${wl}-G'
21814 fi
John Criswell47fdd832003-07-14 16:52:07 +000021815 else
21816 # not using gcc
21817 if test "$host_cpu" = ia64; then
21818 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21819 # chokes on -Wl,-G. The following line is correct:
21820 shared_flag='-G'
21821 else
Reid Spencera773bd52006-08-04 18:18:08 +000021822 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021823 shared_flag='${wl}-G'
21824 else
21825 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021826 fi
John Criswell47fdd832003-07-14 16:52:07 +000021827 fi
21828 fi
21829
21830 # It seems that -bexpall does not export symbols beginning with
21831 # underscore (_), so it is better to generate a list of symbols to export.
21832 always_export_symbols_F77=yes
21833 if test "$aix_use_runtimelinking" = yes; then
21834 # Warning - without using the other runtime loading flags (-brtl),
21835 # -berok will link without error, but may produce a broken library.
21836 allow_undefined_flag_F77='-berok'
21837 # Determine the default libpath from the value encoded in an empty executable.
21838 cat >conftest.$ac_ext <<_ACEOF
21839 program main
21840
21841 end
21842_ACEOF
21843rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021844if { (ac_try="$ac_link"
21845case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848esac
21849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021856 (exit $ac_status); } &&
21857 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21858 { (case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21861esac
21862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_try") 2>&5
21864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest$ac_exeext'
21868 { (case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871esac
21872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_try") 2>&5
21874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021877
21878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21879}'`
21880# Check for a 64-bit object if we didn't find anything.
21881if 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; }
21882}'`; fi
21883else
21884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021885sed 's/^/| /' conftest.$ac_ext >&5
21886
Reid Spencera773bd52006-08-04 18:18:08 +000021887
John Criswell47fdd832003-07-14 16:52:07 +000021888fi
Reid Spencera773bd52006-08-04 18:18:08 +000021889
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021890rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021891 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021892if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21893
21894 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021895 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 +000021896 else
21897 if test "$host_cpu" = ia64; then
21898 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21899 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021900 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 +000021901 else
21902 # Determine the default libpath from the value encoded in an empty executable.
21903 cat >conftest.$ac_ext <<_ACEOF
21904 program main
21905
21906 end
21907_ACEOF
21908rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021909if { (ac_try="$ac_link"
21910case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21913esac
21914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021921 (exit $ac_status); } &&
21922 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21923 { (case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926esac
21927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_try") 2>&5
21929 ac_status=$?
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; } &&
21932 { ac_try='test -s conftest$ac_exeext'
21933 { (case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21936esac
21937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_try") 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000021942
21943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21944}'`
21945# Check for a 64-bit object if we didn't find anything.
21946if 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; }
21947}'`; fi
21948else
21949 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021950sed 's/^/| /' conftest.$ac_ext >&5
21951
Reid Spencera773bd52006-08-04 18:18:08 +000021952
John Criswell47fdd832003-07-14 16:52:07 +000021953fi
Reid Spencera773bd52006-08-04 18:18:08 +000021954
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000021955rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021956 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021957if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21958
21959 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21960 # Warning - without using the other run time loading flags,
21961 # -berok will link without error, but may produce a broken library.
21962 no_undefined_flag_F77=' ${wl}-bernotok'
21963 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021964 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021965 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021966 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021967 # This is similar to how AIX traditionally builds its shared libraries.
21968 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 +000021969 fi
21970 fi
21971 ;;
21972
21973 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021974 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 +000021975 hardcode_libdir_flag_spec_F77='-L$libdir'
21976 hardcode_minus_L_F77=yes
21977 # see comment about different semantics on the GNU ld section
21978 ld_shlibs_F77=no
21979 ;;
21980
Reid Spencer2706f8c2004-09-19 23:53:36 +000021981 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021982 export_dynamic_flag_spec_F77=-rdynamic
21983 ;;
21984
21985 cygwin* | mingw* | pw32*)
21986 # When not using gcc, we currently assume that we are using
21987 # Microsoft Visual C++.
21988 # hardcode_libdir_flag_spec is actually meaningless, as there is
21989 # no search path for DLLs.
21990 hardcode_libdir_flag_spec_F77=' '
21991 allow_undefined_flag_F77=unsupported
21992 # Tell ltmain to make .lib files, not .a files.
21993 libext=lib
21994 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021995 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021996 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021997 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 +000021998 # The linker will automatically build a .lib file if we build a DLL.
21999 old_archive_From_new_cmds_F77='true'
22000 # FIXME: Should let the user specify the lib program.
22001 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022002 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022003 enable_shared_with_static_runtimes_F77=yes
22004 ;;
22005
22006 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022007 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022008 rhapsody* | darwin1.[012])
22009 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22010 ;;
22011 *) # Darwin 1.3 on
22012 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22013 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22014 else
22015 case ${MACOSX_DEPLOYMENT_TARGET} in
22016 10.[012])
22017 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22018 ;;
22019 10.*)
22020 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22021 ;;
22022 esac
22023 fi
22024 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022025 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022026 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022027 hardcode_direct_F77=no
22028 hardcode_automatic_F77=yes
22029 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022031 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022032 if test "$GCC" = yes ; then
22033 output_verbose_link_cmd='echo'
22034 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22035 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022036 # 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 +000022037 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}'
22038 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 +000022039 else
Reid Spencera773bd52006-08-04 18:18:08 +000022040 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022041 xlc*)
22042 output_verbose_link_cmd='echo'
22043 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22044 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022045 # 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 +000022046 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}'
22047 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 +000022048 ;;
22049 *)
22050 ld_shlibs_F77=no
22051 ;;
22052 esac
John Criswell47fdd832003-07-14 16:52:07 +000022053 fi
22054 ;;
22055
22056 dgux*)
22057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22058 hardcode_libdir_flag_spec_F77='-L$libdir'
22059 hardcode_shlibpath_var_F77=no
22060 ;;
22061
22062 freebsd1*)
22063 ld_shlibs_F77=no
22064 ;;
22065
22066 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22067 # support. Future versions do this automatically, but an explicit c++rt0.o
22068 # does not break anything, and helps significantly (at the cost of a little
22069 # extra space).
22070 freebsd2.2*)
22071 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22072 hardcode_libdir_flag_spec_F77='-R$libdir'
22073 hardcode_direct_F77=yes
22074 hardcode_shlibpath_var_F77=no
22075 ;;
22076
22077 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22078 freebsd2*)
22079 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22080 hardcode_direct_F77=yes
22081 hardcode_minus_L_F77=yes
22082 hardcode_shlibpath_var_F77=no
22083 ;;
22084
22085 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022086 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022087 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22088 hardcode_libdir_flag_spec_F77='-R$libdir'
22089 hardcode_direct_F77=yes
22090 hardcode_shlibpath_var_F77=no
22091 ;;
22092
22093 hpux9*)
22094 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022095 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 +000022096 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022097 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 +000022098 fi
22099 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22100 hardcode_libdir_separator_F77=:
22101 hardcode_direct_F77=yes
22102
22103 # hardcode_minus_L: Not really in the search PATH,
22104 # but as the default location of the library.
22105 hardcode_minus_L_F77=yes
22106 export_dynamic_flag_spec_F77='${wl}-E'
22107 ;;
22108
Reid Spencera773bd52006-08-04 18:18:08 +000022109 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022110 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022111 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22112 else
22113 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22114 fi
22115 if test "$with_gnu_ld" = no; then
22116 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22117 hardcode_libdir_separator_F77=:
22118
22119 hardcode_direct_F77=yes
22120 export_dynamic_flag_spec_F77='${wl}-E'
22121
22122 # hardcode_minus_L: Not really in the search PATH,
22123 # but as the default location of the library.
22124 hardcode_minus_L_F77=yes
22125 fi
22126 ;;
22127
22128 hpux11*)
22129 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22130 case $host_cpu in
22131 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022132 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22133 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022134 ia64*)
22135 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22136 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022137 *)
22138 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22139 ;;
22140 esac
22141 else
Reid Spencera773bd52006-08-04 18:18:08 +000022142 case $host_cpu in
22143 hppa*64*)
22144 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22145 ;;
22146 ia64*)
22147 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022148 ;;
22149 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022150 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 +000022151 ;;
22152 esac
22153 fi
22154 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022155 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22156 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022157
Reid Spencera773bd52006-08-04 18:18:08 +000022158 case $host_cpu in
22159 hppa*64*|ia64*)
22160 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22161 hardcode_direct_F77=no
22162 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022163 ;;
22164 *)
John Criswell47fdd832003-07-14 16:52:07 +000022165 hardcode_direct_F77=yes
22166 export_dynamic_flag_spec_F77='${wl}-E'
22167
22168 # hardcode_minus_L: Not really in the search PATH,
22169 # but as the default location of the library.
22170 hardcode_minus_L_F77=yes
22171 ;;
22172 esac
22173 fi
22174 ;;
22175
22176 irix5* | irix6* | nonstopux*)
22177 if test "$GCC" = yes; then
22178 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'
22179 else
22180 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'
22181 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22182 fi
22183 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22184 hardcode_libdir_separator_F77=:
22185 link_all_deplibs_F77=yes
22186 ;;
22187
22188 netbsd*)
22189 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22190 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22191 else
22192 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22193 fi
22194 hardcode_libdir_flag_spec_F77='-R$libdir'
22195 hardcode_direct_F77=yes
22196 hardcode_shlibpath_var_F77=no
22197 ;;
22198
22199 newsos6)
22200 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22201 hardcode_direct_F77=yes
22202 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22203 hardcode_libdir_separator_F77=:
22204 hardcode_shlibpath_var_F77=no
22205 ;;
22206
22207 openbsd*)
22208 hardcode_direct_F77=yes
22209 hardcode_shlibpath_var_F77=no
22210 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22211 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022212 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 +000022213 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22214 export_dynamic_flag_spec_F77='${wl}-E'
22215 else
22216 case $host_os in
22217 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22218 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22219 hardcode_libdir_flag_spec_F77='-R$libdir'
22220 ;;
22221 *)
22222 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22223 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22224 ;;
22225 esac
22226 fi
22227 ;;
22228
22229 os2*)
22230 hardcode_libdir_flag_spec_F77='-L$libdir'
22231 hardcode_minus_L_F77=yes
22232 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022233 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 +000022234 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22235 ;;
22236
22237 osf3*)
22238 if test "$GCC" = yes; then
22239 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22240 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'
22241 else
22242 allow_undefined_flag_F77=' -expect_unresolved \*'
22243 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'
22244 fi
22245 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22246 hardcode_libdir_separator_F77=:
22247 ;;
22248
22249 osf4* | osf5*) # as osf3* with the addition of -msym flag
22250 if test "$GCC" = yes; then
22251 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22252 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'
22253 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22254 else
22255 allow_undefined_flag_F77=' -expect_unresolved \*'
22256 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 +000022257 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 +000022258 $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 +000022259
John Criswell47fdd832003-07-14 16:52:07 +000022260 # Both c and cxx compiler support -rpath directly
22261 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22262 fi
22263 hardcode_libdir_separator_F77=:
22264 ;;
22265
John Criswell47fdd832003-07-14 16:52:07 +000022266 solaris*)
22267 no_undefined_flag_F77=' -z text'
22268 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022269 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022270 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022271 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22272 $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 +000022273 else
Reid Spencera773bd52006-08-04 18:18:08 +000022274 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022275 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022276 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22277 $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 +000022278 fi
22279 hardcode_libdir_flag_spec_F77='-R$libdir'
22280 hardcode_shlibpath_var_F77=no
22281 case $host_os in
22282 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022283 *)
22284 # The compiler driver will combine linker options so we
22285 # cannot just pass the convience library names through
22286 # without $wl, iff we do not link with $LD.
22287 # Luckily, gcc supports the same syntax we need for Sun Studio.
22288 # Supported since Solaris 2.6 (maybe 2.5.1?)
22289 case $wlarc in
22290 '')
22291 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22292 *)
22293 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' ;;
22294 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022295 esac
22296 link_all_deplibs_F77=yes
22297 ;;
22298
22299 sunos4*)
22300 if test "x$host_vendor" = xsequent; then
22301 # Use $CC to link under sequent, because it throws in some extra .o
22302 # files that make .init and .fini sections work.
22303 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22304 else
22305 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22306 fi
22307 hardcode_libdir_flag_spec_F77='-L$libdir'
22308 hardcode_direct_F77=yes
22309 hardcode_minus_L_F77=yes
22310 hardcode_shlibpath_var_F77=no
22311 ;;
22312
22313 sysv4)
22314 case $host_vendor in
22315 sni)
22316 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22317 hardcode_direct_F77=yes # is this really true???
22318 ;;
22319 siemens)
22320 ## LD is ld it makes a PLAMLIB
22321 ## CC just makes a GrossModule.
22322 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22323 reload_cmds_F77='$CC -r -o $output$reload_objs'
22324 hardcode_direct_F77=no
22325 ;;
22326 motorola)
22327 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22328 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22329 ;;
22330 esac
22331 runpath_var='LD_RUN_PATH'
22332 hardcode_shlibpath_var_F77=no
22333 ;;
22334
22335 sysv4.3*)
22336 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22337 hardcode_shlibpath_var_F77=no
22338 export_dynamic_flag_spec_F77='-Bexport'
22339 ;;
22340
22341 sysv4*MP*)
22342 if test -d /usr/nec; then
22343 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_shlibpath_var_F77=no
22345 runpath_var=LD_RUN_PATH
22346 hardcode_runpath_var=yes
22347 ld_shlibs_F77=yes
22348 fi
22349 ;;
22350
Reid Spencera773bd52006-08-04 18:18:08 +000022351 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22352 no_undefined_flag_F77='${wl}-z,text'
22353 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022354 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022355 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022356
John Criswell47fdd832003-07-14 16:52:07 +000022357 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022358 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22359 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 +000022360 else
Reid Spencera773bd52006-08-04 18:18:08 +000022361 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22362 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 +000022363 fi
John Criswell47fdd832003-07-14 16:52:07 +000022364 ;;
22365
Reid Spencera773bd52006-08-04 18:18:08 +000022366 sysv5* | sco3.2v5* | sco5v6*)
22367 # Note: We can NOT use -z defs as we might desire, because we do not
22368 # link with -lc, and that would cause any symbols used from libc to
22369 # always be unresolved, which means just about no library would
22370 # ever link correctly. If we're not using GNU ld we use -z text
22371 # though, which does catch some bad symbols but isn't as heavy-handed
22372 # as -z defs.
22373 no_undefined_flag_F77='${wl}-z,text'
22374 allow_undefined_flag_F77='${wl}-z,nodefs'
22375 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022376 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022377 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22378 hardcode_libdir_separator_F77=':'
22379 link_all_deplibs_F77=yes
22380 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022381 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022382
22383 if test "$GCC" = yes; then
22384 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22385 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22386 else
22387 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22388 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22389 fi
John Criswell47fdd832003-07-14 16:52:07 +000022390 ;;
22391
22392 uts4*)
22393 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22394 hardcode_libdir_flag_spec_F77='-L$libdir'
22395 hardcode_shlibpath_var_F77=no
22396 ;;
22397
22398 *)
22399 ld_shlibs_F77=no
22400 ;;
22401 esac
22402 fi
22403
Reid Spencera773bd52006-08-04 18:18:08 +000022404{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22405echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022406test "$ld_shlibs_F77" = no && can_build_shared=no
22407
John Criswell47fdd832003-07-14 16:52:07 +000022408#
22409# Do we need to explicitly link libc?
22410#
22411case "x$archive_cmds_need_lc_F77" in
22412x|xyes)
22413 # Assume -lc should be added
22414 archive_cmds_need_lc_F77=yes
22415
22416 if test "$enable_shared" = yes && test "$GCC" = yes; then
22417 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022419 # FIXME: we may have to deal with multi-command sequences.
22420 ;;
22421 '$CC '*)
22422 # Test whether the compiler implicitly links with -lc since on some
22423 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22424 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022425 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22426echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022427 $rm conftest*
22428 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22429
22430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22431 (eval $ac_compile) 2>&5
22432 ac_status=$?
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } 2>conftest.err; then
22435 soname=conftest
22436 lib=conftest
22437 libobjs=conftest.$ac_objext
22438 deplibs=
22439 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022440 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022441 compiler_flags=-v
22442 linker_flags=-v
22443 verstring=
22444 output_objdir=.
22445 libname=conftest
22446 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22447 allow_undefined_flag_F77=
22448 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22449 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }
22453 then
22454 archive_cmds_need_lc_F77=no
22455 else
22456 archive_cmds_need_lc_F77=yes
22457 fi
22458 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22459 else
22460 cat conftest.err 1>&5
22461 fi
22462 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022463 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22464echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022465 ;;
22466 esac
22467 fi
22468 ;;
22469esac
22470
Reid Spencera773bd52006-08-04 18:18:08 +000022471{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22472echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022473library_names_spec=
22474libname_spec='lib$name'
22475soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022476shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022477postinstall_cmds=
22478postuninstall_cmds=
22479finish_cmds=
22480finish_eval=
22481shlibpath_var=
22482shlibpath_overrides_runpath=unknown
22483version_type=none
22484dynamic_linker="$host_os ld.so"
22485sys_lib_dlsearch_path_spec="/lib /usr/lib"
22486if test "$GCC" = yes; then
22487 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22488 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22489 # if the path contains ";" then we assume it to be the separator
22490 # otherwise default to the standard path separator (i.e. ":") - it is
22491 # assumed that no part of a normal pathname contains ";" but that should
22492 # okay in the real world where ";" in dirpaths is itself problematic.
22493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22494 else
22495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22496 fi
22497else
22498 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22499fi
22500need_lib_prefix=unknown
22501hardcode_into_libs=no
22502
22503# when you set need_version to no, make sure it does not cause -set_version
22504# flags to be left without arguments
22505need_version=unknown
22506
22507case $host_os in
22508aix3*)
22509 version_type=linux
22510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22511 shlibpath_var=LIBPATH
22512
22513 # AIX 3 has no versioning support, so we append a major version to the name.
22514 soname_spec='${libname}${release}${shared_ext}$major'
22515 ;;
22516
22517aix4* | aix5*)
22518 version_type=linux
22519 need_lib_prefix=no
22520 need_version=no
22521 hardcode_into_libs=yes
22522 if test "$host_cpu" = ia64; then
22523 # AIX 5 supports IA64
22524 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22525 shlibpath_var=LD_LIBRARY_PATH
22526 else
22527 # With GCC up to 2.95.x, collect2 would create an import file
22528 # for dependence libraries. The import file would start with
22529 # the line `#! .'. This would cause the generated library to
22530 # depend on `.', always an invalid library. This was fixed in
22531 # development snapshots of GCC prior to 3.0.
22532 case $host_os in
22533 aix4 | aix4.[01] | aix4.[01].*)
22534 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22535 echo ' yes '
22536 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22537 :
22538 else
22539 can_build_shared=no
22540 fi
22541 ;;
22542 esac
22543 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22544 # soname into executable. Probably we can add versioning support to
22545 # collect2, so additional links can be useful in future.
22546 if test "$aix_use_runtimelinking" = yes; then
22547 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22548 # instead of lib<name>.a to let people know that these are not
22549 # typical AIX shared libraries.
22550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22551 else
22552 # We preserve .a as extension for shared libraries through AIX4.2
22553 # and later when we are not doing run time linking.
22554 library_names_spec='${libname}${release}.a $libname.a'
22555 soname_spec='${libname}${release}${shared_ext}$major'
22556 fi
22557 shlibpath_var=LIBPATH
22558 fi
22559 ;;
22560
22561amigaos*)
22562 library_names_spec='$libname.ixlibrary $libname.a'
22563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022564 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 +000022565 ;;
22566
22567beos*)
22568 library_names_spec='${libname}${shared_ext}'
22569 dynamic_linker="$host_os ld.so"
22570 shlibpath_var=LIBRARY_PATH
22571 ;;
22572
Reid Spencer2706f8c2004-09-19 23:53:36 +000022573bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022574 version_type=linux
22575 need_version=no
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22577 soname_spec='${libname}${release}${shared_ext}$major'
22578 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22579 shlibpath_var=LD_LIBRARY_PATH
22580 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22581 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22582 # the default ld.so.conf also contains /usr/contrib/lib and
22583 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22584 # libtool to hard-code these into programs
22585 ;;
22586
22587cygwin* | mingw* | pw32*)
22588 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022590 need_version=no
22591 need_lib_prefix=no
22592
22593 case $GCC,$host_os in
22594 yes,cygwin* | yes,mingw* | yes,pw32*)
22595 library_names_spec='$libname.dll.a'
22596 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022597 postinstall_cmds='base_file=`basename \${file}`~
22598 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22599 dldir=$destdir/`dirname \$dlpath`~
22600 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022601 $install_prog $dir/$dlname \$dldir/$dlname~
22602 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022603 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22604 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022605 $rm \$dlpath'
22606 shlibpath_overrides_runpath=yes
22607
22608 case $host_os in
22609 cygwin*)
22610 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22611 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 +000022612 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022613 ;;
22614 mingw*)
22615 # MinGW DLLs use traditional 'lib' prefix
22616 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22617 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22618 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22619 # It is most probably a Windows format PATH printed by
22620 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22621 # path with ; separators, and with drive letters. We can handle the
22622 # drive letters (cygwin fileutils understands them), so leave them,
22623 # especially as we might pass files found there to a mingw objdump,
22624 # which wouldn't understand a cygwinified path. Ahh.
22625 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22626 else
22627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22628 fi
22629 ;;
22630 pw32*)
22631 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022632 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 +000022633 ;;
22634 esac
22635 ;;
22636
22637 *)
22638 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22639 ;;
22640 esac
22641 dynamic_linker='Win32 ld.exe'
22642 # FIXME: first we should search . and the directory the executable is in
22643 shlibpath_var=PATH
22644 ;;
22645
22646darwin* | rhapsody*)
22647 dynamic_linker="$host_os dyld"
22648 version_type=darwin
22649 need_lib_prefix=no
22650 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022651 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022652 soname_spec='${libname}${release}${major}$shared_ext'
22653 shlibpath_overrides_runpath=yes
22654 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000022655 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000022656 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 if test "$GCC" = yes; then
22658 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"`
22659 else
22660 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022661 fi
22662 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22663 ;;
22664
22665dgux*)
22666 version_type=linux
22667 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
22672 ;;
22673
22674freebsd1*)
22675 dynamic_linker=no
22676 ;;
22677
Reid Spencer2706f8c2004-09-19 23:53:36 +000022678kfreebsd*-gnu)
22679 version_type=linux
22680 need_lib_prefix=no
22681 need_version=no
22682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22683 soname_spec='${libname}${release}${shared_ext}$major'
22684 shlibpath_var=LD_LIBRARY_PATH
22685 shlibpath_overrides_runpath=no
22686 hardcode_into_libs=yes
22687 dynamic_linker='GNU ld.so'
22688 ;;
22689
Reid Spencera773bd52006-08-04 18:18:08 +000022690freebsd* | dragonfly*)
22691 # DragonFly does not have aout. When/if they implement a new
22692 # versioning mechanism, adjust this.
22693 if test -x /usr/bin/objformat; then
22694 objformat=`/usr/bin/objformat`
22695 else
22696 case $host_os in
22697 freebsd[123]*) objformat=aout ;;
22698 *) objformat=elf ;;
22699 esac
22700 fi
John Criswell47fdd832003-07-14 16:52:07 +000022701 version_type=freebsd-$objformat
22702 case $version_type in
22703 freebsd-elf*)
22704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22705 need_version=no
22706 need_lib_prefix=no
22707 ;;
22708 freebsd-*)
22709 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22710 need_version=yes
22711 ;;
22712 esac
22713 shlibpath_var=LD_LIBRARY_PATH
22714 case $host_os in
22715 freebsd2*)
22716 shlibpath_overrides_runpath=yes
22717 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022718 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022719 shlibpath_overrides_runpath=yes
22720 hardcode_into_libs=yes
22721 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022722 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22723 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022724 shlibpath_overrides_runpath=no
22725 hardcode_into_libs=yes
22726 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022727 freebsd*) # from 4.6 on
22728 shlibpath_overrides_runpath=yes
22729 hardcode_into_libs=yes
22730 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022731 esac
22732 ;;
22733
22734gnu*)
22735 version_type=linux
22736 need_lib_prefix=no
22737 need_version=no
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 hardcode_into_libs=yes
22742 ;;
22743
22744hpux9* | hpux10* | hpux11*)
22745 # Give a soname corresponding to the major version so that dld.sl refuses to
22746 # link against other versions.
22747 version_type=sunos
22748 need_lib_prefix=no
22749 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022750 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022751 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022752 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022753 hardcode_into_libs=yes
22754 dynamic_linker="$host_os dld.so"
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22758 soname_spec='${libname}${release}${shared_ext}$major'
22759 if test "X$HPUX_IA64_MODE" = X32; then
22760 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22761 else
22762 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22763 fi
22764 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22765 ;;
22766 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022767 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022768 hardcode_into_libs=yes
22769 dynamic_linker="$host_os dld.sl"
22770 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22771 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22773 soname_spec='${libname}${release}${shared_ext}$major'
22774 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22776 ;;
22777 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022778 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022779 dynamic_linker="$host_os dld.sl"
22780 shlibpath_var=SHLIB_PATH
22781 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 soname_spec='${libname}${release}${shared_ext}$major'
22784 ;;
22785 esac
22786 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22787 postinstall_cmds='chmod 555 $lib'
22788 ;;
22789
Reid Spencera773bd52006-08-04 18:18:08 +000022790interix3*)
22791 version_type=linux
22792 need_lib_prefix=no
22793 need_version=no
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22797 shlibpath_var=LD_LIBRARY_PATH
22798 shlibpath_overrides_runpath=no
22799 hardcode_into_libs=yes
22800 ;;
22801
John Criswell47fdd832003-07-14 16:52:07 +000022802irix5* | irix6* | nonstopux*)
22803 case $host_os in
22804 nonstopux*) version_type=nonstopux ;;
22805 *)
22806 if test "$lt_cv_prog_gnu_ld" = yes; then
22807 version_type=linux
22808 else
22809 version_type=irix
22810 fi ;;
22811 esac
22812 need_lib_prefix=no
22813 need_version=no
22814 soname_spec='${libname}${release}${shared_ext}$major'
22815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22816 case $host_os in
22817 irix5* | nonstopux*)
22818 libsuff= shlibsuff=
22819 ;;
22820 *)
22821 case $LD in # libtool.m4 will add one of these switches to LD
22822 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22823 libsuff= shlibsuff= libmagic=32-bit;;
22824 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22825 libsuff=32 shlibsuff=N32 libmagic=N32;;
22826 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22827 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22828 *) libsuff= shlibsuff= libmagic=never-match;;
22829 esac
22830 ;;
22831 esac
22832 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22833 shlibpath_overrides_runpath=no
22834 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22835 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22836 hardcode_into_libs=yes
22837 ;;
22838
22839# No shared lib support for Linux oldld, aout, or coff.
22840linux*oldld* | linux*aout* | linux*coff*)
22841 dynamic_linker=no
22842 ;;
22843
22844# This must be Linux ELF.
22845linux*)
22846 version_type=linux
22847 need_lib_prefix=no
22848 need_version=no
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22852 shlibpath_var=LD_LIBRARY_PATH
22853 shlibpath_overrides_runpath=no
22854 # This implies no fast_install, which is unacceptable.
22855 # Some rework will be needed to allow for fast_install
22856 # before this can be enabled.
22857 hardcode_into_libs=yes
22858
Reid Spencer2706f8c2004-09-19 23:53:36 +000022859 # Append ld.so.conf contents to the search path
22860 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022861 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 +000022862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22863 fi
22864
John Criswell47fdd832003-07-14 16:52:07 +000022865 # We used to test for /lib/ld.so.1 and disable shared libraries on
22866 # powerpc, because MkLinux only supported shared libraries with the
22867 # GNU dynamic linker. Since this was broken with cross compilers,
22868 # most powerpc-linux boxes support dynamic linking these days and
22869 # people can always --disable-shared, the test was removed, and we
22870 # assume the GNU/Linux dynamic linker is in use.
22871 dynamic_linker='GNU/Linux ld.so'
22872 ;;
22873
Reid Spencer2706f8c2004-09-19 23:53:36 +000022874knetbsd*-gnu)
22875 version_type=linux
22876 need_lib_prefix=no
22877 need_version=no
22878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22879 soname_spec='${libname}${release}${shared_ext}$major'
22880 shlibpath_var=LD_LIBRARY_PATH
22881 shlibpath_overrides_runpath=no
22882 hardcode_into_libs=yes
22883 dynamic_linker='GNU ld.so'
22884 ;;
22885
John Criswell47fdd832003-07-14 16:52:07 +000022886netbsd*)
22887 version_type=sunos
22888 need_lib_prefix=no
22889 need_version=no
22890 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22893 dynamic_linker='NetBSD (a.out) ld.so'
22894 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022896 soname_spec='${libname}${release}${shared_ext}$major'
22897 dynamic_linker='NetBSD ld.elf_so'
22898 fi
22899 shlibpath_var=LD_LIBRARY_PATH
22900 shlibpath_overrides_runpath=yes
22901 hardcode_into_libs=yes
22902 ;;
22903
22904newsos6)
22905 version_type=linux
22906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22909 ;;
22910
Reid Spencer2706f8c2004-09-19 23:53:36 +000022911nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022912 version_type=linux
22913 need_lib_prefix=no
22914 need_version=no
22915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22916 soname_spec='${libname}${release}${shared_ext}$major'
22917 shlibpath_var=LD_LIBRARY_PATH
22918 shlibpath_overrides_runpath=yes
22919 ;;
22920
22921openbsd*)
22922 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022923 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022924 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22926 case $host_os in
22927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22928 *) need_version=no ;;
22929 esac
John Criswell47fdd832003-07-14 16:52:07 +000022930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22932 shlibpath_var=LD_LIBRARY_PATH
22933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22934 case $host_os in
22935 openbsd2.[89] | openbsd2.[89].*)
22936 shlibpath_overrides_runpath=no
22937 ;;
22938 *)
22939 shlibpath_overrides_runpath=yes
22940 ;;
22941 esac
22942 else
22943 shlibpath_overrides_runpath=yes
22944 fi
22945 ;;
22946
22947os2*)
22948 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022949 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022950 need_lib_prefix=no
22951 library_names_spec='$libname${shared_ext} $libname.a'
22952 dynamic_linker='OS/2 ld.exe'
22953 shlibpath_var=LIBPATH
22954 ;;
22955
22956osf3* | osf4* | osf5*)
22957 version_type=osf
22958 need_lib_prefix=no
22959 need_version=no
22960 soname_spec='${libname}${release}${shared_ext}$major'
22961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22962 shlibpath_var=LD_LIBRARY_PATH
22963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22965 ;;
22966
John Criswell47fdd832003-07-14 16:52:07 +000022967solaris*)
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=yes
22975 hardcode_into_libs=yes
22976 # ldd complains unless libraries are executable
22977 postinstall_cmds='chmod +x $lib'
22978 ;;
22979
22980sunos4*)
22981 version_type=sunos
22982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22983 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22984 shlibpath_var=LD_LIBRARY_PATH
22985 shlibpath_overrides_runpath=yes
22986 if test "$with_gnu_ld" = yes; then
22987 need_lib_prefix=no
22988 fi
22989 need_version=yes
22990 ;;
22991
Reid Spencera773bd52006-08-04 18:18:08 +000022992sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022993 version_type=linux
22994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22995 soname_spec='${libname}${release}${shared_ext}$major'
22996 shlibpath_var=LD_LIBRARY_PATH
22997 case $host_vendor in
22998 sni)
22999 shlibpath_overrides_runpath=no
23000 need_lib_prefix=no
23001 export_dynamic_flag_spec='${wl}-Blargedynsym'
23002 runpath_var=LD_RUN_PATH
23003 ;;
23004 siemens)
23005 need_lib_prefix=no
23006 ;;
23007 motorola)
23008 need_lib_prefix=no
23009 need_version=no
23010 shlibpath_overrides_runpath=no
23011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23012 ;;
23013 esac
23014 ;;
23015
23016sysv4*MP*)
23017 if test -d /usr/nec ;then
23018 version_type=linux
23019 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23020 soname_spec='$libname${shared_ext}.$major'
23021 shlibpath_var=LD_LIBRARY_PATH
23022 fi
23023 ;;
23024
Reid Spencera773bd52006-08-04 18:18:08 +000023025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23026 version_type=freebsd-elf
23027 need_lib_prefix=no
23028 need_version=no
23029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23030 soname_spec='${libname}${release}${shared_ext}$major'
23031 shlibpath_var=LD_LIBRARY_PATH
23032 hardcode_into_libs=yes
23033 if test "$with_gnu_ld" = yes; then
23034 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23035 shlibpath_overrides_runpath=no
23036 else
23037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23038 shlibpath_overrides_runpath=yes
23039 case $host_os in
23040 sco3.2v5*)
23041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23042 ;;
23043 esac
23044 fi
23045 sys_lib_dlsearch_path_spec='/usr/lib'
23046 ;;
23047
John Criswell47fdd832003-07-14 16:52:07 +000023048uts4*)
23049 version_type=linux
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23051 soname_spec='${libname}${release}${shared_ext}$major'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 ;;
23054
23055*)
23056 dynamic_linker=no
23057 ;;
23058esac
Reid Spencera773bd52006-08-04 18:18:08 +000023059{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23060echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023061test "$dynamic_linker" = no && can_build_shared=no
23062
Reid Spencera773bd52006-08-04 18:18:08 +000023063variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23064if test "$GCC" = yes; then
23065 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23066fi
23067
23068{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23069echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023070hardcode_action_F77=
23071if test -n "$hardcode_libdir_flag_spec_F77" || \
23072 test -n "$runpath_var_F77" || \
23073 test "X$hardcode_automatic_F77" = "Xyes" ; then
23074
23075 # We can hardcode non-existant directories.
23076 if test "$hardcode_direct_F77" != no &&
23077 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23078 # have to relink, otherwise we might link with an installed library
23079 # when we should be linking with a yet-to-be-installed one
23080 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23081 test "$hardcode_minus_L_F77" != no; then
23082 # Linking always hardcodes the temporary library directory.
23083 hardcode_action_F77=relink
23084 else
23085 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23086 hardcode_action_F77=immediate
23087 fi
23088else
23089 # We cannot hardcode anything, or else we can only hardcode existing
23090 # directories.
23091 hardcode_action_F77=unsupported
23092fi
Reid Spencera773bd52006-08-04 18:18:08 +000023093{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23094echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023095
23096if test "$hardcode_action_F77" = relink; then
23097 # Fast installation is not supported
23098 enable_fast_install=no
23099elif test "$shlibpath_overrides_runpath" = yes ||
23100 test "$enable_shared" = no; then
23101 # Fast installation is not necessary
23102 enable_fast_install=needless
23103fi
23104
John Criswell47fdd832003-07-14 16:52:07 +000023105
23106# The else clause should only fire when bootstrapping the
23107# libtool distribution, otherwise you forgot to ship ltmain.sh
23108# with your package, and you will get complaints that there are
23109# no rules to generate ltmain.sh.
23110if test -f "$ltmain"; then
23111 # See if we are running on zsh, and set the options which allow our commands through
23112 # without removal of \ escapes.
23113 if test -n "${ZSH_VERSION+set}" ; then
23114 setopt NO_GLOB_SUBST
23115 fi
23116 # Now quote all the things that may contain metacharacters while being
23117 # careful not to overquote the AC_SUBSTed values. We take copies of the
23118 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023119 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 +000023120 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023121 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23122 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23123 deplibs_check_method reload_flag reload_cmds need_locks \
23124 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23125 lt_cv_sys_global_symbol_to_c_name_address \
23126 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23127 old_postinstall_cmds old_postuninstall_cmds \
23128 compiler_F77 \
23129 CC_F77 \
23130 LD_F77 \
23131 lt_prog_compiler_wl_F77 \
23132 lt_prog_compiler_pic_F77 \
23133 lt_prog_compiler_static_F77 \
23134 lt_prog_compiler_no_builtin_flag_F77 \
23135 export_dynamic_flag_spec_F77 \
23136 thread_safe_flag_spec_F77 \
23137 whole_archive_flag_spec_F77 \
23138 enable_shared_with_static_runtimes_F77 \
23139 old_archive_cmds_F77 \
23140 old_archive_from_new_cmds_F77 \
23141 predep_objects_F77 \
23142 postdep_objects_F77 \
23143 predeps_F77 \
23144 postdeps_F77 \
23145 compiler_lib_search_path_F77 \
23146 archive_cmds_F77 \
23147 archive_expsym_cmds_F77 \
23148 postinstall_cmds_F77 \
23149 postuninstall_cmds_F77 \
23150 old_archive_from_expsyms_cmds_F77 \
23151 allow_undefined_flag_F77 \
23152 no_undefined_flag_F77 \
23153 export_symbols_cmds_F77 \
23154 hardcode_libdir_flag_spec_F77 \
23155 hardcode_libdir_flag_spec_ld_F77 \
23156 hardcode_libdir_separator_F77 \
23157 hardcode_automatic_F77 \
23158 module_cmds_F77 \
23159 module_expsym_cmds_F77 \
23160 lt_cv_prog_compiler_c_o_F77 \
23161 exclude_expsyms_F77 \
23162 include_expsyms_F77; do
23163
23164 case $var in
23165 old_archive_cmds_F77 | \
23166 old_archive_from_new_cmds_F77 | \
23167 archive_cmds_F77 | \
23168 archive_expsym_cmds_F77 | \
23169 module_cmds_F77 | \
23170 module_expsym_cmds_F77 | \
23171 old_archive_from_expsyms_cmds_F77 | \
23172 export_symbols_cmds_F77 | \
23173 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23174 postinstall_cmds | postuninstall_cmds | \
23175 old_postinstall_cmds | old_postuninstall_cmds | \
23176 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23177 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178 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 +000023179 ;;
23180 *)
23181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23182 ;;
23183 esac
23184 done
23185
23186 case $lt_echo in
23187 *'\$0 --fallback-echo"')
23188 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23189 ;;
23190 esac
23191
23192cfgfile="$ofile"
23193
23194 cat <<__EOF__ >> "$cfgfile"
23195# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23196
23197# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23198
23199# Shell to use when invoking shell scripts.
23200SHELL=$lt_SHELL
23201
23202# Whether or not to build shared libraries.
23203build_libtool_libs=$enable_shared
23204
23205# Whether or not to build static libraries.
23206build_old_libs=$enable_static
23207
23208# Whether or not to add -lc for building shared libraries.
23209build_libtool_need_lc=$archive_cmds_need_lc_F77
23210
23211# Whether or not to disallow shared libs when runtime libs are static
23212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23213
23214# Whether or not to optimize for fast installation.
23215fast_install=$enable_fast_install
23216
23217# The host system.
23218host_alias=$host_alias
23219host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023220host_os=$host_os
23221
23222# The build system.
23223build_alias=$build_alias
23224build=$build
23225build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023226
23227# An echo program that does not interpret backslashes.
23228echo=$lt_echo
23229
23230# The archiver.
23231AR=$lt_AR
23232AR_FLAGS=$lt_AR_FLAGS
23233
23234# A C compiler.
23235LTCC=$lt_LTCC
23236
Reid Spencera773bd52006-08-04 18:18:08 +000023237# LTCC compiler flags.
23238LTCFLAGS=$lt_LTCFLAGS
23239
John Criswell47fdd832003-07-14 16:52:07 +000023240# A language-specific compiler.
23241CC=$lt_compiler_F77
23242
23243# Is the compiler the GNU C compiler?
23244with_gcc=$GCC_F77
23245
23246# An ERE matcher.
23247EGREP=$lt_EGREP
23248
23249# The linker used to build libraries.
23250LD=$lt_LD_F77
23251
23252# Whether we need hard or soft links.
23253LN_S=$lt_LN_S
23254
23255# A BSD-compatible nm program.
23256NM=$lt_NM
23257
23258# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023260
23261# Used to examine libraries when file_magic_cmd begins "file"
23262MAGIC_CMD=$MAGIC_CMD
23263
23264# Used on cygwin: DLL creation program.
23265DLLTOOL="$DLLTOOL"
23266
23267# Used on cygwin: object dumper.
23268OBJDUMP="$OBJDUMP"
23269
23270# Used on cygwin: assembler.
23271AS="$AS"
23272
23273# The name of the directory that contains temporary libtool files.
23274objdir=$objdir
23275
23276# How to create reloadable object files.
23277reload_flag=$lt_reload_flag
23278reload_cmds=$lt_reload_cmds
23279
23280# How to pass a linker flag through the compiler.
23281wl=$lt_lt_prog_compiler_wl_F77
23282
23283# Object file suffix (normally "o").
23284objext="$ac_objext"
23285
23286# Old archive suffix (normally "a").
23287libext="$libext"
23288
23289# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023290shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023291
23292# Executable file suffix (normally "").
23293exeext="$exeext"
23294
23295# Additional compiler flags for building library objects.
23296pic_flag=$lt_lt_prog_compiler_pic_F77
23297pic_mode=$pic_mode
23298
23299# What is the maximum length of a command?
23300max_cmd_len=$lt_cv_sys_max_cmd_len
23301
23302# Does compiler simultaneously support -c and -o options?
23303compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23304
Reid Spencera773bd52006-08-04 18:18:08 +000023305# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023306need_locks=$lt_need_locks
23307
23308# Do we need the lib prefix for modules?
23309need_lib_prefix=$need_lib_prefix
23310
23311# Do we need a version for libraries?
23312need_version=$need_version
23313
23314# Whether dlopen is supported.
23315dlopen_support=$enable_dlopen
23316
23317# Whether dlopen of programs is supported.
23318dlopen_self=$enable_dlopen_self
23319
23320# Whether dlopen of statically linked programs is supported.
23321dlopen_self_static=$enable_dlopen_self_static
23322
23323# Compiler flag to prevent dynamic linking.
23324link_static_flag=$lt_lt_prog_compiler_static_F77
23325
23326# Compiler flag to turn off builtin functions.
23327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23328
23329# Compiler flag to allow reflexive dlopens.
23330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23331
23332# Compiler flag to generate shared objects directly from archives.
23333whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23334
23335# Compiler flag to generate thread-safe objects.
23336thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23337
23338# Library versioning type.
23339version_type=$version_type
23340
23341# Format of library name prefix.
23342libname_spec=$lt_libname_spec
23343
23344# List of archive names. First name is the real one, the rest are links.
23345# The last name is the one that the linker finds with -lNAME.
23346library_names_spec=$lt_library_names_spec
23347
23348# The coded name of the library, if different from the real name.
23349soname_spec=$lt_soname_spec
23350
23351# Commands used to build and install an old-style archive.
23352RANLIB=$lt_RANLIB
23353old_archive_cmds=$lt_old_archive_cmds_F77
23354old_postinstall_cmds=$lt_old_postinstall_cmds
23355old_postuninstall_cmds=$lt_old_postuninstall_cmds
23356
23357# Create an old-style archive from a shared archive.
23358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23359
23360# Create a temporary old-style archive to link instead of a shared archive.
23361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23362
23363# Commands used to build and install a shared archive.
23364archive_cmds=$lt_archive_cmds_F77
23365archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23366postinstall_cmds=$lt_postinstall_cmds
23367postuninstall_cmds=$lt_postuninstall_cmds
23368
23369# Commands used to build a loadable module (assumed same as above if empty)
23370module_cmds=$lt_module_cmds_F77
23371module_expsym_cmds=$lt_module_expsym_cmds_F77
23372
23373# Commands to strip libraries.
23374old_striplib=$lt_old_striplib
23375striplib=$lt_striplib
23376
23377# Dependencies to place before the objects being linked to create a
23378# shared library.
23379predep_objects=$lt_predep_objects_F77
23380
23381# Dependencies to place after the objects being linked to create a
23382# shared library.
23383postdep_objects=$lt_postdep_objects_F77
23384
23385# Dependencies to place before the objects being linked to create a
23386# shared library.
23387predeps=$lt_predeps_F77
23388
23389# Dependencies to place after the objects being linked to create a
23390# shared library.
23391postdeps=$lt_postdeps_F77
23392
23393# The library search path used internally by the compiler when linking
23394# a shared library.
23395compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23396
23397# Method to check whether dependent libraries are shared objects.
23398deplibs_check_method=$lt_deplibs_check_method
23399
23400# Command to use when deplibs_check_method == file_magic.
23401file_magic_cmd=$lt_file_magic_cmd
23402
23403# Flag that allows shared libraries with undefined symbols to be built.
23404allow_undefined_flag=$lt_allow_undefined_flag_F77
23405
23406# Flag that forces no undefined symbols.
23407no_undefined_flag=$lt_no_undefined_flag_F77
23408
23409# Commands used to finish a libtool library installation in a directory.
23410finish_cmds=$lt_finish_cmds
23411
23412# Same as above, but a single script fragment to be evaled but not shown.
23413finish_eval=$lt_finish_eval
23414
23415# Take the output of nm and produce a listing of raw symbols and C names.
23416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23417
23418# Transform the output of nm in a proper C declaration
23419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23420
23421# Transform the output of nm in a C name address pair
23422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23423
23424# This is the shared library runtime path variable.
23425runpath_var=$runpath_var
23426
23427# This is the shared library path variable.
23428shlibpath_var=$shlibpath_var
23429
23430# Is shlibpath searched before the hard-coded library search path?
23431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23432
23433# How to hardcode a shared library path into an executable.
23434hardcode_action=$hardcode_action_F77
23435
23436# Whether we should hardcode library paths into libraries.
23437hardcode_into_libs=$hardcode_into_libs
23438
23439# Flag to hardcode \$libdir into a binary during linking.
23440# This must work even if \$libdir does not exist.
23441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23442
23443# If ld is used when linking, flag to hardcode \$libdir into
23444# a binary during linking. This must work even if \$libdir does
23445# not exist.
23446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23447
23448# Whether we need a single -rpath flag with a separated argument.
23449hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23450
23451# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23452# resulting binary.
23453hardcode_direct=$hardcode_direct_F77
23454
23455# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23456# resulting binary.
23457hardcode_minus_L=$hardcode_minus_L_F77
23458
23459# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23460# the resulting binary.
23461hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23462
23463# Set to yes if building a shared library automatically hardcodes DIR into the library
23464# and all subsequent libraries and executables linked against it.
23465hardcode_automatic=$hardcode_automatic_F77
23466
23467# Variables whose values should be saved in libtool wrapper scripts and
23468# restored at relink time.
23469variables_saved_for_relink="$variables_saved_for_relink"
23470
23471# Whether libtool must link a program against all its dependency libraries.
23472link_all_deplibs=$link_all_deplibs_F77
23473
23474# Compile-time system search path for libraries
23475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23476
23477# Run-time system search path for libraries
23478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23479
23480# Fix the shell variable \$srcfile for the compiler.
23481fix_srcfile_path="$fix_srcfile_path_F77"
23482
23483# Set to yes if exported symbols are required.
23484always_export_symbols=$always_export_symbols_F77
23485
23486# The commands to list exported symbols.
23487export_symbols_cmds=$lt_export_symbols_cmds_F77
23488
23489# The commands to extract the exported symbol list from a shared archive.
23490extract_expsyms_cmds=$lt_extract_expsyms_cmds
23491
23492# Symbols that should not be listed in the preloaded symbols.
23493exclude_expsyms=$lt_exclude_expsyms_F77
23494
23495# Symbols that must always be exported.
23496include_expsyms=$lt_include_expsyms_F77
23497
23498# ### END LIBTOOL TAG CONFIG: $tagname
23499
23500__EOF__
23501
23502
23503else
23504 # If there is no Makefile yet, we rely on a make rule to execute
23505 # `config.status --recheck' to rerun these tests and create the
23506 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023507 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23508 if test -f "$ltmain_in"; then
23509 test -f Makefile && make "$ltmain"
23510 fi
John Criswell47fdd832003-07-14 16:52:07 +000023511fi
23512
23513
23514ac_ext=c
23515ac_cpp='$CPP $CPPFLAGS'
23516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23518ac_compiler_gnu=$ac_cv_c_compiler_gnu
23519
23520CC="$lt_save_CC"
23521
23522 else
23523 tagname=""
23524 fi
23525 ;;
23526
23527 GCJ)
23528 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023529 ac_ext=c
23530ac_cpp='$CPP $CPPFLAGS'
23531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23533ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023534
23535
23536# Source file extension for Java test sources.
23537ac_ext=java
23538
23539# Object file extension for compiled Java test sources.
23540objext=o
23541objext_GCJ=$objext
23542
23543# Code to be used in simple compile tests
23544lt_simple_compile_test_code="class foo {}\n"
23545
23546# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023547lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023548
23549# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23550
23551# If no C compiler was specified, use CC.
23552LTCC=${LTCC-"$CC"}
23553
Reid Spencera773bd52006-08-04 18:18:08 +000023554# If no C compiler flags were specified, use CFLAGS.
23555LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23556
John Criswell47fdd832003-07-14 16:52:07 +000023557# Allow CC to be a program name with arguments.
23558compiler=$CC
23559
23560
Reid Spencera773bd52006-08-04 18:18:08 +000023561# save warnings/boilerplate of simple test code
23562ac_outfile=conftest.$ac_objext
23563printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23564eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23565_lt_compiler_boilerplate=`cat conftest.err`
23566$rm conftest*
23567
23568ac_outfile=conftest.$ac_objext
23569printf "$lt_simple_link_test_code" >conftest.$ac_ext
23570eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23571_lt_linker_boilerplate=`cat conftest.err`
23572$rm conftest*
23573
23574
John Criswell47fdd832003-07-14 16:52:07 +000023575# Allow CC to be a program name with arguments.
23576lt_save_CC="$CC"
23577CC=${GCJ-"gcj"}
23578compiler=$CC
23579compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023580for cc_temp in $compiler""; do
23581 case $cc_temp in
23582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23584 \-*) ;;
23585 *) break;;
23586 esac
23587done
23588cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23589
John Criswell47fdd832003-07-14 16:52:07 +000023590
23591# GCJ did not exist at the time GCC didn't implicitly link libc in.
23592archive_cmds_need_lc_GCJ=no
23593
Reid Spencera773bd52006-08-04 18:18:08 +000023594old_archive_cmds_GCJ=$old_archive_cmds
23595
John Criswell47fdd832003-07-14 16:52:07 +000023596
23597lt_prog_compiler_no_builtin_flag_GCJ=
23598
23599if test "$GCC" = yes; then
23600 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23601
Reid Spencer2706f8c2004-09-19 23:53:36 +000023602
Reid Spencera773bd52006-08-04 18:18:08 +000023603{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23604echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023605if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23606 echo $ECHO_N "(cached) $ECHO_C" >&6
23607else
23608 lt_cv_prog_compiler_rtti_exceptions=no
23609 ac_outfile=conftest.$ac_objext
23610 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23611 lt_compiler_flag="-fno-rtti -fno-exceptions"
23612 # Insert the option either (1) after the last *FLAGS variable, or
23613 # (2) before a word containing "conftest.", or (3) at the end.
23614 # Note that $ac_compile itself does not contain backslashes and begins
23615 # with a dollar sign (not a hyphen), so the echo should work correctly.
23616 # The option is referenced via a variable to avoid confusing sed.
23617 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023618 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023619 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23620 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023621 (eval echo "\"\$as_me:23621: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023622 (eval "$lt_compile" 2>conftest.err)
23623 ac_status=$?
23624 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023625 echo "$as_me:23625: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023626 if (exit $ac_status) && test -s "$ac_outfile"; then
23627 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023628 # So say no if there are warnings other than the usual output.
23629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23630 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23631 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023632 lt_cv_prog_compiler_rtti_exceptions=yes
23633 fi
23634 fi
23635 $rm conftest*
23636
23637fi
Reid Spencera773bd52006-08-04 18:18:08 +000023638{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23639echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023640
23641if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23642 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23643else
23644 :
23645fi
23646
23647fi
23648
23649lt_prog_compiler_wl_GCJ=
23650lt_prog_compiler_pic_GCJ=
23651lt_prog_compiler_static_GCJ=
23652
Reid Spencera773bd52006-08-04 18:18:08 +000023653{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23654echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023655
23656 if test "$GCC" = yes; then
23657 lt_prog_compiler_wl_GCJ='-Wl,'
23658 lt_prog_compiler_static_GCJ='-static'
23659
23660 case $host_os in
23661 aix*)
23662 # All AIX code is PIC.
23663 if test "$host_cpu" = ia64; then
23664 # AIX 5 now supports IA64 processor
23665 lt_prog_compiler_static_GCJ='-Bstatic'
23666 fi
23667 ;;
23668
23669 amigaos*)
23670 # FIXME: we need at least 68020 code to build shared libraries, but
23671 # adding the `-m68020' flag to GCC prevents building anything better,
23672 # like `-m68040'.
23673 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23674 ;;
23675
23676 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23677 # PIC is the default for these OSes.
23678 ;;
23679
23680 mingw* | pw32* | os2*)
23681 # This hack is so that the source file can tell whether it is being
23682 # built for inclusion in a dll (and should export symbols for example).
23683 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23684 ;;
23685
23686 darwin* | rhapsody*)
23687 # PIC is the default on this platform
23688 # Common symbols not allowed in MH_DYLIB files
23689 lt_prog_compiler_pic_GCJ='-fno-common'
23690 ;;
23691
Reid Spencera773bd52006-08-04 18:18:08 +000023692 interix3*)
23693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23694 # Instead, we relocate shared libraries at runtime.
23695 ;;
23696
John Criswell47fdd832003-07-14 16:52:07 +000023697 msdosdjgpp*)
23698 # Just because we use GCC doesn't mean we suddenly get shared libraries
23699 # on systems that don't support them.
23700 lt_prog_compiler_can_build_shared_GCJ=no
23701 enable_shared=no
23702 ;;
23703
23704 sysv4*MP*)
23705 if test -d /usr/nec; then
23706 lt_prog_compiler_pic_GCJ=-Kconform_pic
23707 fi
23708 ;;
23709
23710 hpux*)
23711 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23712 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023713 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023714 hppa*64*|ia64*)
23715 # +Z the default
23716 ;;
23717 *)
23718 lt_prog_compiler_pic_GCJ='-fPIC'
23719 ;;
23720 esac
23721 ;;
23722
23723 *)
23724 lt_prog_compiler_pic_GCJ='-fPIC'
23725 ;;
23726 esac
23727 else
23728 # PORTME Check for flag to pass linker flags through the system compiler.
23729 case $host_os in
23730 aix*)
23731 lt_prog_compiler_wl_GCJ='-Wl,'
23732 if test "$host_cpu" = ia64; then
23733 # AIX 5 now supports IA64 processor
23734 lt_prog_compiler_static_GCJ='-Bstatic'
23735 else
23736 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23737 fi
23738 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023739 darwin*)
23740 # PIC is the default on this platform
23741 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023742 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023743 xlc*)
23744 lt_prog_compiler_pic_GCJ='-qnocommon'
23745 lt_prog_compiler_wl_GCJ='-Wl,'
23746 ;;
23747 esac
23748 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023749
23750 mingw* | pw32* | os2*)
23751 # This hack is so that the source file can tell whether it is being
23752 # built for inclusion in a dll (and should export symbols for example).
23753 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23754 ;;
23755
23756 hpux9* | hpux10* | hpux11*)
23757 lt_prog_compiler_wl_GCJ='-Wl,'
23758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23759 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023760 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023761 hppa*64*|ia64*)
23762 # +Z the default
23763 ;;
23764 *)
23765 lt_prog_compiler_pic_GCJ='+Z'
23766 ;;
23767 esac
23768 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23769 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23770 ;;
23771
23772 irix5* | irix6* | nonstopux*)
23773 lt_prog_compiler_wl_GCJ='-Wl,'
23774 # PIC (with -KPIC) is the default.
23775 lt_prog_compiler_static_GCJ='-non_shared'
23776 ;;
23777
23778 newsos6)
23779 lt_prog_compiler_pic_GCJ='-KPIC'
23780 lt_prog_compiler_static_GCJ='-Bstatic'
23781 ;;
23782
23783 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023784 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023785 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023786 lt_prog_compiler_wl_GCJ='-Wl,'
23787 lt_prog_compiler_pic_GCJ='-KPIC'
23788 lt_prog_compiler_static_GCJ='-static'
23789 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023790 pgcc* | pgf77* | pgf90* | pgf95*)
23791 # Portland Group compilers (*not* the Pentium gcc compiler,
23792 # which looks to be a dead project)
23793 lt_prog_compiler_wl_GCJ='-Wl,'
23794 lt_prog_compiler_pic_GCJ='-fpic'
23795 lt_prog_compiler_static_GCJ='-Bstatic'
23796 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023797 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023798 lt_prog_compiler_wl_GCJ='-Wl,'
23799 # All Alpha code is PIC.
23800 lt_prog_compiler_static_GCJ='-non_shared'
23801 ;;
23802 esac
23803 ;;
23804
23805 osf3* | osf4* | osf5*)
23806 lt_prog_compiler_wl_GCJ='-Wl,'
23807 # All OSF/1 code is PIC.
23808 lt_prog_compiler_static_GCJ='-non_shared'
23809 ;;
23810
John Criswell47fdd832003-07-14 16:52:07 +000023811 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023812 lt_prog_compiler_pic_GCJ='-KPIC'
23813 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023814 case $cc_basename in
23815 f77* | f90* | f95*)
23816 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23817 *)
23818 lt_prog_compiler_wl_GCJ='-Wl,';;
23819 esac
John Criswell47fdd832003-07-14 16:52:07 +000023820 ;;
23821
23822 sunos4*)
23823 lt_prog_compiler_wl_GCJ='-Qoption ld '
23824 lt_prog_compiler_pic_GCJ='-PIC'
23825 lt_prog_compiler_static_GCJ='-Bstatic'
23826 ;;
23827
Reid Spencera773bd52006-08-04 18:18:08 +000023828 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023829 lt_prog_compiler_wl_GCJ='-Wl,'
23830 lt_prog_compiler_pic_GCJ='-KPIC'
23831 lt_prog_compiler_static_GCJ='-Bstatic'
23832 ;;
23833
23834 sysv4*MP*)
23835 if test -d /usr/nec ;then
23836 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23837 lt_prog_compiler_static_GCJ='-Bstatic'
23838 fi
23839 ;;
23840
Reid Spencera773bd52006-08-04 18:18:08 +000023841 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23842 lt_prog_compiler_wl_GCJ='-Wl,'
23843 lt_prog_compiler_pic_GCJ='-KPIC'
23844 lt_prog_compiler_static_GCJ='-Bstatic'
23845 ;;
23846
23847 unicos*)
23848 lt_prog_compiler_wl_GCJ='-Wl,'
23849 lt_prog_compiler_can_build_shared_GCJ=no
23850 ;;
23851
John Criswell47fdd832003-07-14 16:52:07 +000023852 uts4*)
23853 lt_prog_compiler_pic_GCJ='-pic'
23854 lt_prog_compiler_static_GCJ='-Bstatic'
23855 ;;
23856
23857 *)
23858 lt_prog_compiler_can_build_shared_GCJ=no
23859 ;;
23860 esac
23861 fi
23862
Reid Spencera773bd52006-08-04 18:18:08 +000023863{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23864echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023865
23866#
23867# Check to make sure the PIC flag actually works.
23868#
23869if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023870
Reid Spencera773bd52006-08-04 18:18:08 +000023871{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23872echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023873if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23875else
23876 lt_prog_compiler_pic_works_GCJ=no
23877 ac_outfile=conftest.$ac_objext
23878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23879 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23880 # Insert the option either (1) after the last *FLAGS variable, or
23881 # (2) before a word containing "conftest.", or (3) at the end.
23882 # Note that $ac_compile itself does not contain backslashes and begins
23883 # with a dollar sign (not a hyphen), so the echo should work correctly.
23884 # The option is referenced via a variable to avoid confusing sed.
23885 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23888 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023889 (eval echo "\"\$as_me:23889: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023890 (eval "$lt_compile" 2>conftest.err)
23891 ac_status=$?
23892 cat conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023893 echo "$as_me:23893: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023894 if (exit $ac_status) && test -s "$ac_outfile"; then
23895 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023896 # So say no if there are warnings other than the usual output.
23897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023900 lt_prog_compiler_pic_works_GCJ=yes
23901 fi
23902 fi
23903 $rm conftest*
23904
23905fi
Reid Spencera773bd52006-08-04 18:18:08 +000023906{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23907echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023908
23909if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23910 case $lt_prog_compiler_pic_GCJ in
23911 "" | " "*) ;;
23912 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23913 esac
23914else
23915 lt_prog_compiler_pic_GCJ=
23916 lt_prog_compiler_can_build_shared_GCJ=no
23917fi
23918
23919fi
Reid Spencera773bd52006-08-04 18:18:08 +000023920case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023921 # For platforms which do not support PIC, -DPIC is meaningless:
23922 *djgpp*)
23923 lt_prog_compiler_pic_GCJ=
23924 ;;
23925 *)
23926 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23927 ;;
23928esac
23929
Reid Spencera773bd52006-08-04 18:18:08 +000023930#
23931# Check to make sure the static flag actually works.
23932#
23933wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23934{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23935echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23936if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23937 echo $ECHO_N "(cached) $ECHO_C" >&6
23938else
23939 lt_prog_compiler_static_works_GCJ=no
23940 save_LDFLAGS="$LDFLAGS"
23941 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23942 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23943 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23944 # The linker can only warn and ignore the option if not recognized
23945 # So say no if there are warnings
23946 if test -s conftest.err; then
23947 # Append any errors to the config.log.
23948 cat conftest.err 1>&5
23949 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23950 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23951 if diff conftest.exp conftest.er2 >/dev/null; then
23952 lt_prog_compiler_static_works_GCJ=yes
23953 fi
23954 else
23955 lt_prog_compiler_static_works_GCJ=yes
23956 fi
23957 fi
23958 $rm conftest*
23959 LDFLAGS="$save_LDFLAGS"
23960
23961fi
23962{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23963echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23964
23965if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23966 :
23967else
23968 lt_prog_compiler_static_GCJ=
23969fi
23970
23971
23972{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23973echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023974if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976else
23977 lt_cv_prog_compiler_c_o_GCJ=no
23978 $rm -r conftest 2>/dev/null
23979 mkdir conftest
23980 cd conftest
23981 mkdir out
23982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23983
John Criswell47fdd832003-07-14 16:52:07 +000023984 lt_compiler_flag="-o out/conftest2.$ac_objext"
23985 # Insert the option either (1) after the last *FLAGS variable, or
23986 # (2) before a word containing "conftest.", or (3) at the end.
23987 # Note that $ac_compile itself does not contain backslashes and begins
23988 # with a dollar sign (not a hyphen), so the echo should work correctly.
23989 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23992 -e 's:$: $lt_compiler_flag:'`
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023993 (eval echo "\"\$as_me:23993: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023994 (eval "$lt_compile" 2>out/conftest.err)
23995 ac_status=$?
23996 cat out/conftest.err >&5
Nick Lewyckye9821dc2009-03-03 04:55:29 +000023997 echo "$as_me:23997: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023998 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23999 then
24000 # The compiler can only warn and ignore the option if not recognized
24001 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024002 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24003 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24004 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024005 lt_cv_prog_compiler_c_o_GCJ=yes
24006 fi
24007 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024008 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024009 $rm conftest*
24010 # SGI C++ compiler will create directory out/ii_files/ for
24011 # template instantiation
24012 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24013 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024014 cd ..
24015 rmdir conftest
24016 $rm conftest*
24017
24018fi
Reid Spencera773bd52006-08-04 18:18:08 +000024019{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24020echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024021
24022
24023hard_links="nottested"
24024if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24025 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024026 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24027echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024028 hard_links=yes
24029 $rm conftest*
24030 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24031 touch conftest.a
24032 ln conftest.a conftest.b 2>&5 || hard_links=no
24033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024034 { echo "$as_me:$LINENO: result: $hard_links" >&5
24035echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024036 if test "$hard_links" = no; then
24037 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24038echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24039 need_locks=warn
24040 fi
24041else
24042 need_locks=no
24043fi
24044
Reid Spencera773bd52006-08-04 18:18:08 +000024045{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24046echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024047
24048 runpath_var=
24049 allow_undefined_flag_GCJ=
24050 enable_shared_with_static_runtimes_GCJ=no
24051 archive_cmds_GCJ=
24052 archive_expsym_cmds_GCJ=
24053 old_archive_From_new_cmds_GCJ=
24054 old_archive_from_expsyms_cmds_GCJ=
24055 export_dynamic_flag_spec_GCJ=
24056 whole_archive_flag_spec_GCJ=
24057 thread_safe_flag_spec_GCJ=
24058 hardcode_libdir_flag_spec_GCJ=
24059 hardcode_libdir_flag_spec_ld_GCJ=
24060 hardcode_libdir_separator_GCJ=
24061 hardcode_direct_GCJ=no
24062 hardcode_minus_L_GCJ=no
24063 hardcode_shlibpath_var_GCJ=unsupported
24064 link_all_deplibs_GCJ=unknown
24065 hardcode_automatic_GCJ=no
24066 module_cmds_GCJ=
24067 module_expsym_cmds_GCJ=
24068 always_export_symbols_GCJ=no
24069 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24070 # include_expsyms should be a list of space-separated symbols to be *always*
24071 # included in the symbol list
24072 include_expsyms_GCJ=
24073 # exclude_expsyms can be an extended regexp of symbols to exclude
24074 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24075 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24076 # as well as any symbol that contains `d'.
24077 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24078 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24079 # platforms (ab)use it in PIC code, but their linkers get confused if
24080 # the symbol is explicitly referenced. Since portable code cannot
24081 # rely on this symbol name, it's probably fine to never include it in
24082 # preloaded symbol tables.
24083 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024084 # Just being paranoid about ensuring that cc_basename is set.
24085 for cc_temp in $compiler""; do
24086 case $cc_temp in
24087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24089 \-*) ;;
24090 *) break;;
24091 esac
24092done
24093cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024094
24095 case $host_os in
24096 cygwin* | mingw* | pw32*)
24097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24098 # When not using gcc, we currently assume that we are using
24099 # Microsoft Visual C++.
24100 if test "$GCC" != yes; then
24101 with_gnu_ld=no
24102 fi
24103 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024104 interix*)
24105 # we just hope/assume this is gcc and not c89 (= MSVC++)
24106 with_gnu_ld=yes
24107 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024108 openbsd*)
24109 with_gnu_ld=no
24110 ;;
24111 esac
24112
24113 ld_shlibs_GCJ=yes
24114 if test "$with_gnu_ld" = yes; then
24115 # If archive_cmds runs LD, not CC, wlarc should be empty
24116 wlarc='${wl}'
24117
Reid Spencera773bd52006-08-04 18:18:08 +000024118 # Set some defaults for GNU ld with shared library support. These
24119 # are reset later if shared libraries are not supported. Putting them
24120 # here allows them to be overridden if necessary.
24121 runpath_var=LD_RUN_PATH
24122 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24123 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24124 # ancient GNU ld didn't support --whole-archive et. al.
24125 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24126 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24127 else
24128 whole_archive_flag_spec_GCJ=
24129 fi
24130 supports_anon_versioning=no
24131 case `$LD -v 2>/dev/null` in
24132 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24133 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24134 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24135 *\ 2.11.*) ;; # other 2.11 versions
24136 *) supports_anon_versioning=yes ;;
24137 esac
24138
John Criswell47fdd832003-07-14 16:52:07 +000024139 # See if GNU ld supports shared libraries.
24140 case $host_os in
24141 aix3* | aix4* | aix5*)
24142 # On AIX/PPC, the GNU linker is very broken
24143 if test "$host_cpu" != ia64; then
24144 ld_shlibs_GCJ=no
24145 cat <<EOF 1>&2
24146
24147*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24148*** to be unable to reliably create shared libraries on AIX.
24149*** Therefore, libtool is disabling shared libraries support. If you
24150*** really care for shared libraries, you may want to modify your PATH
24151*** so that a non-GNU linker is found, and then restart.
24152
24153EOF
24154 fi
24155 ;;
24156
24157 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024158 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 +000024159 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24160 hardcode_minus_L_GCJ=yes
24161
24162 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24163 # that the semantics of dynamic libraries on AmigaOS, at least up
24164 # to version 4, is to share data among multiple programs linked
24165 # with the same dynamic library. Since this doesn't match the
24166 # behavior of shared libraries on other platforms, we can't use
24167 # them.
24168 ld_shlibs_GCJ=no
24169 ;;
24170
24171 beos*)
24172 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24173 allow_undefined_flag_GCJ=unsupported
24174 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24175 # support --undefined. This deserves some investigation. FIXME
24176 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24177 else
24178 ld_shlibs_GCJ=no
24179 fi
24180 ;;
24181
24182 cygwin* | mingw* | pw32*)
24183 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24184 # as there is no search path for DLLs.
24185 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24186 allow_undefined_flag_GCJ=unsupported
24187 always_export_symbols_GCJ=no
24188 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024189 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 +000024190
24191 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024192 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 +000024193 # If the export-symbols file already is a .def file (1st line
24194 # is EXPORTS), use it as is; otherwise, prepend...
24195 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24196 cp $export_symbols $output_objdir/$soname.def;
24197 else
24198 echo EXPORTS > $output_objdir/$soname.def;
24199 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024200 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024201 $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 +000024202 else
Reid Spencera773bd52006-08-04 18:18:08 +000024203 ld_shlibs_GCJ=no
24204 fi
24205 ;;
24206
24207 interix3*)
24208 hardcode_direct_GCJ=no
24209 hardcode_shlibpath_var_GCJ=no
24210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24211 export_dynamic_flag_spec_GCJ='${wl}-E'
24212 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24213 # Instead, shared libraries are loaded at an image base (0x10000000 by
24214 # default) and relocated if they conflict, which is a slow very memory
24215 # consuming and fragmenting process. To avoid this, we pick a random,
24216 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24217 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24218 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'
24219 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'
24220 ;;
24221
24222 linux*)
24223 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24224 tmp_addflag=
24225 case $cc_basename,$host_cpu in
24226 pgcc*) # Portland Group C compiler
24227 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'
24228 tmp_addflag=' $pic_flag'
24229 ;;
24230 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24231 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'
24232 tmp_addflag=' $pic_flag -Mnomain' ;;
24233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24234 tmp_addflag=' -i_dynamic' ;;
24235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24236 tmp_addflag=' -i_dynamic -nofor_main' ;;
24237 ifc* | ifort*) # Intel Fortran compiler
24238 tmp_addflag=' -nofor_main' ;;
24239 esac
24240 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24241
24242 if test $supports_anon_versioning = yes; then
24243 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24245 $echo "local: *; };" >> $output_objdir/$libname.ver~
24246 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24247 fi
24248 else
24249 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024250 fi
24251 ;;
24252
24253 netbsd*)
24254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24255 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24256 wlarc=
24257 else
24258 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24259 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24260 fi
24261 ;;
24262
Reid Spencera773bd52006-08-04 18:18:08 +000024263 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024264 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24265 ld_shlibs_GCJ=no
24266 cat <<EOF 1>&2
24267
24268*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24269*** create shared libraries on Solaris systems. Therefore, libtool
24270*** is disabling shared libraries support. We urge you to upgrade GNU
24271*** binutils to release 2.9.1 or newer. Another option is to modify
24272*** your PATH or compiler configuration so that the native linker is
24273*** used, and then restart.
24274
24275EOF
24276 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24277 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24278 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24279 else
24280 ld_shlibs_GCJ=no
24281 fi
24282 ;;
24283
Reid Spencera773bd52006-08-04 18:18:08 +000024284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24285 case `$LD -v 2>&1` in
24286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24287 ld_shlibs_GCJ=no
24288 cat <<_LT_EOF 1>&2
24289
24290*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24291*** reliably create shared libraries on SCO systems. Therefore, libtool
24292*** is disabling shared libraries support. We urge you to upgrade GNU
24293*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24294*** your PATH or compiler configuration so that the native linker is
24295*** used, and then restart.
24296
24297_LT_EOF
24298 ;;
24299 *)
24300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24301 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24302 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24303 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24304 else
24305 ld_shlibs_GCJ=no
24306 fi
24307 ;;
24308 esac
24309 ;;
24310
John Criswell47fdd832003-07-14 16:52:07 +000024311 sunos4*)
24312 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24313 wlarc=
24314 hardcode_direct_GCJ=yes
24315 hardcode_shlibpath_var_GCJ=no
24316 ;;
24317
24318 *)
24319 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24320 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24321 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24322 else
24323 ld_shlibs_GCJ=no
24324 fi
24325 ;;
24326 esac
24327
Reid Spencera773bd52006-08-04 18:18:08 +000024328 if test "$ld_shlibs_GCJ" = no; then
24329 runpath_var=
24330 hardcode_libdir_flag_spec_GCJ=
24331 export_dynamic_flag_spec_GCJ=
24332 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024333 fi
24334 else
24335 # PORTME fill in a description of your system's linker (not GNU ld)
24336 case $host_os in
24337 aix3*)
24338 allow_undefined_flag_GCJ=unsupported
24339 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024340 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 +000024341 # Note: this linker hardcodes the directories in LIBPATH if there
24342 # are no directories specified by -L.
24343 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024345 # Neither direct hardcoding nor static linking is supported with a
24346 # broken collect2.
24347 hardcode_direct_GCJ=unsupported
24348 fi
24349 ;;
24350
24351 aix4* | aix5*)
24352 if test "$host_cpu" = ia64; then
24353 # On IA64, the linker does run time linking by default, so we don't
24354 # have to do anything special.
24355 aix_use_runtimelinking=no
24356 exp_sym_flag='-Bexport'
24357 no_entry_flag=""
24358 else
24359 # If we're using GNU nm, then we don't want the "-C" option.
24360 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24361 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24362 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'
24363 else
24364 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'
24365 fi
24366 aix_use_runtimelinking=no
24367
24368 # Test if we are trying to use run time linking or normal
24369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24370 # need to do runtime linking.
24371 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24372 for ld_flag in $LDFLAGS; do
24373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24374 aix_use_runtimelinking=yes
24375 break
24376 fi
24377 done
Reid Spencera773bd52006-08-04 18:18:08 +000024378 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024379 esac
24380
24381 exp_sym_flag='-bexport'
24382 no_entry_flag='-bnoentry'
24383 fi
24384
24385 # When large executables or shared objects are built, AIX ld can
24386 # have problems creating the table of contents. If linking a library
24387 # or program results in "error TOC overflow" add -mminimal-toc to
24388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24390
24391 archive_cmds_GCJ=''
24392 hardcode_direct_GCJ=yes
24393 hardcode_libdir_separator_GCJ=':'
24394 link_all_deplibs_GCJ=yes
24395
24396 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024397 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024398 # We only want to do this on AIX 4.2 and lower, the check
24399 # below for broken collect2 doesn't work under 4.3+
24400 collect2name=`${CC} -print-prog-name=collect2`
24401 if test -f "$collect2name" && \
24402 strings "$collect2name" | grep resolve_lib_name >/dev/null
24403 then
24404 # We have reworked collect2
24405 hardcode_direct_GCJ=yes
24406 else
24407 # We have old collect2
24408 hardcode_direct_GCJ=unsupported
24409 # It fails to find uninstalled libraries when the uninstalled
24410 # path is not listed in the libpath. Setting hardcode_minus_L
24411 # to unsupported forces relinking
24412 hardcode_minus_L_GCJ=yes
24413 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24414 hardcode_libdir_separator_GCJ=
24415 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024416 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024417 esac
24418 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024419 if test "$aix_use_runtimelinking" = yes; then
24420 shared_flag="$shared_flag "'${wl}-G'
24421 fi
John Criswell47fdd832003-07-14 16:52:07 +000024422 else
24423 # not using gcc
24424 if test "$host_cpu" = ia64; then
24425 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24426 # chokes on -Wl,-G. The following line is correct:
24427 shared_flag='-G'
24428 else
Reid Spencera773bd52006-08-04 18:18:08 +000024429 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024430 shared_flag='${wl}-G'
24431 else
24432 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024433 fi
John Criswell47fdd832003-07-14 16:52:07 +000024434 fi
24435 fi
24436
24437 # It seems that -bexpall does not export symbols beginning with
24438 # underscore (_), so it is better to generate a list of symbols to export.
24439 always_export_symbols_GCJ=yes
24440 if test "$aix_use_runtimelinking" = yes; then
24441 # Warning - without using the other runtime loading flags (-brtl),
24442 # -berok will link without error, but may produce a broken library.
24443 allow_undefined_flag_GCJ='-berok'
24444 # Determine the default libpath from the value encoded in an empty executable.
24445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024446/* confdefs.h. */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024451
John Criswell47fdd832003-07-14 16:52:07 +000024452int
24453main ()
24454{
24455
24456 ;
24457 return 0;
24458}
24459_ACEOF
24460rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024461if { (ac_try="$ac_link"
24462case "(($ac_try" in
24463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24464 *) ac_try_echo=$ac_try;;
24465esac
24466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24467 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024468 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024469 grep -v '^ *+' conftest.er1 >conftest.err
24470 rm -f conftest.er1
24471 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024473 (exit $ac_status); } &&
24474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24475 { (case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24478esac
24479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24480 (eval "$ac_try") 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest$ac_exeext'
24485 { (case "(($ac_try" in
24486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24487 *) ac_try_echo=$ac_try;;
24488esac
24489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24490 (eval "$ac_try") 2>&5
24491 ac_status=$?
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024494
24495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24496}'`
24497# Check for a 64-bit object if we didn't find anything.
24498if 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; }
24499}'`; fi
24500else
24501 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024502sed 's/^/| /' conftest.$ac_ext >&5
24503
Reid Spencera773bd52006-08-04 18:18:08 +000024504
John Criswell47fdd832003-07-14 16:52:07 +000024505fi
Reid Spencera773bd52006-08-04 18:18:08 +000024506
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024507rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024508 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024509if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24510
24511 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024512 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 +000024513 else
24514 if test "$host_cpu" = ia64; then
24515 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24516 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024517 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 +000024518 else
24519 # Determine the default libpath from the value encoded in an empty executable.
24520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024521/* confdefs.h. */
24522_ACEOF
24523cat confdefs.h >>conftest.$ac_ext
24524cat >>conftest.$ac_ext <<_ACEOF
24525/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024526
John Criswell47fdd832003-07-14 16:52:07 +000024527int
24528main ()
24529{
24530
24531 ;
24532 return 0;
24533}
24534_ACEOF
24535rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024536if { (ac_try="$ac_link"
24537case "(($ac_try" in
24538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24539 *) ac_try_echo=$ac_try;;
24540esac
24541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24542 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024544 grep -v '^ *+' conftest.er1 >conftest.err
24545 rm -f conftest.er1
24546 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024548 (exit $ac_status); } &&
24549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24550 { (case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553esac
24554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24555 (eval "$ac_try") 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; } &&
24559 { ac_try='test -s conftest$ac_exeext'
24560 { (case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24563esac
24564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_try") 2>&5
24566 ac_status=$?
24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24568 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024569
24570aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24571}'`
24572# Check for a 64-bit object if we didn't find anything.
24573if 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; }
24574}'`; fi
24575else
24576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024577sed 's/^/| /' conftest.$ac_ext >&5
24578
Reid Spencera773bd52006-08-04 18:18:08 +000024579
John Criswell47fdd832003-07-14 16:52:07 +000024580fi
Reid Spencera773bd52006-08-04 18:18:08 +000024581
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000024582rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024584if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24585
24586 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24587 # Warning - without using the other run time loading flags,
24588 # -berok will link without error, but may produce a broken library.
24589 no_undefined_flag_GCJ=' ${wl}-bernotok'
24590 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024591 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024592 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024593 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024594 # This is similar to how AIX traditionally builds its shared libraries.
24595 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 +000024596 fi
24597 fi
24598 ;;
24599
24600 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024601 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 +000024602 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24603 hardcode_minus_L_GCJ=yes
24604 # see comment about different semantics on the GNU ld section
24605 ld_shlibs_GCJ=no
24606 ;;
24607
Reid Spencer2706f8c2004-09-19 23:53:36 +000024608 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024609 export_dynamic_flag_spec_GCJ=-rdynamic
24610 ;;
24611
24612 cygwin* | mingw* | pw32*)
24613 # When not using gcc, we currently assume that we are using
24614 # Microsoft Visual C++.
24615 # hardcode_libdir_flag_spec is actually meaningless, as there is
24616 # no search path for DLLs.
24617 hardcode_libdir_flag_spec_GCJ=' '
24618 allow_undefined_flag_GCJ=unsupported
24619 # Tell ltmain to make .lib files, not .a files.
24620 libext=lib
24621 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024622 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024623 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024624 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 +000024625 # The linker will automatically build a .lib file if we build a DLL.
24626 old_archive_From_new_cmds_GCJ='true'
24627 # FIXME: Should let the user specify the lib program.
24628 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024629 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024630 enable_shared_with_static_runtimes_GCJ=yes
24631 ;;
24632
24633 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024634 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024635 rhapsody* | darwin1.[012])
24636 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24637 ;;
24638 *) # Darwin 1.3 on
24639 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24640 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24641 else
24642 case ${MACOSX_DEPLOYMENT_TARGET} in
24643 10.[012])
24644 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24645 ;;
24646 10.*)
24647 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24648 ;;
24649 esac
24650 fi
24651 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024652 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024653 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024654 hardcode_direct_GCJ=no
24655 hardcode_automatic_GCJ=yes
24656 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024657 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024658 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024659 if test "$GCC" = yes ; then
24660 output_verbose_link_cmd='echo'
24661 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24662 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024663 # 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 +000024664 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}'
24665 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 +000024666 else
Reid Spencera773bd52006-08-04 18:18:08 +000024667 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024668 xlc*)
24669 output_verbose_link_cmd='echo'
24670 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24671 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024672 # 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 +000024673 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}'
24674 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 +000024675 ;;
24676 *)
24677 ld_shlibs_GCJ=no
24678 ;;
24679 esac
John Criswell47fdd832003-07-14 16:52:07 +000024680 fi
24681 ;;
24682
24683 dgux*)
24684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24685 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24686 hardcode_shlibpath_var_GCJ=no
24687 ;;
24688
24689 freebsd1*)
24690 ld_shlibs_GCJ=no
24691 ;;
24692
24693 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24694 # support. Future versions do this automatically, but an explicit c++rt0.o
24695 # does not break anything, and helps significantly (at the cost of a little
24696 # extra space).
24697 freebsd2.2*)
24698 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24700 hardcode_direct_GCJ=yes
24701 hardcode_shlibpath_var_GCJ=no
24702 ;;
24703
24704 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24705 freebsd2*)
24706 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24707 hardcode_direct_GCJ=yes
24708 hardcode_minus_L_GCJ=yes
24709 hardcode_shlibpath_var_GCJ=no
24710 ;;
24711
24712 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024713 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024714 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24715 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24716 hardcode_direct_GCJ=yes
24717 hardcode_shlibpath_var_GCJ=no
24718 ;;
24719
24720 hpux9*)
24721 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024722 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 +000024723 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024724 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 +000024725 fi
24726 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24727 hardcode_libdir_separator_GCJ=:
24728 hardcode_direct_GCJ=yes
24729
24730 # hardcode_minus_L: Not really in the search PATH,
24731 # but as the default location of the library.
24732 hardcode_minus_L_GCJ=yes
24733 export_dynamic_flag_spec_GCJ='${wl}-E'
24734 ;;
24735
Reid Spencera773bd52006-08-04 18:18:08 +000024736 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024737 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024738 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24739 else
24740 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24741 fi
24742 if test "$with_gnu_ld" = no; then
24743 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24744 hardcode_libdir_separator_GCJ=:
24745
24746 hardcode_direct_GCJ=yes
24747 export_dynamic_flag_spec_GCJ='${wl}-E'
24748
24749 # hardcode_minus_L: Not really in the search PATH,
24750 # but as the default location of the library.
24751 hardcode_minus_L_GCJ=yes
24752 fi
24753 ;;
24754
24755 hpux11*)
24756 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24757 case $host_cpu in
24758 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024759 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24760 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024761 ia64*)
24762 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24763 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024764 *)
24765 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24766 ;;
24767 esac
24768 else
Reid Spencera773bd52006-08-04 18:18:08 +000024769 case $host_cpu in
24770 hppa*64*)
24771 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24772 ;;
24773 ia64*)
24774 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024775 ;;
24776 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024777 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 +000024778 ;;
24779 esac
24780 fi
24781 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024782 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24783 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024784
Reid Spencera773bd52006-08-04 18:18:08 +000024785 case $host_cpu in
24786 hppa*64*|ia64*)
24787 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24788 hardcode_direct_GCJ=no
24789 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024790 ;;
24791 *)
John Criswell47fdd832003-07-14 16:52:07 +000024792 hardcode_direct_GCJ=yes
24793 export_dynamic_flag_spec_GCJ='${wl}-E'
24794
24795 # hardcode_minus_L: Not really in the search PATH,
24796 # but as the default location of the library.
24797 hardcode_minus_L_GCJ=yes
24798 ;;
24799 esac
24800 fi
24801 ;;
24802
24803 irix5* | irix6* | nonstopux*)
24804 if test "$GCC" = yes; then
24805 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'
24806 else
24807 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'
24808 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24809 fi
24810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24811 hardcode_libdir_separator_GCJ=:
24812 link_all_deplibs_GCJ=yes
24813 ;;
24814
24815 netbsd*)
24816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24817 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24818 else
24819 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24820 fi
24821 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24822 hardcode_direct_GCJ=yes
24823 hardcode_shlibpath_var_GCJ=no
24824 ;;
24825
24826 newsos6)
24827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24828 hardcode_direct_GCJ=yes
24829 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24830 hardcode_libdir_separator_GCJ=:
24831 hardcode_shlibpath_var_GCJ=no
24832 ;;
24833
24834 openbsd*)
24835 hardcode_direct_GCJ=yes
24836 hardcode_shlibpath_var_GCJ=no
24837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24838 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024839 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 +000024840 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24841 export_dynamic_flag_spec_GCJ='${wl}-E'
24842 else
24843 case $host_os in
24844 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24845 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24847 ;;
24848 *)
24849 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24850 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24851 ;;
24852 esac
24853 fi
24854 ;;
24855
24856 os2*)
24857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24858 hardcode_minus_L_GCJ=yes
24859 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024860 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 +000024861 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24862 ;;
24863
24864 osf3*)
24865 if test "$GCC" = yes; then
24866 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24867 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'
24868 else
24869 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24870 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'
24871 fi
24872 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24873 hardcode_libdir_separator_GCJ=:
24874 ;;
24875
24876 osf4* | osf5*) # as osf3* with the addition of -msym flag
24877 if test "$GCC" = yes; then
24878 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24879 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'
24880 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24881 else
24882 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24883 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 +000024884 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 +000024885 $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 +000024886
John Criswell47fdd832003-07-14 16:52:07 +000024887 # Both c and cxx compiler support -rpath directly
24888 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24889 fi
24890 hardcode_libdir_separator_GCJ=:
24891 ;;
24892
John Criswell47fdd832003-07-14 16:52:07 +000024893 solaris*)
24894 no_undefined_flag_GCJ=' -z text'
24895 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024896 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024897 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024898 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24899 $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 +000024900 else
Reid Spencera773bd52006-08-04 18:18:08 +000024901 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024902 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024903 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24904 $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 +000024905 fi
24906 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24907 hardcode_shlibpath_var_GCJ=no
24908 case $host_os in
24909 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024910 *)
24911 # The compiler driver will combine linker options so we
24912 # cannot just pass the convience library names through
24913 # without $wl, iff we do not link with $LD.
24914 # Luckily, gcc supports the same syntax we need for Sun Studio.
24915 # Supported since Solaris 2.6 (maybe 2.5.1?)
24916 case $wlarc in
24917 '')
24918 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24919 *)
24920 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' ;;
24921 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024922 esac
24923 link_all_deplibs_GCJ=yes
24924 ;;
24925
24926 sunos4*)
24927 if test "x$host_vendor" = xsequent; then
24928 # Use $CC to link under sequent, because it throws in some extra .o
24929 # files that make .init and .fini sections work.
24930 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24931 else
24932 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24933 fi
24934 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24935 hardcode_direct_GCJ=yes
24936 hardcode_minus_L_GCJ=yes
24937 hardcode_shlibpath_var_GCJ=no
24938 ;;
24939
24940 sysv4)
24941 case $host_vendor in
24942 sni)
24943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24944 hardcode_direct_GCJ=yes # is this really true???
24945 ;;
24946 siemens)
24947 ## LD is ld it makes a PLAMLIB
24948 ## CC just makes a GrossModule.
24949 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24950 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24951 hardcode_direct_GCJ=no
24952 ;;
24953 motorola)
24954 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24955 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24956 ;;
24957 esac
24958 runpath_var='LD_RUN_PATH'
24959 hardcode_shlibpath_var_GCJ=no
24960 ;;
24961
24962 sysv4.3*)
24963 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24964 hardcode_shlibpath_var_GCJ=no
24965 export_dynamic_flag_spec_GCJ='-Bexport'
24966 ;;
24967
24968 sysv4*MP*)
24969 if test -d /usr/nec; then
24970 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24971 hardcode_shlibpath_var_GCJ=no
24972 runpath_var=LD_RUN_PATH
24973 hardcode_runpath_var=yes
24974 ld_shlibs_GCJ=yes
24975 fi
24976 ;;
24977
Reid Spencera773bd52006-08-04 18:18:08 +000024978 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24979 no_undefined_flag_GCJ='${wl}-z,text'
24980 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024981 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024982 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024983
John Criswell47fdd832003-07-14 16:52:07 +000024984 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024985 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24986 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 +000024987 else
Reid Spencera773bd52006-08-04 18:18:08 +000024988 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24989 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 +000024990 fi
John Criswell47fdd832003-07-14 16:52:07 +000024991 ;;
24992
Reid Spencera773bd52006-08-04 18:18:08 +000024993 sysv5* | sco3.2v5* | sco5v6*)
24994 # Note: We can NOT use -z defs as we might desire, because we do not
24995 # link with -lc, and that would cause any symbols used from libc to
24996 # always be unresolved, which means just about no library would
24997 # ever link correctly. If we're not using GNU ld we use -z text
24998 # though, which does catch some bad symbols but isn't as heavy-handed
24999 # as -z defs.
25000 no_undefined_flag_GCJ='${wl}-z,text'
25001 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25002 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025003 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025004 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25005 hardcode_libdir_separator_GCJ=':'
25006 link_all_deplibs_GCJ=yes
25007 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025008 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025009
25010 if test "$GCC" = yes; then
25011 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25012 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25013 else
25014 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25015 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25016 fi
John Criswell47fdd832003-07-14 16:52:07 +000025017 ;;
25018
25019 uts4*)
25020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25021 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25022 hardcode_shlibpath_var_GCJ=no
25023 ;;
25024
25025 *)
25026 ld_shlibs_GCJ=no
25027 ;;
25028 esac
25029 fi
25030
Reid Spencera773bd52006-08-04 18:18:08 +000025031{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25032echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025033test "$ld_shlibs_GCJ" = no && can_build_shared=no
25034
John Criswell47fdd832003-07-14 16:52:07 +000025035#
25036# Do we need to explicitly link libc?
25037#
25038case "x$archive_cmds_need_lc_GCJ" in
25039x|xyes)
25040 # Assume -lc should be added
25041 archive_cmds_need_lc_GCJ=yes
25042
25043 if test "$enable_shared" = yes && test "$GCC" = yes; then
25044 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025045 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025046 # FIXME: we may have to deal with multi-command sequences.
25047 ;;
25048 '$CC '*)
25049 # Test whether the compiler implicitly links with -lc since on some
25050 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25051 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025052 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25053echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025054 $rm conftest*
25055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25056
25057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25058 (eval $ac_compile) 2>&5
25059 ac_status=$?
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } 2>conftest.err; then
25062 soname=conftest
25063 lib=conftest
25064 libobjs=conftest.$ac_objext
25065 deplibs=
25066 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025067 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025068 compiler_flags=-v
25069 linker_flags=-v
25070 verstring=
25071 output_objdir=.
25072 libname=conftest
25073 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25074 allow_undefined_flag_GCJ=
25075 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25076 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25077 ac_status=$?
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }
25080 then
25081 archive_cmds_need_lc_GCJ=no
25082 else
25083 archive_cmds_need_lc_GCJ=yes
25084 fi
25085 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25086 else
25087 cat conftest.err 1>&5
25088 fi
25089 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025090 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25091echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025092 ;;
25093 esac
25094 fi
25095 ;;
25096esac
25097
Reid Spencera773bd52006-08-04 18:18:08 +000025098{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25099echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025100library_names_spec=
25101libname_spec='lib$name'
25102soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025103shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025104postinstall_cmds=
25105postuninstall_cmds=
25106finish_cmds=
25107finish_eval=
25108shlibpath_var=
25109shlibpath_overrides_runpath=unknown
25110version_type=none
25111dynamic_linker="$host_os ld.so"
25112sys_lib_dlsearch_path_spec="/lib /usr/lib"
25113if test "$GCC" = yes; then
25114 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25115 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25116 # if the path contains ";" then we assume it to be the separator
25117 # otherwise default to the standard path separator (i.e. ":") - it is
25118 # assumed that no part of a normal pathname contains ";" but that should
25119 # okay in the real world where ";" in dirpaths is itself problematic.
25120 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25121 else
25122 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25123 fi
25124else
25125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25126fi
25127need_lib_prefix=unknown
25128hardcode_into_libs=no
25129
25130# when you set need_version to no, make sure it does not cause -set_version
25131# flags to be left without arguments
25132need_version=unknown
25133
25134case $host_os in
25135aix3*)
25136 version_type=linux
25137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25138 shlibpath_var=LIBPATH
25139
25140 # AIX 3 has no versioning support, so we append a major version to the name.
25141 soname_spec='${libname}${release}${shared_ext}$major'
25142 ;;
25143
25144aix4* | aix5*)
25145 version_type=linux
25146 need_lib_prefix=no
25147 need_version=no
25148 hardcode_into_libs=yes
25149 if test "$host_cpu" = ia64; then
25150 # AIX 5 supports IA64
25151 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25152 shlibpath_var=LD_LIBRARY_PATH
25153 else
25154 # With GCC up to 2.95.x, collect2 would create an import file
25155 # for dependence libraries. The import file would start with
25156 # the line `#! .'. This would cause the generated library to
25157 # depend on `.', always an invalid library. This was fixed in
25158 # development snapshots of GCC prior to 3.0.
25159 case $host_os in
25160 aix4 | aix4.[01] | aix4.[01].*)
25161 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25162 echo ' yes '
25163 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25164 :
25165 else
25166 can_build_shared=no
25167 fi
25168 ;;
25169 esac
25170 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25171 # soname into executable. Probably we can add versioning support to
25172 # collect2, so additional links can be useful in future.
25173 if test "$aix_use_runtimelinking" = yes; then
25174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25175 # instead of lib<name>.a to let people know that these are not
25176 # typical AIX shared libraries.
25177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25178 else
25179 # We preserve .a as extension for shared libraries through AIX4.2
25180 # and later when we are not doing run time linking.
25181 library_names_spec='${libname}${release}.a $libname.a'
25182 soname_spec='${libname}${release}${shared_ext}$major'
25183 fi
25184 shlibpath_var=LIBPATH
25185 fi
25186 ;;
25187
25188amigaos*)
25189 library_names_spec='$libname.ixlibrary $libname.a'
25190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025191 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 +000025192 ;;
25193
25194beos*)
25195 library_names_spec='${libname}${shared_ext}'
25196 dynamic_linker="$host_os ld.so"
25197 shlibpath_var=LIBRARY_PATH
25198 ;;
25199
Reid Spencer2706f8c2004-09-19 23:53:36 +000025200bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025201 version_type=linux
25202 need_version=no
25203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25204 soname_spec='${libname}${release}${shared_ext}$major'
25205 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25206 shlibpath_var=LD_LIBRARY_PATH
25207 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25208 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25209 # the default ld.so.conf also contains /usr/contrib/lib and
25210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25211 # libtool to hard-code these into programs
25212 ;;
25213
25214cygwin* | mingw* | pw32*)
25215 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025216 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025217 need_version=no
25218 need_lib_prefix=no
25219
25220 case $GCC,$host_os in
25221 yes,cygwin* | yes,mingw* | yes,pw32*)
25222 library_names_spec='$libname.dll.a'
25223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025224 postinstall_cmds='base_file=`basename \${file}`~
25225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25226 dldir=$destdir/`dirname \$dlpath`~
25227 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025228 $install_prog $dir/$dlname \$dldir/$dlname~
25229 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25231 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025232 $rm \$dlpath'
25233 shlibpath_overrides_runpath=yes
25234
25235 case $host_os in
25236 cygwin*)
25237 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25238 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 +000025239 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025240 ;;
25241 mingw*)
25242 # MinGW DLLs use traditional 'lib' prefix
25243 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25244 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25245 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25246 # It is most probably a Windows format PATH printed by
25247 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25248 # path with ; separators, and with drive letters. We can handle the
25249 # drive letters (cygwin fileutils understands them), so leave them,
25250 # especially as we might pass files found there to a mingw objdump,
25251 # which wouldn't understand a cygwinified path. Ahh.
25252 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25253 else
25254 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25255 fi
25256 ;;
25257 pw32*)
25258 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025259 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 +000025260 ;;
25261 esac
25262 ;;
25263
25264 *)
25265 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25266 ;;
25267 esac
25268 dynamic_linker='Win32 ld.exe'
25269 # FIXME: first we should search . and the directory the executable is in
25270 shlibpath_var=PATH
25271 ;;
25272
25273darwin* | rhapsody*)
25274 dynamic_linker="$host_os dyld"
25275 version_type=darwin
25276 need_lib_prefix=no
25277 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025278 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025279 soname_spec='${libname}${release}${major}$shared_ext'
25280 shlibpath_overrides_runpath=yes
25281 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025282 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025283 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025284 if test "$GCC" = yes; then
25285 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"`
25286 else
25287 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025288 fi
25289 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25290 ;;
25291
25292dgux*)
25293 version_type=linux
25294 need_lib_prefix=no
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 shlibpath_var=LD_LIBRARY_PATH
25299 ;;
25300
25301freebsd1*)
25302 dynamic_linker=no
25303 ;;
25304
Reid Spencer2706f8c2004-09-19 23:53:36 +000025305kfreebsd*-gnu)
25306 version_type=linux
25307 need_lib_prefix=no
25308 need_version=no
25309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25310 soname_spec='${libname}${release}${shared_ext}$major'
25311 shlibpath_var=LD_LIBRARY_PATH
25312 shlibpath_overrides_runpath=no
25313 hardcode_into_libs=yes
25314 dynamic_linker='GNU ld.so'
25315 ;;
25316
Reid Spencera773bd52006-08-04 18:18:08 +000025317freebsd* | dragonfly*)
25318 # DragonFly does not have aout. When/if they implement a new
25319 # versioning mechanism, adjust this.
25320 if test -x /usr/bin/objformat; then
25321 objformat=`/usr/bin/objformat`
25322 else
25323 case $host_os in
25324 freebsd[123]*) objformat=aout ;;
25325 *) objformat=elf ;;
25326 esac
25327 fi
John Criswell47fdd832003-07-14 16:52:07 +000025328 version_type=freebsd-$objformat
25329 case $version_type in
25330 freebsd-elf*)
25331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25332 need_version=no
25333 need_lib_prefix=no
25334 ;;
25335 freebsd-*)
25336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25337 need_version=yes
25338 ;;
25339 esac
25340 shlibpath_var=LD_LIBRARY_PATH
25341 case $host_os in
25342 freebsd2*)
25343 shlibpath_overrides_runpath=yes
25344 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025345 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025346 shlibpath_overrides_runpath=yes
25347 hardcode_into_libs=yes
25348 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025349 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25350 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025351 shlibpath_overrides_runpath=no
25352 hardcode_into_libs=yes
25353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025354 freebsd*) # from 4.6 on
25355 shlibpath_overrides_runpath=yes
25356 hardcode_into_libs=yes
25357 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025358 esac
25359 ;;
25360
25361gnu*)
25362 version_type=linux
25363 need_lib_prefix=no
25364 need_version=no
25365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25366 soname_spec='${libname}${release}${shared_ext}$major'
25367 shlibpath_var=LD_LIBRARY_PATH
25368 hardcode_into_libs=yes
25369 ;;
25370
25371hpux9* | hpux10* | hpux11*)
25372 # Give a soname corresponding to the major version so that dld.sl refuses to
25373 # link against other versions.
25374 version_type=sunos
25375 need_lib_prefix=no
25376 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025377 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025378 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025379 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025380 hardcode_into_libs=yes
25381 dynamic_linker="$host_os dld.so"
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25385 soname_spec='${libname}${release}${shared_ext}$major'
25386 if test "X$HPUX_IA64_MODE" = X32; then
25387 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25388 else
25389 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25390 fi
25391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25392 ;;
25393 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025394 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025395 hardcode_into_libs=yes
25396 dynamic_linker="$host_os dld.sl"
25397 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25398 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25400 soname_spec='${libname}${release}${shared_ext}$major'
25401 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25403 ;;
25404 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025405 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025406 dynamic_linker="$host_os dld.sl"
25407 shlibpath_var=SHLIB_PATH
25408 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410 soname_spec='${libname}${release}${shared_ext}$major'
25411 ;;
25412 esac
25413 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25414 postinstall_cmds='chmod 555 $lib'
25415 ;;
25416
Reid Spencera773bd52006-08-04 18:18:08 +000025417interix3*)
25418 version_type=linux
25419 need_lib_prefix=no
25420 need_version=no
25421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25422 soname_spec='${libname}${release}${shared_ext}$major'
25423 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25424 shlibpath_var=LD_LIBRARY_PATH
25425 shlibpath_overrides_runpath=no
25426 hardcode_into_libs=yes
25427 ;;
25428
John Criswell47fdd832003-07-14 16:52:07 +000025429irix5* | irix6* | nonstopux*)
25430 case $host_os in
25431 nonstopux*) version_type=nonstopux ;;
25432 *)
25433 if test "$lt_cv_prog_gnu_ld" = yes; then
25434 version_type=linux
25435 else
25436 version_type=irix
25437 fi ;;
25438 esac
25439 need_lib_prefix=no
25440 need_version=no
25441 soname_spec='${libname}${release}${shared_ext}$major'
25442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25443 case $host_os in
25444 irix5* | nonstopux*)
25445 libsuff= shlibsuff=
25446 ;;
25447 *)
25448 case $LD in # libtool.m4 will add one of these switches to LD
25449 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25450 libsuff= shlibsuff= libmagic=32-bit;;
25451 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25452 libsuff=32 shlibsuff=N32 libmagic=N32;;
25453 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25454 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25455 *) libsuff= shlibsuff= libmagic=never-match;;
25456 esac
25457 ;;
25458 esac
25459 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25460 shlibpath_overrides_runpath=no
25461 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25462 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25463 hardcode_into_libs=yes
25464 ;;
25465
25466# No shared lib support for Linux oldld, aout, or coff.
25467linux*oldld* | linux*aout* | linux*coff*)
25468 dynamic_linker=no
25469 ;;
25470
25471# This must be Linux ELF.
25472linux*)
25473 version_type=linux
25474 need_lib_prefix=no
25475 need_version=no
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25479 shlibpath_var=LD_LIBRARY_PATH
25480 shlibpath_overrides_runpath=no
25481 # This implies no fast_install, which is unacceptable.
25482 # Some rework will be needed to allow for fast_install
25483 # before this can be enabled.
25484 hardcode_into_libs=yes
25485
Reid Spencer2706f8c2004-09-19 23:53:36 +000025486 # Append ld.so.conf contents to the search path
25487 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025488 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 +000025489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25490 fi
25491
John Criswell47fdd832003-07-14 16:52:07 +000025492 # We used to test for /lib/ld.so.1 and disable shared libraries on
25493 # powerpc, because MkLinux only supported shared libraries with the
25494 # GNU dynamic linker. Since this was broken with cross compilers,
25495 # most powerpc-linux boxes support dynamic linking these days and
25496 # people can always --disable-shared, the test was removed, and we
25497 # assume the GNU/Linux dynamic linker is in use.
25498 dynamic_linker='GNU/Linux ld.so'
25499 ;;
25500
Reid Spencer2706f8c2004-09-19 23:53:36 +000025501knetbsd*-gnu)
25502 version_type=linux
25503 need_lib_prefix=no
25504 need_version=no
25505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25506 soname_spec='${libname}${release}${shared_ext}$major'
25507 shlibpath_var=LD_LIBRARY_PATH
25508 shlibpath_overrides_runpath=no
25509 hardcode_into_libs=yes
25510 dynamic_linker='GNU ld.so'
25511 ;;
25512
John Criswell47fdd832003-07-14 16:52:07 +000025513netbsd*)
25514 version_type=sunos
25515 need_lib_prefix=no
25516 need_version=no
25517 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25520 dynamic_linker='NetBSD (a.out) ld.so'
25521 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025523 soname_spec='${libname}${release}${shared_ext}$major'
25524 dynamic_linker='NetBSD ld.elf_so'
25525 fi
25526 shlibpath_var=LD_LIBRARY_PATH
25527 shlibpath_overrides_runpath=yes
25528 hardcode_into_libs=yes
25529 ;;
25530
25531newsos6)
25532 version_type=linux
25533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 shlibpath_overrides_runpath=yes
25536 ;;
25537
Reid Spencer2706f8c2004-09-19 23:53:36 +000025538nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025539 version_type=linux
25540 need_lib_prefix=no
25541 need_version=no
25542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25543 soname_spec='${libname}${release}${shared_ext}$major'
25544 shlibpath_var=LD_LIBRARY_PATH
25545 shlibpath_overrides_runpath=yes
25546 ;;
25547
25548openbsd*)
25549 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025550 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025551 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025552 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25553 case $host_os in
25554 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25555 *) need_version=no ;;
25556 esac
John Criswell47fdd832003-07-14 16:52:07 +000025557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25559 shlibpath_var=LD_LIBRARY_PATH
25560 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25561 case $host_os in
25562 openbsd2.[89] | openbsd2.[89].*)
25563 shlibpath_overrides_runpath=no
25564 ;;
25565 *)
25566 shlibpath_overrides_runpath=yes
25567 ;;
25568 esac
25569 else
25570 shlibpath_overrides_runpath=yes
25571 fi
25572 ;;
25573
25574os2*)
25575 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025576 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025577 need_lib_prefix=no
25578 library_names_spec='$libname${shared_ext} $libname.a'
25579 dynamic_linker='OS/2 ld.exe'
25580 shlibpath_var=LIBPATH
25581 ;;
25582
25583osf3* | osf4* | osf5*)
25584 version_type=osf
25585 need_lib_prefix=no
25586 need_version=no
25587 soname_spec='${libname}${release}${shared_ext}$major'
25588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25589 shlibpath_var=LD_LIBRARY_PATH
25590 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25591 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25592 ;;
25593
John Criswell47fdd832003-07-14 16:52:07 +000025594solaris*)
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=yes
25602 hardcode_into_libs=yes
25603 # ldd complains unless libraries are executable
25604 postinstall_cmds='chmod +x $lib'
25605 ;;
25606
25607sunos4*)
25608 version_type=sunos
25609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25610 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25611 shlibpath_var=LD_LIBRARY_PATH
25612 shlibpath_overrides_runpath=yes
25613 if test "$with_gnu_ld" = yes; then
25614 need_lib_prefix=no
25615 fi
25616 need_version=yes
25617 ;;
25618
Reid Spencera773bd52006-08-04 18:18:08 +000025619sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025620 version_type=linux
25621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25622 soname_spec='${libname}${release}${shared_ext}$major'
25623 shlibpath_var=LD_LIBRARY_PATH
25624 case $host_vendor in
25625 sni)
25626 shlibpath_overrides_runpath=no
25627 need_lib_prefix=no
25628 export_dynamic_flag_spec='${wl}-Blargedynsym'
25629 runpath_var=LD_RUN_PATH
25630 ;;
25631 siemens)
25632 need_lib_prefix=no
25633 ;;
25634 motorola)
25635 need_lib_prefix=no
25636 need_version=no
25637 shlibpath_overrides_runpath=no
25638 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25639 ;;
25640 esac
25641 ;;
25642
25643sysv4*MP*)
25644 if test -d /usr/nec ;then
25645 version_type=linux
25646 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25647 soname_spec='$libname${shared_ext}.$major'
25648 shlibpath_var=LD_LIBRARY_PATH
25649 fi
25650 ;;
25651
Reid Spencera773bd52006-08-04 18:18:08 +000025652sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25653 version_type=freebsd-elf
25654 need_lib_prefix=no
25655 need_version=no
25656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25657 soname_spec='${libname}${release}${shared_ext}$major'
25658 shlibpath_var=LD_LIBRARY_PATH
25659 hardcode_into_libs=yes
25660 if test "$with_gnu_ld" = yes; then
25661 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25662 shlibpath_overrides_runpath=no
25663 else
25664 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25665 shlibpath_overrides_runpath=yes
25666 case $host_os in
25667 sco3.2v5*)
25668 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25669 ;;
25670 esac
25671 fi
25672 sys_lib_dlsearch_path_spec='/usr/lib'
25673 ;;
25674
John Criswell47fdd832003-07-14 16:52:07 +000025675uts4*)
25676 version_type=linux
25677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25678 soname_spec='${libname}${release}${shared_ext}$major'
25679 shlibpath_var=LD_LIBRARY_PATH
25680 ;;
25681
25682*)
25683 dynamic_linker=no
25684 ;;
25685esac
Reid Spencera773bd52006-08-04 18:18:08 +000025686{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25687echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025688test "$dynamic_linker" = no && can_build_shared=no
25689
Reid Spencera773bd52006-08-04 18:18:08 +000025690variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25691if test "$GCC" = yes; then
25692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25693fi
25694
25695{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25696echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025697hardcode_action_GCJ=
25698if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25699 test -n "$runpath_var_GCJ" || \
25700 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25701
25702 # We can hardcode non-existant directories.
25703 if test "$hardcode_direct_GCJ" != no &&
25704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25705 # have to relink, otherwise we might link with an installed library
25706 # when we should be linking with a yet-to-be-installed one
25707 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25708 test "$hardcode_minus_L_GCJ" != no; then
25709 # Linking always hardcodes the temporary library directory.
25710 hardcode_action_GCJ=relink
25711 else
25712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25713 hardcode_action_GCJ=immediate
25714 fi
25715else
25716 # We cannot hardcode anything, or else we can only hardcode existing
25717 # directories.
25718 hardcode_action_GCJ=unsupported
25719fi
Reid Spencera773bd52006-08-04 18:18:08 +000025720{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25721echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025722
25723if test "$hardcode_action_GCJ" = relink; then
25724 # Fast installation is not supported
25725 enable_fast_install=no
25726elif test "$shlibpath_overrides_runpath" = yes ||
25727 test "$enable_shared" = no; then
25728 # Fast installation is not necessary
25729 enable_fast_install=needless
25730fi
25731
John Criswell47fdd832003-07-14 16:52:07 +000025732
25733# The else clause should only fire when bootstrapping the
25734# libtool distribution, otherwise you forgot to ship ltmain.sh
25735# with your package, and you will get complaints that there are
25736# no rules to generate ltmain.sh.
25737if test -f "$ltmain"; then
25738 # See if we are running on zsh, and set the options which allow our commands through
25739 # without removal of \ escapes.
25740 if test -n "${ZSH_VERSION+set}" ; then
25741 setopt NO_GLOB_SUBST
25742 fi
25743 # Now quote all the things that may contain metacharacters while being
25744 # careful not to overquote the AC_SUBSTed values. We take copies of the
25745 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025746 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 +000025747 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25750 deplibs_check_method reload_flag reload_cmds need_locks \
25751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25752 lt_cv_sys_global_symbol_to_c_name_address \
25753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25754 old_postinstall_cmds old_postuninstall_cmds \
25755 compiler_GCJ \
25756 CC_GCJ \
25757 LD_GCJ \
25758 lt_prog_compiler_wl_GCJ \
25759 lt_prog_compiler_pic_GCJ \
25760 lt_prog_compiler_static_GCJ \
25761 lt_prog_compiler_no_builtin_flag_GCJ \
25762 export_dynamic_flag_spec_GCJ \
25763 thread_safe_flag_spec_GCJ \
25764 whole_archive_flag_spec_GCJ \
25765 enable_shared_with_static_runtimes_GCJ \
25766 old_archive_cmds_GCJ \
25767 old_archive_from_new_cmds_GCJ \
25768 predep_objects_GCJ \
25769 postdep_objects_GCJ \
25770 predeps_GCJ \
25771 postdeps_GCJ \
25772 compiler_lib_search_path_GCJ \
25773 archive_cmds_GCJ \
25774 archive_expsym_cmds_GCJ \
25775 postinstall_cmds_GCJ \
25776 postuninstall_cmds_GCJ \
25777 old_archive_from_expsyms_cmds_GCJ \
25778 allow_undefined_flag_GCJ \
25779 no_undefined_flag_GCJ \
25780 export_symbols_cmds_GCJ \
25781 hardcode_libdir_flag_spec_GCJ \
25782 hardcode_libdir_flag_spec_ld_GCJ \
25783 hardcode_libdir_separator_GCJ \
25784 hardcode_automatic_GCJ \
25785 module_cmds_GCJ \
25786 module_expsym_cmds_GCJ \
25787 lt_cv_prog_compiler_c_o_GCJ \
25788 exclude_expsyms_GCJ \
25789 include_expsyms_GCJ; do
25790
25791 case $var in
25792 old_archive_cmds_GCJ | \
25793 old_archive_from_new_cmds_GCJ | \
25794 archive_cmds_GCJ | \
25795 archive_expsym_cmds_GCJ | \
25796 module_cmds_GCJ | \
25797 module_expsym_cmds_GCJ | \
25798 old_archive_from_expsyms_cmds_GCJ | \
25799 export_symbols_cmds_GCJ | \
25800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25801 postinstall_cmds | postuninstall_cmds | \
25802 old_postinstall_cmds | old_postuninstall_cmds | \
25803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25804 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025805 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 +000025806 ;;
25807 *)
25808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25809 ;;
25810 esac
25811 done
25812
25813 case $lt_echo in
25814 *'\$0 --fallback-echo"')
25815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25816 ;;
25817 esac
25818
25819cfgfile="$ofile"
25820
25821 cat <<__EOF__ >> "$cfgfile"
25822# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25823
25824# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25825
25826# Shell to use when invoking shell scripts.
25827SHELL=$lt_SHELL
25828
25829# Whether or not to build shared libraries.
25830build_libtool_libs=$enable_shared
25831
25832# Whether or not to build static libraries.
25833build_old_libs=$enable_static
25834
25835# Whether or not to add -lc for building shared libraries.
25836build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25837
25838# Whether or not to disallow shared libs when runtime libs are static
25839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25840
25841# Whether or not to optimize for fast installation.
25842fast_install=$enable_fast_install
25843
25844# The host system.
25845host_alias=$host_alias
25846host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025847host_os=$host_os
25848
25849# The build system.
25850build_alias=$build_alias
25851build=$build
25852build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025853
25854# An echo program that does not interpret backslashes.
25855echo=$lt_echo
25856
25857# The archiver.
25858AR=$lt_AR
25859AR_FLAGS=$lt_AR_FLAGS
25860
25861# A C compiler.
25862LTCC=$lt_LTCC
25863
Reid Spencera773bd52006-08-04 18:18:08 +000025864# LTCC compiler flags.
25865LTCFLAGS=$lt_LTCFLAGS
25866
John Criswell47fdd832003-07-14 16:52:07 +000025867# A language-specific compiler.
25868CC=$lt_compiler_GCJ
25869
25870# Is the compiler the GNU C compiler?
25871with_gcc=$GCC_GCJ
25872
25873# An ERE matcher.
25874EGREP=$lt_EGREP
25875
25876# The linker used to build libraries.
25877LD=$lt_LD_GCJ
25878
25879# Whether we need hard or soft links.
25880LN_S=$lt_LN_S
25881
25882# A BSD-compatible nm program.
25883NM=$lt_NM
25884
25885# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025886STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025887
25888# Used to examine libraries when file_magic_cmd begins "file"
25889MAGIC_CMD=$MAGIC_CMD
25890
25891# Used on cygwin: DLL creation program.
25892DLLTOOL="$DLLTOOL"
25893
25894# Used on cygwin: object dumper.
25895OBJDUMP="$OBJDUMP"
25896
25897# Used on cygwin: assembler.
25898AS="$AS"
25899
25900# The name of the directory that contains temporary libtool files.
25901objdir=$objdir
25902
25903# How to create reloadable object files.
25904reload_flag=$lt_reload_flag
25905reload_cmds=$lt_reload_cmds
25906
25907# How to pass a linker flag through the compiler.
25908wl=$lt_lt_prog_compiler_wl_GCJ
25909
25910# Object file suffix (normally "o").
25911objext="$ac_objext"
25912
25913# Old archive suffix (normally "a").
25914libext="$libext"
25915
25916# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025917shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025918
25919# Executable file suffix (normally "").
25920exeext="$exeext"
25921
25922# Additional compiler flags for building library objects.
25923pic_flag=$lt_lt_prog_compiler_pic_GCJ
25924pic_mode=$pic_mode
25925
25926# What is the maximum length of a command?
25927max_cmd_len=$lt_cv_sys_max_cmd_len
25928
25929# Does compiler simultaneously support -c and -o options?
25930compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25931
Reid Spencera773bd52006-08-04 18:18:08 +000025932# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025933need_locks=$lt_need_locks
25934
25935# Do we need the lib prefix for modules?
25936need_lib_prefix=$need_lib_prefix
25937
25938# Do we need a version for libraries?
25939need_version=$need_version
25940
25941# Whether dlopen is supported.
25942dlopen_support=$enable_dlopen
25943
25944# Whether dlopen of programs is supported.
25945dlopen_self=$enable_dlopen_self
25946
25947# Whether dlopen of statically linked programs is supported.
25948dlopen_self_static=$enable_dlopen_self_static
25949
25950# Compiler flag to prevent dynamic linking.
25951link_static_flag=$lt_lt_prog_compiler_static_GCJ
25952
25953# Compiler flag to turn off builtin functions.
25954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25955
25956# Compiler flag to allow reflexive dlopens.
25957export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25958
25959# Compiler flag to generate shared objects directly from archives.
25960whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25961
25962# Compiler flag to generate thread-safe objects.
25963thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25964
25965# Library versioning type.
25966version_type=$version_type
25967
25968# Format of library name prefix.
25969libname_spec=$lt_libname_spec
25970
25971# List of archive names. First name is the real one, the rest are links.
25972# The last name is the one that the linker finds with -lNAME.
25973library_names_spec=$lt_library_names_spec
25974
25975# The coded name of the library, if different from the real name.
25976soname_spec=$lt_soname_spec
25977
25978# Commands used to build and install an old-style archive.
25979RANLIB=$lt_RANLIB
25980old_archive_cmds=$lt_old_archive_cmds_GCJ
25981old_postinstall_cmds=$lt_old_postinstall_cmds
25982old_postuninstall_cmds=$lt_old_postuninstall_cmds
25983
25984# Create an old-style archive from a shared archive.
25985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25986
25987# Create a temporary old-style archive to link instead of a shared archive.
25988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25989
25990# Commands used to build and install a shared archive.
25991archive_cmds=$lt_archive_cmds_GCJ
25992archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25993postinstall_cmds=$lt_postinstall_cmds
25994postuninstall_cmds=$lt_postuninstall_cmds
25995
25996# Commands used to build a loadable module (assumed same as above if empty)
25997module_cmds=$lt_module_cmds_GCJ
25998module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25999
26000# Commands to strip libraries.
26001old_striplib=$lt_old_striplib
26002striplib=$lt_striplib
26003
26004# Dependencies to place before the objects being linked to create a
26005# shared library.
26006predep_objects=$lt_predep_objects_GCJ
26007
26008# Dependencies to place after the objects being linked to create a
26009# shared library.
26010postdep_objects=$lt_postdep_objects_GCJ
26011
26012# Dependencies to place before the objects being linked to create a
26013# shared library.
26014predeps=$lt_predeps_GCJ
26015
26016# Dependencies to place after the objects being linked to create a
26017# shared library.
26018postdeps=$lt_postdeps_GCJ
26019
26020# The library search path used internally by the compiler when linking
26021# a shared library.
26022compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26023
26024# Method to check whether dependent libraries are shared objects.
26025deplibs_check_method=$lt_deplibs_check_method
26026
26027# Command to use when deplibs_check_method == file_magic.
26028file_magic_cmd=$lt_file_magic_cmd
26029
26030# Flag that allows shared libraries with undefined symbols to be built.
26031allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26032
26033# Flag that forces no undefined symbols.
26034no_undefined_flag=$lt_no_undefined_flag_GCJ
26035
26036# Commands used to finish a libtool library installation in a directory.
26037finish_cmds=$lt_finish_cmds
26038
26039# Same as above, but a single script fragment to be evaled but not shown.
26040finish_eval=$lt_finish_eval
26041
26042# Take the output of nm and produce a listing of raw symbols and C names.
26043global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26044
26045# Transform the output of nm in a proper C declaration
26046global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26047
26048# Transform the output of nm in a C name address pair
26049global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26050
26051# This is the shared library runtime path variable.
26052runpath_var=$runpath_var
26053
26054# This is the shared library path variable.
26055shlibpath_var=$shlibpath_var
26056
26057# Is shlibpath searched before the hard-coded library search path?
26058shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26059
26060# How to hardcode a shared library path into an executable.
26061hardcode_action=$hardcode_action_GCJ
26062
26063# Whether we should hardcode library paths into libraries.
26064hardcode_into_libs=$hardcode_into_libs
26065
26066# Flag to hardcode \$libdir into a binary during linking.
26067# This must work even if \$libdir does not exist.
26068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26069
26070# If ld is used when linking, flag to hardcode \$libdir into
26071# a binary during linking. This must work even if \$libdir does
26072# not exist.
26073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26074
26075# Whether we need a single -rpath flag with a separated argument.
26076hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26077
26078# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26079# resulting binary.
26080hardcode_direct=$hardcode_direct_GCJ
26081
26082# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26083# resulting binary.
26084hardcode_minus_L=$hardcode_minus_L_GCJ
26085
26086# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26087# the resulting binary.
26088hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26089
26090# Set to yes if building a shared library automatically hardcodes DIR into the library
26091# and all subsequent libraries and executables linked against it.
26092hardcode_automatic=$hardcode_automatic_GCJ
26093
26094# Variables whose values should be saved in libtool wrapper scripts and
26095# restored at relink time.
26096variables_saved_for_relink="$variables_saved_for_relink"
26097
26098# Whether libtool must link a program against all its dependency libraries.
26099link_all_deplibs=$link_all_deplibs_GCJ
26100
26101# Compile-time system search path for libraries
26102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26103
26104# Run-time system search path for libraries
26105sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26106
26107# Fix the shell variable \$srcfile for the compiler.
26108fix_srcfile_path="$fix_srcfile_path_GCJ"
26109
26110# Set to yes if exported symbols are required.
26111always_export_symbols=$always_export_symbols_GCJ
26112
26113# The commands to list exported symbols.
26114export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26115
26116# The commands to extract the exported symbol list from a shared archive.
26117extract_expsyms_cmds=$lt_extract_expsyms_cmds
26118
26119# Symbols that should not be listed in the preloaded symbols.
26120exclude_expsyms=$lt_exclude_expsyms_GCJ
26121
26122# Symbols that must always be exported.
26123include_expsyms=$lt_include_expsyms_GCJ
26124
26125# ### END LIBTOOL TAG CONFIG: $tagname
26126
26127__EOF__
26128
26129
26130else
26131 # If there is no Makefile yet, we rely on a make rule to execute
26132 # `config.status --recheck' to rerun these tests and create the
26133 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26135 if test -f "$ltmain_in"; then
26136 test -f Makefile && make "$ltmain"
26137 fi
John Criswell47fdd832003-07-14 16:52:07 +000026138fi
26139
26140
26141ac_ext=c
26142ac_cpp='$CPP $CPPFLAGS'
26143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26145ac_compiler_gnu=$ac_cv_c_compiler_gnu
26146
26147CC="$lt_save_CC"
26148
26149 else
26150 tagname=""
26151 fi
26152 ;;
26153
26154 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026155 ac_ext=c
26156ac_cpp='$CPP $CPPFLAGS'
26157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26159ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026160
26161
26162# Source file extension for RC test sources.
26163ac_ext=rc
26164
26165# Object file extension for compiled RC test sources.
26166objext=o
26167objext_RC=$objext
26168
26169# Code to be used in simple compile tests
26170lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26171
26172# Code to be used in simple link tests
26173lt_simple_link_test_code="$lt_simple_compile_test_code"
26174
26175# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26176
26177# If no C compiler was specified, use CC.
26178LTCC=${LTCC-"$CC"}
26179
Reid Spencera773bd52006-08-04 18:18:08 +000026180# If no C compiler flags were specified, use CFLAGS.
26181LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26182
John Criswell47fdd832003-07-14 16:52:07 +000026183# Allow CC to be a program name with arguments.
26184compiler=$CC
26185
26186
Reid Spencera773bd52006-08-04 18:18:08 +000026187# save warnings/boilerplate of simple test code
26188ac_outfile=conftest.$ac_objext
26189printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26190eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26191_lt_compiler_boilerplate=`cat conftest.err`
26192$rm conftest*
26193
26194ac_outfile=conftest.$ac_objext
26195printf "$lt_simple_link_test_code" >conftest.$ac_ext
26196eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26197_lt_linker_boilerplate=`cat conftest.err`
26198$rm conftest*
26199
26200
John Criswell47fdd832003-07-14 16:52:07 +000026201# Allow CC to be a program name with arguments.
26202lt_save_CC="$CC"
26203CC=${RC-"windres"}
26204compiler=$CC
26205compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026206for cc_temp in $compiler""; do
26207 case $cc_temp in
26208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26210 \-*) ;;
26211 *) break;;
26212 esac
26213done
26214cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26215
John Criswell47fdd832003-07-14 16:52:07 +000026216lt_cv_prog_compiler_c_o_RC=yes
26217
26218# The else clause should only fire when bootstrapping the
26219# libtool distribution, otherwise you forgot to ship ltmain.sh
26220# with your package, and you will get complaints that there are
26221# no rules to generate ltmain.sh.
26222if test -f "$ltmain"; then
26223 # See if we are running on zsh, and set the options which allow our commands through
26224 # without removal of \ escapes.
26225 if test -n "${ZSH_VERSION+set}" ; then
26226 setopt NO_GLOB_SUBST
26227 fi
26228 # Now quote all the things that may contain metacharacters while being
26229 # careful not to overquote the AC_SUBSTed values. We take copies of the
26230 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026231 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 +000026232 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026233 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26234 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26235 deplibs_check_method reload_flag reload_cmds need_locks \
26236 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26237 lt_cv_sys_global_symbol_to_c_name_address \
26238 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26239 old_postinstall_cmds old_postuninstall_cmds \
26240 compiler_RC \
26241 CC_RC \
26242 LD_RC \
26243 lt_prog_compiler_wl_RC \
26244 lt_prog_compiler_pic_RC \
26245 lt_prog_compiler_static_RC \
26246 lt_prog_compiler_no_builtin_flag_RC \
26247 export_dynamic_flag_spec_RC \
26248 thread_safe_flag_spec_RC \
26249 whole_archive_flag_spec_RC \
26250 enable_shared_with_static_runtimes_RC \
26251 old_archive_cmds_RC \
26252 old_archive_from_new_cmds_RC \
26253 predep_objects_RC \
26254 postdep_objects_RC \
26255 predeps_RC \
26256 postdeps_RC \
26257 compiler_lib_search_path_RC \
26258 archive_cmds_RC \
26259 archive_expsym_cmds_RC \
26260 postinstall_cmds_RC \
26261 postuninstall_cmds_RC \
26262 old_archive_from_expsyms_cmds_RC \
26263 allow_undefined_flag_RC \
26264 no_undefined_flag_RC \
26265 export_symbols_cmds_RC \
26266 hardcode_libdir_flag_spec_RC \
26267 hardcode_libdir_flag_spec_ld_RC \
26268 hardcode_libdir_separator_RC \
26269 hardcode_automatic_RC \
26270 module_cmds_RC \
26271 module_expsym_cmds_RC \
26272 lt_cv_prog_compiler_c_o_RC \
26273 exclude_expsyms_RC \
26274 include_expsyms_RC; do
26275
26276 case $var in
26277 old_archive_cmds_RC | \
26278 old_archive_from_new_cmds_RC | \
26279 archive_cmds_RC | \
26280 archive_expsym_cmds_RC | \
26281 module_cmds_RC | \
26282 module_expsym_cmds_RC | \
26283 old_archive_from_expsyms_cmds_RC | \
26284 export_symbols_cmds_RC | \
26285 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26286 postinstall_cmds | postuninstall_cmds | \
26287 old_postinstall_cmds | old_postuninstall_cmds | \
26288 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26289 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026290 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 +000026291 ;;
26292 *)
26293 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26294 ;;
26295 esac
26296 done
26297
26298 case $lt_echo in
26299 *'\$0 --fallback-echo"')
26300 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26301 ;;
26302 esac
26303
26304cfgfile="$ofile"
26305
26306 cat <<__EOF__ >> "$cfgfile"
26307# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26308
26309# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26310
26311# Shell to use when invoking shell scripts.
26312SHELL=$lt_SHELL
26313
26314# Whether or not to build shared libraries.
26315build_libtool_libs=$enable_shared
26316
26317# Whether or not to build static libraries.
26318build_old_libs=$enable_static
26319
26320# Whether or not to add -lc for building shared libraries.
26321build_libtool_need_lc=$archive_cmds_need_lc_RC
26322
26323# Whether or not to disallow shared libs when runtime libs are static
26324allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26325
26326# Whether or not to optimize for fast installation.
26327fast_install=$enable_fast_install
26328
26329# The host system.
26330host_alias=$host_alias
26331host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026332host_os=$host_os
26333
26334# The build system.
26335build_alias=$build_alias
26336build=$build
26337build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026338
26339# An echo program that does not interpret backslashes.
26340echo=$lt_echo
26341
26342# The archiver.
26343AR=$lt_AR
26344AR_FLAGS=$lt_AR_FLAGS
26345
26346# A C compiler.
26347LTCC=$lt_LTCC
26348
Reid Spencera773bd52006-08-04 18:18:08 +000026349# LTCC compiler flags.
26350LTCFLAGS=$lt_LTCFLAGS
26351
John Criswell47fdd832003-07-14 16:52:07 +000026352# A language-specific compiler.
26353CC=$lt_compiler_RC
26354
26355# Is the compiler the GNU C compiler?
26356with_gcc=$GCC_RC
26357
26358# An ERE matcher.
26359EGREP=$lt_EGREP
26360
26361# The linker used to build libraries.
26362LD=$lt_LD_RC
26363
26364# Whether we need hard or soft links.
26365LN_S=$lt_LN_S
26366
26367# A BSD-compatible nm program.
26368NM=$lt_NM
26369
26370# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026371STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026372
26373# Used to examine libraries when file_magic_cmd begins "file"
26374MAGIC_CMD=$MAGIC_CMD
26375
26376# Used on cygwin: DLL creation program.
26377DLLTOOL="$DLLTOOL"
26378
26379# Used on cygwin: object dumper.
26380OBJDUMP="$OBJDUMP"
26381
26382# Used on cygwin: assembler.
26383AS="$AS"
26384
26385# The name of the directory that contains temporary libtool files.
26386objdir=$objdir
26387
26388# How to create reloadable object files.
26389reload_flag=$lt_reload_flag
26390reload_cmds=$lt_reload_cmds
26391
26392# How to pass a linker flag through the compiler.
26393wl=$lt_lt_prog_compiler_wl_RC
26394
26395# Object file suffix (normally "o").
26396objext="$ac_objext"
26397
26398# Old archive suffix (normally "a").
26399libext="$libext"
26400
26401# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026402shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026403
26404# Executable file suffix (normally "").
26405exeext="$exeext"
26406
26407# Additional compiler flags for building library objects.
26408pic_flag=$lt_lt_prog_compiler_pic_RC
26409pic_mode=$pic_mode
26410
26411# What is the maximum length of a command?
26412max_cmd_len=$lt_cv_sys_max_cmd_len
26413
26414# Does compiler simultaneously support -c and -o options?
26415compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26416
Reid Spencera773bd52006-08-04 18:18:08 +000026417# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026418need_locks=$lt_need_locks
26419
26420# Do we need the lib prefix for modules?
26421need_lib_prefix=$need_lib_prefix
26422
26423# Do we need a version for libraries?
26424need_version=$need_version
26425
26426# Whether dlopen is supported.
26427dlopen_support=$enable_dlopen
26428
26429# Whether dlopen of programs is supported.
26430dlopen_self=$enable_dlopen_self
26431
26432# Whether dlopen of statically linked programs is supported.
26433dlopen_self_static=$enable_dlopen_self_static
26434
26435# Compiler flag to prevent dynamic linking.
26436link_static_flag=$lt_lt_prog_compiler_static_RC
26437
26438# Compiler flag to turn off builtin functions.
26439no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26440
26441# Compiler flag to allow reflexive dlopens.
26442export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26443
26444# Compiler flag to generate shared objects directly from archives.
26445whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26446
26447# Compiler flag to generate thread-safe objects.
26448thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26449
26450# Library versioning type.
26451version_type=$version_type
26452
26453# Format of library name prefix.
26454libname_spec=$lt_libname_spec
26455
26456# List of archive names. First name is the real one, the rest are links.
26457# The last name is the one that the linker finds with -lNAME.
26458library_names_spec=$lt_library_names_spec
26459
26460# The coded name of the library, if different from the real name.
26461soname_spec=$lt_soname_spec
26462
26463# Commands used to build and install an old-style archive.
26464RANLIB=$lt_RANLIB
26465old_archive_cmds=$lt_old_archive_cmds_RC
26466old_postinstall_cmds=$lt_old_postinstall_cmds
26467old_postuninstall_cmds=$lt_old_postuninstall_cmds
26468
26469# Create an old-style archive from a shared archive.
26470old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26471
26472# Create a temporary old-style archive to link instead of a shared archive.
26473old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26474
26475# Commands used to build and install a shared archive.
26476archive_cmds=$lt_archive_cmds_RC
26477archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26478postinstall_cmds=$lt_postinstall_cmds
26479postuninstall_cmds=$lt_postuninstall_cmds
26480
26481# Commands used to build a loadable module (assumed same as above if empty)
26482module_cmds=$lt_module_cmds_RC
26483module_expsym_cmds=$lt_module_expsym_cmds_RC
26484
26485# Commands to strip libraries.
26486old_striplib=$lt_old_striplib
26487striplib=$lt_striplib
26488
26489# Dependencies to place before the objects being linked to create a
26490# shared library.
26491predep_objects=$lt_predep_objects_RC
26492
26493# Dependencies to place after the objects being linked to create a
26494# shared library.
26495postdep_objects=$lt_postdep_objects_RC
26496
26497# Dependencies to place before the objects being linked to create a
26498# shared library.
26499predeps=$lt_predeps_RC
26500
26501# Dependencies to place after the objects being linked to create a
26502# shared library.
26503postdeps=$lt_postdeps_RC
26504
26505# The library search path used internally by the compiler when linking
26506# a shared library.
26507compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26508
26509# Method to check whether dependent libraries are shared objects.
26510deplibs_check_method=$lt_deplibs_check_method
26511
26512# Command to use when deplibs_check_method == file_magic.
26513file_magic_cmd=$lt_file_magic_cmd
26514
26515# Flag that allows shared libraries with undefined symbols to be built.
26516allow_undefined_flag=$lt_allow_undefined_flag_RC
26517
26518# Flag that forces no undefined symbols.
26519no_undefined_flag=$lt_no_undefined_flag_RC
26520
26521# Commands used to finish a libtool library installation in a directory.
26522finish_cmds=$lt_finish_cmds
26523
26524# Same as above, but a single script fragment to be evaled but not shown.
26525finish_eval=$lt_finish_eval
26526
26527# Take the output of nm and produce a listing of raw symbols and C names.
26528global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26529
26530# Transform the output of nm in a proper C declaration
26531global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26532
26533# Transform the output of nm in a C name address pair
26534global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26535
26536# This is the shared library runtime path variable.
26537runpath_var=$runpath_var
26538
26539# This is the shared library path variable.
26540shlibpath_var=$shlibpath_var
26541
26542# Is shlibpath searched before the hard-coded library search path?
26543shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26544
26545# How to hardcode a shared library path into an executable.
26546hardcode_action=$hardcode_action_RC
26547
26548# Whether we should hardcode library paths into libraries.
26549hardcode_into_libs=$hardcode_into_libs
26550
26551# Flag to hardcode \$libdir into a binary during linking.
26552# This must work even if \$libdir does not exist.
26553hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26554
26555# If ld is used when linking, flag to hardcode \$libdir into
26556# a binary during linking. This must work even if \$libdir does
26557# not exist.
26558hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26559
26560# Whether we need a single -rpath flag with a separated argument.
26561hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26562
26563# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26564# resulting binary.
26565hardcode_direct=$hardcode_direct_RC
26566
26567# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26568# resulting binary.
26569hardcode_minus_L=$hardcode_minus_L_RC
26570
26571# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26572# the resulting binary.
26573hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26574
26575# Set to yes if building a shared library automatically hardcodes DIR into the library
26576# and all subsequent libraries and executables linked against it.
26577hardcode_automatic=$hardcode_automatic_RC
26578
26579# Variables whose values should be saved in libtool wrapper scripts and
26580# restored at relink time.
26581variables_saved_for_relink="$variables_saved_for_relink"
26582
26583# Whether libtool must link a program against all its dependency libraries.
26584link_all_deplibs=$link_all_deplibs_RC
26585
26586# Compile-time system search path for libraries
26587sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26588
26589# Run-time system search path for libraries
26590sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26591
26592# Fix the shell variable \$srcfile for the compiler.
26593fix_srcfile_path="$fix_srcfile_path_RC"
26594
26595# Set to yes if exported symbols are required.
26596always_export_symbols=$always_export_symbols_RC
26597
26598# The commands to list exported symbols.
26599export_symbols_cmds=$lt_export_symbols_cmds_RC
26600
26601# The commands to extract the exported symbol list from a shared archive.
26602extract_expsyms_cmds=$lt_extract_expsyms_cmds
26603
26604# Symbols that should not be listed in the preloaded symbols.
26605exclude_expsyms=$lt_exclude_expsyms_RC
26606
26607# Symbols that must always be exported.
26608include_expsyms=$lt_include_expsyms_RC
26609
26610# ### END LIBTOOL TAG CONFIG: $tagname
26611
26612__EOF__
26613
26614
26615else
26616 # If there is no Makefile yet, we rely on a make rule to execute
26617 # `config.status --recheck' to rerun these tests and create the
26618 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026619 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26620 if test -f "$ltmain_in"; then
26621 test -f Makefile && make "$ltmain"
26622 fi
John Criswell47fdd832003-07-14 16:52:07 +000026623fi
26624
26625
26626ac_ext=c
26627ac_cpp='$CPP $CPPFLAGS'
26628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26630ac_compiler_gnu=$ac_cv_c_compiler_gnu
26631
26632CC="$lt_save_CC"
26633
26634 ;;
26635
26636 *)
26637 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26638echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26639 { (exit 1); exit 1; }; }
26640 ;;
26641 esac
26642
26643 # Append the new tag name to the list of available tags.
26644 if test -n "$tagname" ; then
26645 available_tags="$available_tags $tagname"
26646 fi
26647 fi
26648 done
26649 IFS="$lt_save_ifs"
26650
26651 # Now substitute the updated list of available tags.
26652 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26653 mv "${ofile}T" "$ofile"
26654 chmod +x "$ofile"
26655 else
26656 rm -f "${ofile}T"
26657 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26658echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26659 { (exit 1); exit 1; }; }
26660 fi
26661fi
John Criswell7a73b802003-06-30 21:59:07 +000026662
26663
26664
26665# This can be used to rebuild libtool when needed
26666LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26667
26668# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026669LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026670
26671# Prevent multiple expansion
26672
26673
26674
John Criswell47fdd832003-07-14 16:52:07 +000026675
26676
26677
26678
26679
26680
26681
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026692
Reid Spencer582a23c2004-12-29 07:07:57 +000026693if test "$lt_cv_dlopen_self" = "yes" ; then
26694
26695cat >>confdefs.h <<\_ACEOF
26696#define CAN_DLOPEN_SELF 1
26697_ACEOF
26698
26699fi
26700
Reid Spencer7931a782004-12-27 06:15:02 +000026701if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026702 LLVMGCC="llvm-gcc${EXEEXT}"
26703 LLVMGXX="llvm-g++${EXEEXT}"
26704 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26705set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026708if test "${ac_cv_path_LLVMGCC+set}" = set; then
26709 echo $ECHO_N "(cached) $ECHO_C" >&6
26710else
26711 case $LLVMGCC in
26712 [\\/]* | ?:[\\/]*)
26713 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26714 ;;
26715 *)
26716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26717for as_dir in $PATH
26718do
26719 IFS=$as_save_IFS
26720 test -z "$as_dir" && as_dir=.
26721 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026722 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 +000026723 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26725 break 2
26726 fi
26727done
26728done
Reid Spencera773bd52006-08-04 18:18:08 +000026729IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026730
Reid Spencer59473af2004-12-25 07:31:29 +000026731 ;;
26732esac
26733fi
26734LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026735if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026736 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26737echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026738else
Reid Spencera773bd52006-08-04 18:18:08 +000026739 { echo "$as_me:$LINENO: result: no" >&5
26740echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026741fi
26742
Reid Spencera773bd52006-08-04 18:18:08 +000026743
Reid Spencerc84492c2005-06-02 22:34:49 +000026744 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26745set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026748if test "${ac_cv_path_LLVMGXX+set}" = set; then
26749 echo $ECHO_N "(cached) $ECHO_C" >&6
26750else
26751 case $LLVMGXX in
26752 [\\/]* | ?:[\\/]*)
26753 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26754 ;;
26755 *)
26756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26757for as_dir in $PATH
26758do
26759 IFS=$as_save_IFS
26760 test -z "$as_dir" && as_dir=.
26761 for ac_exec_ext in '' $ac_executable_extensions; do
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026762 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 +000026763 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26765 break 2
26766 fi
26767done
26768done
Reid Spencera773bd52006-08-04 18:18:08 +000026769IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026770
Reid Spencer59473af2004-12-25 07:31:29 +000026771 ;;
26772esac
26773fi
26774LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026775if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026776 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26777echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026778else
Reid Spencera773bd52006-08-04 18:18:08 +000026779 { echo "$as_me:$LINENO: result: no" >&5
26780echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026781fi
26782
Reid Spencera773bd52006-08-04 18:18:08 +000026783
Reid Spencer59473af2004-12-25 07:31:29 +000026784else
Devang Patel5d28b882007-12-04 22:54:47 +000026785 if test -z "$LLVMGCC"; then
26786 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26787 fi
26788 if test -z "$LLVMGXX"; then
26789 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
26790 fi
Reid Spencer59473af2004-12-25 07:31:29 +000026791 LLVMGCC=$LLVMGCC
26792
26793 LLVMGXX=$LLVMGXX
26794
26795fi
26796
Reid Spencera773bd52006-08-04 18:18:08 +000026797{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26798echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026799
Reid Spencer86901802004-12-08 23:07:27 +000026800ICC=no
26801IXX=no
26802case $CC in
26803 icc*|icpc*)
26804 ICC=yes
26805 IXX=yes
26806 ;;
26807 *)
26808 ;;
26809esac
26810
Duraid Madina937c60a2006-02-15 07:57:42 +000026811if test "$GCC" != "yes" && test "$ICC" != "yes"
26812then
26813 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26814echo "$as_me: error: gcc|icc required but not found" >&2;}
26815 { (exit 1); exit 1; }; }
26816fi
26817
26818if test "$GXX" != "yes" && test "$IXX" != "yes"
26819then
26820 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26821echo "$as_me: error: g++|icc required but not found" >&2;}
26822 { (exit 1); exit 1; }; }
26823fi
26824
Reid Spencer86901802004-12-08 23:07:27 +000026825if test "$GCC" = "yes"
26826then
Chris Lattner399c7c72008-02-05 19:43:53 +000026827 cat >conftest.$ac_ext <<_ACEOF
26828#if !defined(__GNUC__) || __GNUC__ < 3
26829#error Unsupported GCC version
26830#endif
26831
26832_ACEOF
26833rm -f conftest.$ac_objext
26834if { (ac_try="$ac_compile"
26835case "(($ac_try" in
26836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837 *) ac_try_echo=$ac_try;;
26838esac
26839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840 (eval "$ac_compile") 2>conftest.er1
26841 ac_status=$?
26842 grep -v '^ *+' conftest.er1 >conftest.err
26843 rm -f conftest.er1
26844 cat conftest.err >&5
26845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026846 (exit $ac_status); } &&
26847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26848 { (case "(($ac_try" in
26849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26850 *) ac_try_echo=$ac_try;;
26851esac
26852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26853 (eval "$ac_try") 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26861esac
26862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_try") 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000026867 :
26868else
26869 echo "$as_me: failed program was:" >&5
26870sed 's/^/| /' conftest.$ac_ext >&5
26871
26872 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026873echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26874 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000026875fi
26876
26877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026878fi
26879
26880if test -z "$llvm_cv_gnu_make_command"
26881then
26882 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26883echo "$as_me: error: GNU Make required but not found" >&2;}
26884 { (exit 1); exit 1; }; }
26885fi
26886
Reid Spencera773bd52006-08-04 18:18:08 +000026887{ echo "$as_me:$LINENO: result: ok" >&5
26888echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026889
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026890
John Criswell7a73b802003-06-30 21:59:07 +000026891
Reid Spencera773bd52006-08-04 18:18:08 +000026892{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26893echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026894if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26895 echo $ECHO_N "(cached) $ECHO_C" >&6
26896else
26897 ac_check_lib_save_LIBS=$LIBS
26898LIBS="-lelf $LIBS"
26899cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026900/* confdefs.h. */
26901_ACEOF
26902cat confdefs.h >>conftest.$ac_ext
26903cat >>conftest.$ac_ext <<_ACEOF
26904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026905
Reid Spencera773bd52006-08-04 18:18:08 +000026906/* Override any GCC internal prototype to avoid an error.
26907 Use char because int might match the return type of a GCC
26908 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026909#ifdef __cplusplus
26910extern "C"
26911#endif
John Criswell7a73b802003-06-30 21:59:07 +000026912char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026913int
26914main ()
26915{
Reid Spencera773bd52006-08-04 18:18:08 +000026916return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026917 ;
26918 return 0;
26919}
26920_ACEOF
26921rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026922if { (ac_try="$ac_link"
26923case "(($ac_try" in
26924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26925 *) ac_try_echo=$ac_try;;
26926esac
26927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26928 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026929 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026930 grep -v '^ *+' conftest.er1 >conftest.err
26931 rm -f conftest.er1
26932 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026934 (exit $ac_status); } &&
26935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26936 { (case "(($ac_try" in
26937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26938 *) ac_try_echo=$ac_try;;
26939esac
26940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26941 (eval "$ac_try") 2>&5
26942 ac_status=$?
26943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); }; } &&
26945 { ac_try='test -s conftest$ac_exeext'
26946 { (case "(($ac_try" in
26947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26948 *) ac_try_echo=$ac_try;;
26949esac
26950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26951 (eval "$ac_try") 2>&5
26952 ac_status=$?
26953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026955 ac_cv_lib_elf_elf_begin=yes
26956else
26957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026958sed 's/^/| /' conftest.$ac_ext >&5
26959
Reid Spencera773bd52006-08-04 18:18:08 +000026960 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026961fi
Reid Spencera773bd52006-08-04 18:18:08 +000026962
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000026963rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026964 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026965LIBS=$ac_check_lib_save_LIBS
26966fi
Reid Spencera773bd52006-08-04 18:18:08 +000026967{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26968echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026969if test $ac_cv_lib_elf_elf_begin = yes; then
26970 cat >>confdefs.h <<_ACEOF
26971#define HAVE_LIBELF 1
26972_ACEOF
26973
26974 LIBS="-lelf $LIBS"
26975
26976fi
26977
26978
Reid Spencera773bd52006-08-04 18:18:08 +000026979{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26980echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026981if test "${ac_cv_lib_m_sin+set}" = set; then
26982 echo $ECHO_N "(cached) $ECHO_C" >&6
26983else
26984 ac_check_lib_save_LIBS=$LIBS
26985LIBS="-lm $LIBS"
26986cat >conftest.$ac_ext <<_ACEOF
26987/* confdefs.h. */
26988_ACEOF
26989cat confdefs.h >>conftest.$ac_ext
26990cat >>conftest.$ac_ext <<_ACEOF
26991/* end confdefs.h. */
26992
Reid Spencera773bd52006-08-04 18:18:08 +000026993/* Override any GCC internal prototype to avoid an error.
26994 Use char because int might match the return type of a GCC
26995 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026996#ifdef __cplusplus
26997extern "C"
26998#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026999char sin ();
27000int
27001main ()
27002{
Reid Spencera773bd52006-08-04 18:18:08 +000027003return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027009if { (ac_try="$ac_link"
27010case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27013esac
27014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027016 ac_status=$?
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
27029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
27033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036esac
27037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
27039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027042 ac_cv_lib_m_sin=yes
27043else
27044 echo "$as_me: failed program was:" >&5
27045sed 's/^/| /' conftest.$ac_ext >&5
27046
Reid Spencera773bd52006-08-04 18:18:08 +000027047 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027048fi
Reid Spencera773bd52006-08-04 18:18:08 +000027049
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027051 conftest$ac_exeext conftest.$ac_ext
27052LIBS=$ac_check_lib_save_LIBS
27053fi
Reid Spencera773bd52006-08-04 18:18:08 +000027054{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27055echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027056if test $ac_cv_lib_m_sin = yes; then
27057 cat >>confdefs.h <<_ACEOF
27058#define HAVE_LIBM 1
27059_ACEOF
27060
27061 LIBS="-lm $LIBS"
27062
27063fi
27064
Jeff Cohen28783c32007-01-12 18:22:38 +000027065if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027066
Reid Spencera773bd52006-08-04 18:18:08 +000027067{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27068echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027069if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072 ac_check_lib_save_LIBS=$LIBS
27073LIBS="-limagehlp $LIBS"
27074cat >conftest.$ac_ext <<_ACEOF
27075/* confdefs.h. */
27076_ACEOF
27077cat confdefs.h >>conftest.$ac_ext
27078cat >>conftest.$ac_ext <<_ACEOF
27079/* end confdefs.h. */
27080
Reid Spencer48fdf912006-06-01 19:03:21 +000027081
Reid Spencer484fc8e2006-06-01 16:55:59 +000027082int
27083main ()
27084{
Reid Spencera773bd52006-08-04 18:18:08 +000027085return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027086 ;
27087 return 0;
27088}
27089_ACEOF
27090rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027091if { (ac_try="$ac_link"
27092case "(($ac_try" in
27093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094 *) ac_try_echo=$ac_try;;
27095esac
27096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027098 ac_status=$?
27099 grep -v '^ *+' conftest.er1 >conftest.err
27100 rm -f conftest.er1
27101 cat conftest.err >&5
27102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027103 (exit $ac_status); } &&
27104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105 { (case "(($ac_try" in
27106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107 *) ac_try_echo=$ac_try;;
27108esac
27109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110 (eval "$ac_try") 2>&5
27111 ac_status=$?
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; } &&
27114 { ac_try='test -s conftest$ac_exeext'
27115 { (case "(($ac_try" in
27116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117 *) ac_try_echo=$ac_try;;
27118esac
27119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120 (eval "$ac_try") 2>&5
27121 ac_status=$?
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027124 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027125else
27126 echo "$as_me: failed program was:" >&5
27127sed 's/^/| /' conftest.$ac_ext >&5
27128
Reid Spencera773bd52006-08-04 18:18:08 +000027129 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027130fi
Reid Spencera773bd52006-08-04 18:18:08 +000027131
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027132rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027133 conftest$ac_exeext conftest.$ac_ext
27134LIBS=$ac_check_lib_save_LIBS
27135fi
Reid Spencera773bd52006-08-04 18:18:08 +000027136{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27137echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027138if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027139 cat >>confdefs.h <<_ACEOF
27140#define HAVE_LIBIMAGEHLP 1
27141_ACEOF
27142
27143 LIBS="-limagehlp $LIBS"
27144
27145fi
27146
27147
Reid Spencera773bd52006-08-04 18:18:08 +000027148{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27149echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027150if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 ac_check_lib_save_LIBS=$LIBS
27154LIBS="-lpsapi $LIBS"
27155cat >conftest.$ac_ext <<_ACEOF
27156/* confdefs.h. */
27157_ACEOF
27158cat confdefs.h >>conftest.$ac_ext
27159cat >>conftest.$ac_ext <<_ACEOF
27160/* end confdefs.h. */
27161
Reid Spencer48fdf912006-06-01 19:03:21 +000027162
Reid Spencer484fc8e2006-06-01 16:55:59 +000027163int
27164main ()
27165{
Reid Spencera773bd52006-08-04 18:18:08 +000027166return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027167 ;
27168 return 0;
27169}
27170_ACEOF
27171rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027172if { (ac_try="$ac_link"
27173case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27176esac
27177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027184 (exit $ac_status); } &&
27185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27186 { (case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27189esac
27190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_try") 2>&5
27192 ac_status=$?
27193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27194 (exit $ac_status); }; } &&
27195 { ac_try='test -s conftest$ac_exeext'
27196 { (case "(($ac_try" in
27197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27198 *) ac_try_echo=$ac_try;;
27199esac
27200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27201 (eval "$ac_try") 2>&5
27202 ac_status=$?
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027205 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027206else
27207 echo "$as_me: failed program was:" >&5
27208sed 's/^/| /' conftest.$ac_ext >&5
27209
Reid Spencera773bd52006-08-04 18:18:08 +000027210 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027211fi
Reid Spencera773bd52006-08-04 18:18:08 +000027212
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027213rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027214 conftest$ac_exeext conftest.$ac_ext
27215LIBS=$ac_check_lib_save_LIBS
27216fi
Reid Spencera773bd52006-08-04 18:18:08 +000027217{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27218echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027219if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027220 cat >>confdefs.h <<_ACEOF
27221#define HAVE_LIBPSAPI 1
27222_ACEOF
27223
27224 LIBS="-lpsapi $LIBS"
27225
27226fi
27227
27228fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027229
Reid Spencera773bd52006-08-04 18:18:08 +000027230{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27231echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027232if test "${ac_cv_search_dlopen+set}" = set; then
27233 echo $ECHO_N "(cached) $ECHO_C" >&6
27234else
27235 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027236cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027237/* confdefs.h. */
27238_ACEOF
27239cat confdefs.h >>conftest.$ac_ext
27240cat >>conftest.$ac_ext <<_ACEOF
27241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027242
Reid Spencera773bd52006-08-04 18:18:08 +000027243/* Override any GCC internal prototype to avoid an error.
27244 Use char because int might match the return type of a GCC
27245 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027246#ifdef __cplusplus
27247extern "C"
27248#endif
John Criswell7a73b802003-06-30 21:59:07 +000027249char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027250int
27251main ()
27252{
Reid Spencera773bd52006-08-04 18:18:08 +000027253return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027254 ;
27255 return 0;
27256}
27257_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027258for ac_lib in '' dl; do
27259 if test -z "$ac_lib"; then
27260 ac_res="none required"
27261 else
27262 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027263 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027264 fi
27265 rm -f conftest.$ac_objext conftest$ac_exeext
27266if { (ac_try="$ac_link"
27267case "(($ac_try" in
27268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27269 *) ac_try_echo=$ac_try;;
27270esac
27271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27272 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027274 grep -v '^ *+' conftest.er1 >conftest.err
27275 rm -f conftest.er1
27276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027278 (exit $ac_status); } &&
27279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27280 { (case "(($ac_try" in
27281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282 *) ac_try_echo=$ac_try;;
27283esac
27284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285 (eval "$ac_try") 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
27290 { (case "(($ac_try" in
27291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27292 *) ac_try_echo=$ac_try;;
27293esac
27294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27295 (eval "$ac_try") 2>&5
27296 ac_status=$?
27297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027299 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027300else
27301 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027302sed 's/^/| /' conftest.$ac_ext >&5
27303
Reid Spencera773bd52006-08-04 18:18:08 +000027304
John Criswell7a73b802003-06-30 21:59:07 +000027305fi
Reid Spencera773bd52006-08-04 18:18:08 +000027306
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027307rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027308 conftest$ac_exeext
27309 if test "${ac_cv_search_dlopen+set}" = set; then
27310 break
John Criswell7a73b802003-06-30 21:59:07 +000027311fi
Reid Spencera773bd52006-08-04 18:18:08 +000027312done
27313if test "${ac_cv_search_dlopen+set}" = set; then
27314 :
27315else
27316 ac_cv_search_dlopen=no
27317fi
27318rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027319LIBS=$ac_func_search_save_LIBS
27320fi
Reid Spencera773bd52006-08-04 18:18:08 +000027321{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27322echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27323ac_res=$ac_cv_search_dlopen
27324if test "$ac_res" != no; then
27325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027326
27327cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027328#define HAVE_DLOPEN 1
27329_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027330
27331else
Brian Gaekec45be042003-10-07 06:01:34 +000027332 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27333echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027334fi
27335
27336
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000027337{ echo "$as_me:$LINENO: checking for ffi_call in -lffi" >&5
27338echo $ECHO_N "checking for ffi_call in -lffi... $ECHO_C" >&6; }
27339if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341else
27342 ac_check_lib_save_LIBS=$LIBS
27343LIBS="-lffi $LIBS"
27344cat >conftest.$ac_ext <<_ACEOF
27345/* confdefs.h. */
27346_ACEOF
27347cat confdefs.h >>conftest.$ac_ext
27348cat >>conftest.$ac_ext <<_ACEOF
27349/* end confdefs.h. */
27350
27351/* Override any GCC internal prototype to avoid an error.
27352 Use char because int might match the return type of a GCC
27353 builtin and then its argument prototype would still apply. */
27354#ifdef __cplusplus
27355extern "C"
27356#endif
27357char ffi_call ();
27358int
27359main ()
27360{
27361return ffi_call ();
27362 ;
27363 return 0;
27364}
27365_ACEOF
27366rm -f conftest.$ac_objext conftest$ac_exeext
27367if { (ac_try="$ac_link"
27368case "(($ac_try" in
27369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27370 *) ac_try_echo=$ac_try;;
27371esac
27372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27373 (eval "$ac_link") 2>conftest.er1
27374 ac_status=$?
27375 grep -v '^ *+' conftest.er1 >conftest.err
27376 rm -f conftest.er1
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } &&
27380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27381 { (case "(($ac_try" in
27382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27383 *) ac_try_echo=$ac_try;;
27384esac
27385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27386 (eval "$ac_try") 2>&5
27387 ac_status=$?
27388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27389 (exit $ac_status); }; } &&
27390 { ac_try='test -s conftest$ac_exeext'
27391 { (case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394esac
27395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_try") 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_lib_ffi_ffi_call=yes
27401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
27405 ac_cv_lib_ffi_ffi_call=no
27406fi
27407
27408rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
27410LIBS=$ac_check_lib_save_LIBS
27411fi
27412{ echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
27413echo "${ECHO_T}$ac_cv_lib_ffi_ffi_call" >&6; }
27414if test $ac_cv_lib_ffi_ffi_call = yes; then
27415 have_libffi=1
27416else
27417 { echo "$as_me:$LINENO: WARNING: libffi not found - disabling external calls from interpreter" >&5
27418echo "$as_me: WARNING: libffi not found - disabling external calls from interpreter" >&2;}
27419fi
27420
27421
Reid Spencera773bd52006-08-04 18:18:08 +000027422{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27423echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027424if test "${ac_cv_search_mallinfo+set}" = set; then
27425 echo $ECHO_N "(cached) $ECHO_C" >&6
27426else
27427 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027428cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027429/* confdefs.h. */
27430_ACEOF
27431cat confdefs.h >>conftest.$ac_ext
27432cat >>conftest.$ac_ext <<_ACEOF
27433/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027434
Reid Spencera773bd52006-08-04 18:18:08 +000027435/* Override any GCC internal prototype to avoid an error.
27436 Use char because int might match the return type of a GCC
27437 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027438#ifdef __cplusplus
27439extern "C"
27440#endif
John Criswell7a73b802003-06-30 21:59:07 +000027441char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027442int
27443main ()
27444{
Reid Spencera773bd52006-08-04 18:18:08 +000027445return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027446 ;
27447 return 0;
27448}
27449_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027450for ac_lib in '' malloc; do
27451 if test -z "$ac_lib"; then
27452 ac_res="none required"
27453 else
27454 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027456 fi
27457 rm -f conftest.$ac_objext conftest$ac_exeext
27458if { (ac_try="$ac_link"
27459case "(($ac_try" in
27460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27461 *) ac_try_echo=$ac_try;;
27462esac
27463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27464 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027470 (exit $ac_status); } &&
27471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27472 { (case "(($ac_try" in
27473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27474 *) ac_try_echo=$ac_try;;
27475esac
27476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27477 (eval "$ac_try") 2>&5
27478 ac_status=$?
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; } &&
27481 { ac_try='test -s conftest$ac_exeext'
27482 { (case "(($ac_try" in
27483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27484 *) ac_try_echo=$ac_try;;
27485esac
27486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27487 (eval "$ac_try") 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027491 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027492else
27493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027494sed 's/^/| /' conftest.$ac_ext >&5
27495
Reid Spencera773bd52006-08-04 18:18:08 +000027496
John Criswell7a73b802003-06-30 21:59:07 +000027497fi
Reid Spencera773bd52006-08-04 18:18:08 +000027498
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027499rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027500 conftest$ac_exeext
27501 if test "${ac_cv_search_mallinfo+set}" = set; then
27502 break
John Criswell7a73b802003-06-30 21:59:07 +000027503fi
Reid Spencera773bd52006-08-04 18:18:08 +000027504done
27505if test "${ac_cv_search_mallinfo+set}" = set; then
27506 :
27507else
27508 ac_cv_search_mallinfo=no
27509fi
27510rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027511LIBS=$ac_func_search_save_LIBS
27512fi
Reid Spencera773bd52006-08-04 18:18:08 +000027513{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27514echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27515ac_res=$ac_cv_search_mallinfo
27516if test "$ac_res" != no; then
27517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027518
27519cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027520#define HAVE_MALLINFO 1
27521_ACEOF
27522
27523fi
27524
27525
Reid Spencer0a262ba2005-08-24 10:07:20 +000027526if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027527
Reid Spencera773bd52006-08-04 18:18:08 +000027528{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27529echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027530if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532else
27533 ac_check_lib_save_LIBS=$LIBS
27534LIBS="-lpthread $LIBS"
27535cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
27541
Reid Spencera773bd52006-08-04 18:18:08 +000027542/* Override any GCC internal prototype to avoid an error.
27543 Use char because int might match the return type of a GCC
27544 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027545#ifdef __cplusplus
27546extern "C"
27547#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027548char pthread_mutex_init ();
27549int
27550main ()
27551{
Reid Spencera773bd52006-08-04 18:18:08 +000027552return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027553 ;
27554 return 0;
27555}
27556_ACEOF
27557rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027558if { (ac_try="$ac_link"
27559case "(($ac_try" in
27560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27561 *) ac_try_echo=$ac_try;;
27562esac
27563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27564 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027565 ac_status=$?
27566 grep -v '^ *+' conftest.er1 >conftest.err
27567 rm -f conftest.er1
27568 cat conftest.err >&5
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027570 (exit $ac_status); } &&
27571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27572 { (case "(($ac_try" in
27573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574 *) ac_try_echo=$ac_try;;
27575esac
27576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577 (eval "$ac_try") 2>&5
27578 ac_status=$?
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); }; } &&
27581 { ac_try='test -s conftest$ac_exeext'
27582 { (case "(($ac_try" in
27583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27584 *) ac_try_echo=$ac_try;;
27585esac
27586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27587 (eval "$ac_try") 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027591 ac_cv_lib_pthread_pthread_mutex_init=yes
27592else
27593 echo "$as_me: failed program was:" >&5
27594sed 's/^/| /' conftest.$ac_ext >&5
27595
Reid Spencera773bd52006-08-04 18:18:08 +000027596 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027599rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027600 conftest$ac_exeext conftest.$ac_ext
27601LIBS=$ac_check_lib_save_LIBS
27602fi
Reid Spencera773bd52006-08-04 18:18:08 +000027603{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27604echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027605if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27606 cat >>confdefs.h <<_ACEOF
27607#define HAVE_LIBPTHREAD 1
27608_ACEOF
27609
27610 LIBS="-lpthread $LIBS"
27611
27612fi
27613
Reid Spencera773bd52006-08-04 18:18:08 +000027614 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27615echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027616if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27618else
27619 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027620cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027621/* confdefs.h. */
27622_ACEOF
27623cat confdefs.h >>conftest.$ac_ext
27624cat >>conftest.$ac_ext <<_ACEOF
27625/* end confdefs.h. */
27626
Reid Spencera773bd52006-08-04 18:18:08 +000027627/* Override any GCC internal prototype to avoid an error.
27628 Use char because int might match the return type of a GCC
27629 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027630#ifdef __cplusplus
27631extern "C"
27632#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027633char pthread_mutex_lock ();
27634int
27635main ()
27636{
Reid Spencera773bd52006-08-04 18:18:08 +000027637return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027638 ;
27639 return 0;
27640}
27641_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027642for ac_lib in '' pthread; do
27643 if test -z "$ac_lib"; then
27644 ac_res="none required"
27645 else
27646 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027648 fi
27649 rm -f conftest.$ac_objext conftest$ac_exeext
27650if { (ac_try="$ac_link"
27651case "(($ac_try" in
27652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27653 *) ac_try_echo=$ac_try;;
27654esac
27655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27656 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027657 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027662 (exit $ac_status); } &&
27663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27664 { (case "(($ac_try" in
27665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27666 *) ac_try_echo=$ac_try;;
27667esac
27668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27669 (eval "$ac_try") 2>&5
27670 ac_status=$?
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); }; } &&
27673 { ac_try='test -s conftest$ac_exeext'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677esac
27678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
27680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027683 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027684else
27685 echo "$as_me: failed program was:" >&5
27686sed 's/^/| /' conftest.$ac_ext >&5
27687
Reid Spencera773bd52006-08-04 18:18:08 +000027688
Brian Gaeke5f268f72003-12-05 19:29:01 +000027689fi
Reid Spencera773bd52006-08-04 18:18:08 +000027690
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027691rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027692 conftest$ac_exeext
27693 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27694 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027695fi
Reid Spencera773bd52006-08-04 18:18:08 +000027696done
27697if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27698 :
27699else
27700 ac_cv_search_pthread_mutex_lock=no
27701fi
27702rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027703LIBS=$ac_func_search_save_LIBS
27704fi
Reid Spencera773bd52006-08-04 18:18:08 +000027705{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27706echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27707ac_res=$ac_cv_search_pthread_mutex_lock
27708if test "$ac_res" != no; then
27709 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027710
John Criswell40468462004-09-24 21:19:06 +000027711cat >>confdefs.h <<\_ACEOF
27712#define HAVE_PTHREAD_MUTEX_LOCK 1
27713_ACEOF
27714
27715fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027716
Reid Spencer0a262ba2005-08-24 10:07:20 +000027717fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027718
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027719
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027720# Check whether --with-udis86 was given.
27721if test "${with_udis86+set}" = set; then
27722 withval=$with_udis86;
27723 USE_UDIS86=1
27724
27725 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000027726 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027727 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27728 esac
27729
27730{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27731echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27732if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27733 echo $ECHO_N "(cached) $ECHO_C" >&6
27734else
27735 ac_check_lib_save_LIBS=$LIBS
27736LIBS="-ludis86 $LIBS"
27737cat >conftest.$ac_ext <<_ACEOF
27738/* confdefs.h. */
27739_ACEOF
27740cat confdefs.h >>conftest.$ac_ext
27741cat >>conftest.$ac_ext <<_ACEOF
27742/* end confdefs.h. */
27743
27744/* Override any GCC internal prototype to avoid an error.
27745 Use char because int might match the return type of a GCC
27746 builtin and then its argument prototype would still apply. */
27747#ifdef __cplusplus
27748extern "C"
27749#endif
27750char ud_init ();
27751int
27752main ()
27753{
27754return ud_init ();
27755 ;
27756 return 0;
27757}
27758_ACEOF
27759rm -f conftest.$ac_objext conftest$ac_exeext
27760if { (ac_try="$ac_link"
27761case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
27767 ac_status=$?
27768 grep -v '^ *+' conftest.er1 >conftest.err
27769 rm -f conftest.er1
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027772 (exit $ac_status); } &&
27773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27777esac
27778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
27780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
27784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027793 ac_cv_lib_udis86_ud_init=yes
27794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
27798 ac_cv_lib_udis86_ud_init=no
27799fi
27800
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027801rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027802 conftest$ac_exeext conftest.$ac_ext
27803LIBS=$ac_check_lib_save_LIBS
27804fi
27805{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27806echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27807if test $ac_cv_lib_udis86_ud_init = yes; then
27808 cat >>confdefs.h <<_ACEOF
27809#define HAVE_LIBUDIS86 1
27810_ACEOF
27811
27812 LIBS="-ludis86 $LIBS"
27813
27814else
27815
27816 echo "Error! You need to have libudis86 around."
27817 exit -1
27818
27819fi
27820
27821
27822else
27823 USE_UDIS86=0
27824
27825fi
27826
27827
27828cat >>confdefs.h <<_ACEOF
27829#define USE_UDIS86 $USE_UDIS86
27830_ACEOF
27831
27832
27833
Reid Spencer59473af2004-12-25 07:31:29 +000027834
27835
27836
27837
27838
27839ac_header_dirent=no
27840for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27841 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027842{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27843echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027845 echo $ECHO_N "(cached) $ECHO_C" >&6
27846else
27847 cat >conftest.$ac_ext <<_ACEOF
27848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
27853#include <sys/types.h>
27854#include <$ac_hdr>
27855
27856int
27857main ()
27858{
27859if ((DIR *) 0)
27860return 0;
27861 ;
27862 return 0;
27863}
27864_ACEOF
27865rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027866if { (ac_try="$ac_compile"
27867case "(($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_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027873 ac_status=$?
27874 grep -v '^ *+' conftest.er1 >conftest.err
27875 rm -f conftest.er1
27876 cat conftest.err >&5
27877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000027878 (exit $ac_status); } &&
27879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27880 { (case "(($ac_try" in
27881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27882 *) ac_try_echo=$ac_try;;
27883esac
27884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27885 (eval "$ac_try") 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; } &&
27889 { ac_try='test -s conftest.$ac_objext'
27890 { (case "(($ac_try" in
27891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892 *) ac_try_echo=$ac_try;;
27893esac
27894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895 (eval "$ac_try") 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027899 eval "$as_ac_Header=yes"
27900else
27901 echo "$as_me: failed program was:" >&5
27902sed 's/^/| /' conftest.$ac_ext >&5
27903
Reid Spencera773bd52006-08-04 18:18:08 +000027904 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027905fi
Reid Spencera773bd52006-08-04 18:18:08 +000027906
27907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027908fi
Reid Spencera773bd52006-08-04 18:18:08 +000027909ac_res=`eval echo '${'$as_ac_Header'}'`
27910 { echo "$as_me:$LINENO: result: $ac_res" >&5
27911echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027912if test `eval echo '${'$as_ac_Header'}'` = yes; then
27913 cat >>confdefs.h <<_ACEOF
27914#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27915_ACEOF
27916
27917ac_header_dirent=$ac_hdr; break
27918fi
27919
27920done
27921# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27922if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027923 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27924echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027925if test "${ac_cv_search_opendir+set}" = set; then
27926 echo $ECHO_N "(cached) $ECHO_C" >&6
27927else
27928 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027929cat >conftest.$ac_ext <<_ACEOF
27930/* confdefs.h. */
27931_ACEOF
27932cat confdefs.h >>conftest.$ac_ext
27933cat >>conftest.$ac_ext <<_ACEOF
27934/* end confdefs.h. */
27935
Reid Spencera773bd52006-08-04 18:18:08 +000027936/* Override any GCC internal prototype to avoid an error.
27937 Use char because int might match the return type of a GCC
27938 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027939#ifdef __cplusplus
27940extern "C"
27941#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027942char opendir ();
27943int
27944main ()
27945{
Reid Spencera773bd52006-08-04 18:18:08 +000027946return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027947 ;
27948 return 0;
27949}
27950_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027951for ac_lib in '' dir; do
27952 if test -z "$ac_lib"; then
27953 ac_res="none required"
27954 else
27955 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027956 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027957 fi
27958 rm -f conftest.$ac_objext conftest$ac_exeext
27959if { (ac_try="$ac_link"
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_link") 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_exeext'
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 Spencera773bd52006-08-04 18:18:08 +000027992 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027993else
27994 echo "$as_me: failed program was:" >&5
27995sed 's/^/| /' conftest.$ac_ext >&5
27996
Reid Spencera773bd52006-08-04 18:18:08 +000027997
Reid Spencer59473af2004-12-25 07:31:29 +000027998fi
Reid Spencera773bd52006-08-04 18:18:08 +000027999
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028000rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028001 conftest$ac_exeext
28002 if test "${ac_cv_search_opendir+set}" = set; then
28003 break
Reid Spencer59473af2004-12-25 07:31:29 +000028004fi
Reid Spencera773bd52006-08-04 18:18:08 +000028005done
28006if test "${ac_cv_search_opendir+set}" = set; then
28007 :
28008else
28009 ac_cv_search_opendir=no
28010fi
28011rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028012LIBS=$ac_func_search_save_LIBS
28013fi
Reid Spencera773bd52006-08-04 18:18:08 +000028014{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28015echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28016ac_res=$ac_cv_search_opendir
28017if test "$ac_res" != no; then
28018 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028019
28020fi
28021
28022else
Reid Spencera773bd52006-08-04 18:18:08 +000028023 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28024echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028025if test "${ac_cv_search_opendir+set}" = set; then
28026 echo $ECHO_N "(cached) $ECHO_C" >&6
28027else
28028 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028029cat >conftest.$ac_ext <<_ACEOF
28030/* confdefs.h. */
28031_ACEOF
28032cat confdefs.h >>conftest.$ac_ext
28033cat >>conftest.$ac_ext <<_ACEOF
28034/* end confdefs.h. */
28035
Reid Spencera773bd52006-08-04 18:18:08 +000028036/* Override any GCC internal prototype to avoid an error.
28037 Use char because int might match the return type of a GCC
28038 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028039#ifdef __cplusplus
28040extern "C"
28041#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028042char opendir ();
28043int
28044main ()
28045{
Reid Spencera773bd52006-08-04 18:18:08 +000028046return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028047 ;
28048 return 0;
28049}
28050_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028051for ac_lib in '' x; do
28052 if test -z "$ac_lib"; then
28053 ac_res="none required"
28054 else
28055 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028057 fi
28058 rm -f conftest.$ac_objext conftest$ac_exeext
28059if { (ac_try="$ac_link"
28060case "(($ac_try" in
28061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062 *) ac_try_echo=$ac_try;;
28063esac
28064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28065 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028066 ac_status=$?
28067 grep -v '^ *+' conftest.er1 >conftest.err
28068 rm -f conftest.er1
28069 cat conftest.err >&5
28070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028071 (exit $ac_status); } &&
28072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28073 { (case "(($ac_try" in
28074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28075 *) ac_try_echo=$ac_try;;
28076esac
28077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28078 (eval "$ac_try") 2>&5
28079 ac_status=$?
28080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081 (exit $ac_status); }; } &&
28082 { ac_try='test -s conftest$ac_exeext'
28083 { (case "(($ac_try" in
28084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085 *) ac_try_echo=$ac_try;;
28086esac
28087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088 (eval "$ac_try") 2>&5
28089 ac_status=$?
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028092 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028093else
28094 echo "$as_me: failed program was:" >&5
28095sed 's/^/| /' conftest.$ac_ext >&5
28096
Reid Spencera773bd52006-08-04 18:18:08 +000028097
Reid Spencer59473af2004-12-25 07:31:29 +000028098fi
Reid Spencera773bd52006-08-04 18:18:08 +000028099
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028100rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028101 conftest$ac_exeext
28102 if test "${ac_cv_search_opendir+set}" = set; then
28103 break
Reid Spencer59473af2004-12-25 07:31:29 +000028104fi
Reid Spencera773bd52006-08-04 18:18:08 +000028105done
28106if test "${ac_cv_search_opendir+set}" = set; then
28107 :
28108else
28109 ac_cv_search_opendir=no
28110fi
28111rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028112LIBS=$ac_func_search_save_LIBS
28113fi
Reid Spencera773bd52006-08-04 18:18:08 +000028114{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28115echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28116ac_res=$ac_cv_search_opendir
28117if test "$ac_res" != no; then
28118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028119
28120fi
28121
28122fi
28123
Reid Spencera773bd52006-08-04 18:18:08 +000028124{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28125echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028126if test "${ac_cv_header_mmap_anon+set}" = set; then
28127 echo $ECHO_N "(cached) $ECHO_C" >&6
28128else
28129 ac_ext=c
28130ac_cpp='$CPP $CPPFLAGS'
28131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28133ac_compiler_gnu=$ac_cv_c_compiler_gnu
28134
28135 cat >conftest.$ac_ext <<_ACEOF
28136/* confdefs.h. */
28137_ACEOF
28138cat confdefs.h >>conftest.$ac_ext
28139cat >>conftest.$ac_ext <<_ACEOF
28140/* end confdefs.h. */
28141#include <sys/mman.h>
28142#include <unistd.h>
28143#include <fcntl.h>
28144int
28145main ()
28146{
28147mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28148 ;
28149 return 0;
28150}
28151_ACEOF
28152rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028153if { (ac_try="$ac_compile"
28154case "(($ac_try" in
28155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28156 *) ac_try_echo=$ac_try;;
28157esac
28158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28159 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028160 ac_status=$?
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028165 (exit $ac_status); } &&
28166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28167 { (case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28170esac
28171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_try") 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest.$ac_objext'
28177 { (case "(($ac_try" in
28178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28179 *) ac_try_echo=$ac_try;;
28180esac
28181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28182 (eval "$ac_try") 2>&5
28183 ac_status=$?
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028186 ac_cv_header_mmap_anon=yes
28187else
28188 echo "$as_me: failed program was:" >&5
28189sed 's/^/| /' conftest.$ac_ext >&5
28190
Reid Spencera773bd52006-08-04 18:18:08 +000028191 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028192fi
Reid Spencera773bd52006-08-04 18:18:08 +000028193
28194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028195 ac_ext=c
28196ac_cpp='$CPP $CPPFLAGS'
28197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28199ac_compiler_gnu=$ac_cv_c_compiler_gnu
28200
28201
28202fi
Reid Spencera773bd52006-08-04 18:18:08 +000028203{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28204echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028205if test "$ac_cv_header_mmap_anon" = yes; then
28206
28207cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028208#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028209_ACEOF
28210
28211fi
28212
Reid Spencera773bd52006-08-04 18:18:08 +000028213{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28214echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028215if test "${ac_cv_header_stat_broken+set}" = set; then
28216 echo $ECHO_N "(cached) $ECHO_C" >&6
28217else
28218 cat >conftest.$ac_ext <<_ACEOF
28219/* confdefs.h. */
28220_ACEOF
28221cat confdefs.h >>conftest.$ac_ext
28222cat >>conftest.$ac_ext <<_ACEOF
28223/* end confdefs.h. */
28224#include <sys/types.h>
28225#include <sys/stat.h>
28226
Reid Spencera773bd52006-08-04 18:18:08 +000028227#if defined S_ISBLK && defined S_IFDIR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028228# if S_ISBLK (S_IFDIR)
28229You lose.
28230# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028231#endif
28232
Reid Spencera773bd52006-08-04 18:18:08 +000028233#if defined S_ISBLK && defined S_IFCHR
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028234# if S_ISBLK (S_IFCHR)
28235You lose.
28236# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028237#endif
28238
Reid Spencera773bd52006-08-04 18:18:08 +000028239#if defined S_ISLNK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028240# if S_ISLNK (S_IFREG)
28241You lose.
28242# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028243#endif
28244
Reid Spencera773bd52006-08-04 18:18:08 +000028245#if defined S_ISSOCK && defined S_IFREG
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028246# if S_ISSOCK (S_IFREG)
28247You lose.
28248# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028249#endif
28250
28251_ACEOF
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028252if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28253 $EGREP "You lose" >/dev/null 2>&1; then
28254 ac_cv_header_stat_broken=yes
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028255else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028256 ac_cv_header_stat_broken=no
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028257fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028258rm -f conftest*
Nick Lewycky2ab1d862009-01-20 00:52:24 +000028259
Reid Spencer59473af2004-12-25 07:31:29 +000028260fi
Reid Spencera773bd52006-08-04 18:18:08 +000028261{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28262echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028263if test $ac_cv_header_stat_broken = yes; then
28264
28265cat >>confdefs.h <<\_ACEOF
28266#define STAT_MACROS_BROKEN 1
28267_ACEOF
28268
28269fi
28270
Reid Spencera773bd52006-08-04 18:18:08 +000028271{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28272echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028273if test "${ac_cv_header_stdc+set}" = set; then
28274 echo $ECHO_N "(cached) $ECHO_C" >&6
28275else
28276 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028277/* confdefs.h. */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028282#include <stdlib.h>
28283#include <stdarg.h>
28284#include <string.h>
28285#include <float.h>
28286
John Criswell0c38eaf2003-09-10 15:17:25 +000028287int
28288main ()
28289{
28290
28291 ;
28292 return 0;
28293}
John Criswell7a73b802003-06-30 21:59:07 +000028294_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028295rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028296if { (ac_try="$ac_compile"
28297case "(($ac_try" in
28298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28299 *) ac_try_echo=$ac_try;;
28300esac
28301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28302 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028303 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028304 grep -v '^ *+' conftest.er1 >conftest.err
28305 rm -f conftest.er1
28306 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028308 (exit $ac_status); } &&
28309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28310 { (case "(($ac_try" in
28311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312 *) ac_try_echo=$ac_try;;
28313esac
28314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315 (eval "$ac_try") 2>&5
28316 ac_status=$?
28317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318 (exit $ac_status); }; } &&
28319 { ac_try='test -s conftest.$ac_objext'
28320 { (case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28323esac
28324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_try") 2>&5
28326 ac_status=$?
28327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028329 ac_cv_header_stdc=yes
28330else
28331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028332sed 's/^/| /' conftest.$ac_ext >&5
28333
Reid Spencera773bd52006-08-04 18:18:08 +000028334 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028335fi
Reid Spencera773bd52006-08-04 18:18:08 +000028336
28337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028338
28339if test $ac_cv_header_stdc = yes; then
28340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028342/* confdefs.h. */
28343_ACEOF
28344cat confdefs.h >>conftest.$ac_ext
28345cat >>conftest.$ac_ext <<_ACEOF
28346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028347#include <string.h>
28348
28349_ACEOF
28350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028351 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028352 :
28353else
28354 ac_cv_header_stdc=no
28355fi
28356rm -f conftest*
28357
28358fi
28359
28360if test $ac_cv_header_stdc = yes; then
28361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28362 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028363/* confdefs.h. */
28364_ACEOF
28365cat confdefs.h >>conftest.$ac_ext
28366cat >>conftest.$ac_ext <<_ACEOF
28367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028368#include <stdlib.h>
28369
28370_ACEOF
28371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028372 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028373 :
28374else
28375 ac_cv_header_stdc=no
28376fi
28377rm -f conftest*
28378
28379fi
28380
28381if test $ac_cv_header_stdc = yes; then
28382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28383 if test "$cross_compiling" = yes; then
28384 :
28385else
28386 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028387/* confdefs.h. */
28388_ACEOF
28389cat confdefs.h >>conftest.$ac_ext
28390cat >>conftest.$ac_ext <<_ACEOF
28391/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028392#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028393#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028394#if ((' ' & 0x0FF) == 0x020)
28395# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28396# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28397#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028398# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028399 (('a' <= (c) && (c) <= 'i') \
28400 || ('j' <= (c) && (c) <= 'r') \
28401 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028402# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28403#endif
28404
28405#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28406int
28407main ()
28408{
28409 int i;
28410 for (i = 0; i < 256; i++)
28411 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028412 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028413 return 2;
28414 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028415}
28416_ACEOF
28417rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028418if { (ac_try="$ac_link"
28419case "(($ac_try" in
28420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28421 *) ac_try_echo=$ac_try;;
28422esac
28423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28424 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028425 ac_status=$?
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028428 { (case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431esac
28432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
28437 :
28438else
28439 echo "$as_me: program exited with status $ac_status" >&5
28440echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028441sed 's/^/| /' conftest.$ac_ext >&5
28442
John Criswell7a73b802003-06-30 21:59:07 +000028443( exit $ac_status )
28444ac_cv_header_stdc=no
28445fi
Reid Spencera773bd52006-08-04 18:18:08 +000028446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28447fi
28448
28449
John Criswell7a73b802003-06-30 21:59:07 +000028450fi
28451fi
Reid Spencera773bd52006-08-04 18:18:08 +000028452{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28453echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028454if test $ac_cv_header_stdc = yes; then
28455
28456cat >>confdefs.h <<\_ACEOF
28457#define STDC_HEADERS 1
28458_ACEOF
28459
28460fi
28461
Reid Spencera773bd52006-08-04 18:18:08 +000028462{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28463echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028464if test "${ac_cv_header_sys_wait_h+set}" = set; then
28465 echo $ECHO_N "(cached) $ECHO_C" >&6
28466else
28467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028468/* confdefs.h. */
28469_ACEOF
28470cat confdefs.h >>conftest.$ac_ext
28471cat >>conftest.$ac_ext <<_ACEOF
28472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028473#include <sys/types.h>
28474#include <sys/wait.h>
28475#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028476# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028477#endif
28478#ifndef WIFEXITED
28479# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28480#endif
28481
John Criswell7a73b802003-06-30 21:59:07 +000028482int
28483main ()
28484{
28485 int s;
28486 wait (&s);
28487 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28488 ;
28489 return 0;
28490}
28491_ACEOF
28492rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028493if { (ac_try="$ac_compile"
28494case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28497esac
28498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028501 grep -v '^ *+' conftest.er1 >conftest.err
28502 rm -f conftest.er1
28503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028505 (exit $ac_status); } &&
28506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28507 { (case "(($ac_try" in
28508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28509 *) ac_try_echo=$ac_try;;
28510esac
28511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28512 (eval "$ac_try") 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; } &&
28516 { ac_try='test -s conftest.$ac_objext'
28517 { (case "(($ac_try" in
28518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28519 *) ac_try_echo=$ac_try;;
28520esac
28521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28522 (eval "$ac_try") 2>&5
28523 ac_status=$?
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028526 ac_cv_header_sys_wait_h=yes
28527else
28528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028529sed 's/^/| /' conftest.$ac_ext >&5
28530
Reid Spencera773bd52006-08-04 18:18:08 +000028531 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028532fi
Reid Spencera773bd52006-08-04 18:18:08 +000028533
28534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028535fi
Reid Spencera773bd52006-08-04 18:18:08 +000028536{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28537echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028538if test $ac_cv_header_sys_wait_h = yes; then
28539
28540cat >>confdefs.h <<\_ACEOF
28541#define HAVE_SYS_WAIT_H 1
28542_ACEOF
28543
28544fi
28545
Reid Spencera773bd52006-08-04 18:18:08 +000028546{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28547echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028548if test "${ac_cv_header_time+set}" = set; then
28549 echo $ECHO_N "(cached) $ECHO_C" >&6
28550else
28551 cat >conftest.$ac_ext <<_ACEOF
28552/* confdefs.h. */
28553_ACEOF
28554cat confdefs.h >>conftest.$ac_ext
28555cat >>conftest.$ac_ext <<_ACEOF
28556/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028557#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028558#include <sys/time.h>
28559#include <time.h>
28560
28561int
28562main ()
28563{
28564if ((struct tm *) 0)
28565return 0;
28566 ;
28567 return 0;
28568}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028569_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028570rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028571if { (ac_try="$ac_compile"
28572case "(($ac_try" in
28573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28574 *) ac_try_echo=$ac_try;;
28575esac
28576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28577 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028578 ac_status=$?
28579 grep -v '^ *+' conftest.er1 >conftest.err
28580 rm -f conftest.er1
28581 cat conftest.err >&5
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028583 (exit $ac_status); } &&
28584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28585 { (case "(($ac_try" in
28586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587 *) ac_try_echo=$ac_try;;
28588esac
28589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590 (eval "$ac_try") 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
28595 { (case "(($ac_try" in
28596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28597 *) ac_try_echo=$ac_try;;
28598esac
28599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28600 (eval "$ac_try") 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028604 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028605else
28606 echo "$as_me: failed program was:" >&5
28607sed 's/^/| /' conftest.$ac_ext >&5
28608
Reid Spencera773bd52006-08-04 18:18:08 +000028609 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028610fi
Reid Spencera773bd52006-08-04 18:18:08 +000028611
28612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028613fi
Reid Spencera773bd52006-08-04 18:18:08 +000028614{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28615echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028616if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028617
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028618cat >>confdefs.h <<\_ACEOF
28619#define TIME_WITH_SYS_TIME 1
28620_ACEOF
28621
28622fi
28623
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028624
Reid Spencer59473af2004-12-25 07:31:29 +000028625
28626
28627
28628
28629
28630
28631for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28632do
28633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028634if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28637if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028638 echo $ECHO_N "(cached) $ECHO_C" >&6
28639fi
Reid Spencera773bd52006-08-04 18:18:08 +000028640ac_res=`eval echo '${'$as_ac_Header'}'`
28641 { echo "$as_me:$LINENO: result: $ac_res" >&5
28642echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028643else
28644 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028645{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28646echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028647cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028648/* confdefs.h. */
28649_ACEOF
28650cat confdefs.h >>conftest.$ac_ext
28651cat >>conftest.$ac_ext <<_ACEOF
28652/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028653$ac_includes_default
28654#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028655_ACEOF
28656rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028657if { (ac_try="$ac_compile"
28658case "(($ac_try" in
28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28660 *) ac_try_echo=$ac_try;;
28661esac
28662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28663 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028664 ac_status=$?
28665 grep -v '^ *+' conftest.er1 >conftest.err
28666 rm -f conftest.er1
28667 cat conftest.err >&5
28668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028669 (exit $ac_status); } &&
28670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28671 { (case "(($ac_try" in
28672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673 *) ac_try_echo=$ac_try;;
28674esac
28675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676 (eval "$ac_try") 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
28681 { (case "(($ac_try" in
28682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28683 *) ac_try_echo=$ac_try;;
28684esac
28685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28686 (eval "$ac_try") 2>&5
28687 ac_status=$?
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028690 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028691else
28692 echo "$as_me: failed program was:" >&5
28693sed 's/^/| /' conftest.$ac_ext >&5
28694
Reid Spencera773bd52006-08-04 18:18:08 +000028695 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028696fi
Reid Spencera773bd52006-08-04 18:18:08 +000028697
28698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28699{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28700echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028701
Reid Spencer59473af2004-12-25 07:31:29 +000028702# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028703{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028705cat >conftest.$ac_ext <<_ACEOF
28706/* confdefs.h. */
28707_ACEOF
28708cat confdefs.h >>conftest.$ac_ext
28709cat >>conftest.$ac_ext <<_ACEOF
28710/* end confdefs.h. */
28711#include <$ac_header>
28712_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028713if { (ac_try="$ac_cpp conftest.$ac_ext"
28714case "(($ac_try" in
28715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716 *) ac_try_echo=$ac_try;;
28717esac
28718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028720 ac_status=$?
28721 grep -v '^ *+' conftest.er1 >conftest.err
28722 rm -f conftest.er1
28723 cat conftest.err >&5
28724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028725 (exit $ac_status); } >/dev/null; then
28726 if test -s conftest.err; then
28727 ac_cpp_err=$ac_c_preproc_warn_flag
28728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28729 else
28730 ac_cpp_err=
28731 fi
28732else
28733 ac_cpp_err=yes
28734fi
28735if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028736 ac_header_preproc=yes
28737else
28738 echo "$as_me: failed program was:" >&5
28739sed 's/^/| /' conftest.$ac_ext >&5
28740
28741 ac_header_preproc=no
28742fi
Reid Spencera773bd52006-08-04 18:18:08 +000028743
Reid Spencer59473af2004-12-25 07:31:29 +000028744rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028745{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28746echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028747
28748# So? What about this header?
28749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28750 yes:no: )
28751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28755 ac_header_preproc=yes
28756 ;;
28757 no:yes:* )
28758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028770 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028771## ----------------------------------- ##
28772## Report this to llvmbugs@cs.uiuc.edu ##
28773## ----------------------------------- ##
28774_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028775 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028776 ;;
28777esac
Reid Spencera773bd52006-08-04 18:18:08 +000028778{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28780if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028781 echo $ECHO_N "(cached) $ECHO_C" >&6
28782else
28783 eval "$as_ac_Header=\$ac_header_preproc"
28784fi
Reid Spencera773bd52006-08-04 18:18:08 +000028785ac_res=`eval echo '${'$as_ac_Header'}'`
28786 { echo "$as_me:$LINENO: result: $ac_res" >&5
28787echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028788
28789fi
Reid Spencer59473af2004-12-25 07:31:29 +000028790if test `eval echo '${'$as_ac_Header'}'` = yes; then
28791 cat >>confdefs.h <<_ACEOF
28792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028793_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028794
28795fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028796
Reid Spencer59473af2004-12-25 07:31:29 +000028797done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028798
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028799
28800
Reid Spencer59473af2004-12-25 07:31:29 +000028801
28802
28803
28804
Reid Spencercdb08a32006-06-05 16:11:07 +000028805for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028806do
28807as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028808if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28811if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028812 echo $ECHO_N "(cached) $ECHO_C" >&6
28813fi
Reid Spencera773bd52006-08-04 18:18:08 +000028814ac_res=`eval echo '${'$as_ac_Header'}'`
28815 { echo "$as_me:$LINENO: result: $ac_res" >&5
28816echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028817else
28818 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028819{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28820echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028821cat >conftest.$ac_ext <<_ACEOF
28822/* confdefs.h. */
28823_ACEOF
28824cat confdefs.h >>conftest.$ac_ext
28825cat >>conftest.$ac_ext <<_ACEOF
28826/* end confdefs.h. */
28827$ac_includes_default
28828#include <$ac_header>
28829_ACEOF
28830rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028831if { (ac_try="$ac_compile"
28832case "(($ac_try" in
28833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834 *) ac_try_echo=$ac_try;;
28835esac
28836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028838 ac_status=$?
28839 grep -v '^ *+' conftest.er1 >conftest.err
28840 rm -f conftest.er1
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028843 (exit $ac_status); } &&
28844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28845 { (case "(($ac_try" in
28846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28847 *) ac_try_echo=$ac_try;;
28848esac
28849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28850 (eval "$ac_try") 2>&5
28851 ac_status=$?
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; } &&
28854 { ac_try='test -s conftest.$ac_objext'
28855 { (case "(($ac_try" in
28856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857 *) ac_try_echo=$ac_try;;
28858esac
28859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860 (eval "$ac_try") 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028864 ac_header_compiler=yes
28865else
28866 echo "$as_me: failed program was:" >&5
28867sed 's/^/| /' conftest.$ac_ext >&5
28868
Reid Spencera773bd52006-08-04 18:18:08 +000028869 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028870fi
Reid Spencera773bd52006-08-04 18:18:08 +000028871
28872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28874echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028875
28876# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028877{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028879cat >conftest.$ac_ext <<_ACEOF
28880/* confdefs.h. */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h. */
28885#include <$ac_header>
28886_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028887if { (ac_try="$ac_cpp conftest.$ac_ext"
28888case "(($ac_try" in
28889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28890 *) ac_try_echo=$ac_try;;
28891esac
28892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028894 ac_status=$?
28895 grep -v '^ *+' conftest.er1 >conftest.err
28896 rm -f conftest.er1
28897 cat conftest.err >&5
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000028899 (exit $ac_status); } >/dev/null; then
28900 if test -s conftest.err; then
28901 ac_cpp_err=$ac_c_preproc_warn_flag
28902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28903 else
28904 ac_cpp_err=
28905 fi
28906else
28907 ac_cpp_err=yes
28908fi
28909if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000028910 ac_header_preproc=yes
28911else
28912 echo "$as_me: failed program was:" >&5
28913sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 ac_header_preproc=no
28916fi
Reid Spencera773bd52006-08-04 18:18:08 +000028917
Reid Spencer59473af2004-12-25 07:31:29 +000028918rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028919{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28920echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028921
28922# So? What about this header?
28923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28924 yes:no: )
28925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28929 ac_header_preproc=yes
28930 ;;
28931 no:yes:* )
28932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028944 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028945## ----------------------------------- ##
28946## Report this to llvmbugs@cs.uiuc.edu ##
28947## ----------------------------------- ##
28948_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028949 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028950 ;;
28951esac
Reid Spencera773bd52006-08-04 18:18:08 +000028952{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28953echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28954if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028955 echo $ECHO_N "(cached) $ECHO_C" >&6
28956else
28957 eval "$as_ac_Header=\$ac_header_preproc"
28958fi
Reid Spencera773bd52006-08-04 18:18:08 +000028959ac_res=`eval echo '${'$as_ac_Header'}'`
28960 { echo "$as_me:$LINENO: result: $ac_res" >&5
28961echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028962
28963fi
28964if test `eval echo '${'$as_ac_Header'}'` = yes; then
28965 cat >>confdefs.h <<_ACEOF
28966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28967_ACEOF
28968
28969fi
28970
28971done
28972
28973
Reid Spencerbe3e4192007-08-17 05:45:26 +000028974for ac_header in windows.h
28975do
28976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28982fi
28983ac_res=`eval echo '${'$as_ac_Header'}'`
28984 { echo "$as_me:$LINENO: result: $ac_res" >&5
28985echo "${ECHO_T}$ac_res" >&6; }
28986else
28987 # Is the header compilable?
28988{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28989echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28990cat >conftest.$ac_ext <<_ACEOF
28991/* confdefs.h. */
28992_ACEOF
28993cat confdefs.h >>conftest.$ac_ext
28994cat >>conftest.$ac_ext <<_ACEOF
28995/* end confdefs.h. */
28996$ac_includes_default
28997#include <$ac_header>
28998_ACEOF
28999rm -f conftest.$ac_objext
29000if { (ac_try="$ac_compile"
29001case "(($ac_try" in
29002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29003 *) ac_try_echo=$ac_try;;
29004esac
29005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29006 (eval "$ac_compile") 2>conftest.er1
29007 ac_status=$?
29008 grep -v '^ *+' conftest.er1 >conftest.err
29009 rm -f conftest.er1
29010 cat conftest.err >&5
29011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029012 (exit $ac_status); } &&
29013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29014 { (case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29017esac
29018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_try") 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; } &&
29023 { ac_try='test -s conftest.$ac_objext'
29024 { (case "(($ac_try" in
29025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29026 *) ac_try_echo=$ac_try;;
29027esac
29028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29029 (eval "$ac_try") 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029033 ac_header_compiler=yes
29034else
29035 echo "$as_me: failed program was:" >&5
29036sed 's/^/| /' conftest.$ac_ext >&5
29037
29038 ac_header_compiler=no
29039fi
29040
29041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29042{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29043echo "${ECHO_T}$ac_header_compiler" >&6; }
29044
29045# Is the header present?
29046{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29047echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29048cat >conftest.$ac_ext <<_ACEOF
29049/* confdefs.h. */
29050_ACEOF
29051cat confdefs.h >>conftest.$ac_ext
29052cat >>conftest.$ac_ext <<_ACEOF
29053/* end confdefs.h. */
29054#include <$ac_header>
29055_ACEOF
29056if { (ac_try="$ac_cpp conftest.$ac_ext"
29057case "(($ac_try" in
29058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059 *) ac_try_echo=$ac_try;;
29060esac
29061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29063 ac_status=$?
29064 grep -v '^ *+' conftest.er1 >conftest.err
29065 rm -f conftest.er1
29066 cat conftest.err >&5
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029068 (exit $ac_status); } >/dev/null; then
29069 if test -s conftest.err; then
29070 ac_cpp_err=$ac_c_preproc_warn_flag
29071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29072 else
29073 ac_cpp_err=
29074 fi
29075else
29076 ac_cpp_err=yes
29077fi
29078if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029079 ac_header_preproc=yes
29080else
29081 echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
29084 ac_header_preproc=no
29085fi
29086
29087rm -f conftest.err conftest.$ac_ext
29088{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29089echo "${ECHO_T}$ac_header_preproc" >&6; }
29090
29091# So? What about this header?
29092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29093 yes:no: )
29094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29098 ac_header_preproc=yes
29099 ;;
29100 no:yes:* )
29101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29113 ( cat <<\_ASBOX
29114## ----------------------------------- ##
29115## Report this to llvmbugs@cs.uiuc.edu ##
29116## ----------------------------------- ##
29117_ASBOX
29118 ) | sed "s/^/$as_me: WARNING: /" >&2
29119 ;;
29120esac
29121{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29123if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29124 echo $ECHO_N "(cached) $ECHO_C" >&6
29125else
29126 eval "$as_ac_Header=\$ac_header_preproc"
29127fi
29128ac_res=`eval echo '${'$as_ac_Header'}'`
29129 { echo "$as_me:$LINENO: result: $ac_res" >&5
29130echo "${ECHO_T}$ac_res" >&6; }
29131
29132fi
29133if test `eval echo '${'$as_ac_Header'}'` = yes; then
29134 cat >>confdefs.h <<_ACEOF
29135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29136_ACEOF
29137
29138fi
29139
29140done
Reid Spencer59473af2004-12-25 07:31:29 +000029141
29142
29143
29144
Reid Spencerbe3e4192007-08-17 05:45:26 +000029145
29146for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029147do
29148as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029149if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029153 echo $ECHO_N "(cached) $ECHO_C" >&6
29154fi
Reid Spencera773bd52006-08-04 18:18:08 +000029155ac_res=`eval echo '${'$as_ac_Header'}'`
29156 { echo "$as_me:$LINENO: result: $ac_res" >&5
29157echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029158else
29159 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029160{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29161echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029162cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029163/* confdefs.h. */
29164_ACEOF
29165cat confdefs.h >>conftest.$ac_ext
29166cat >>conftest.$ac_ext <<_ACEOF
29167/* end confdefs.h. */
29168$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029169#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029170_ACEOF
29171rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029172if { (ac_try="$ac_compile"
29173case "(($ac_try" in
29174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175 *) ac_try_echo=$ac_try;;
29176esac
29177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029180 grep -v '^ *+' conftest.er1 >conftest.err
29181 rm -f conftest.er1
29182 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029184 (exit $ac_status); } &&
29185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29189esac
29190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191 (eval "$ac_try") 2>&5
29192 ac_status=$?
29193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194 (exit $ac_status); }; } &&
29195 { ac_try='test -s conftest.$ac_objext'
29196 { (case "(($ac_try" in
29197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198 *) ac_try_echo=$ac_try;;
29199esac
29200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201 (eval "$ac_try") 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029205 ac_header_compiler=yes
29206else
29207 echo "$as_me: failed program was:" >&5
29208sed 's/^/| /' conftest.$ac_ext >&5
29209
Reid Spencera773bd52006-08-04 18:18:08 +000029210 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029211fi
Reid Spencera773bd52006-08-04 18:18:08 +000029212
29213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29214{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29215echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029216
29217# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029218{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29219echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029220cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029221/* confdefs.h. */
29222_ACEOF
29223cat confdefs.h >>conftest.$ac_ext
29224cat >>conftest.$ac_ext <<_ACEOF
29225/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029226#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029227_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029228if { (ac_try="$ac_cpp conftest.$ac_ext"
29229case "(($ac_try" in
29230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29231 *) ac_try_echo=$ac_try;;
29232esac
29233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029235 ac_status=$?
29236 grep -v '^ *+' conftest.er1 >conftest.err
29237 rm -f conftest.er1
29238 cat conftest.err >&5
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029240 (exit $ac_status); } >/dev/null; then
29241 if test -s conftest.err; then
29242 ac_cpp_err=$ac_c_preproc_warn_flag
29243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29244 else
29245 ac_cpp_err=
29246 fi
29247else
29248 ac_cpp_err=yes
29249fi
29250if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029251 ac_header_preproc=yes
29252else
29253 echo "$as_me: failed program was:" >&5
29254sed 's/^/| /' conftest.$ac_ext >&5
29255
29256 ac_header_preproc=no
29257fi
Reid Spencera773bd52006-08-04 18:18:08 +000029258
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029259rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029260{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29261echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029262
29263# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29265 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029270 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029271 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029272 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029285 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029286## ----------------------------------- ##
29287## Report this to llvmbugs@cs.uiuc.edu ##
29288## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029289_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029290 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029291 ;;
29292esac
Reid Spencera773bd52006-08-04 18:18:08 +000029293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029296 echo $ECHO_N "(cached) $ECHO_C" >&6
29297else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029298 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029299fi
Reid Spencera773bd52006-08-04 18:18:08 +000029300ac_res=`eval echo '${'$as_ac_Header'}'`
29301 { echo "$as_me:$LINENO: result: $ac_res" >&5
29302echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029303
29304fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029305if test `eval echo '${'$as_ac_Header'}'` = yes; then
29306 cat >>confdefs.h <<_ACEOF
29307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029308_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029309
29310fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029311
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029312done
29313
John Criswell7ed43ad2004-07-19 16:12:29 +000029314
Reid Spencercdb08a32006-06-05 16:11:07 +000029315
Reid Spencera6d990a2006-09-14 06:17:21 +000029316
29317for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029318do
29319as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029320if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29322echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29323if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029324 echo $ECHO_N "(cached) $ECHO_C" >&6
29325fi
Reid Spencera773bd52006-08-04 18:18:08 +000029326ac_res=`eval echo '${'$as_ac_Header'}'`
29327 { echo "$as_me:$LINENO: result: $ac_res" >&5
29328echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029329else
29330 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029331{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29332echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029333cat >conftest.$ac_ext <<_ACEOF
29334/* confdefs.h. */
29335_ACEOF
29336cat confdefs.h >>conftest.$ac_ext
29337cat >>conftest.$ac_ext <<_ACEOF
29338/* end confdefs.h. */
29339$ac_includes_default
29340#include <$ac_header>
29341_ACEOF
29342rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029343if { (ac_try="$ac_compile"
29344case "(($ac_try" in
29345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29346 *) ac_try_echo=$ac_try;;
29347esac
29348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29349 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029350 ac_status=$?
29351 grep -v '^ *+' conftest.er1 >conftest.err
29352 rm -f conftest.er1
29353 cat conftest.err >&5
29354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029355 (exit $ac_status); } &&
29356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29357 { (case "(($ac_try" in
29358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29359 *) ac_try_echo=$ac_try;;
29360esac
29361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29362 (eval "$ac_try") 2>&5
29363 ac_status=$?
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); }; } &&
29366 { ac_try='test -s conftest.$ac_objext'
29367 { (case "(($ac_try" in
29368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29369 *) ac_try_echo=$ac_try;;
29370esac
29371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29372 (eval "$ac_try") 2>&5
29373 ac_status=$?
29374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029376 ac_header_compiler=yes
29377else
29378 echo "$as_me: failed program was:" >&5
29379sed 's/^/| /' conftest.$ac_ext >&5
29380
Reid Spencera773bd52006-08-04 18:18:08 +000029381 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029382fi
Reid Spencera773bd52006-08-04 18:18:08 +000029383
29384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29385{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29386echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029387
29388# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029389{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29390echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029391cat >conftest.$ac_ext <<_ACEOF
29392/* confdefs.h. */
29393_ACEOF
29394cat confdefs.h >>conftest.$ac_ext
29395cat >>conftest.$ac_ext <<_ACEOF
29396/* end confdefs.h. */
29397#include <$ac_header>
29398_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029399if { (ac_try="$ac_cpp conftest.$ac_ext"
29400case "(($ac_try" in
29401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29402 *) ac_try_echo=$ac_try;;
29403esac
29404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029406 ac_status=$?
29407 grep -v '^ *+' conftest.er1 >conftest.err
29408 rm -f conftest.er1
29409 cat conftest.err >&5
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029411 (exit $ac_status); } >/dev/null; then
29412 if test -s conftest.err; then
29413 ac_cpp_err=$ac_c_preproc_warn_flag
29414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29415 else
29416 ac_cpp_err=
29417 fi
29418else
29419 ac_cpp_err=yes
29420fi
29421if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029422 ac_header_preproc=yes
29423else
29424 echo "$as_me: failed program was:" >&5
29425sed 's/^/| /' conftest.$ac_ext >&5
29426
29427 ac_header_preproc=no
29428fi
Reid Spencera773bd52006-08-04 18:18:08 +000029429
Chris Lattner0b142592005-11-14 06:57:34 +000029430rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029431{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29432echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029433
29434# So? What about this header?
29435case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29436 yes:no: )
29437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29438echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29440echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29441 ac_header_preproc=yes
29442 ;;
29443 no:yes:* )
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29445echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29447echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29449echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29451echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29453echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29455echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029456 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029457## ----------------------------------- ##
29458## Report this to llvmbugs@cs.uiuc.edu ##
29459## ----------------------------------- ##
29460_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029461 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029462 ;;
29463esac
Reid Spencera773bd52006-08-04 18:18:08 +000029464{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29465echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29466if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029467 echo $ECHO_N "(cached) $ECHO_C" >&6
29468else
29469 eval "$as_ac_Header=\$ac_header_preproc"
29470fi
Reid Spencera773bd52006-08-04 18:18:08 +000029471ac_res=`eval echo '${'$as_ac_Header'}'`
29472 { echo "$as_me:$LINENO: result: $ac_res" >&5
29473echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029474
29475fi
29476if test `eval echo '${'$as_ac_Header'}'` = yes; then
29477 cat >>confdefs.h <<_ACEOF
29478#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29479_ACEOF
29480
29481fi
29482
29483done
29484
Reid Spencer0a262ba2005-08-24 10:07:20 +000029485if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029486
29487for ac_header in pthread.h
29488do
29489as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29490if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29493if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029494 echo $ECHO_N "(cached) $ECHO_C" >&6
29495fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029496ac_res=`eval echo '${'$as_ac_Header'}'`
29497 { echo "$as_me:$LINENO: result: $ac_res" >&5
29498echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029499else
29500 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029501{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29502echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029503cat >conftest.$ac_ext <<_ACEOF
29504/* confdefs.h. */
29505_ACEOF
29506cat confdefs.h >>conftest.$ac_ext
29507cat >>conftest.$ac_ext <<_ACEOF
29508/* end confdefs.h. */
29509$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029510#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029511_ACEOF
29512rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029513if { (ac_try="$ac_compile"
29514case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29517esac
29518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029520 ac_status=$?
29521 grep -v '^ *+' conftest.er1 >conftest.err
29522 rm -f conftest.er1
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029525 (exit $ac_status); } &&
29526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29527 { (case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29530esac
29531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_try") 2>&5
29533 ac_status=$?
29534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29535 (exit $ac_status); }; } &&
29536 { ac_try='test -s conftest.$ac_objext'
29537 { (case "(($ac_try" in
29538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29539 *) ac_try_echo=$ac_try;;
29540esac
29541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29542 (eval "$ac_try") 2>&5
29543 ac_status=$?
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029546 ac_header_compiler=yes
29547else
29548 echo "$as_me: failed program was:" >&5
29549sed 's/^/| /' conftest.$ac_ext >&5
29550
Reid Spencera773bd52006-08-04 18:18:08 +000029551 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029552fi
Reid Spencera773bd52006-08-04 18:18:08 +000029553
29554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29555{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29556echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029557
29558# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029559{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29560echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029561cat >conftest.$ac_ext <<_ACEOF
29562/* confdefs.h. */
29563_ACEOF
29564cat confdefs.h >>conftest.$ac_ext
29565cat >>conftest.$ac_ext <<_ACEOF
29566/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029567#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029568_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029569if { (ac_try="$ac_cpp conftest.$ac_ext"
29570case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29573esac
29574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029576 ac_status=$?
29577 grep -v '^ *+' conftest.er1 >conftest.err
29578 rm -f conftest.er1
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029581 (exit $ac_status); } >/dev/null; then
29582 if test -s conftest.err; then
29583 ac_cpp_err=$ac_c_preproc_warn_flag
29584 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29585 else
29586 ac_cpp_err=
29587 fi
29588else
29589 ac_cpp_err=yes
29590fi
29591if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029592 ac_header_preproc=yes
29593else
29594 echo "$as_me: failed program was:" >&5
29595sed 's/^/| /' conftest.$ac_ext >&5
29596
29597 ac_header_preproc=no
29598fi
Reid Spencera773bd52006-08-04 18:18:08 +000029599
Reid Spencer0a262ba2005-08-24 10:07:20 +000029600rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029601{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29602echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029603
29604# So? What about this header?
29605case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29606 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29608echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29610echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029611 ac_header_preproc=yes
29612 ;;
29613 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29615echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29617echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29619echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29621echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29623echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29625echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029626 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029627## ----------------------------------- ##
29628## Report this to llvmbugs@cs.uiuc.edu ##
29629## ----------------------------------- ##
29630_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029631 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029632 ;;
29633esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029634{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29636if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029637 echo $ECHO_N "(cached) $ECHO_C" >&6
29638else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029639 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029640fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029641ac_res=`eval echo '${'$as_ac_Header'}'`
29642 { echo "$as_me:$LINENO: result: $ac_res" >&5
29643echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029644
29645fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029646if test `eval echo '${'$as_ac_Header'}'` = yes; then
29647 cat >>confdefs.h <<_ACEOF
29648#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29649_ACEOF
29650 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029651
29652else
29653 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029654
29655fi
29656
Reid Spencerbe3e4192007-08-17 05:45:26 +000029657done
Reid Spencer1000b732006-12-01 00:37:14 +000029658
29659else
29660 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029661
29662fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029663
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000029664if test -n "$have_libffi" ; then
29665
29666
29667for ac_header in ffi.h ffi/ffi.h
29668do
29669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29674 echo $ECHO_N "(cached) $ECHO_C" >&6
29675fi
29676ac_res=`eval echo '${'$as_ac_Header'}'`
29677 { echo "$as_me:$LINENO: result: $ac_res" >&5
29678echo "${ECHO_T}$ac_res" >&6; }
29679else
29680 # Is the header compilable?
29681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29683cat >conftest.$ac_ext <<_ACEOF
29684/* confdefs.h. */
29685_ACEOF
29686cat confdefs.h >>conftest.$ac_ext
29687cat >>conftest.$ac_ext <<_ACEOF
29688/* end confdefs.h. */
29689$ac_includes_default
29690#include <$ac_header>
29691_ACEOF
29692rm -f conftest.$ac_objext
29693if { (ac_try="$ac_compile"
29694case "(($ac_try" in
29695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29696 *) ac_try_echo=$ac_try;;
29697esac
29698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29699 (eval "$ac_compile") 2>conftest.er1
29700 ac_status=$?
29701 grep -v '^ *+' conftest.er1 >conftest.err
29702 rm -f conftest.er1
29703 cat conftest.err >&5
29704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29705 (exit $ac_status); } &&
29706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29707 { (case "(($ac_try" in
29708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29709 *) ac_try_echo=$ac_try;;
29710esac
29711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29712 (eval "$ac_try") 2>&5
29713 ac_status=$?
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; } &&
29716 { ac_try='test -s conftest.$ac_objext'
29717 { (case "(($ac_try" in
29718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29719 *) ac_try_echo=$ac_try;;
29720esac
29721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29722 (eval "$ac_try") 2>&5
29723 ac_status=$?
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; }; then
29726 ac_header_compiler=yes
29727else
29728 echo "$as_me: failed program was:" >&5
29729sed 's/^/| /' conftest.$ac_ext >&5
29730
29731 ac_header_compiler=no
29732fi
29733
29734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29735{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29736echo "${ECHO_T}$ac_header_compiler" >&6; }
29737
29738# Is the header present?
29739{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29740echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29741cat >conftest.$ac_ext <<_ACEOF
29742/* confdefs.h. */
29743_ACEOF
29744cat confdefs.h >>conftest.$ac_ext
29745cat >>conftest.$ac_ext <<_ACEOF
29746/* end confdefs.h. */
29747#include <$ac_header>
29748_ACEOF
29749if { (ac_try="$ac_cpp conftest.$ac_ext"
29750case "(($ac_try" in
29751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29752 *) ac_try_echo=$ac_try;;
29753esac
29754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29756 ac_status=$?
29757 grep -v '^ *+' conftest.er1 >conftest.err
29758 rm -f conftest.er1
29759 cat conftest.err >&5
29760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29761 (exit $ac_status); } >/dev/null; then
29762 if test -s conftest.err; then
29763 ac_cpp_err=$ac_c_preproc_warn_flag
29764 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29765 else
29766 ac_cpp_err=
29767 fi
29768else
29769 ac_cpp_err=yes
29770fi
29771if test -z "$ac_cpp_err"; then
29772 ac_header_preproc=yes
29773else
29774 echo "$as_me: failed program was:" >&5
29775sed 's/^/| /' conftest.$ac_ext >&5
29776
29777 ac_header_preproc=no
29778fi
29779
29780rm -f conftest.err conftest.$ac_ext
29781{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29782echo "${ECHO_T}$ac_header_preproc" >&6; }
29783
29784# So? What about this header?
29785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29786 yes:no: )
29787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29791 ac_header_preproc=yes
29792 ;;
29793 no:yes:* )
29794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29806 ( cat <<\_ASBOX
29807## ----------------------------------- ##
29808## Report this to llvmbugs@cs.uiuc.edu ##
29809## ----------------------------------- ##
29810_ASBOX
29811 ) | sed "s/^/$as_me: WARNING: /" >&2
29812 ;;
29813esac
29814{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29815echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29816if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29817 echo $ECHO_N "(cached) $ECHO_C" >&6
29818else
29819 eval "$as_ac_Header=\$ac_header_preproc"
29820fi
29821ac_res=`eval echo '${'$as_ac_Header'}'`
29822 { echo "$as_me:$LINENO: result: $ac_res" >&5
29823echo "${ECHO_T}$ac_res" >&6; }
29824
29825fi
29826if test `eval echo '${'$as_ac_Header'}'` = yes; then
29827 cat >>confdefs.h <<_ACEOF
29828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29829_ACEOF
29830 HAVE_FFI=1
29831
29832fi
29833
29834done
29835
29836fi
29837
Nick Lewycky2ab1d862009-01-20 00:52:24 +000029838
Reid Spencer8085cff2005-01-16 02:58:39 +000029839
Reid Spencerb2ed05262006-11-03 18:04:08 +000029840 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29841echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29842if test "${ac_cv_huge_val_sanity+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29844else
29845
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029846 ac_ext=cpp
29847ac_cpp='$CXXCPP $CPPFLAGS'
29848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029851
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029852 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029853 if test "$cross_compiling" = yes; then
29854 ac_cv_huge_val_sanity=yes
29855else
29856 cat >conftest.$ac_ext <<_ACEOF
29857/* confdefs.h. */
29858_ACEOF
29859cat confdefs.h >>conftest.$ac_ext
29860cat >>conftest.$ac_ext <<_ACEOF
29861/* end confdefs.h. */
29862#include <math.h>
29863int
29864main ()
29865{
29866double x = HUGE_VAL; return x != x;
29867 ;
29868 return 0;
29869}
29870_ACEOF
29871rm -f conftest$ac_exeext
29872if { (ac_try="$ac_link"
29873case "(($ac_try" in
29874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29875 *) ac_try_echo=$ac_try;;
29876esac
29877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29878 (eval "$ac_link") 2>&5
29879 ac_status=$?
29880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29882 { (case "(($ac_try" in
29883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884 *) ac_try_echo=$ac_try;;
29885esac
29886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887 (eval "$ac_try") 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 ac_cv_huge_val_sanity=yes
29892else
29893 echo "$as_me: program exited with status $ac_status" >&5
29894echo "$as_me: failed program was:" >&5
29895sed 's/^/| /' conftest.$ac_ext >&5
29896
29897( exit $ac_status )
29898ac_cv_huge_val_sanity=no
29899fi
29900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29901fi
29902
29903
29904 ac_ext=c
29905ac_cpp='$CPP $CPPFLAGS'
29906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29908ac_compiler_gnu=$ac_cv_c_compiler_gnu
29909
29910
29911fi
29912{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29913echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29914 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29915
29916
Reid Spencera773bd52006-08-04 18:18:08 +000029917{ echo "$as_me:$LINENO: checking for pid_t" >&5
29918echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029919if test "${ac_cv_type_pid_t+set}" = set; then
29920 echo $ECHO_N "(cached) $ECHO_C" >&6
29921else
29922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029923/* confdefs.h. */
29924_ACEOF
29925cat confdefs.h >>conftest.$ac_ext
29926cat >>conftest.$ac_ext <<_ACEOF
29927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029928$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029929typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029930int
29931main ()
29932{
Reid Spencera773bd52006-08-04 18:18:08 +000029933if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029934 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029935if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029936 return 0;
29937 ;
29938 return 0;
29939}
29940_ACEOF
29941rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029942if { (ac_try="$ac_compile"
29943case "(($ac_try" in
29944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29945 *) ac_try_echo=$ac_try;;
29946esac
29947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29948 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950 grep -v '^ *+' conftest.er1 >conftest.err
29951 rm -f conftest.er1
29952 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000029954 (exit $ac_status); } &&
29955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29956 { (case "(($ac_try" in
29957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29958 *) ac_try_echo=$ac_try;;
29959esac
29960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29961 (eval "$ac_try") 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest.$ac_objext'
29966 { (case "(($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_try") 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029975 ac_cv_type_pid_t=yes
29976else
29977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029978sed 's/^/| /' conftest.$ac_ext >&5
29979
Reid Spencera773bd52006-08-04 18:18:08 +000029980 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029981fi
Reid Spencera773bd52006-08-04 18:18:08 +000029982
29983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029984fi
Reid Spencera773bd52006-08-04 18:18:08 +000029985{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29986echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029987if test $ac_cv_type_pid_t = yes; then
29988 :
29989else
29990
29991cat >>confdefs.h <<_ACEOF
29992#define pid_t int
29993_ACEOF
29994
29995fi
29996
Reid Spencera773bd52006-08-04 18:18:08 +000029997{ echo "$as_me:$LINENO: checking for size_t" >&5
29998echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029999if test "${ac_cv_type_size_t+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
30001else
30002 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030008$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030009typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030010int
30011main ()
30012{
Reid Spencera773bd52006-08-04 18:18:08 +000030013if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030014 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030015if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030016 return 0;
30017 ;
30018 return 0;
30019}
30020_ACEOF
30021rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030022if { (ac_try="$ac_compile"
30023case "(($ac_try" in
30024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30025 *) ac_try_echo=$ac_try;;
30026esac
30027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30028 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030030 grep -v '^ *+' conftest.er1 >conftest.err
30031 rm -f conftest.er1
30032 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030034 (exit $ac_status); } &&
30035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30036 { (case "(($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_try") 2>&5
30042 ac_status=$?
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); }; } &&
30045 { ac_try='test -s conftest.$ac_objext'
30046 { (case "(($ac_try" in
30047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30048 *) ac_try_echo=$ac_try;;
30049esac
30050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30051 (eval "$ac_try") 2>&5
30052 ac_status=$?
30053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30054 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030055 ac_cv_type_size_t=yes
30056else
30057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030058sed 's/^/| /' conftest.$ac_ext >&5
30059
Reid Spencera773bd52006-08-04 18:18:08 +000030060 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030061fi
Reid Spencera773bd52006-08-04 18:18:08 +000030062
30063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030064fi
Reid Spencera773bd52006-08-04 18:18:08 +000030065{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30066echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030067if test $ac_cv_type_size_t = yes; then
30068 :
30069else
30070
30071cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030072#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030073_ACEOF
30074
30075fi
30076
Reid Spencera773bd52006-08-04 18:18:08 +000030077{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30078echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030079if test "${ac_cv_type_signal+set}" = set; then
30080 echo $ECHO_N "(cached) $ECHO_C" >&6
30081else
30082 cat >conftest.$ac_ext <<_ACEOF
30083/* confdefs.h. */
30084_ACEOF
30085cat confdefs.h >>conftest.$ac_ext
30086cat >>conftest.$ac_ext <<_ACEOF
30087/* end confdefs.h. */
30088#include <sys/types.h>
30089#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030090
30091int
30092main ()
30093{
Reid Spencera773bd52006-08-04 18:18:08 +000030094return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030095 ;
30096 return 0;
30097}
30098_ACEOF
30099rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030100if { (ac_try="$ac_compile"
30101case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30106 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030107 ac_status=$?
30108 grep -v '^ *+' conftest.er1 >conftest.err
30109 rm -f conftest.er1
30110 cat conftest.err >&5
30111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030112 (exit $ac_status); } &&
30113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30114 { (case "(($ac_try" in
30115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116 *) ac_try_echo=$ac_try;;
30117esac
30118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119 (eval "$ac_try") 2>&5
30120 ac_status=$?
30121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30122 (exit $ac_status); }; } &&
30123 { ac_try='test -s conftest.$ac_objext'
30124 { (case "(($ac_try" in
30125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126 *) ac_try_echo=$ac_try;;
30127esac
30128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129 (eval "$ac_try") 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030133 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030134else
30135 echo "$as_me: failed program was:" >&5
30136sed 's/^/| /' conftest.$ac_ext >&5
30137
Reid Spencera773bd52006-08-04 18:18:08 +000030138 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030139fi
Reid Spencera773bd52006-08-04 18:18:08 +000030140
30141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030142fi
Reid Spencera773bd52006-08-04 18:18:08 +000030143{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30144echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030145
30146cat >>confdefs.h <<_ACEOF
30147#define RETSIGTYPE $ac_cv_type_signal
30148_ACEOF
30149
30150
Reid Spencera773bd52006-08-04 18:18:08 +000030151{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30152echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030153if test "${ac_cv_struct_tm+set}" = set; then
30154 echo $ECHO_N "(cached) $ECHO_C" >&6
30155else
30156 cat >conftest.$ac_ext <<_ACEOF
30157/* confdefs.h. */
30158_ACEOF
30159cat confdefs.h >>conftest.$ac_ext
30160cat >>conftest.$ac_ext <<_ACEOF
30161/* end confdefs.h. */
30162#include <sys/types.h>
30163#include <time.h>
30164
30165int
30166main ()
30167{
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030168struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030169 ;
30170 return 0;
30171}
30172_ACEOF
30173rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030174if { (ac_try="$ac_compile"
30175case "(($ac_try" in
30176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177 *) ac_try_echo=$ac_try;;
30178esac
30179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030181 ac_status=$?
30182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
30185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030186 (exit $ac_status); } &&
30187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30188 { (case "(($ac_try" in
30189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30190 *) ac_try_echo=$ac_try;;
30191esac
30192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30193 (eval "$ac_try") 2>&5
30194 ac_status=$?
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; } &&
30197 { ac_try='test -s conftest.$ac_objext'
30198 { (case "(($ac_try" in
30199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30200 *) ac_try_echo=$ac_try;;
30201esac
30202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30203 (eval "$ac_try") 2>&5
30204 ac_status=$?
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207 ac_cv_struct_tm=time.h
30208else
30209 echo "$as_me: failed program was:" >&5
30210sed 's/^/| /' conftest.$ac_ext >&5
30211
Reid Spencera773bd52006-08-04 18:18:08 +000030212 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030213fi
Reid Spencera773bd52006-08-04 18:18:08 +000030214
30215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030216fi
Reid Spencera773bd52006-08-04 18:18:08 +000030217{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30218echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030219if test $ac_cv_struct_tm = sys/time.h; then
30220
30221cat >>confdefs.h <<\_ACEOF
30222#define TM_IN_SYS_TIME 1
30223_ACEOF
30224
30225fi
30226
Reid Spencera773bd52006-08-04 18:18:08 +000030227{ echo "$as_me:$LINENO: checking for int64_t" >&5
30228echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030229if test "${ac_cv_type_int64_t+set}" = set; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30231else
30232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030238$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030239typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030240int
30241main ()
30242{
Reid Spencera773bd52006-08-04 18:18:08 +000030243if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030244 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030245if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030246 return 0;
30247 ;
30248 return 0;
30249}
30250_ACEOF
30251rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030252if { (ac_try="$ac_compile"
30253case "(($ac_try" in
30254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30255 *) ac_try_echo=$ac_try;;
30256esac
30257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30258 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030259 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030260 grep -v '^ *+' conftest.er1 >conftest.err
30261 rm -f conftest.er1
30262 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030264 (exit $ac_status); } &&
30265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30266 { (case "(($ac_try" in
30267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30268 *) ac_try_echo=$ac_try;;
30269esac
30270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30271 (eval "$ac_try") 2>&5
30272 ac_status=$?
30273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30274 (exit $ac_status); }; } &&
30275 { ac_try='test -s conftest.$ac_objext'
30276 { (case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30279esac
30280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_try") 2>&5
30282 ac_status=$?
30283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030285 ac_cv_type_int64_t=yes
30286else
30287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030288sed 's/^/| /' conftest.$ac_ext >&5
30289
Reid Spencera773bd52006-08-04 18:18:08 +000030290 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030291fi
Reid Spencera773bd52006-08-04 18:18:08 +000030292
30293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030294fi
Reid Spencera773bd52006-08-04 18:18:08 +000030295{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30296echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030297if test $ac_cv_type_int64_t = yes; then
30298
30299cat >>confdefs.h <<_ACEOF
30300#define HAVE_INT64_T 1
30301_ACEOF
30302
30303
30304else
30305 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30306echo "$as_me: error: Type int64_t required but not found" >&2;}
30307 { (exit 1); exit 1; }; }
30308fi
30309
Reid Spencera773bd52006-08-04 18:18:08 +000030310{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30311echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030312if test "${ac_cv_type_uint64_t+set}" = set; then
30313 echo $ECHO_N "(cached) $ECHO_C" >&6
30314else
30315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030316/* confdefs.h. */
30317_ACEOF
30318cat confdefs.h >>conftest.$ac_ext
30319cat >>conftest.$ac_ext <<_ACEOF
30320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030321$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030322typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030323int
30324main ()
30325{
Reid Spencera773bd52006-08-04 18:18:08 +000030326if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030327 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030328if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030329 return 0;
30330 ;
30331 return 0;
30332}
30333_ACEOF
30334rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030335if { (ac_try="$ac_compile"
30336case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30339esac
30340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30341 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030342 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030343 grep -v '^ *+' conftest.er1 >conftest.err
30344 rm -f conftest.er1
30345 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030347 (exit $ac_status); } &&
30348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30349 { (case "(($ac_try" in
30350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30351 *) ac_try_echo=$ac_try;;
30352esac
30353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30354 (eval "$ac_try") 2>&5
30355 ac_status=$?
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); }; } &&
30358 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030368 ac_cv_type_uint64_t=yes
30369else
30370 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030371sed 's/^/| /' conftest.$ac_ext >&5
30372
Reid Spencera773bd52006-08-04 18:18:08 +000030373 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030374fi
Reid Spencera773bd52006-08-04 18:18:08 +000030375
30376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030377fi
Reid Spencera773bd52006-08-04 18:18:08 +000030378{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30379echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030380if test $ac_cv_type_uint64_t = yes; then
30381
30382cat >>confdefs.h <<_ACEOF
30383#define HAVE_UINT64_T 1
30384_ACEOF
30385
30386
30387else
Reid Spencera773bd52006-08-04 18:18:08 +000030388 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30389echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030390if test "${ac_cv_type_u_int64_t+set}" = set; then
30391 echo $ECHO_N "(cached) $ECHO_C" >&6
30392else
30393 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030394/* confdefs.h. */
30395_ACEOF
30396cat confdefs.h >>conftest.$ac_ext
30397cat >>conftest.$ac_ext <<_ACEOF
30398/* end confdefs.h. */
30399$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030400typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030401int
30402main ()
30403{
Reid Spencera773bd52006-08-04 18:18:08 +000030404if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030405 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030406if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030407 return 0;
30408 ;
30409 return 0;
30410}
30411_ACEOF
30412rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030413if { (ac_try="$ac_compile"
30414case "(($ac_try" in
30415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30416 *) ac_try_echo=$ac_try;;
30417esac
30418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30419 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030421 grep -v '^ *+' conftest.er1 >conftest.err
30422 rm -f conftest.er1
30423 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030425 (exit $ac_status); } &&
30426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30427 { (case "(($ac_try" in
30428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30429 *) ac_try_echo=$ac_try;;
30430esac
30431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30432 (eval "$ac_try") 2>&5
30433 ac_status=$?
30434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435 (exit $ac_status); }; } &&
30436 { ac_try='test -s conftest.$ac_objext'
30437 { (case "(($ac_try" in
30438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30439 *) ac_try_echo=$ac_try;;
30440esac
30441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30442 (eval "$ac_try") 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030446 ac_cv_type_u_int64_t=yes
30447else
30448 echo "$as_me: failed program was:" >&5
30449sed 's/^/| /' conftest.$ac_ext >&5
30450
Reid Spencera773bd52006-08-04 18:18:08 +000030451 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030452fi
Reid Spencera773bd52006-08-04 18:18:08 +000030453
30454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030455fi
Reid Spencera773bd52006-08-04 18:18:08 +000030456{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30457echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030458if test $ac_cv_type_u_int64_t = yes; then
30459
30460cat >>confdefs.h <<_ACEOF
30461#define HAVE_U_INT64_T 1
30462_ACEOF
30463
30464
Misha Brukmanceca9042004-09-02 23:02:30 +000030465else
30466 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30467echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30468 { (exit 1); exit 1; }; }
30469fi
30470
John Criswell679ff312004-09-02 18:44:44 +000030471fi
30472
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473
30474
30475
30476
30477
30478
30479
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030480
30481
Reid Spencerdf3be822006-01-23 08:15:53 +000030482for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030483do
30484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030485{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30487if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030488 echo $ECHO_N "(cached) $ECHO_C" >&6
30489else
30490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030491/* confdefs.h. */
30492_ACEOF
30493cat confdefs.h >>conftest.$ac_ext
30494cat >>conftest.$ac_ext <<_ACEOF
30495/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30498#define $ac_func innocuous_$ac_func
30499
30500/* System header to define __stub macros and hopefully few prototypes,
30501 which can conflict with char $ac_func (); below.
30502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30503 <limits.h> exists even on freestanding compilers. */
30504
30505#ifdef __STDC__
30506# include <limits.h>
30507#else
30508# include <assert.h>
30509#endif
30510
30511#undef $ac_func
30512
Reid Spencera773bd52006-08-04 18:18:08 +000030513/* Override any GCC internal prototype to avoid an error.
30514 Use char because int might match the return type of a GCC
30515 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030516#ifdef __cplusplus
30517extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030518#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519char $ac_func ();
30520/* The GNU C library defines this for functions which it implements
30521 to always fail with ENOSYS. Some functions are actually named
30522 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030523#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030524choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030525#endif
John Criswell7a73b802003-06-30 21:59:07 +000030526
John Criswell7a73b802003-06-30 21:59:07 +000030527int
30528main ()
30529{
Reid Spencera773bd52006-08-04 18:18:08 +000030530return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030531 ;
30532 return 0;
30533}
30534_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030535rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030536if { (ac_try="$ac_link"
30537case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30540esac
30541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030544 grep -v '^ *+' conftest.er1 >conftest.err
30545 rm -f conftest.er1
30546 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030548 (exit $ac_status); } &&
30549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30550 { (case "(($ac_try" in
30551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30552 *) ac_try_echo=$ac_try;;
30553esac
30554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30555 (eval "$ac_try") 2>&5
30556 ac_status=$?
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); }; } &&
30559 { ac_try='test -s conftest$ac_exeext'
30560 { (case "(($ac_try" in
30561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30562 *) ac_try_echo=$ac_try;;
30563esac
30564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30565 (eval "$ac_try") 2>&5
30566 ac_status=$?
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030569 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030570else
30571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030572sed 's/^/| /' conftest.$ac_ext >&5
30573
Reid Spencera773bd52006-08-04 18:18:08 +000030574 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030575fi
Reid Spencera773bd52006-08-04 18:18:08 +000030576
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030577rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030578 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030579fi
Reid Spencera773bd52006-08-04 18:18:08 +000030580ac_res=`eval echo '${'$as_ac_var'}'`
30581 { echo "$as_me:$LINENO: result: $ac_res" >&5
30582echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030583if test `eval echo '${'$as_ac_var'}'` = yes; then
30584 cat >>confdefs.h <<_ACEOF
30585#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030586_ACEOF
30587
30588fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030589done
John Criswell7a73b802003-06-30 21:59:07 +000030590
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030591
30592
30593
Reid Spencer6af3d262004-12-15 04:01:48 +000030594
Reid Spencer96cf5872007-07-13 10:05:30 +000030595for ac_func in powf fmodf strtof round
30596do
30597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30598{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30600if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30601 echo $ECHO_N "(cached) $ECHO_C" >&6
30602else
30603 cat >conftest.$ac_ext <<_ACEOF
30604/* confdefs.h. */
30605_ACEOF
30606cat confdefs.h >>conftest.$ac_ext
30607cat >>conftest.$ac_ext <<_ACEOF
30608/* end confdefs.h. */
30609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30611#define $ac_func innocuous_$ac_func
30612
30613/* System header to define __stub macros and hopefully few prototypes,
30614 which can conflict with char $ac_func (); below.
30615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30616 <limits.h> exists even on freestanding compilers. */
30617
30618#ifdef __STDC__
30619# include <limits.h>
30620#else
30621# include <assert.h>
30622#endif
30623
30624#undef $ac_func
30625
30626/* Override any GCC internal prototype to avoid an error.
30627 Use char because int might match the return type of a GCC
30628 builtin and then its argument prototype would still apply. */
30629#ifdef __cplusplus
30630extern "C"
30631#endif
30632char $ac_func ();
30633/* The GNU C library defines this for functions which it implements
30634 to always fail with ENOSYS. Some functions are actually named
30635 something starting with __ and the normal name is an alias. */
30636#if defined __stub_$ac_func || defined __stub___$ac_func
30637choke me
30638#endif
30639
30640int
30641main ()
30642{
30643return $ac_func ();
30644 ;
30645 return 0;
30646}
30647_ACEOF
30648rm -f conftest.$ac_objext conftest$ac_exeext
30649if { (ac_try="$ac_link"
30650case "(($ac_try" in
30651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30652 *) ac_try_echo=$ac_try;;
30653esac
30654eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30655 (eval "$ac_link") 2>conftest.er1
30656 ac_status=$?
30657 grep -v '^ *+' conftest.er1 >conftest.err
30658 rm -f conftest.er1
30659 cat conftest.err >&5
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030661 (exit $ac_status); } &&
30662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30663 { (case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30666esac
30667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30668 (eval "$ac_try") 2>&5
30669 ac_status=$?
30670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30671 (exit $ac_status); }; } &&
30672 { ac_try='test -s conftest$ac_exeext'
30673 { (case "(($ac_try" in
30674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30675 *) ac_try_echo=$ac_try;;
30676esac
30677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30678 (eval "$ac_try") 2>&5
30679 ac_status=$?
30680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30681 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030682 eval "$as_ac_var=yes"
30683else
30684 echo "$as_me: failed program was:" >&5
30685sed 's/^/| /' conftest.$ac_ext >&5
30686
30687 eval "$as_ac_var=no"
30688fi
30689
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030690rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030691 conftest$ac_exeext conftest.$ac_ext
30692fi
30693ac_res=`eval echo '${'$as_ac_var'}'`
30694 { echo "$as_me:$LINENO: result: $ac_res" >&5
30695echo "${ECHO_T}$ac_res" >&6; }
30696if test `eval echo '${'$as_ac_var'}'` = yes; then
30697 cat >>confdefs.h <<_ACEOF
30698#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30699_ACEOF
30700
30701fi
30702done
30703
30704
30705
30706
30707
Reid Spencer6af3d262004-12-15 04:01:48 +000030708
Reid Spencerb90645c2007-02-16 19:17:20 +000030709for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30710do
30711as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30712{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30713echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30715 echo $ECHO_N "(cached) $ECHO_C" >&6
30716else
30717 cat >conftest.$ac_ext <<_ACEOF
30718/* confdefs.h. */
30719_ACEOF
30720cat confdefs.h >>conftest.$ac_ext
30721cat >>conftest.$ac_ext <<_ACEOF
30722/* end confdefs.h. */
30723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30725#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030726
Reid Spencerb90645c2007-02-16 19:17:20 +000030727/* System header to define __stub macros and hopefully few prototypes,
30728 which can conflict with char $ac_func (); below.
30729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30730 <limits.h> exists even on freestanding compilers. */
30731
30732#ifdef __STDC__
30733# include <limits.h>
30734#else
30735# include <assert.h>
30736#endif
30737
30738#undef $ac_func
30739
30740/* Override any GCC internal prototype to avoid an error.
30741 Use char because int might match the return type of a GCC
30742 builtin and then its argument prototype would still apply. */
30743#ifdef __cplusplus
30744extern "C"
30745#endif
30746char $ac_func ();
30747/* The GNU C library defines this for functions which it implements
30748 to always fail with ENOSYS. Some functions are actually named
30749 something starting with __ and the normal name is an alias. */
30750#if defined __stub_$ac_func || defined __stub___$ac_func
30751choke me
30752#endif
30753
30754int
30755main ()
30756{
30757return $ac_func ();
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext conftest$ac_exeext
30763if { (ac_try="$ac_link"
30764case "(($ac_try" in
30765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30766 *) ac_try_echo=$ac_try;;
30767esac
30768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30769 (eval "$ac_link") 2>conftest.er1
30770 ac_status=$?
30771 grep -v '^ *+' conftest.er1 >conftest.err
30772 rm -f conftest.er1
30773 cat conftest.err >&5
30774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030775 (exit $ac_status); } &&
30776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30777 { (case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30780esac
30781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_try") 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; } &&
30786 { ac_try='test -s conftest$ac_exeext'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30790esac
30791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
30793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030796 eval "$as_ac_var=yes"
30797else
30798 echo "$as_me: failed program was:" >&5
30799sed 's/^/| /' conftest.$ac_ext >&5
30800
30801 eval "$as_ac_var=no"
30802fi
30803
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030804rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030805 conftest$ac_exeext conftest.$ac_ext
30806fi
30807ac_res=`eval echo '${'$as_ac_var'}'`
30808 { echo "$as_me:$LINENO: result: $ac_res" >&5
30809echo "${ECHO_T}$ac_res" >&6; }
30810if test `eval echo '${'$as_ac_var'}'` = yes; then
30811 cat >>confdefs.h <<_ACEOF
30812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30813_ACEOF
30814
30815fi
30816done
30817
30818
30819
30820
30821for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030822do
30823as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030824{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30825echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30826if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030827 echo $ECHO_N "(cached) $ECHO_C" >&6
30828else
30829 cat >conftest.$ac_ext <<_ACEOF
30830/* confdefs.h. */
30831_ACEOF
30832cat confdefs.h >>conftest.$ac_ext
30833cat >>conftest.$ac_ext <<_ACEOF
30834/* end confdefs.h. */
30835/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30837#define $ac_func innocuous_$ac_func
30838
30839/* System header to define __stub macros and hopefully few prototypes,
30840 which can conflict with char $ac_func (); below.
30841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30842 <limits.h> exists even on freestanding compilers. */
30843
30844#ifdef __STDC__
30845# include <limits.h>
30846#else
30847# include <assert.h>
30848#endif
30849
30850#undef $ac_func
30851
Reid Spencera773bd52006-08-04 18:18:08 +000030852/* Override any GCC internal prototype to avoid an error.
30853 Use char because int might match the return type of a GCC
30854 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030855#ifdef __cplusplus
30856extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030857#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030858char $ac_func ();
30859/* The GNU C library defines this for functions which it implements
30860 to always fail with ENOSYS. Some functions are actually named
30861 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030862#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030863choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030864#endif
30865
30866int
30867main ()
30868{
Reid Spencera773bd52006-08-04 18:18:08 +000030869return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030870 ;
30871 return 0;
30872}
30873_ACEOF
30874rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030875if { (ac_try="$ac_link"
30876case "(($ac_try" in
30877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30878 *) ac_try_echo=$ac_try;;
30879esac
30880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30881 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030887 (exit $ac_status); } &&
30888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30889 { (case "(($ac_try" in
30890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30891 *) ac_try_echo=$ac_try;;
30892esac
30893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30894 (eval "$ac_try") 2>&5
30895 ac_status=$?
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); }; } &&
30898 { ac_try='test -s conftest$ac_exeext'
30899 { (case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30902esac
30903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_try") 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030908 eval "$as_ac_var=yes"
30909else
30910 echo "$as_me: failed program was:" >&5
30911sed 's/^/| /' conftest.$ac_ext >&5
30912
Reid Spencera773bd52006-08-04 18:18:08 +000030913 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030914fi
Reid Spencera773bd52006-08-04 18:18:08 +000030915
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000030916rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030917 conftest$ac_exeext conftest.$ac_ext
30918fi
Reid Spencera773bd52006-08-04 18:18:08 +000030919ac_res=`eval echo '${'$as_ac_var'}'`
30920 { echo "$as_me:$LINENO: result: $ac_res" >&5
30921echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030922if test `eval echo '${'$as_ac_var'}'` = yes; then
30923 cat >>confdefs.h <<_ACEOF
30924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30925_ACEOF
30926
30927fi
30928done
30929
30930
30931
30932
30933
30934
30935
30936
30937for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030938do
30939as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030940{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30941echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030943 echo $ECHO_N "(cached) $ECHO_C" >&6
30944else
30945 cat >conftest.$ac_ext <<_ACEOF
30946/* confdefs.h. */
30947_ACEOF
30948cat confdefs.h >>conftest.$ac_ext
30949cat >>conftest.$ac_ext <<_ACEOF
30950/* end confdefs.h. */
30951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30953#define $ac_func innocuous_$ac_func
30954
30955/* System header to define __stub macros and hopefully few prototypes,
30956 which can conflict with char $ac_func (); below.
30957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30958 <limits.h> exists even on freestanding compilers. */
30959
30960#ifdef __STDC__
30961# include <limits.h>
30962#else
30963# include <assert.h>
30964#endif
30965
30966#undef $ac_func
30967
Reid Spencera773bd52006-08-04 18:18:08 +000030968/* Override any GCC internal prototype to avoid an error.
30969 Use char because int might match the return type of a GCC
30970 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030971#ifdef __cplusplus
30972extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030973#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030974char $ac_func ();
30975/* The GNU C library defines this for functions which it implements
30976 to always fail with ENOSYS. Some functions are actually named
30977 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030978#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030979choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030980#endif
30981
30982int
30983main ()
30984{
Reid Spencera773bd52006-08-04 18:18:08 +000030985return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030986 ;
30987 return 0;
30988}
30989_ACEOF
30990rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030991if { (ac_try="$ac_link"
30992case "(($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_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030998 ac_status=$?
30999 grep -v '^ *+' conftest.er1 >conftest.err
31000 rm -f conftest.er1
31001 cat conftest.err >&5
31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031003 (exit $ac_status); } &&
31004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31005 { (case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31008esac
31009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_try") 2>&5
31011 ac_status=$?
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); }; } &&
31014 { ac_try='test -s conftest$ac_exeext'
31015 { (case "(($ac_try" in
31016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31017 *) ac_try_echo=$ac_try;;
31018esac
31019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31020 (eval "$ac_try") 2>&5
31021 ac_status=$?
31022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031024 eval "$as_ac_var=yes"
31025else
31026 echo "$as_me: failed program was:" >&5
31027sed 's/^/| /' conftest.$ac_ext >&5
31028
Reid Spencera773bd52006-08-04 18:18:08 +000031029 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031030fi
Reid Spencera773bd52006-08-04 18:18:08 +000031031
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031032rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031033 conftest$ac_exeext conftest.$ac_ext
31034fi
Reid Spencera773bd52006-08-04 18:18:08 +000031035ac_res=`eval echo '${'$as_ac_var'}'`
31036 { echo "$as_me:$LINENO: result: $ac_res" >&5
31037echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031038if test `eval echo '${'$as_ac_var'}'` = yes; then
31039 cat >>confdefs.h <<_ACEOF
31040#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31041_ACEOF
31042
31043fi
31044done
31045
31046
Reid Spencerba46ca32004-12-31 05:49:15 +000031047
31048
Chris Lattner0b142592005-11-14 06:57:34 +000031049
Chris Lattner511f11d2005-11-14 07:25:50 +000031050for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031051do
31052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031053{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031056 echo $ECHO_N "(cached) $ECHO_C" >&6
31057else
31058 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031059/* confdefs.h. */
31060_ACEOF
31061cat confdefs.h >>conftest.$ac_ext
31062cat >>conftest.$ac_ext <<_ACEOF
31063/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31066#define $ac_func innocuous_$ac_func
31067
31068/* System header to define __stub macros and hopefully few prototypes,
31069 which can conflict with char $ac_func (); below.
31070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31071 <limits.h> exists even on freestanding compilers. */
31072
31073#ifdef __STDC__
31074# include <limits.h>
31075#else
31076# include <assert.h>
31077#endif
31078
31079#undef $ac_func
31080
Reid Spencera773bd52006-08-04 18:18:08 +000031081/* Override any GCC internal prototype to avoid an error.
31082 Use char because int might match the return type of a GCC
31083 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031084#ifdef __cplusplus
31085extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031086#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031087char $ac_func ();
31088/* The GNU C library defines this for functions which it implements
31089 to always fail with ENOSYS. Some functions are actually named
31090 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031091#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031092choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031093#endif
John Criswell7a73b802003-06-30 21:59:07 +000031094
John Criswell7a73b802003-06-30 21:59:07 +000031095int
31096main ()
31097{
Reid Spencera773bd52006-08-04 18:18:08 +000031098return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031099 ;
31100 return 0;
31101}
31102_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031104if { (ac_try="$ac_link"
31105case "(($ac_try" in
31106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31107 *) ac_try_echo=$ac_try;;
31108esac
31109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31110 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031111 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031112 grep -v '^ *+' conftest.er1 >conftest.err
31113 rm -f conftest.er1
31114 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031116 (exit $ac_status); } &&
31117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31118 { (case "(($ac_try" in
31119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31120 *) ac_try_echo=$ac_try;;
31121esac
31122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31123 (eval "$ac_try") 2>&5
31124 ac_status=$?
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; } &&
31127 { ac_try='test -s conftest$ac_exeext'
31128 { (case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31131esac
31132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_try") 2>&5
31134 ac_status=$?
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031137 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031138else
31139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031140sed 's/^/| /' conftest.$ac_ext >&5
31141
Reid Spencera773bd52006-08-04 18:18:08 +000031142 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031143fi
Reid Spencera773bd52006-08-04 18:18:08 +000031144
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031145rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031146 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031147fi
Reid Spencera773bd52006-08-04 18:18:08 +000031148ac_res=`eval echo '${'$as_ac_var'}'`
31149 { echo "$as_me:$LINENO: result: $ac_res" >&5
31150echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031151if test `eval echo '${'$as_ac_var'}'` = yes; then
31152 cat >>confdefs.h <<_ACEOF
31153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031154_ACEOF
31155
31156fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031157done
John Criswell7a73b802003-06-30 21:59:07 +000031158
Reid Spencercdb08a32006-06-05 16:11:07 +000031159
31160
31161
31162
Reid Spencerafa22e22006-12-10 23:29:19 +000031163for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031164do
31165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031166{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031169 echo $ECHO_N "(cached) $ECHO_C" >&6
31170else
31171 cat >conftest.$ac_ext <<_ACEOF
31172/* confdefs.h. */
31173_ACEOF
31174cat confdefs.h >>conftest.$ac_ext
31175cat >>conftest.$ac_ext <<_ACEOF
31176/* end confdefs.h. */
31177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31179#define $ac_func innocuous_$ac_func
31180
31181/* System header to define __stub macros and hopefully few prototypes,
31182 which can conflict with char $ac_func (); below.
31183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31184 <limits.h> exists even on freestanding compilers. */
31185
31186#ifdef __STDC__
31187# include <limits.h>
31188#else
31189# include <assert.h>
31190#endif
31191
31192#undef $ac_func
31193
Reid Spencera773bd52006-08-04 18:18:08 +000031194/* Override any GCC internal prototype to avoid an error.
31195 Use char because int might match the return type of a GCC
31196 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031197#ifdef __cplusplus
31198extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031199#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031200char $ac_func ();
31201/* The GNU C library defines this for functions which it implements
31202 to always fail with ENOSYS. Some functions are actually named
31203 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031204#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031205choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031206#endif
31207
31208int
31209main ()
31210{
Reid Spencera773bd52006-08-04 18:18:08 +000031211return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031212 ;
31213 return 0;
31214}
31215_ACEOF
31216rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031217if { (ac_try="$ac_link"
31218case "(($ac_try" in
31219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31220 *) ac_try_echo=$ac_try;;
31221esac
31222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31223 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031224 ac_status=$?
31225 grep -v '^ *+' conftest.er1 >conftest.err
31226 rm -f conftest.er1
31227 cat conftest.err >&5
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031229 (exit $ac_status); } &&
31230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31231 { (case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_try") 2>&5
31237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; } &&
31240 { ac_try='test -s conftest$ac_exeext'
31241 { (case "(($ac_try" in
31242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31243 *) ac_try_echo=$ac_try;;
31244esac
31245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31246 (eval "$ac_try") 2>&5
31247 ac_status=$?
31248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31249 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031250 eval "$as_ac_var=yes"
31251else
31252 echo "$as_me: failed program was:" >&5
31253sed 's/^/| /' conftest.$ac_ext >&5
31254
Reid Spencera773bd52006-08-04 18:18:08 +000031255 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031256fi
Reid Spencera773bd52006-08-04 18:18:08 +000031257
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031258rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031259 conftest$ac_exeext conftest.$ac_ext
31260fi
Reid Spencera773bd52006-08-04 18:18:08 +000031261ac_res=`eval echo '${'$as_ac_var'}'`
31262 { echo "$as_me:$LINENO: result: $ac_res" >&5
31263echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031264if test `eval echo '${'$as_ac_var'}'` = yes; then
31265 cat >>confdefs.h <<_ACEOF
31266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31267_ACEOF
31268
31269fi
31270done
31271
Reid Spencera773bd52006-08-04 18:18:08 +000031272{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31273echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031274if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031275 echo $ECHO_N "(cached) $ECHO_C" >&6
31276else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031277 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031278ac_cpp='$CPP $CPPFLAGS'
31279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31281ac_compiler_gnu=$ac_cv_c_compiler_gnu
31282
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031283 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031284 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031285else
31286 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031288 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031293
John Criswella0137d32003-10-13 16:22:01 +000031294#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031295#include <stdlib.h>
31296
John Criswella0137d32003-10-13 16:22:01 +000031297int
31298main ()
31299{
31300
Reid Spencer2706f8c2004-09-19 23:53:36 +000031301volatile double A, B;
31302char Buffer[100];
31303A = 1;
31304A /= 10.0;
31305sprintf(Buffer, "%a", A);
31306B = atof(Buffer);
31307if (A != B)
31308 return (1);
31309if (A != 0x1.999999999999ap-4)
31310 return (1);
31311return (0);
John Criswella0137d32003-10-13 16:22:01 +000031312 ;
31313 return 0;
31314}
31315_ACEOF
31316rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031317if { (ac_try="$ac_link"
31318case "(($ac_try" in
31319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31320 *) ac_try_echo=$ac_try;;
31321esac
31322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31323 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031327 { (case "(($ac_try" in
31328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31329 *) ac_try_echo=$ac_try;;
31330esac
31331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31332 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031333 ac_status=$?
31334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31335 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031336 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031337else
31338 echo "$as_me: program exited with status $ac_status" >&5
31339echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
31342( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031343llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031344fi
Reid Spencera773bd52006-08-04 18:18:08 +000031345rm -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 +000031346fi
Reid Spencera773bd52006-08-04 18:18:08 +000031347
31348
Reid Spencer2706f8c2004-09-19 23:53:36 +000031349 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031350ac_cpp='$CPP $CPPFLAGS'
31351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31353ac_compiler_gnu=$ac_cv_c_compiler_gnu
31354
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031355fi
Reid Spencera773bd52006-08-04 18:18:08 +000031356{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31357echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031358 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031359
31360cat >>confdefs.h <<\_ACEOF
31361#define HAVE_PRINTF_A 1
31362_ACEOF
31363
Reid Spencer2706f8c2004-09-19 23:53:36 +000031364 fi
John Criswella0137d32003-10-13 16:22:01 +000031365
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031366# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31367# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031368{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31369echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031370if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031371 echo $ECHO_N "(cached) $ECHO_C" >&6
31372else
John Criswell0021c312004-02-13 21:57:29 +000031373 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031374/* confdefs.h. */
31375_ACEOF
31376cat confdefs.h >>conftest.$ac_ext
31377cat >>conftest.$ac_ext <<_ACEOF
31378/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031379#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031380int
31381main ()
31382{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031383char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031384 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031385 ;
31386 return 0;
31387}
31388_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031390if { (ac_try="$ac_link"
31391case "(($ac_try" in
31392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31393 *) ac_try_echo=$ac_try;;
31394esac
31395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31396 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031398 grep -v '^ *+' conftest.er1 >conftest.err
31399 rm -f conftest.er1
31400 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031402 (exit $ac_status); } &&
31403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31404 { (case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31407esac
31408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_try") 2>&5
31410 ac_status=$?
31411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31412 (exit $ac_status); }; } &&
31413 { ac_try='test -s conftest$ac_exeext'
31414 { (case "(($ac_try" in
31415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31416 *) ac_try_echo=$ac_try;;
31417esac
31418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31419 (eval "$ac_try") 2>&5
31420 ac_status=$?
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031423 ac_cv_working_alloca_h=yes
31424else
31425 echo "$as_me: failed program was:" >&5
31426sed 's/^/| /' conftest.$ac_ext >&5
31427
Reid Spencera773bd52006-08-04 18:18:08 +000031428 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031429fi
Reid Spencera773bd52006-08-04 18:18:08 +000031430
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031431rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031432 conftest$ac_exeext conftest.$ac_ext
31433fi
Reid Spencera773bd52006-08-04 18:18:08 +000031434{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31435echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031436if test $ac_cv_working_alloca_h = yes; then
31437
31438cat >>confdefs.h <<\_ACEOF
31439#define HAVE_ALLOCA_H 1
31440_ACEOF
31441
31442fi
31443
Reid Spencera773bd52006-08-04 18:18:08 +000031444{ echo "$as_me:$LINENO: checking for alloca" >&5
31445echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031446if test "${ac_cv_func_alloca_works+set}" = set; then
31447 echo $ECHO_N "(cached) $ECHO_C" >&6
31448else
31449 cat >conftest.$ac_ext <<_ACEOF
31450/* confdefs.h. */
31451_ACEOF
31452cat confdefs.h >>conftest.$ac_ext
31453cat >>conftest.$ac_ext <<_ACEOF
31454/* end confdefs.h. */
31455#ifdef __GNUC__
31456# define alloca __builtin_alloca
31457#else
31458# ifdef _MSC_VER
31459# include <malloc.h>
31460# define alloca _alloca
31461# else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031462# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031463# include <alloca.h>
31464# else
31465# ifdef _AIX
31466 #pragma alloca
31467# else
31468# ifndef alloca /* predefined by HP cc +Olibcalls */
31469char *alloca ();
31470# endif
31471# endif
31472# endif
31473# endif
31474#endif
31475
31476int
31477main ()
31478{
31479char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031480 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031481 ;
31482 return 0;
31483}
31484_ACEOF
31485rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031486if { (ac_try="$ac_link"
31487case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31490esac
31491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031493 ac_status=$?
31494 grep -v '^ *+' conftest.er1 >conftest.err
31495 rm -f conftest.er1
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031498 (exit $ac_status); } &&
31499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31500 { (case "(($ac_try" in
31501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31502 *) ac_try_echo=$ac_try;;
31503esac
31504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31505 (eval "$ac_try") 2>&5
31506 ac_status=$?
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); }; } &&
31509 { ac_try='test -s conftest$ac_exeext'
31510 { (case "(($ac_try" in
31511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31512 *) ac_try_echo=$ac_try;;
31513esac
31514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31515 (eval "$ac_try") 2>&5
31516 ac_status=$?
31517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31518 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031519 ac_cv_func_alloca_works=yes
31520else
31521 echo "$as_me: failed program was:" >&5
31522sed 's/^/| /' conftest.$ac_ext >&5
31523
Reid Spencera773bd52006-08-04 18:18:08 +000031524 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031525fi
Reid Spencera773bd52006-08-04 18:18:08 +000031526
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031527rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031528 conftest$ac_exeext conftest.$ac_ext
31529fi
Reid Spencera773bd52006-08-04 18:18:08 +000031530{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31531echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031532
31533if test $ac_cv_func_alloca_works = yes; then
31534
31535cat >>confdefs.h <<\_ACEOF
31536#define HAVE_ALLOCA 1
31537_ACEOF
31538
31539else
31540 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31541# that cause trouble. Some versions do not even contain alloca or
31542# contain a buggy version. If you still want to use their alloca,
31543# use ar to extract alloca.o from them instead of compiling alloca.c.
31544
Reid Spencera773bd52006-08-04 18:18:08 +000031545ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031546
31547cat >>confdefs.h <<\_ACEOF
31548#define C_ALLOCA 1
31549_ACEOF
31550
31551
Reid Spencera773bd52006-08-04 18:18:08 +000031552{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31553echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031554if test "${ac_cv_os_cray+set}" = set; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557 cat >conftest.$ac_ext <<_ACEOF
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031563#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031564webecray
31565#else
31566wenotbecray
31567#endif
31568
31569_ACEOF
31570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31571 $EGREP "webecray" >/dev/null 2>&1; then
31572 ac_cv_os_cray=yes
31573else
31574 ac_cv_os_cray=no
31575fi
31576rm -f conftest*
31577
31578fi
Reid Spencera773bd52006-08-04 18:18:08 +000031579{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31580echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031581if test $ac_cv_os_cray = yes; then
31582 for ac_func in _getb67 GETB67 getb67; do
31583 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031584{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31586if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031587 echo $ECHO_N "(cached) $ECHO_C" >&6
31588else
31589 cat >conftest.$ac_ext <<_ACEOF
31590/* confdefs.h. */
31591_ACEOF
31592cat confdefs.h >>conftest.$ac_ext
31593cat >>conftest.$ac_ext <<_ACEOF
31594/* end confdefs.h. */
31595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31597#define $ac_func innocuous_$ac_func
31598
31599/* System header to define __stub macros and hopefully few prototypes,
31600 which can conflict with char $ac_func (); below.
31601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31602 <limits.h> exists even on freestanding compilers. */
31603
31604#ifdef __STDC__
31605# include <limits.h>
31606#else
31607# include <assert.h>
31608#endif
31609
31610#undef $ac_func
31611
Reid Spencera773bd52006-08-04 18:18:08 +000031612/* Override any GCC internal prototype to avoid an error.
31613 Use char because int might match the return type of a GCC
31614 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031615#ifdef __cplusplus
31616extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031617#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031618char $ac_func ();
31619/* The GNU C library defines this for functions which it implements
31620 to always fail with ENOSYS. Some functions are actually named
31621 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031622#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031623choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031624#endif
31625
31626int
31627main ()
31628{
Reid Spencera773bd52006-08-04 18:18:08 +000031629return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031630 ;
31631 return 0;
31632}
31633_ACEOF
31634rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031635if { (ac_try="$ac_link"
31636case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31639esac
31640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031642 ac_status=$?
31643 grep -v '^ *+' conftest.er1 >conftest.err
31644 rm -f conftest.er1
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031647 (exit $ac_status); } &&
31648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31649 { (case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31652esac
31653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_try") 2>&5
31655 ac_status=$?
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); }; } &&
31658 { ac_try='test -s conftest$ac_exeext'
31659 { (case "(($ac_try" in
31660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31661 *) ac_try_echo=$ac_try;;
31662esac
31663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31664 (eval "$ac_try") 2>&5
31665 ac_status=$?
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031668 eval "$as_ac_var=yes"
31669else
31670 echo "$as_me: failed program was:" >&5
31671sed 's/^/| /' conftest.$ac_ext >&5
31672
Reid Spencera773bd52006-08-04 18:18:08 +000031673 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031674fi
Reid Spencera773bd52006-08-04 18:18:08 +000031675
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031676rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031677 conftest$ac_exeext conftest.$ac_ext
31678fi
Reid Spencera773bd52006-08-04 18:18:08 +000031679ac_res=`eval echo '${'$as_ac_var'}'`
31680 { echo "$as_me:$LINENO: result: $ac_res" >&5
31681echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031682if test `eval echo '${'$as_ac_var'}'` = yes; then
31683
31684cat >>confdefs.h <<_ACEOF
31685#define CRAY_STACKSEG_END $ac_func
31686_ACEOF
31687
31688 break
31689fi
31690
31691 done
31692fi
31693
Reid Spencera773bd52006-08-04 18:18:08 +000031694{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31695echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031696if test "${ac_cv_c_stack_direction+set}" = set; then
31697 echo $ECHO_N "(cached) $ECHO_C" >&6
31698else
31699 if test "$cross_compiling" = yes; then
31700 ac_cv_c_stack_direction=0
31701else
31702 cat >conftest.$ac_ext <<_ACEOF
31703/* confdefs.h. */
31704_ACEOF
31705cat confdefs.h >>conftest.$ac_ext
31706cat >>conftest.$ac_ext <<_ACEOF
31707/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031708$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709int
31710find_stack_direction ()
31711{
31712 static char *addr = 0;
31713 auto char dummy;
31714 if (addr == 0)
31715 {
31716 addr = &dummy;
31717 return find_stack_direction ();
31718 }
John Criswell0021c312004-02-13 21:57:29 +000031719 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031720 return (&dummy > addr) ? 1 : -1;
31721}
John Criswell0021c312004-02-13 21:57:29 +000031722
John Criswell0021c312004-02-13 21:57:29 +000031723int
31724main ()
31725{
Reid Spencera773bd52006-08-04 18:18:08 +000031726 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031727}
31728_ACEOF
31729rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031730if { (ac_try="$ac_link"
31731case "(($ac_try" in
31732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31733 *) ac_try_echo=$ac_try;;
31734esac
31735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31736 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031737 ac_status=$?
31738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031740 { (case "(($ac_try" in
31741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31742 *) ac_try_echo=$ac_try;;
31743esac
31744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31745 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031746 ac_status=$?
31747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31748 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031749 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031750else
31751 echo "$as_me: program exited with status $ac_status" >&5
31752echo "$as_me: failed program was:" >&5
31753sed 's/^/| /' conftest.$ac_ext >&5
31754
31755( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031756ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031757fi
Reid Spencera773bd52006-08-04 18:18:08 +000031758rm -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 +000031759fi
Reid Spencera773bd52006-08-04 18:18:08 +000031760
31761
John Criswell0021c312004-02-13 21:57:29 +000031762fi
Reid Spencera773bd52006-08-04 18:18:08 +000031763{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31764echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031765
31766cat >>confdefs.h <<_ACEOF
31767#define STACK_DIRECTION $ac_cv_c_stack_direction
31768_ACEOF
31769
31770
John Criswell0021c312004-02-13 21:57:29 +000031771fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031772
31773
Reid Spencera773bd52006-08-04 18:18:08 +000031774{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31775echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031776if test "${ac_cv_func_rand48+set}" = set; then
31777 echo $ECHO_N "(cached) $ECHO_C" >&6
31778else
Reid Spencera773bd52006-08-04 18:18:08 +000031779 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031780ac_cpp='$CXXCPP $CPPFLAGS'
31781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31784
31785 cat >conftest.$ac_ext <<_ACEOF
31786/* confdefs.h. */
31787_ACEOF
31788cat confdefs.h >>conftest.$ac_ext
31789cat >>conftest.$ac_ext <<_ACEOF
31790/* end confdefs.h. */
31791#include <stdlib.h>
31792int
31793main ()
31794{
31795srand48(0);lrand48();drand48();
31796 ;
31797 return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031801if { (ac_try="$ac_compile"
31802case "(($ac_try" in
31803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804 *) ac_try_echo=$ac_try;;
31805esac
31806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031808 ac_status=$?
31809 grep -v '^ *+' conftest.er1 >conftest.err
31810 rm -f conftest.er1
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31815 { (case "(($ac_try" in
31816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31817 *) ac_try_echo=$ac_try;;
31818esac
31819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31820 (eval "$ac_try") 2>&5
31821 ac_status=$?
31822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31823 (exit $ac_status); }; } &&
31824 { ac_try='test -s conftest.$ac_objext'
31825 { (case "(($ac_try" in
31826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31827 *) ac_try_echo=$ac_try;;
31828esac
31829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31830 (eval "$ac_try") 2>&5
31831 ac_status=$?
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031834 ac_cv_func_rand48=yes
31835else
31836 echo "$as_me: failed program was:" >&5
31837sed 's/^/| /' conftest.$ac_ext >&5
31838
Reid Spencera773bd52006-08-04 18:18:08 +000031839 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031840fi
Reid Spencera773bd52006-08-04 18:18:08 +000031841
31842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031843 ac_ext=c
31844ac_cpp='$CPP $CPPFLAGS'
31845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31847ac_compiler_gnu=$ac_cv_c_compiler_gnu
31848
31849fi
Reid Spencera773bd52006-08-04 18:18:08 +000031850{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31851echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031852
31853if test "$ac_cv_func_rand48" = "yes" ; then
31854
31855cat >>confdefs.h <<\_ACEOF
31856#define HAVE_RAND48 1
31857_ACEOF
31858
31859fi
John Criswell0021c312004-02-13 21:57:29 +000031860
31861
Reid Spencera773bd52006-08-04 18:18:08 +000031862{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31863echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031864if test "${ac_cv_cxx_namespaces+set}" = set; then
31865 echo $ECHO_N "(cached) $ECHO_C" >&6
31866else
Reid Spencera773bd52006-08-04 18:18:08 +000031867 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031868ac_cpp='$CXXCPP $CPPFLAGS'
31869ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31872
31873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031874/* confdefs.h. */
31875_ACEOF
31876cat confdefs.h >>conftest.$ac_ext
31877cat >>conftest.$ac_ext <<_ACEOF
31878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031879namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031880int
31881main ()
31882{
31883using namespace Outer::Inner; return i;
31884 ;
31885 return 0;
31886}
31887_ACEOF
31888rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031889if { (ac_try="$ac_compile"
31890case "(($ac_try" in
31891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31892 *) ac_try_echo=$ac_try;;
31893esac
31894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31895 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031897 grep -v '^ *+' conftest.er1 >conftest.err
31898 rm -f conftest.er1
31899 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031901 (exit $ac_status); } &&
31902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31903 { (case "(($ac_try" in
31904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31905 *) ac_try_echo=$ac_try;;
31906esac
31907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31908 (eval "$ac_try") 2>&5
31909 ac_status=$?
31910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31911 (exit $ac_status); }; } &&
31912 { ac_try='test -s conftest.$ac_objext'
31913 { (case "(($ac_try" in
31914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31915 *) ac_try_echo=$ac_try;;
31916esac
31917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31918 (eval "$ac_try") 2>&5
31919 ac_status=$?
31920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31921 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031922 ac_cv_cxx_namespaces=yes
31923else
31924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031925sed 's/^/| /' conftest.$ac_ext >&5
31926
Reid Spencera773bd52006-08-04 18:18:08 +000031927 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031928fi
Reid Spencera773bd52006-08-04 18:18:08 +000031929
31930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031931 ac_ext=c
31932ac_cpp='$CPP $CPPFLAGS'
31933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31935ac_compiler_gnu=$ac_cv_c_compiler_gnu
31936
31937
31938fi
Reid Spencera773bd52006-08-04 18:18:08 +000031939{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31940echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031941if test "$ac_cv_cxx_namespaces" = yes; then
31942
31943cat >>confdefs.h <<\_ACEOF
31944#define HAVE_NAMESPACES
31945_ACEOF
31946
31947fi
31948
Reid Spencera773bd52006-08-04 18:18:08 +000031949{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31950echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031951if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031952 echo $ECHO_N "(cached) $ECHO_C" >&6
31953else
31954
Reid Spencera773bd52006-08-04 18:18:08 +000031955 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031956ac_cpp='$CXXCPP $CPPFLAGS'
31957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31960
31961 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031962/* confdefs.h. */
31963_ACEOF
31964cat confdefs.h >>conftest.$ac_ext
31965cat >>conftest.$ac_ext <<_ACEOF
31966/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031967#include <ext/hash_map>
31968#ifdef HAVE_NAMESPACES
31969using namespace std;
31970#endif
John Criswell7a73b802003-06-30 21:59:07 +000031971int
31972main ()
31973{
Brian Gaeke90583492003-11-10 03:06:28 +000031974hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031975 ;
31976 return 0;
31977}
31978_ACEOF
31979rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031980if { (ac_try="$ac_compile"
31981case "(($ac_try" in
31982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31983 *) ac_try_echo=$ac_try;;
31984esac
31985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31986 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031988 grep -v '^ *+' conftest.er1 >conftest.err
31989 rm -f conftest.er1
31990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000031992 (exit $ac_status); } &&
31993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31994 { (case "(($ac_try" in
31995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31996 *) ac_try_echo=$ac_try;;
31997esac
31998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31999 (eval "$ac_try") 2>&5
32000 ac_status=$?
32001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); }; } &&
32003 { ac_try='test -s conftest.$ac_objext'
32004 { (case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32007esac
32008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_try") 2>&5
32010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032013 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032014else
32015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032016sed 's/^/| /' conftest.$ac_ext >&5
32017
Reid Spencera773bd52006-08-04 18:18:08 +000032018 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032019fi
Reid Spencera773bd52006-08-04 18:18:08 +000032020
32021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032022 ac_ext=c
32023ac_cpp='$CPP $CPPFLAGS'
32024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32026ac_compiler_gnu=$ac_cv_c_compiler_gnu
32027
John Criswell7a73b802003-06-30 21:59:07 +000032028fi
Reid Spencera773bd52006-08-04 18:18:08 +000032029{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32030echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032031 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32032 then
John Criswell9f011862004-09-24 18:28:00 +000032033
32034cat >>confdefs.h <<\_ACEOF
32035#define HAVE_STD_EXT_HASH_MAP 1
32036_ACEOF
32037
32038 else
32039
32040cat >>confdefs.h <<\_ACEOF
32041#define HAVE_STD_EXT_HASH_MAP 0
32042_ACEOF
32043
Brian Gaeke90583492003-11-10 03:06:28 +000032044 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032045
Reid Spencera773bd52006-08-04 18:18:08 +000032046 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32047echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032048if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32050else
32051
Reid Spencera773bd52006-08-04 18:18:08 +000032052 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032053ac_cpp='$CXXCPP $CPPFLAGS'
32054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32057
32058 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032059/* confdefs.h. */
32060_ACEOF
32061cat confdefs.h >>conftest.$ac_ext
32062cat >>conftest.$ac_ext <<_ACEOF
32063/* end confdefs.h. */
32064#include <ext/hash_map>
32065#ifdef HAVE_NAMESPACES
32066using namespace __gnu_cxx;
32067#endif
32068int
32069main ()
32070{
32071hash_map<int,int> t;
32072 ;
32073 return 0;
32074}
32075_ACEOF
32076rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032077if { (ac_try="$ac_compile"
32078case "(($ac_try" in
32079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080 *) ac_try_echo=$ac_try;;
32081esac
32082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032084 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032085 grep -v '^ *+' conftest.er1 >conftest.err
32086 rm -f conftest.er1
32087 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032089 (exit $ac_status); } &&
32090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32091 { (case "(($ac_try" in
32092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093 *) ac_try_echo=$ac_try;;
32094esac
32095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096 (eval "$ac_try") 2>&5
32097 ac_status=$?
32098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099 (exit $ac_status); }; } &&
32100 { ac_try='test -s conftest.$ac_objext'
32101 { (case "(($ac_try" in
32102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103 *) ac_try_echo=$ac_try;;
32104esac
32105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106 (eval "$ac_try") 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032110 ac_cv_cxx_have_gnu_ext_hash_map=yes
32111else
32112 echo "$as_me: failed program was:" >&5
32113sed 's/^/| /' conftest.$ac_ext >&5
32114
Reid Spencera773bd52006-08-04 18:18:08 +000032115 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032116fi
Reid Spencera773bd52006-08-04 18:18:08 +000032117
32118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032119 ac_ext=c
32120ac_cpp='$CPP $CPPFLAGS'
32121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32123ac_compiler_gnu=$ac_cv_c_compiler_gnu
32124
32125fi
Reid Spencera773bd52006-08-04 18:18:08 +000032126{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32127echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032128 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32129 then
John Criswell9f011862004-09-24 18:28:00 +000032130
32131cat >>confdefs.h <<\_ACEOF
32132#define HAVE_GNU_EXT_HASH_MAP 1
32133_ACEOF
32134
32135 else
32136
32137cat >>confdefs.h <<\_ACEOF
32138#define HAVE_GNU_EXT_HASH_MAP 0
32139_ACEOF
32140
Brian Gaeke90583492003-11-10 03:06:28 +000032141 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032142
Reid Spencera773bd52006-08-04 18:18:08 +000032143 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32144echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032145if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32146 echo $ECHO_N "(cached) $ECHO_C" >&6
32147else
John Criswell7a73b802003-06-30 21:59:07 +000032148
Reid Spencera773bd52006-08-04 18:18:08 +000032149 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032150ac_cpp='$CXXCPP $CPPFLAGS'
32151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32154
32155 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032156/* confdefs.h. */
32157_ACEOF
32158cat confdefs.h >>conftest.$ac_ext
32159cat >>conftest.$ac_ext <<_ACEOF
32160/* end confdefs.h. */
32161#include <hash_map>
32162int
32163main ()
32164{
32165hash_map<int,int> t;
32166 ;
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
Brian Gaeke90583492003-11-10 03:06:28 +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
Brian Gaeke90583492003-11-10 03:06:28 +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
Brian Gaeke90583492003-11-10 03:06:28 +000032204 ac_cv_cxx_have_global_hash_map=yes
32205else
32206 echo "$as_me: failed program was:" >&5
32207sed 's/^/| /' conftest.$ac_ext >&5
32208
Reid Spencera773bd52006-08-04 18:18:08 +000032209 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032210fi
Reid Spencera773bd52006-08-04 18:18:08 +000032211
32212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +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
32219fi
Reid Spencera773bd52006-08-04 18:18:08 +000032220{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32221echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032222 if test "$ac_cv_cxx_have_global_hash_map" = yes
32223 then
John Criswell9f011862004-09-24 18:28:00 +000032224
32225cat >>confdefs.h <<\_ACEOF
32226#define HAVE_GLOBAL_HASH_MAP 1
32227_ACEOF
32228
32229 else
32230
32231cat >>confdefs.h <<\_ACEOF
32232#define HAVE_GLOBAL_HASH_MAP 0
32233_ACEOF
32234
Brian Gaeke90583492003-11-10 03:06:28 +000032235 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032236
Reid Spencera773bd52006-08-04 18:18:08 +000032237{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32238echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032239if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032240 echo $ECHO_N "(cached) $ECHO_C" >&6
32241else
32242
Reid Spencera773bd52006-08-04 18:18:08 +000032243 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032244ac_cpp='$CXXCPP $CPPFLAGS'
32245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32248
32249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032250/* confdefs.h. */
32251_ACEOF
32252cat confdefs.h >>conftest.$ac_ext
32253cat >>conftest.$ac_ext <<_ACEOF
32254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032255#include <ext/hash_set>
32256#ifdef HAVE_NAMESPACES
32257using namespace std;
32258#endif
John Criswell7a73b802003-06-30 21:59:07 +000032259int
32260main ()
32261{
Brian Gaeke90583492003-11-10 03:06:28 +000032262hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032263 ;
32264 return 0;
32265}
32266_ACEOF
32267rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032268if { (ac_try="$ac_compile"
32269case "(($ac_try" in
32270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32271 *) ac_try_echo=$ac_try;;
32272esac
32273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32274 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032275 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032276 grep -v '^ *+' conftest.er1 >conftest.err
32277 rm -f conftest.er1
32278 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032280 (exit $ac_status); } &&
32281 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32282 { (case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32285esac
32286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_try") 2>&5
32288 ac_status=$?
32289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32290 (exit $ac_status); }; } &&
32291 { ac_try='test -s conftest.$ac_objext'
32292 { (case "(($ac_try" in
32293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294 *) ac_try_echo=$ac_try;;
32295esac
32296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32297 (eval "$ac_try") 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032301 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032302else
32303 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032304sed 's/^/| /' conftest.$ac_ext >&5
32305
Reid Spencera773bd52006-08-04 18:18:08 +000032306 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032307fi
Reid Spencera773bd52006-08-04 18:18:08 +000032308
32309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032310 ac_ext=c
32311ac_cpp='$CPP $CPPFLAGS'
32312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32314ac_compiler_gnu=$ac_cv_c_compiler_gnu
32315
32316fi
Reid Spencera773bd52006-08-04 18:18:08 +000032317{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32318echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032319 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32320 then
John Criswell9f011862004-09-24 18:28:00 +000032321
32322cat >>confdefs.h <<\_ACEOF
32323#define HAVE_STD_EXT_HASH_SET 1
32324_ACEOF
32325
32326 else
32327
32328cat >>confdefs.h <<\_ACEOF
32329#define HAVE_STD_EXT_HASH_SET 0
32330_ACEOF
32331
Brian Gaeke90583492003-11-10 03:06:28 +000032332 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032333
Reid Spencera773bd52006-08-04 18:18:08 +000032334 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32335echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032336if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32337 echo $ECHO_N "(cached) $ECHO_C" >&6
32338else
32339
Reid Spencera773bd52006-08-04 18:18:08 +000032340 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032341ac_cpp='$CXXCPP $CPPFLAGS'
32342ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32343ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32344ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32345
John Criswell7a73b802003-06-30 21:59:07 +000032346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032347/* confdefs.h. */
32348_ACEOF
32349cat confdefs.h >>conftest.$ac_ext
32350cat >>conftest.$ac_ext <<_ACEOF
32351/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032352#include <ext/hash_set>
32353#ifdef HAVE_NAMESPACES
32354using namespace __gnu_cxx;
32355#endif
John Criswell7a73b802003-06-30 21:59:07 +000032356int
32357main ()
32358{
Brian Gaeke90583492003-11-10 03:06:28 +000032359hash_set<int> t;
32360 ;
32361 return 0;
32362}
32363_ACEOF
32364rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032365if { (ac_try="$ac_compile"
32366case "(($ac_try" in
32367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32368 *) ac_try_echo=$ac_try;;
32369esac
32370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32371 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032373 grep -v '^ *+' conftest.er1 >conftest.err
32374 rm -f conftest.er1
32375 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032377 (exit $ac_status); } &&
32378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32379 { (case "(($ac_try" in
32380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32381 *) ac_try_echo=$ac_try;;
32382esac
32383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32384 (eval "$ac_try") 2>&5
32385 ac_status=$?
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; } &&
32388 { ac_try='test -s conftest.$ac_objext'
32389 { (case "(($ac_try" in
32390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32391 *) ac_try_echo=$ac_try;;
32392esac
32393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32394 (eval "$ac_try") 2>&5
32395 ac_status=$?
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032398 ac_cv_cxx_have_gnu_ext_hash_set=yes
32399else
32400 echo "$as_me: failed program was:" >&5
32401sed 's/^/| /' conftest.$ac_ext >&5
32402
Reid Spencera773bd52006-08-04 18:18:08 +000032403 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032404fi
Reid Spencera773bd52006-08-04 18:18:08 +000032405
32406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032407 ac_ext=c
32408ac_cpp='$CPP $CPPFLAGS'
32409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32411ac_compiler_gnu=$ac_cv_c_compiler_gnu
32412
32413fi
Reid Spencera773bd52006-08-04 18:18:08 +000032414{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32415echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032416 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32417 then
John Criswell9f011862004-09-24 18:28:00 +000032418
32419cat >>confdefs.h <<\_ACEOF
32420#define HAVE_GNU_EXT_HASH_SET 1
32421_ACEOF
32422
32423 else
32424
32425cat >>confdefs.h <<\_ACEOF
32426#define HAVE_GNU_EXT_HASH_SET 0
32427_ACEOF
32428
Brian Gaeke90583492003-11-10 03:06:28 +000032429 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032430
Reid Spencera773bd52006-08-04 18:18:08 +000032431 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32432echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032433if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32434 echo $ECHO_N "(cached) $ECHO_C" >&6
32435else
32436
Reid Spencera773bd52006-08-04 18:18:08 +000032437 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032438ac_cpp='$CXXCPP $CPPFLAGS'
32439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32442
32443 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032444/* confdefs.h. */
32445_ACEOF
32446cat confdefs.h >>conftest.$ac_ext
32447cat >>conftest.$ac_ext <<_ACEOF
32448/* end confdefs.h. */
32449#include <hash_set>
32450int
32451main ()
32452{
John Criswell7a73b802003-06-30 21:59:07 +000032453hash_set<int> t; return 0;
32454 ;
32455 return 0;
32456}
32457_ACEOF
32458rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032459if { (ac_try="$ac_compile"
32460case "(($ac_try" in
32461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32462 *) ac_try_echo=$ac_try;;
32463esac
32464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32465 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032466 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032467 grep -v '^ *+' conftest.er1 >conftest.err
32468 rm -f conftest.er1
32469 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032471 (exit $ac_status); } &&
32472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32473 { (case "(($ac_try" in
32474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32475 *) ac_try_echo=$ac_try;;
32476esac
32477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32478 (eval "$ac_try") 2>&5
32479 ac_status=$?
32480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481 (exit $ac_status); }; } &&
32482 { ac_try='test -s conftest.$ac_objext'
32483 { (case "(($ac_try" in
32484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32485 *) ac_try_echo=$ac_try;;
32486esac
32487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32488 (eval "$ac_try") 2>&5
32489 ac_status=$?
32490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32491 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032492 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032493else
32494 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032495sed 's/^/| /' conftest.$ac_ext >&5
32496
Reid Spencera773bd52006-08-04 18:18:08 +000032497 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032498fi
Reid Spencera773bd52006-08-04 18:18:08 +000032499
32500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032501 ac_ext=c
32502ac_cpp='$CPP $CPPFLAGS'
32503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32505ac_compiler_gnu=$ac_cv_c_compiler_gnu
32506
John Criswell7a73b802003-06-30 21:59:07 +000032507fi
Reid Spencera773bd52006-08-04 18:18:08 +000032508{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32509echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032510 if test "$ac_cv_cxx_have_global_hash_set" = yes
32511 then
John Criswell9f011862004-09-24 18:28:00 +000032512
32513cat >>confdefs.h <<\_ACEOF
32514#define HAVE_GLOBAL_HASH_SET 1
32515_ACEOF
32516
32517 else
32518
32519cat >>confdefs.h <<\_ACEOF
32520#define HAVE_GLOBAL_HASH_SET 0
32521_ACEOF
32522
Brian Gaeke90583492003-11-10 03:06:28 +000032523 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032524
Reid Spencera773bd52006-08-04 18:18:08 +000032525{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32526echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032527if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32528 echo $ECHO_N "(cached) $ECHO_C" >&6
32529else
32530
Reid Spencera773bd52006-08-04 18:18:08 +000032531 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032532ac_cpp='$CXXCPP $CPPFLAGS'
32533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32536
32537 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032538/* confdefs.h. */
32539_ACEOF
32540cat confdefs.h >>conftest.$ac_ext
32541cat >>conftest.$ac_ext <<_ACEOF
32542/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032543#include <iterator>
32544#ifdef HAVE_NAMESPACES
32545using namespace std;
32546#endif
John Criswell7a73b802003-06-30 21:59:07 +000032547int
32548main ()
32549{
32550iterator<int,int,int> t; return 0;
32551 ;
32552 return 0;
32553}
32554_ACEOF
32555rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032556if { (ac_try="$ac_compile"
32557case "(($ac_try" in
32558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559 *) ac_try_echo=$ac_try;;
32560esac
32561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032563 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032564 grep -v '^ *+' conftest.er1 >conftest.err
32565 rm -f conftest.er1
32566 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032568 (exit $ac_status); } &&
32569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32570 { (case "(($ac_try" in
32571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32572 *) ac_try_echo=$ac_try;;
32573esac
32574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32575 (eval "$ac_try") 2>&5
32576 ac_status=$?
32577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32578 (exit $ac_status); }; } &&
32579 { ac_try='test -s conftest.$ac_objext'
32580 { (case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32583esac
32584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_try") 2>&5
32586 ac_status=$?
32587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032589 ac_cv_cxx_have_std_iterator=yes
32590else
32591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032592sed 's/^/| /' conftest.$ac_ext >&5
32593
Reid Spencera773bd52006-08-04 18:18:08 +000032594 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032595fi
Reid Spencera773bd52006-08-04 18:18:08 +000032596
32597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032598 ac_ext=c
32599ac_cpp='$CPP $CPPFLAGS'
32600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32602ac_compiler_gnu=$ac_cv_c_compiler_gnu
32603
32604
32605fi
Reid Spencera773bd52006-08-04 18:18:08 +000032606{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32607echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032608if test "$ac_cv_cxx_have_std_iterator" = yes
32609then
John Criswell40468462004-09-24 21:19:06 +000032610
32611cat >>confdefs.h <<\_ACEOF
32612#define HAVE_STD_ITERATOR 1
32613_ACEOF
32614
32615else
32616
32617cat >>confdefs.h <<\_ACEOF
32618#define HAVE_STD_ITERATOR 0
32619_ACEOF
32620
John Criswell7a73b802003-06-30 21:59:07 +000032621fi
32622
Reid Spencera773bd52006-08-04 18:18:08 +000032623{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32624echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032625if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32626 echo $ECHO_N "(cached) $ECHO_C" >&6
32627else
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032630ac_cpp='$CXXCPP $CPPFLAGS'
32631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32634
32635 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032636/* confdefs.h. */
32637_ACEOF
32638cat confdefs.h >>conftest.$ac_ext
32639cat >>conftest.$ac_ext <<_ACEOF
32640/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032641#include <iterator>
32642#ifdef HAVE_NAMESPACES
32643using namespace std;
32644#endif
John Criswell7a73b802003-06-30 21:59:07 +000032645int
32646main ()
32647{
John Criswellc78022e2003-07-29 19:11:58 +000032648bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032649 ;
32650 return 0;
32651}
32652_ACEOF
32653rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032654if { (ac_try="$ac_compile"
32655case "(($ac_try" in
32656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32657 *) ac_try_echo=$ac_try;;
32658esac
32659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32660 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032662 grep -v '^ *+' conftest.er1 >conftest.err
32663 rm -f conftest.er1
32664 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032666 (exit $ac_status); } &&
32667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32668 { (case "(($ac_try" in
32669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670 *) ac_try_echo=$ac_try;;
32671esac
32672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673 (eval "$ac_try") 2>&5
32674 ac_status=$?
32675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32676 (exit $ac_status); }; } &&
32677 { ac_try='test -s conftest.$ac_objext'
32678 { (case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32681esac
32682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_try") 2>&5
32684 ac_status=$?
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032687 ac_cv_cxx_have_bi_iterator=yes
32688else
32689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032690sed 's/^/| /' conftest.$ac_ext >&5
32691
Reid Spencera773bd52006-08-04 18:18:08 +000032692 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032693fi
Reid Spencera773bd52006-08-04 18:18:08 +000032694
32695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032696 ac_ext=c
32697ac_cpp='$CPP $CPPFLAGS'
32698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32700ac_compiler_gnu=$ac_cv_c_compiler_gnu
32701
32702
32703fi
Reid Spencera773bd52006-08-04 18:18:08 +000032704{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32705echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032706if test "$ac_cv_cxx_have_bi_iterator" = yes
32707then
John Criswell40468462004-09-24 21:19:06 +000032708
32709cat >>confdefs.h <<\_ACEOF
32710#define HAVE_BI_ITERATOR 1
32711_ACEOF
32712
32713else
32714
32715cat >>confdefs.h <<\_ACEOF
32716#define HAVE_BI_ITERATOR 0
32717_ACEOF
32718
John Criswell7a73b802003-06-30 21:59:07 +000032719fi
32720
Reid Spencera773bd52006-08-04 18:18:08 +000032721{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32722echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032723if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32724 echo $ECHO_N "(cached) $ECHO_C" >&6
32725else
32726
Reid Spencera773bd52006-08-04 18:18:08 +000032727 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032728ac_cpp='$CXXCPP $CPPFLAGS'
32729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32732
32733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032734/* confdefs.h. */
32735_ACEOF
32736cat confdefs.h >>conftest.$ac_ext
32737cat >>conftest.$ac_ext <<_ACEOF
32738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032739#include <iterator>
32740#ifdef HAVE_NAMESPACES
32741using namespace std;
32742#endif
John Criswell7a73b802003-06-30 21:59:07 +000032743int
32744main ()
32745{
John Criswellc78022e2003-07-29 19:11:58 +000032746forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032747 ;
32748 return 0;
32749}
32750_ACEOF
32751rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032752if { (ac_try="$ac_compile"
32753case "(($ac_try" in
32754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755 *) ac_try_echo=$ac_try;;
32756esac
32757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032759 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032760 grep -v '^ *+' conftest.er1 >conftest.err
32761 rm -f conftest.er1
32762 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032764 (exit $ac_status); } &&
32765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32766 { (case "(($ac_try" in
32767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32768 *) ac_try_echo=$ac_try;;
32769esac
32770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32771 (eval "$ac_try") 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest.$ac_objext'
32776 { (case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32779esac
32780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_try") 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032785 ac_cv_cxx_have_fwd_iterator=yes
32786else
32787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032788sed 's/^/| /' conftest.$ac_ext >&5
32789
Reid Spencera773bd52006-08-04 18:18:08 +000032790 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032791fi
Reid Spencera773bd52006-08-04 18:18:08 +000032792
32793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032794 ac_ext=c
32795ac_cpp='$CPP $CPPFLAGS'
32796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32798ac_compiler_gnu=$ac_cv_c_compiler_gnu
32799
32800
32801fi
Reid Spencera773bd52006-08-04 18:18:08 +000032802{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32803echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032804if test "$ac_cv_cxx_have_fwd_iterator" = yes
32805then
John Criswell40468462004-09-24 21:19:06 +000032806
32807cat >>confdefs.h <<\_ACEOF
32808#define HAVE_FWD_ITERATOR 1
32809_ACEOF
32810
32811else
32812
32813cat >>confdefs.h <<\_ACEOF
32814#define HAVE_FWD_ITERATOR 0
32815_ACEOF
32816
John Criswell7a73b802003-06-30 21:59:07 +000032817fi
32818
32819
Reid Spencera773bd52006-08-04 18:18:08 +000032820{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32821echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032822if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32823 echo $ECHO_N "(cached) $ECHO_C" >&6
32824else
Reid Spencera773bd52006-08-04 18:18:08 +000032825 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032826ac_cpp='$CXXCPP $CPPFLAGS'
32827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32830
Reid Spencerabec8f92004-10-27 23:03:44 +000032831 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032832/* confdefs.h. */
32833_ACEOF
32834cat confdefs.h >>conftest.$ac_ext
32835cat >>conftest.$ac_ext <<_ACEOF
32836/* end confdefs.h. */
32837#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032838int
32839main ()
32840{
32841float f; isnan(f);
32842 ;
32843 return 0;
32844}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032845_ACEOF
32846rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032847if { (ac_try="$ac_compile"
32848case "(($ac_try" in
32849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32850 *) ac_try_echo=$ac_try;;
32851esac
32852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32853 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032855 grep -v '^ *+' conftest.er1 >conftest.err
32856 rm -f conftest.er1
32857 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032859 (exit $ac_status); } &&
32860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32861 { (case "(($ac_try" in
32862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32863 *) ac_try_echo=$ac_try;;
32864esac
32865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32866 (eval "$ac_try") 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32874esac
32875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_try") 2>&5
32877 ac_status=$?
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032880 ac_cv_func_isnan_in_math_h=yes
32881else
32882 echo "$as_me: failed program was:" >&5
32883sed 's/^/| /' conftest.$ac_ext >&5
32884
Reid Spencera773bd52006-08-04 18:18:08 +000032885 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032886fi
Reid Spencera773bd52006-08-04 18:18:08 +000032887
32888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032889 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032890ac_cpp='$CPP $CPPFLAGS'
32891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32893ac_compiler_gnu=$ac_cv_c_compiler_gnu
32894
32895fi
Reid Spencera773bd52006-08-04 18:18:08 +000032896{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32897echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032898
32899
32900if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032901
32902cat >>confdefs.h <<\_ACEOF
32903#define HAVE_ISNAN_IN_MATH_H 1
32904_ACEOF
32905
Reid Spencerabec8f92004-10-27 23:03:44 +000032906fi
32907
Reid Spencera773bd52006-08-04 18:18:08 +000032908{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32909echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032910if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32911 echo $ECHO_N "(cached) $ECHO_C" >&6
32912else
Reid Spencera773bd52006-08-04 18:18:08 +000032913 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032914ac_cpp='$CXXCPP $CPPFLAGS'
32915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32918
Reid Spencerabec8f92004-10-27 23:03:44 +000032919 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
32925#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032926int
32927main ()
32928{
32929float f; isnan(f);
32930 ;
32931 return 0;
32932}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032933_ACEOF
32934rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032935if { (ac_try="$ac_compile"
32936case "(($ac_try" in
32937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938 *) ac_try_echo=$ac_try;;
32939esac
32940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032943 grep -v '^ *+' conftest.er1 >conftest.err
32944 rm -f conftest.er1
32945 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000032947 (exit $ac_status); } &&
32948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32949 { (case "(($ac_try" in
32950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32951 *) ac_try_echo=$ac_try;;
32952esac
32953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32954 (eval "$ac_try") 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest.$ac_objext'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32962esac
32963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
32965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032968 ac_cv_func_isnan_in_cmath=yes
32969else
32970 echo "$as_me: failed program was:" >&5
32971sed 's/^/| /' conftest.$ac_ext >&5
32972
Reid Spencera773bd52006-08-04 18:18:08 +000032973 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032974fi
Reid Spencera773bd52006-08-04 18:18:08 +000032975
32976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032977 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032978ac_cpp='$CPP $CPPFLAGS'
32979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32981ac_compiler_gnu=$ac_cv_c_compiler_gnu
32982
32983fi
Reid Spencera773bd52006-08-04 18:18:08 +000032984{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32985echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032986
32987if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032988
32989cat >>confdefs.h <<\_ACEOF
32990#define HAVE_ISNAN_IN_CMATH 1
32991_ACEOF
32992
Reid Spencerabec8f92004-10-27 23:03:44 +000032993fi
32994
Reid Spencera773bd52006-08-04 18:18:08 +000032995{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32996echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032997if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32998 echo $ECHO_N "(cached) $ECHO_C" >&6
32999else
Reid Spencera773bd52006-08-04 18:18:08 +000033000 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033001ac_cpp='$CXXCPP $CPPFLAGS'
33002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33005
Reid Spencerabec8f92004-10-27 23:03:44 +000033006 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033007/* confdefs.h. */
33008_ACEOF
33009cat confdefs.h >>conftest.$ac_ext
33010cat >>conftest.$ac_ext <<_ACEOF
33011/* end confdefs.h. */
33012#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033013int
33014main ()
33015{
33016float f; std::isnan(f);
33017 ;
33018 return 0;
33019}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033020_ACEOF
33021rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033022if { (ac_try="$ac_compile"
33023case "(($ac_try" in
33024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33025 *) ac_try_echo=$ac_try;;
33026esac
33027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33028 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033030 grep -v '^ *+' conftest.er1 >conftest.err
33031 rm -f conftest.er1
33032 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033034 (exit $ac_status); } &&
33035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33036 { (case "(($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_try") 2>&5
33042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; } &&
33045 { ac_try='test -s conftest.$ac_objext'
33046 { (case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33049esac
33050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_try") 2>&5
33052 ac_status=$?
33053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33054 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033055 ac_cv_func_std_isnan_in_cmath=yes
33056else
33057 echo "$as_me: failed program was:" >&5
33058sed 's/^/| /' conftest.$ac_ext >&5
33059
Reid Spencera773bd52006-08-04 18:18:08 +000033060 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033061fi
Reid Spencera773bd52006-08-04 18:18:08 +000033062
33063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033064 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033065ac_cpp='$CPP $CPPFLAGS'
33066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33068ac_compiler_gnu=$ac_cv_c_compiler_gnu
33069
33070fi
Reid Spencera773bd52006-08-04 18:18:08 +000033071{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33072echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033073
33074if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033075
33076cat >>confdefs.h <<\_ACEOF
33077#define HAVE_STD_ISNAN_IN_CMATH 1
33078_ACEOF
33079
Reid Spencerabec8f92004-10-27 23:03:44 +000033080fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033081
33082
Reid Spencera773bd52006-08-04 18:18:08 +000033083{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33084echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033085if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33086 echo $ECHO_N "(cached) $ECHO_C" >&6
33087else
Reid Spencera773bd52006-08-04 18:18:08 +000033088 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033089ac_cpp='$CXXCPP $CPPFLAGS'
33090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33093
Reid Spencerabec8f92004-10-27 23:03:44 +000033094 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033095/* confdefs.h. */
33096_ACEOF
33097cat confdefs.h >>conftest.$ac_ext
33098cat >>conftest.$ac_ext <<_ACEOF
33099/* end confdefs.h. */
33100#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033101int
33102main ()
33103{
33104float f; isinf(f);
33105 ;
33106 return 0;
33107}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033108_ACEOF
33109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033110if { (ac_try="$ac_compile"
33111case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33114esac
33115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033118 grep -v '^ *+' conftest.er1 >conftest.err
33119 rm -f conftest.er1
33120 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033122 (exit $ac_status); } &&
33123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33124 { (case "(($ac_try" in
33125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126 *) ac_try_echo=$ac_try;;
33127esac
33128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129 (eval "$ac_try") 2>&5
33130 ac_status=$?
33131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132 (exit $ac_status); }; } &&
33133 { ac_try='test -s conftest.$ac_objext'
33134 { (case "(($ac_try" in
33135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33136 *) ac_try_echo=$ac_try;;
33137esac
33138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33139 (eval "$ac_try") 2>&5
33140 ac_status=$?
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033143 ac_cv_func_isinf_in_math_h=yes
33144else
33145 echo "$as_me: failed program was:" >&5
33146sed 's/^/| /' conftest.$ac_ext >&5
33147
Reid Spencera773bd52006-08-04 18:18:08 +000033148 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033149fi
Reid Spencera773bd52006-08-04 18:18:08 +000033150
33151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033152 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033153ac_cpp='$CPP $CPPFLAGS'
33154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33156ac_compiler_gnu=$ac_cv_c_compiler_gnu
33157
33158fi
Reid Spencera773bd52006-08-04 18:18:08 +000033159{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33160echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033161
33162if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033163
33164cat >>confdefs.h <<\_ACEOF
33165#define HAVE_ISINF_IN_MATH_H 1
33166_ACEOF
33167
Reid Spencerabec8f92004-10-27 23:03:44 +000033168fi
33169
Reid Spencera773bd52006-08-04 18:18:08 +000033170{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33171echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033172if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33173 echo $ECHO_N "(cached) $ECHO_C" >&6
33174else
Reid Spencera773bd52006-08-04 18:18:08 +000033175 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033176ac_cpp='$CXXCPP $CPPFLAGS'
33177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33180
Reid Spencerabec8f92004-10-27 23:03:44 +000033181 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033182/* confdefs.h. */
33183_ACEOF
33184cat confdefs.h >>conftest.$ac_ext
33185cat >>conftest.$ac_ext <<_ACEOF
33186/* end confdefs.h. */
33187#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033188int
33189main ()
33190{
33191float f; isinf(f);
33192 ;
33193 return 0;
33194}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033195_ACEOF
33196rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033197if { (ac_try="$ac_compile"
33198case "(($ac_try" in
33199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33200 *) ac_try_echo=$ac_try;;
33201esac
33202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33203 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033204 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033205 grep -v '^ *+' conftest.er1 >conftest.err
33206 rm -f conftest.er1
33207 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033209 (exit $ac_status); } &&
33210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33211 { (case "(($ac_try" in
33212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213 *) ac_try_echo=$ac_try;;
33214esac
33215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216 (eval "$ac_try") 2>&5
33217 ac_status=$?
33218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219 (exit $ac_status); }; } &&
33220 { ac_try='test -s conftest.$ac_objext'
33221 { (case "(($ac_try" in
33222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33223 *) ac_try_echo=$ac_try;;
33224esac
33225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33226 (eval "$ac_try") 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033230 ac_cv_func_isinf_in_cmath=yes
33231else
33232 echo "$as_me: failed program was:" >&5
33233sed 's/^/| /' conftest.$ac_ext >&5
33234
Reid Spencera773bd52006-08-04 18:18:08 +000033235 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033236fi
Reid Spencera773bd52006-08-04 18:18:08 +000033237
33238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033239 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033240ac_cpp='$CPP $CPPFLAGS'
33241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33243ac_compiler_gnu=$ac_cv_c_compiler_gnu
33244
33245fi
Reid Spencera773bd52006-08-04 18:18:08 +000033246{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33247echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033248
33249if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033250
33251cat >>confdefs.h <<\_ACEOF
33252#define HAVE_ISINF_IN_CMATH 1
33253_ACEOF
33254
Reid Spencerabec8f92004-10-27 23:03:44 +000033255fi
33256
Reid Spencera773bd52006-08-04 18:18:08 +000033257{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33258echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033259if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33261else
Reid Spencera773bd52006-08-04 18:18:08 +000033262 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033263ac_cpp='$CXXCPP $CPPFLAGS'
33264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33267
Reid Spencerabec8f92004-10-27 23:03:44 +000033268 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033269/* confdefs.h. */
33270_ACEOF
33271cat confdefs.h >>conftest.$ac_ext
33272cat >>conftest.$ac_ext <<_ACEOF
33273/* end confdefs.h. */
33274#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033275int
33276main ()
33277{
33278float f; std::isinf(f)}
33279 ;
33280 return 0;
33281}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033282_ACEOF
33283rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033284if { (ac_try="$ac_compile"
33285case "(($ac_try" in
33286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33287 *) ac_try_echo=$ac_try;;
33288esac
33289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33290 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033291 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033292 grep -v '^ *+' conftest.er1 >conftest.err
33293 rm -f conftest.er1
33294 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033296 (exit $ac_status); } &&
33297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33298 { (case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33301esac
33302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_try") 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest.$ac_objext'
33308 { (case "(($ac_try" in
33309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33310 *) ac_try_echo=$ac_try;;
33311esac
33312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33313 (eval "$ac_try") 2>&5
33314 ac_status=$?
33315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33316 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033317 ac_cv_func_std_isinf_in_cmath=yes
33318else
33319 echo "$as_me: failed program was:" >&5
33320sed 's/^/| /' conftest.$ac_ext >&5
33321
Reid Spencera773bd52006-08-04 18:18:08 +000033322 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033323fi
Reid Spencera773bd52006-08-04 18:18:08 +000033324
33325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033326 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033327ac_cpp='$CPP $CPPFLAGS'
33328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33330ac_compiler_gnu=$ac_cv_c_compiler_gnu
33331
33332fi
Reid Spencera773bd52006-08-04 18:18:08 +000033333{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33334echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033335
33336if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033337
33338cat >>confdefs.h <<\_ACEOF
33339#define HAVE_STD_ISINF_IN_CMATH 1
33340_ACEOF
33341
Reid Spencerabec8f92004-10-27 23:03:44 +000033342fi
33343
Reid Spencera773bd52006-08-04 18:18:08 +000033344{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33345echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033346if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33348else
Reid Spencera773bd52006-08-04 18:18:08 +000033349 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033350ac_cpp='$CXXCPP $CPPFLAGS'
33351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33354
Reid Spencerabec8f92004-10-27 23:03:44 +000033355 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033356/* confdefs.h. */
33357_ACEOF
33358cat confdefs.h >>conftest.$ac_ext
33359cat >>conftest.$ac_ext <<_ACEOF
33360/* end confdefs.h. */
33361#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033362int
33363main ()
33364{
33365float f; finite(f);
33366 ;
33367 return 0;
33368}
Brian Gaeked59a6472004-07-21 03:33:58 +000033369_ACEOF
33370rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033371if { (ac_try="$ac_compile"
33372case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33377 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033379 grep -v '^ *+' conftest.er1 >conftest.err
33380 rm -f conftest.er1
33381 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033383 (exit $ac_status); } &&
33384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33385 { (case "(($ac_try" in
33386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33387 *) ac_try_echo=$ac_try;;
33388esac
33389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33390 (eval "$ac_try") 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33398esac
33399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_try") 2>&5
33401 ac_status=$?
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033404 ac_cv_func_finite_in_ieeefp_h=yes
33405else
33406 echo "$as_me: failed program was:" >&5
33407sed 's/^/| /' conftest.$ac_ext >&5
33408
Reid Spencera773bd52006-08-04 18:18:08 +000033409 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033410fi
Reid Spencera773bd52006-08-04 18:18:08 +000033411
33412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033413 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033414ac_cpp='$CPP $CPPFLAGS'
33415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33417ac_compiler_gnu=$ac_cv_c_compiler_gnu
33418
33419fi
Reid Spencera773bd52006-08-04 18:18:08 +000033420{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33421echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033422
Brian Gaeke6802b552004-10-28 05:06:45 +000033423if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033424
33425cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033426#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033427_ACEOF
33428
Reid Spencerabec8f92004-10-27 23:03:44 +000033429fi
33430
33431
33432
Reid Spencer30fe5262007-01-20 07:48:49 +000033433if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033434
33435
33436for ac_header in stdlib.h unistd.h
33437do
33438as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033439if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33441echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33442if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033443 echo $ECHO_N "(cached) $ECHO_C" >&6
33444fi
Reid Spencera773bd52006-08-04 18:18:08 +000033445ac_res=`eval echo '${'$as_ac_Header'}'`
33446 { echo "$as_me:$LINENO: result: $ac_res" >&5
33447echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033448else
33449 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033450{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033452cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033453/* confdefs.h. */
33454_ACEOF
33455cat confdefs.h >>conftest.$ac_ext
33456cat >>conftest.$ac_ext <<_ACEOF
33457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033458$ac_includes_default
33459#include <$ac_header>
33460_ACEOF
33461rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033462if { (ac_try="$ac_compile"
33463case "(($ac_try" in
33464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33465 *) ac_try_echo=$ac_try;;
33466esac
33467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33468 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033469 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033470 grep -v '^ *+' conftest.er1 >conftest.err
33471 rm -f conftest.er1
33472 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033474 (exit $ac_status); } &&
33475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33476 { (case "(($ac_try" in
33477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33478 *) ac_try_echo=$ac_try;;
33479esac
33480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33481 (eval "$ac_try") 2>&5
33482 ac_status=$?
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); }; } &&
33485 { ac_try='test -s conftest.$ac_objext'
33486 { (case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33489esac
33490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_try") 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033495 ac_header_compiler=yes
33496else
33497 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033498sed 's/^/| /' conftest.$ac_ext >&5
33499
Reid Spencera773bd52006-08-04 18:18:08 +000033500 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033501fi
Reid Spencera773bd52006-08-04 18:18:08 +000033502
33503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33504{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33505echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033506
33507# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033508{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33509echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033510cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033516#include <$ac_header>
33517_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033518if { (ac_try="$ac_cpp conftest.$ac_ext"
33519case "(($ac_try" in
33520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33521 *) ac_try_echo=$ac_try;;
33522esac
33523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033525 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033526 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033527 rm -f conftest.er1
33528 cat conftest.err >&5
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033530 (exit $ac_status); } >/dev/null; then
33531 if test -s conftest.err; then
33532 ac_cpp_err=$ac_c_preproc_warn_flag
33533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33534 else
33535 ac_cpp_err=
33536 fi
33537else
33538 ac_cpp_err=yes
33539fi
33540if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033541 ac_header_preproc=yes
33542else
33543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033544sed 's/^/| /' conftest.$ac_ext >&5
33545
John Criswell7a73b802003-06-30 21:59:07 +000033546 ac_header_preproc=no
33547fi
Reid Spencera773bd52006-08-04 18:18:08 +000033548
John Criswell7a73b802003-06-30 21:59:07 +000033549rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33551echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033552
33553# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33555 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33560 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033561 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033562 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033575 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033576## ----------------------------------- ##
33577## Report this to llvmbugs@cs.uiuc.edu ##
33578## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033579_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033580 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033581 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033582esac
Reid Spencera773bd52006-08-04 18:18:08 +000033583{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33585if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033586 echo $ECHO_N "(cached) $ECHO_C" >&6
33587else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033588 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033589fi
Reid Spencera773bd52006-08-04 18:18:08 +000033590ac_res=`eval echo '${'$as_ac_Header'}'`
33591 { echo "$as_me:$LINENO: result: $ac_res" >&5
33592echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033593
33594fi
33595if test `eval echo '${'$as_ac_Header'}'` = yes; then
33596 cat >>confdefs.h <<_ACEOF
33597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33598_ACEOF
33599
33600fi
33601
33602done
33603
33604
33605for ac_func in getpagesize
33606do
33607as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033608{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33609echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33610if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033611 echo $ECHO_N "(cached) $ECHO_C" >&6
33612else
33613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033614/* confdefs.h. */
33615_ACEOF
33616cat confdefs.h >>conftest.$ac_ext
33617cat >>conftest.$ac_ext <<_ACEOF
33618/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033619/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33621#define $ac_func innocuous_$ac_func
33622
John Criswell7a73b802003-06-30 21:59:07 +000033623/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033624 which can conflict with char $ac_func (); below.
33625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33626 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033627
John Criswell0c38eaf2003-09-10 15:17:25 +000033628#ifdef __STDC__
33629# include <limits.h>
33630#else
33631# include <assert.h>
33632#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033633
33634#undef $ac_func
33635
Reid Spencera773bd52006-08-04 18:18:08 +000033636/* Override any GCC internal prototype to avoid an error.
33637 Use char because int might match the return type of a GCC
33638 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033639#ifdef __cplusplus
33640extern "C"
33641#endif
John Criswell7a73b802003-06-30 21:59:07 +000033642char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033643/* The GNU C library defines this for functions which it implements
33644 to always fail with ENOSYS. Some functions are actually named
33645 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033646#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033647choke me
John Criswell7a73b802003-06-30 21:59:07 +000033648#endif
33649
John Criswell0c38eaf2003-09-10 15:17:25 +000033650int
33651main ()
33652{
Reid Spencera773bd52006-08-04 18:18:08 +000033653return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033654 ;
33655 return 0;
33656}
33657_ACEOF
33658rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033659if { (ac_try="$ac_link"
33660case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33663esac
33664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033667 grep -v '^ *+' conftest.er1 >conftest.err
33668 rm -f conftest.er1
33669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033671 (exit $ac_status); } &&
33672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33673 { (case "(($ac_try" in
33674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33675 *) ac_try_echo=$ac_try;;
33676esac
33677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33678 (eval "$ac_try") 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; } &&
33682 { ac_try='test -s conftest$ac_exeext'
33683 { (case "(($ac_try" in
33684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33685 *) ac_try_echo=$ac_try;;
33686esac
33687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33688 (eval "$ac_try") 2>&5
33689 ac_status=$?
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033692 eval "$as_ac_var=yes"
33693else
33694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033695sed 's/^/| /' conftest.$ac_ext >&5
33696
Reid Spencera773bd52006-08-04 18:18:08 +000033697 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033698fi
Reid Spencera773bd52006-08-04 18:18:08 +000033699
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033700rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033701 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033702fi
Reid Spencera773bd52006-08-04 18:18:08 +000033703ac_res=`eval echo '${'$as_ac_var'}'`
33704 { echo "$as_me:$LINENO: result: $ac_res" >&5
33705echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033706if test `eval echo '${'$as_ac_var'}'` = yes; then
33707 cat >>confdefs.h <<_ACEOF
33708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33709_ACEOF
33710
33711fi
33712done
33713
Reid Spencera773bd52006-08-04 18:18:08 +000033714{ echo "$as_me:$LINENO: checking for working mmap" >&5
33715echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033716if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33717 echo $ECHO_N "(cached) $ECHO_C" >&6
33718else
33719 if test "$cross_compiling" = yes; then
33720 ac_cv_func_mmap_fixed_mapped=no
33721else
33722 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033723/* confdefs.h. */
33724_ACEOF
33725cat confdefs.h >>conftest.$ac_ext
33726cat >>conftest.$ac_ext <<_ACEOF
33727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033728$ac_includes_default
33729/* malloc might have been renamed as rpl_malloc. */
33730#undef malloc
33731
33732/* Thanks to Mike Haertel and Jim Avera for this test.
33733 Here is a matrix of mmap possibilities:
33734 mmap private not fixed
33735 mmap private fixed at somewhere currently unmapped
33736 mmap private fixed at somewhere already mapped
33737 mmap shared not fixed
33738 mmap shared fixed at somewhere currently unmapped
33739 mmap shared fixed at somewhere already mapped
33740 For private mappings, we should verify that changes cannot be read()
33741 back from the file, nor mmap's back from the file at a different
33742 address. (There have been systems where private was not correctly
33743 implemented like the infamous i386 svr4.0, and systems where the
33744 VM page cache was not coherent with the file system buffer cache
33745 like early versions of FreeBSD and possibly contemporary NetBSD.)
33746 For shared mappings, we should conversely verify that changes get
33747 propagated back to all the places they're supposed to be.
33748
33749 Grep wants private fixed already mapped.
33750 The main things grep needs to know about mmap are:
33751 * does it exist and is it safe to write into the mmap'd area
33752 * how to use it (BSD variants) */
33753
33754#include <fcntl.h>
33755#include <sys/mman.h>
33756
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033757#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033758char *malloc ();
33759#endif
33760
33761/* This mess was copied from the GNU getpagesize.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033762#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033763/* Assume that all systems that can run configure have sys/param.h. */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033764# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033765# define HAVE_SYS_PARAM_H 1
33766# endif
33767
33768# ifdef _SC_PAGESIZE
33769# define getpagesize() sysconf(_SC_PAGESIZE)
33770# else /* no _SC_PAGESIZE */
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000033771# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033772# include <sys/param.h>
33773# ifdef EXEC_PAGESIZE
33774# define getpagesize() EXEC_PAGESIZE
33775# else /* no EXEC_PAGESIZE */
33776# ifdef NBPG
33777# define getpagesize() NBPG * CLSIZE
33778# ifndef CLSIZE
33779# define CLSIZE 1
33780# endif /* no CLSIZE */
33781# else /* no NBPG */
33782# ifdef NBPC
33783# define getpagesize() NBPC
33784# else /* no NBPC */
33785# ifdef PAGESIZE
33786# define getpagesize() PAGESIZE
33787# endif /* PAGESIZE */
33788# endif /* no NBPC */
33789# endif /* no NBPG */
33790# endif /* no EXEC_PAGESIZE */
33791# else /* no HAVE_SYS_PARAM_H */
33792# define getpagesize() 8192 /* punt totally */
33793# endif /* no HAVE_SYS_PARAM_H */
33794# endif /* no _SC_PAGESIZE */
33795
33796#endif /* no HAVE_GETPAGESIZE */
33797
33798int
33799main ()
33800{
33801 char *data, *data2, *data3;
33802 int i, pagesize;
33803 int fd;
33804
33805 pagesize = getpagesize ();
33806
33807 /* First, make a file with some known garbage in it. */
33808 data = (char *) malloc (pagesize);
33809 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033810 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033811 for (i = 0; i < pagesize; ++i)
33812 *(data + i) = rand ();
33813 umask (0);
33814 fd = creat ("conftest.mmap", 0600);
33815 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033816 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033817 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033818 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033819 close (fd);
33820
33821 /* Next, try to mmap the file at a fixed address which already has
33822 something else allocated at it. If we can, also make sure that
33823 we see the same garbage. */
33824 fd = open ("conftest.mmap", O_RDWR);
33825 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033826 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033827 data2 = (char *) malloc (2 * pagesize);
33828 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033829 return 1;
33830 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033831 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033832 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033833 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033834 for (i = 0; i < pagesize; ++i)
33835 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033836 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033837
33838 /* Finally, make sure that changes to the mapped area do not
33839 percolate back to the file as seen by read(). (This is a bug on
33840 some variants of i386 svr4.0.) */
33841 for (i = 0; i < pagesize; ++i)
33842 *(data2 + i) = *(data2 + i) + 1;
33843 data3 = (char *) malloc (pagesize);
33844 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033845 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033846 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033847 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033848 for (i = 0; i < pagesize; ++i)
33849 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033850 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033851 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033852 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033853}
33854_ACEOF
33855rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033856if { (ac_try="$ac_link"
33857case "(($ac_try" in
33858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33859 *) ac_try_echo=$ac_try;;
33860esac
33861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33862 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033863 ac_status=$?
33864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033866 { (case "(($ac_try" in
33867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868 *) ac_try_echo=$ac_try;;
33869esac
33870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; }; then
33875 ac_cv_func_mmap_fixed_mapped=yes
33876else
33877 echo "$as_me: program exited with status $ac_status" >&5
33878echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033879sed 's/^/| /' conftest.$ac_ext >&5
33880
John Criswell7a73b802003-06-30 21:59:07 +000033881( exit $ac_status )
33882ac_cv_func_mmap_fixed_mapped=no
33883fi
Reid Spencera773bd52006-08-04 18:18:08 +000033884rm -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 +000033885fi
Reid Spencera773bd52006-08-04 18:18:08 +000033886
33887
John Criswell7a73b802003-06-30 21:59:07 +000033888fi
Reid Spencera773bd52006-08-04 18:18:08 +000033889{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33890echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033891if test $ac_cv_func_mmap_fixed_mapped = yes; then
33892
33893cat >>confdefs.h <<\_ACEOF
33894#define HAVE_MMAP 1
33895_ACEOF
33896
33897fi
33898rm -f conftest.mmap
33899
Reid Spencer30fe5262007-01-20 07:48:49 +000033900 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033901echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033902if test "${ac_cv_func_mmap_file+set}" = set; then
33903 echo $ECHO_N "(cached) $ECHO_C" >&6
33904else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033905 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033906ac_cpp='$CPP $CPPFLAGS'
33907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33909ac_compiler_gnu=$ac_cv_c_compiler_gnu
33910
33911 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033912 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033913else
33914 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033915
Reid Spencer777ce172004-09-20 04:09:56 +000033916 /* confdefs.h. */
33917_ACEOF
33918cat confdefs.h >>conftest.$ac_ext
33919cat >>conftest.$ac_ext <<_ACEOF
33920/* end confdefs.h. */
33921
John Criswell7a73b802003-06-30 21:59:07 +000033922#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033923#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033924#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033925
33926int
33927main ()
33928{
John Criswell7a73b802003-06-30 21:59:07 +000033929
33930 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033931 fd = creat ("foo",0777);
33932 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33933 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033934 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033935 ;
33936 return 0;
33937}
John Criswell7a73b802003-06-30 21:59:07 +000033938_ACEOF
33939rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033940if { (ac_try="$ac_link"
33941case "(($ac_try" in
33942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943 *) ac_try_echo=$ac_try;;
33944esac
33945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033947 ac_status=$?
33948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033950 { (case "(($ac_try" in
33951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33952 *) ac_try_echo=$ac_try;;
33953esac
33954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33955 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033956 ac_status=$?
33957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33958 (exit $ac_status); }; }; then
33959 ac_cv_func_mmap_file=yes
33960else
33961 echo "$as_me: program exited with status $ac_status" >&5
33962echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033963sed 's/^/| /' conftest.$ac_ext >&5
33964
John Criswell7a73b802003-06-30 21:59:07 +000033965( exit $ac_status )
33966ac_cv_func_mmap_file=no
33967fi
Reid Spencera773bd52006-08-04 18:18:08 +000033968rm -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 +000033969fi
Reid Spencera773bd52006-08-04 18:18:08 +000033970
33971
John Criswell7a73b802003-06-30 21:59:07 +000033972 ac_ext=c
33973ac_cpp='$CPP $CPPFLAGS'
33974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33976ac_compiler_gnu=$ac_cv_c_compiler_gnu
33977
33978
33979fi
Reid Spencera773bd52006-08-04 18:18:08 +000033980{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33981echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033982if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033983
33984cat >>confdefs.h <<\_ACEOF
33985#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033986_ACEOF
33987
33988 MMAP_FILE=yes
33989
33990fi
33991
Reid Spencer30fe5262007-01-20 07:48:49 +000033992 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000033993echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033994if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33995 echo $ECHO_N "(cached) $ECHO_C" >&6
33996else
Reid Spencer582a23c2004-12-29 07:07:57 +000033997 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033998 ac_cv_need_dev_zero_for_mmap=yes
33999 else
34000 ac_cv_need_dev_zero_for_mmap=no
34001 fi
34002
34003fi
Reid Spencera773bd52006-08-04 18:18:08 +000034004{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34005echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034006if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34007
34008cat >>confdefs.h <<\_ACEOF
34009#define NEED_DEV_ZERO_FOR_MMAP 1
34010_ACEOF
34011
34012fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034013
Reid Spencer30fe5262007-01-20 07:48:49 +000034014 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34015 then
34016 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034017echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034018 fi
34019 if test "$ac_cv_func_mmap_file" = "no"
34020 then
34021 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034022echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034023 fi
John Criswellb13092b2003-07-22 21:00:24 +000034024fi
John Criswell7a73b802003-06-30 21:59:07 +000034025
34026
Reid Spencer9372f152007-07-30 20:13:24 +000034027
34028for ac_func in __dso_handle
34029do
34030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34031{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34033if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34034 echo $ECHO_N "(cached) $ECHO_C" >&6
34035else
34036 cat >conftest.$ac_ext <<_ACEOF
34037/* confdefs.h. */
34038_ACEOF
34039cat confdefs.h >>conftest.$ac_ext
34040cat >>conftest.$ac_ext <<_ACEOF
34041/* end confdefs.h. */
34042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34044#define $ac_func innocuous_$ac_func
34045
34046/* System header to define __stub macros and hopefully few prototypes,
34047 which can conflict with char $ac_func (); below.
34048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34049 <limits.h> exists even on freestanding compilers. */
34050
34051#ifdef __STDC__
34052# include <limits.h>
34053#else
34054# include <assert.h>
34055#endif
34056
34057#undef $ac_func
34058
34059/* Override any GCC internal prototype to avoid an error.
34060 Use char because int might match the return type of a GCC
34061 builtin and then its argument prototype would still apply. */
34062#ifdef __cplusplus
34063extern "C"
34064#endif
34065char $ac_func ();
34066/* The GNU C library defines this for functions which it implements
34067 to always fail with ENOSYS. Some functions are actually named
34068 something starting with __ and the normal name is an alias. */
34069#if defined __stub_$ac_func || defined __stub___$ac_func
34070choke me
34071#endif
34072
34073int
34074main ()
34075{
34076return $ac_func ();
34077 ;
34078 return 0;
34079}
34080_ACEOF
34081rm -f conftest.$ac_objext conftest$ac_exeext
34082if { (ac_try="$ac_link"
34083case "(($ac_try" in
34084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34085 *) ac_try_echo=$ac_try;;
34086esac
34087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34088 (eval "$ac_link") 2>conftest.er1
34089 ac_status=$?
34090 grep -v '^ *+' conftest.er1 >conftest.err
34091 rm -f conftest.er1
34092 cat conftest.err >&5
34093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034094 (exit $ac_status); } &&
34095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34096 { (case "(($ac_try" in
34097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098 *) ac_try_echo=$ac_try;;
34099esac
34100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101 (eval "$ac_try") 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; } &&
34105 { ac_try='test -s conftest$ac_exeext'
34106 { (case "(($ac_try" in
34107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34108 *) ac_try_echo=$ac_try;;
34109esac
34110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34111 (eval "$ac_try") 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034115 eval "$as_ac_var=yes"
34116else
34117 echo "$as_me: failed program was:" >&5
34118sed 's/^/| /' conftest.$ac_ext >&5
34119
34120 eval "$as_ac_var=no"
34121fi
34122
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034123rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034124 conftest$ac_exeext conftest.$ac_ext
34125fi
34126ac_res=`eval echo '${'$as_ac_var'}'`
34127 { echo "$as_me:$LINENO: result: $ac_res" >&5
34128echo "${ECHO_T}$ac_res" >&6; }
34129if test `eval echo '${'$as_ac_var'}'` = yes; then
34130 cat >>confdefs.h <<_ACEOF
34131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34132_ACEOF
34133
34134fi
34135done
34136
34137
Reid Spencera773bd52006-08-04 18:18:08 +000034138{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34139echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034140if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34141 echo $ECHO_N "(cached) $ECHO_C" >&6
34142else
34143 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034144if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034145 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034146 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34147 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034148 if test $? -eq 0 ; then
34149 llvm_cv_llvmgcc_sanity="yes"
34150 fi
34151 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034152fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034153fi
Reid Spencera773bd52006-08-04 18:18:08 +000034154{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34155echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034156
34157if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034158 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34159echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034160 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034161 LLVMCC1=$llvmcc1path
34162
Reid Spencer502935f2004-12-22 05:56:56 +000034163 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034164 LLVMCC1PLUS=$llvmcc1pluspath
34165
Reid Spencer502935f2004-12-22 05:56:56 +000034166 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34167 LLVMGCCDIR=$llvmgccdir
34168
Reid Spencer282d8c12006-12-21 22:55:41 +000034169 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34170 LLVMGCCLIBEXEC=$llvmgcclibexec
34171
Reid Spencerb5d75b82006-05-09 00:31:01 +000034172 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034173 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34174 LLVMGCC_VERSION=$llvmgccversion
34175
34176 LLVMGCC_MAJVERS=$llvmgccmajvers
34177
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034178 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034179 LLVMGCC_LANGS=$llvmgcclangs
34180
34181 { echo "$as_me:$LINENO: result: ok" >&5
34182echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034183fi
34184
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034185SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034186
34187
Reid Spencere9de0912004-08-20 09:03:57 +000034188# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034189# information into substitutions that will end up in Makefile.config.in
34190# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034191if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034192 prefix="/usr/local"
34193fi
Reid Spencere9de0912004-08-20 09:03:57 +000034194eval LLVM_PREFIX="${prefix}";
34195eval LLVM_BINDIR="${prefix}/bin";
34196eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034197eval LLVM_DATADIR="${prefix}/share/llvm";
34198eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34199eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034200eval LLVM_INCLUDEDIR="${prefix}/include";
34201eval LLVM_INFODIR="${prefix}/info";
34202eval LLVM_MANDIR="${prefix}/man";
34203LLVM_CONFIGTIME=`date`
34204
34205
34206
34207
34208
34209
34210
34211
34212
34213
34214
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034215# Place the various directores into the config.h file as #defines so that we
34216# can know about the installation paths within LLVM.
34217
Reid Spencere9de0912004-08-20 09:03:57 +000034218cat >>confdefs.h <<_ACEOF
34219#define LLVM_PREFIX "$LLVM_PREFIX"
34220_ACEOF
34221
34222
34223cat >>confdefs.h <<_ACEOF
34224#define LLVM_BINDIR "$LLVM_BINDIR"
34225_ACEOF
34226
34227
34228cat >>confdefs.h <<_ACEOF
34229#define LLVM_LIBDIR "$LLVM_LIBDIR"
34230_ACEOF
34231
34232
34233cat >>confdefs.h <<_ACEOF
34234#define LLVM_DATADIR "$LLVM_DATADIR"
34235_ACEOF
34236
34237
34238cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034239#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034240_ACEOF
34241
34242
34243cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034244#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034245_ACEOF
34246
34247
34248cat >>confdefs.h <<_ACEOF
34249#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34250_ACEOF
34251
34252
34253cat >>confdefs.h <<_ACEOF
34254#define LLVM_INFODIR "$LLVM_INFODIR"
34255_ACEOF
34256
34257
34258cat >>confdefs.h <<_ACEOF
34259#define LLVM_MANDIR "$LLVM_MANDIR"
34260_ACEOF
34261
34262
34263cat >>confdefs.h <<_ACEOF
34264#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34265_ACEOF
34266
34267
Eric Christopher790e11c2007-12-01 00:34:39 +000034268cat >>confdefs.h <<_ACEOF
34269#define LLVM_HOSTTRIPLE "$host"
34270_ACEOF
34271
34272
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034273# Determine which bindings to build.
34274if test "$BINDINGS_TO_BUILD" = auto ; then
34275 BINDINGS_TO_BUILD=""
34276 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34277 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34278 fi
34279fi
34280BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34281
34282
34283# This isn't really configurey, but it avoids having to repeat the list in
34284# other files.
34285ALL_BINDINGS=ocaml
34286
34287
Gordon Henriksenf0915682007-10-02 16:42:22 +000034288# Do any work necessary to ensure that bindings have what they need.
34289binding_prereqs_failed=0
34290for a_binding in $BINDINGS_TO_BUILD ; do
34291 case "$a_binding" in
34292 ocaml)
34293 if test "x$OCAMLC" = x ; then
34294 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34295echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34296 binding_prereqs_failed=1
34297 fi
34298 if test "x$OCAMLDEP" = x ; then
34299 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34300echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34301 binding_prereqs_failed=1
34302 fi
34303 if test "x$OCAMLOPT" = x ; then
34304 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34305echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34306 fi
34307 if test "x$with_ocaml_libdir" != xauto ; then
34308 OCAML_LIBDIR=$with_ocaml_libdir
34309
34310 else
34311 ocaml_stdlib="`"$OCAMLC" -where`"
34312 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34313 then
34314 # ocaml stdlib is beneath our prefix; use stdlib
34315 OCAML_LIBDIR=$ocaml_stdlib
34316
34317 else
34318 # ocaml stdlib is outside our prefix; use libdir/ocaml
34319 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34320
34321 fi
34322 fi
34323 ;;
34324 esac
34325done
34326if test "$binding_prereqs_failed" = 1 ; then
34327 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34328echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34329 { (exit 1); exit 1; }; }
34330fi
34331
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034332{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34333echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34334if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336else
34337 ac_ext=cpp
34338ac_cpp='$CXXCPP $CPPFLAGS'
34339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34342
34343 oldcxxflags="$CXXFLAGS"
34344 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34345 cat >conftest.$ac_ext <<_ACEOF
34346/* confdefs.h. */
34347_ACEOF
34348cat confdefs.h >>conftest.$ac_ext
34349cat >>conftest.$ac_ext <<_ACEOF
34350/* end confdefs.h. */
34351
34352int
34353main ()
34354{
34355
34356 ;
34357 return 0;
34358}
34359_ACEOF
34360rm -f conftest.$ac_objext
34361if { (ac_try="$ac_compile"
34362case "(($ac_try" in
34363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34364 *) ac_try_echo=$ac_try;;
34365esac
34366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34367 (eval "$ac_compile") 2>conftest.er1
34368 ac_status=$?
34369 grep -v '^ *+' conftest.er1 >conftest.err
34370 rm -f conftest.er1
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034373 (exit $ac_status); } &&
34374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34375 { (case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34378esac
34379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_try") 2>&5
34381 ac_status=$?
34382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 (exit $ac_status); }; } &&
34384 { ac_try='test -s conftest.$ac_objext'
34385 { (case "(($ac_try" in
34386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34387 *) ac_try_echo=$ac_try;;
34388esac
34389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34390 (eval "$ac_try") 2>&5
34391 ac_status=$?
34392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34393 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034394 llvm_cv_cxx_visibility_inlines_hidden=yes
34395else
34396 echo "$as_me: failed program was:" >&5
34397sed 's/^/| /' conftest.$ac_ext >&5
34398
34399 llvm_cv_cxx_visibility_inlines_hidden=no
34400fi
34401
34402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34403 CXXFLAGS="$oldcxxflags"
34404 ac_ext=c
34405ac_cpp='$CPP $CPPFLAGS'
34406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34408ac_compiler_gnu=$ac_cv_c_compiler_gnu
34409
34410
34411fi
34412{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34413echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34414if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34415 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34416
34417else
34418 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34419
34420fi
34421
Gordon Henriksenf0915682007-10-02 16:42:22 +000034422
Nick Lewyckye9821dc2009-03-03 04:55:29 +000034423case $llvm_cv_os_type in
34424 SunOS) RPATH="-Wl,-R" ;;
34425 *) RPATH="-Wl,-rpath" ;;
34426esac
34427
34428
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034429
Reid Spencera773bd52006-08-04 18:18:08 +000034430ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034431
Reid Spencera773bd52006-08-04 18:18:08 +000034432ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034433
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034434ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034435
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034436ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034437
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034438ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034439
34440
Reid Spencera773bd52006-08-04 18:18:08 +000034441ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034442
34443
Reid Spencerea949cf2006-08-16 00:45:38 +000034444ac_config_files="$ac_config_files llvm.spec"
34445
34446
Reid Spencera773bd52006-08-04 18:18:08 +000034447ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034448
34449
Reid Spencera773bd52006-08-04 18:18:08 +000034450ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034451
34452
Reid Spencera773bd52006-08-04 18:18:08 +000034453ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034454
Reid Spencera773bd52006-08-04 18:18:08 +000034455ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034456
34457
Reid Spencera773bd52006-08-04 18:18:08 +000034458ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034459
34460
Reid Spencera773bd52006-08-04 18:18:08 +000034461ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034462
34463
Reid Spencera773bd52006-08-04 18:18:08 +000034464ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034465
34466
Reid Spencer8b2e1412006-11-17 03:32:33 +000034467ac_config_commands="$ac_config_commands runtime/Makefile"
34468
34469
Reid Spencera773bd52006-08-04 18:18:08 +000034470ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034471
34472
Reid Spencera773bd52006-08-04 18:18:08 +000034473ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034474
34475
Bill Wendlingf24eb392009-01-04 23:12:30 +000034476ac_config_commands="$ac_config_commands unittests/Makefile"
34477
34478
Reid Spencera773bd52006-08-04 18:18:08 +000034479ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034480
34481
Reid Spencera773bd52006-08-04 18:18:08 +000034482ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034483
34484
Reid Spencera773bd52006-08-04 18:18:08 +000034485ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034486
34487
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034488ac_config_commands="$ac_config_commands bindings/Makefile"
34489
34490
34491ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34492
34493
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034494
John Criswell7a73b802003-06-30 21:59:07 +000034495cat >confcache <<\_ACEOF
34496# This file is a shell script that caches the results of configure
34497# tests run on this system so they can be shared between configure
34498# scripts and configure runs, see configure's option --config-cache.
34499# It is not useful on other systems. If it contains results you don't
34500# want to keep, you may remove or edit it.
34501#
34502# config.status only pays attention to the cache file if you give it
34503# the --recheck option to rerun configure.
34504#
John Criswell0c38eaf2003-09-10 15:17:25 +000034505# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034506# loading this file, other *unset* `ac_cv_foo' will be assigned the
34507# following values.
34508
34509_ACEOF
34510
34511# The following way of writing the cache mishandles newlines in values,
34512# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034513# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034514# Ultrix sh set writes to stderr and can't be redirected directly,
34515# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034516(
34517 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34518 eval ac_val=\$$ac_var
34519 case $ac_val in #(
34520 *${as_nl}*)
34521 case $ac_var in #(
34522 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34523echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34524 esac
34525 case $ac_var in #(
34526 _ | IFS | as_nl) ;; #(
34527 *) $as_unset $ac_var ;;
34528 esac ;;
34529 esac
34530 done
34531
John Criswell7a73b802003-06-30 21:59:07 +000034532 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034533 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34534 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034535 # `set' does not quote correctly, so add quotes (double-quote
34536 # substitution turns \\\\ into \\, and sed turns \\ into \).
34537 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034538 "s/'/'\\\\''/g;
34539 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034540 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034541 *)
34542 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034543 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034544 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034545 esac |
34546 sort
34547) |
John Criswell7a73b802003-06-30 21:59:07 +000034548 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034549 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034550 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034551 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034552 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34553 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034554 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34555 :end' >>confcache
34556if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34557 if test -w "$cache_file"; then
34558 test "x$cache_file" != "x/dev/null" &&
34559 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34560echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034561 cat confcache >$cache_file
34562 else
Reid Spencera773bd52006-08-04 18:18:08 +000034563 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34564echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034565 fi
34566fi
34567rm -f confcache
34568
34569test "x$prefix" = xNONE && prefix=$ac_default_prefix
34570# Let make expand exec_prefix.
34571test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34572
John Criswell7a73b802003-06-30 21:59:07 +000034573DEFS=-DHAVE_CONFIG_H
34574
John Criswell0c38eaf2003-09-10 15:17:25 +000034575ac_libobjs=
34576ac_ltlibobjs=
34577for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34578 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034579 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34580 ac_i=`echo "$ac_i" | sed "$ac_script"`
34581 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34582 # will be set to the directory where LIBOBJS objects are built.
34583 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34584 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034585done
34586LIBOBJS=$ac_libobjs
34587
34588LTLIBOBJS=$ac_ltlibobjs
34589
34590
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034591if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34592 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34593Usually this means the macro was only invoked conditionally." >&5
34594echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34595Usually this means the macro was only invoked conditionally." >&2;}
34596 { (exit 1); exit 1; }; }
34597fi
34598if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34599 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34600Usually this means the macro was only invoked conditionally." >&5
34601echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34602Usually this means the macro was only invoked conditionally." >&2;}
34603 { (exit 1); exit 1; }; }
34604fi
John Criswell7a73b802003-06-30 21:59:07 +000034605
34606: ${CONFIG_STATUS=./config.status}
34607ac_clean_files_save=$ac_clean_files
34608ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34609{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34610echo "$as_me: creating $CONFIG_STATUS" >&6;}
34611cat >$CONFIG_STATUS <<_ACEOF
34612#! $SHELL
34613# Generated by $as_me.
34614# Run this file to recreate the current configuration.
34615# Compiler output produced by configure, useful for debugging
34616# configure, is in config.log if it exists.
34617
34618debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034619ac_cs_recheck=false
34620ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034621SHELL=\${CONFIG_SHELL-$SHELL}
34622_ACEOF
34623
34624cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034625## --------------------- ##
34626## M4sh Initialization. ##
34627## --------------------- ##
34628
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034629# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034630if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34631 emulate sh
34632 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034633 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34634 # is contrary to our usage. Disable this feature.
34635 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034636 setopt NO_GLOB_SUBST
34637else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034638 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034639fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034640BIN_SH=xpg4; export BIN_SH # for Tru64
34641DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034642
John Criswell7a73b802003-06-30 21:59:07 +000034643
Reid Spencera773bd52006-08-04 18:18:08 +000034644# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034645# Avoid depending upon Character Ranges.
34646as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34647as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34648as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34649as_cr_digits='0123456789'
34650as_cr_alnum=$as_cr_Letters$as_cr_digits
34651
34652# The user is always right.
34653if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034654 echo "#! /bin/sh" >conf$$.sh
34655 echo "exit 0" >>conf$$.sh
34656 chmod +x conf$$.sh
34657 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034658 PATH_SEPARATOR=';'
34659 else
34660 PATH_SEPARATOR=:
34661 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034662 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034663fi
34664
Reid Spencera773bd52006-08-04 18:18:08 +000034665# Support unset when possible.
34666if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34667 as_unset=unset
34668else
34669 as_unset=false
34670fi
John Criswell7a73b802003-06-30 21:59:07 +000034671
Reid Spencera773bd52006-08-04 18:18:08 +000034672
34673# IFS
34674# We need space, tab and new line, in precisely that order. Quoting is
34675# there to prevent editors from complaining about space-tab.
34676# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34677# splitting by setting IFS to empty value.)
34678as_nl='
34679'
34680IFS=" "" $as_nl"
34681
34682# Find who we are. Look in the path if we contain no directory separator.
34683case $0 in
34684 *[\\/]* ) as_myself=$0 ;;
34685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034686for as_dir in $PATH
34687do
34688 IFS=$as_save_IFS
34689 test -z "$as_dir" && as_dir=.
34690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34691done
Reid Spencera773bd52006-08-04 18:18:08 +000034692IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034693
Reid Spencera773bd52006-08-04 18:18:08 +000034694 ;;
34695esac
34696# We did not find ourselves, most probably we were run as `sh COMMAND'
34697# in which case we are not to be found in the path.
34698if test "x$as_myself" = x; then
34699 as_myself=$0
34700fi
34701if test ! -f "$as_myself"; then
34702 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34703 { (exit 1); exit 1; }
34704fi
34705
34706# Work around bugs in pre-3.0 UWIN ksh.
34707for as_var in ENV MAIL MAILPATH
34708do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34709done
34710PS1='$ '
34711PS2='> '
34712PS4='+ '
34713
34714# NLS nuisances.
34715for as_var in \
34716 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34717 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34718 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034719do
Reid Spencera773bd52006-08-04 18:18:08 +000034720 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34721 eval $as_var=C; export $as_var
34722 else
34723 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34724 fi
34725done
34726
34727# Required to use basename.
34728if expr a : '\(a\)' >/dev/null 2>&1 &&
34729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34730 as_expr=expr
34731else
34732 as_expr=false
34733fi
34734
34735if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34736 as_basename=basename
34737else
34738 as_basename=false
34739fi
34740
34741
34742# Name of the executable.
34743as_me=`$as_basename -- "$0" ||
34744$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34745 X"$0" : 'X\(//\)$' \| \
34746 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34747echo X/"$0" |
34748 sed '/^.*\/\([^/][^/]*\)\/*$/{
34749 s//\1/
34750 q
34751 }
34752 /^X\/\(\/\/\)$/{
34753 s//\1/
34754 q
34755 }
34756 /^X\/\(\/\).*/{
34757 s//\1/
34758 q
34759 }
34760 s/.*/./; q'`
34761
34762# CDPATH.
34763$as_unset CDPATH
34764
34765
34766
John Criswell7a73b802003-06-30 21:59:07 +000034767 as_lineno_1=$LINENO
34768 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034769 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034770 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034771
34772 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34773 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034774 # line-number line after each line using $LINENO; the second 'sed'
34775 # does the real work. The second script uses 'N' to pair each
34776 # line-number line with the line containing $LINENO, and appends
34777 # trailing '-' during substitution so that $LINENO is not a special
34778 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034779 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034780 # scripts with optimization help from Paolo Bonzini. Blame Lee
34781 # E. McMahon (1931-1989) for sed's syntax. :-)
34782 sed -n '
34783 p
34784 /[$]LINENO/=
34785 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034786 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034787 s/[$]LINENO.*/&-/
34788 t lineno
34789 b
34790 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034791 N
Reid Spencera773bd52006-08-04 18:18:08 +000034792 :loop
34793 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034794 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034795 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034796 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034797 chmod +x "$as_me.lineno" ||
34798 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034799 { (exit 1); exit 1; }; }
34800
34801 # Don't try to exec as it changes $[0], causing all sort of problems
34802 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034803 # original and so on. Autoconf is especially sensitive to this).
34804 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034805 # Exit status is that of the last command.
34806 exit
34807}
34808
34809
Reid Spencera773bd52006-08-04 18:18:08 +000034810if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34811 as_dirname=dirname
34812else
34813 as_dirname=false
34814fi
34815
34816ECHO_C= ECHO_N= ECHO_T=
34817case `echo -n x` in
34818-n*)
34819 case `echo 'x\c'` in
34820 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34821 *) ECHO_C='\c';;
34822 esac;;
34823*)
34824 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034825esac
34826
Reid Spencera773bd52006-08-04 18:18:08 +000034827if expr a : '\(a\)' >/dev/null 2>&1 &&
34828 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034829 as_expr=expr
34830else
34831 as_expr=false
34832fi
34833
34834rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034835if test -d conf$$.dir; then
34836 rm -f conf$$.dir/conf$$.file
34837else
34838 rm -f conf$$.dir
34839 mkdir conf$$.dir
34840fi
John Criswell7a73b802003-06-30 21:59:07 +000034841echo >conf$$.file
34842if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034843 as_ln_s='ln -s'
34844 # ... but there are two gotchas:
34845 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34846 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34847 # In both cases, we have to default to `cp -p'.
34848 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034849 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034850elif ln conf$$.file conf$$ 2>/dev/null; then
34851 as_ln_s=ln
34852else
34853 as_ln_s='cp -p'
34854fi
Reid Spencera773bd52006-08-04 18:18:08 +000034855rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34856rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034857
John Criswell0c38eaf2003-09-10 15:17:25 +000034858if mkdir -p . 2>/dev/null; then
34859 as_mkdir_p=:
34860else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034861 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034862 as_mkdir_p=false
34863fi
34864
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034865# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34866# systems may use methods other than mode bits to determine executability.
34867cat >conf$$.file <<_ASEOF
34868#! /bin/sh
34869exit 0
34870_ASEOF
34871chmod +x conf$$.file
34872if test -x conf$$.file >/dev/null 2>&1; then
34873 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034874else
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034875 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034876fi
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034877rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034878
34879# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034880as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034881
34882# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034883as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034884
34885
John Criswell7a73b802003-06-30 21:59:07 +000034886exec 6>&1
34887
Reid Spencera773bd52006-08-04 18:18:08 +000034888# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000034889# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000034890# values after options handling.
34891ac_log="
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034892This file was extended by llvm $as_me 2.6svn, which was
34893generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000034894
34895 CONFIG_FILES = $CONFIG_FILES
34896 CONFIG_HEADERS = $CONFIG_HEADERS
34897 CONFIG_LINKS = $CONFIG_LINKS
34898 CONFIG_COMMANDS = $CONFIG_COMMANDS
34899 $ $0 $@
34900
Reid Spencera773bd52006-08-04 18:18:08 +000034901on `(hostname || uname -n) 2>/dev/null | sed 1q`
34902"
34903
John Criswell7a73b802003-06-30 21:59:07 +000034904_ACEOF
34905
Reid Spencera773bd52006-08-04 18:18:08 +000034906cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034907# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034908config_files="$ac_config_files"
34909config_headers="$ac_config_headers"
34910config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034911
Reid Spencera773bd52006-08-04 18:18:08 +000034912_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034913
34914cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034915ac_cs_usage="\
34916\`$as_me' instantiates files from templates according to the
34917current configuration.
34918
34919Usage: $0 [OPTIONS] [FILE]...
34920
34921 -h, --help print this help, then exit
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034922 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034923 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034924 -d, --debug don't remove temporary files
34925 --recheck update $as_me by reconfiguring in the same conditions
34926 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034927 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034928 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034929 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034930
34931Configuration files:
34932$config_files
34933
34934Configuration headers:
34935$config_headers
34936
John Criswellc764fbc2003-09-06 15:17:13 +000034937Configuration commands:
34938$config_commands
34939
John Criswell7a73b802003-06-30 21:59:07 +000034940Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034941
Reid Spencera773bd52006-08-04 18:18:08 +000034942_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034943cat >>$CONFIG_STATUS <<_ACEOF
34944ac_cs_version="\\
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000034945llvm config.status 2.6svn
34946configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000034947 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034948
Reid Spencera773bd52006-08-04 18:18:08 +000034949Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034950This config.status script is free software; the Free Software Foundation
34951gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034952
34953ac_pwd='$ac_pwd'
34954srcdir='$srcdir'
34955INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034956_ACEOF
34957
34958cat >>$CONFIG_STATUS <<\_ACEOF
34959# If no file are specified by the user, then we need to provide default
34960# value. By we need to know if files were specified by the user.
34961ac_need_defaults=:
34962while test $# != 0
34963do
34964 case $1 in
34965 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34967 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034968 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034969 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034970 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034971 ac_option=$1
34972 ac_optarg=$2
34973 ac_shift=shift
34974 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034975 esac
34976
John Criswell0c38eaf2003-09-10 15:17:25 +000034977 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034978 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34980 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34982 echo "$ac_cs_version"; exit ;;
34983 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034984 debug=: ;;
34985 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034986 $ac_shift
34987 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034988 ac_need_defaults=false;;
34989 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034990 $ac_shift
34991 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034992 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034993 --he | --h)
34994 # Conflict between --help and --header
34995 { echo "$as_me: error: ambiguous option: $1
34996Try \`$0 --help' for more information." >&2
34997 { (exit 1); exit 1; }; };;
34998 --help | --hel | -h )
34999 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35002 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035003
35004 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035005 -*) { echo "$as_me: error: unrecognized option: $1
35006Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035007 { (exit 1); exit 1; }; } ;;
35008
Reid Spencera773bd52006-08-04 18:18:08 +000035009 *) ac_config_targets="$ac_config_targets $1"
35010 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035011
35012 esac
35013 shift
35014done
35015
John Criswell0c38eaf2003-09-10 15:17:25 +000035016ac_configure_extra_args=
35017
35018if $ac_cs_silent; then
35019 exec 6>/dev/null
35020 ac_configure_extra_args="$ac_configure_extra_args --silent"
35021fi
35022
35023_ACEOF
35024cat >>$CONFIG_STATUS <<_ACEOF
35025if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035026 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35027 CONFIG_SHELL=$SHELL
35028 export CONFIG_SHELL
35029 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035030fi
35031
John Criswell7a73b802003-06-30 21:59:07 +000035032_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035033cat >>$CONFIG_STATUS <<\_ACEOF
35034exec 5>>config.log
35035{
35036 echo
35037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35038## Running $as_me. ##
35039_ASBOX
35040 echo "$ac_log"
35041} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035042
Reid Spencera773bd52006-08-04 18:18:08 +000035043_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035044cat >>$CONFIG_STATUS <<_ACEOF
35045#
Reid Spencera773bd52006-08-04 18:18:08 +000035046# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035047#
Reid Spencerc0682832005-02-24 19:05:19 +000035048llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035049
35050_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035051
John Criswell7a73b802003-06-30 21:59:07 +000035052cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035053
35054# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035055for ac_config_target in $ac_config_targets
35056do
Reid Spencera773bd52006-08-04 18:18:08 +000035057 case $ac_config_target in
35058 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35059 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035060 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35061 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35062 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035063 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035064 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035065 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35066 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35067 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35068 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35069 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35070 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35071 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035072 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035073 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35074 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035075 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035076 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35077 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35078 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035079 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35080 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035081
John Criswell7a73b802003-06-30 21:59:07 +000035082 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35083echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35084 { (exit 1); exit 1; }; };;
35085 esac
35086done
35087
Reid Spencera773bd52006-08-04 18:18:08 +000035088
John Criswell7a73b802003-06-30 21:59:07 +000035089# If the user did not use the arguments to specify the items to instantiate,
35090# then the envvar interface is used. Set only those that are not.
35091# We use the long form for the default assignment because of an extremely
35092# bizarre bug on SunOS 4.1.3.
35093if $ac_need_defaults; then
35094 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35095 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035096 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035097fi
35098
John Criswell0c38eaf2003-09-10 15:17:25 +000035099# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035100# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035101# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035102# Hook for its removal unless debugging.
35103# Note that there is a small window in which the directory will not be cleaned:
35104# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035105$debug ||
35106{
Reid Spencera773bd52006-08-04 18:18:08 +000035107 tmp=
35108 trap 'exit_status=$?
35109 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35110' 0
John Criswell7a73b802003-06-30 21:59:07 +000035111 trap '{ (exit 1); exit 1; }' 1 2 13 15
35112}
John Criswell7a73b802003-06-30 21:59:07 +000035113# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035114
John Criswell7a73b802003-06-30 21:59:07 +000035115{
Reid Spencera773bd52006-08-04 18:18:08 +000035116 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035117 test -n "$tmp" && test -d "$tmp"
35118} ||
35119{
Reid Spencera773bd52006-08-04 18:18:08 +000035120 tmp=./conf$$-$RANDOM
35121 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035122} ||
35123{
John Criswell0c38eaf2003-09-10 15:17:25 +000035124 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035125 { (exit 1); exit 1; }
35126}
35127
John Criswell7a73b802003-06-30 21:59:07 +000035128#
Reid Spencera773bd52006-08-04 18:18:08 +000035129# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035130#
35131
35132# No need to generate the scripts if there are no CONFIG_FILES.
35133# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035134if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035135
35136_ACEOF
35137
Reid Spencera773bd52006-08-04 18:18:08 +000035138
35139
35140ac_delim='%!_!# '
35141for ac_last_try in false false false false false :; do
35142 cat >conf$$subs.sed <<_ACEOF
35143SHELL!$SHELL$ac_delim
35144PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35145PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35146PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35147PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35148PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35149PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35150exec_prefix!$exec_prefix$ac_delim
35151prefix!$prefix$ac_delim
35152program_transform_name!$program_transform_name$ac_delim
35153bindir!$bindir$ac_delim
35154sbindir!$sbindir$ac_delim
35155libexecdir!$libexecdir$ac_delim
35156datarootdir!$datarootdir$ac_delim
35157datadir!$datadir$ac_delim
35158sysconfdir!$sysconfdir$ac_delim
35159sharedstatedir!$sharedstatedir$ac_delim
35160localstatedir!$localstatedir$ac_delim
35161includedir!$includedir$ac_delim
35162oldincludedir!$oldincludedir$ac_delim
35163docdir!$docdir$ac_delim
35164infodir!$infodir$ac_delim
35165htmldir!$htmldir$ac_delim
35166dvidir!$dvidir$ac_delim
35167pdfdir!$pdfdir$ac_delim
35168psdir!$psdir$ac_delim
35169libdir!$libdir$ac_delim
35170localedir!$localedir$ac_delim
35171mandir!$mandir$ac_delim
35172DEFS!$DEFS$ac_delim
35173ECHO_C!$ECHO_C$ac_delim
35174ECHO_N!$ECHO_N$ac_delim
35175ECHO_T!$ECHO_T$ac_delim
35176LIBS!$LIBS$ac_delim
35177build_alias!$build_alias$ac_delim
35178host_alias!$host_alias$ac_delim
35179target_alias!$target_alias$ac_delim
35180LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35181subdirs!$subdirs$ac_delim
35182build!$build$ac_delim
35183build_cpu!$build_cpu$ac_delim
35184build_vendor!$build_vendor$ac_delim
35185build_os!$build_os$ac_delim
35186host!$host$ac_delim
35187host_cpu!$host_cpu$ac_delim
35188host_vendor!$host_vendor$ac_delim
35189host_os!$host_os$ac_delim
35190target!$target$ac_delim
35191target_cpu!$target_cpu$ac_delim
35192target_vendor!$target_vendor$ac_delim
35193target_os!$target_os$ac_delim
35194OS!$OS$ac_delim
35195LINKALL!$LINKALL$ac_delim
35196NOLINKALL!$NOLINKALL$ac_delim
35197LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35198LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35199ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035200ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035201CC!$CC$ac_delim
35202CFLAGS!$CFLAGS$ac_delim
35203LDFLAGS!$LDFLAGS$ac_delim
35204CPPFLAGS!$CPPFLAGS$ac_delim
35205ac_ct_CC!$ac_ct_CC$ac_delim
35206EXEEXT!$EXEEXT$ac_delim
35207OBJEXT!$OBJEXT$ac_delim
35208CPP!$CPP$ac_delim
35209GREP!$GREP$ac_delim
35210EGREP!$EGREP$ac_delim
35211LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35212BUILD_CC!$BUILD_CC$ac_delim
35213BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035214BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035215CVSBUILD!$CVSBUILD$ac_delim
35216ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35217DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035218ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35219EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035220DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035221JIT!$JIT$ac_delim
35222TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35223ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35224ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035225ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035226TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035227ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035228EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
Nick Lewyckye792b1d2009-02-03 07:10:30 +000035229BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035230CXX!$CXX$ac_delim
35231CXXFLAGS!$CXXFLAGS$ac_delim
35232ac_ct_CXX!$ac_ct_CXX$ac_delim
Nick Lewyckybdf0d7c2009-02-21 22:38:49 +000035233NM!$NM$ac_delim
35234ifGNUmake!$ifGNUmake$ac_delim
35235LN_S!$LN_S$ac_delim
35236CMP!$CMP$ac_delim
35237CP!$CP$ac_delim
35238DATE!$DATE$ac_delim
35239FIND!$FIND$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035240_ACEOF
35241
35242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35243 break
35244 elif $ac_last_try; then
35245 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35246echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35247 { (exit 1); exit 1; }; }
35248 else
35249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035250 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035251done
35252
35253ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35254if test -n "$ac_eof"; then
35255 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35256 ac_eof=`expr $ac_eof + 1`
35257fi
35258
35259cat >>$CONFIG_STATUS <<_ACEOF
35260cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35262_ACEOF
35263sed '
35264s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35265s/^/s,@/; s/!/@,|#_!!_#|/
35266:n
35267t n
35268s/'"$ac_delim"'$/,g/; t
35269s/$/\\/; p
35270N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35271' >>$CONFIG_STATUS <conf$$subs.sed
35272rm -f conf$$subs.sed
35273cat >>$CONFIG_STATUS <<_ACEOF
35274CEOF$ac_eof
35275_ACEOF
35276
35277
35278ac_delim='%!_!# '
35279for ac_last_try in false false false false false :; do
35280 cat >conf$$subs.sed <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035281MKDIR!$MKDIR$ac_delim
35282MV!$MV$ac_delim
35283RANLIB!$RANLIB$ac_delim
35284RM!$RM$ac_delim
35285SED!$SED$ac_delim
35286TAR!$TAR$ac_delim
35287BINPWD!$BINPWD$ac_delim
35288GRAPHVIZ!$GRAPHVIZ$ac_delim
35289DOT!$DOT$ac_delim
35290GV!$GV$ac_delim
35291DOTTY!$DOTTY$ac_delim
35292PERL!$PERL$ac_delim
35293HAVE_PERL!$HAVE_PERL$ac_delim
35294INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35295INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35296INSTALL_DATA!$INSTALL_DATA$ac_delim
35297BZIP2!$BZIP2$ac_delim
35298DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035299GROFF!$GROFF$ac_delim
35300GZIP!$GZIP$ac_delim
35301POD2HTML!$POD2HTML$ac_delim
35302POD2MAN!$POD2MAN$ac_delim
35303RUNTEST!$RUNTEST$ac_delim
35304TCLSH!$TCLSH$ac_delim
35305ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035306OCAMLC!$OCAMLC$ac_delim
35307OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035308OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035309OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035310GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035311INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35312INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35313CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35314CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35315LIBADD_DL!$LIBADD_DL$ac_delim
35316ECHO!$ECHO$ac_delim
35317AR!$AR$ac_delim
35318STRIP!$STRIP$ac_delim
35319CXXCPP!$CXXCPP$ac_delim
35320F77!$F77$ac_delim
35321FFLAGS!$FFLAGS$ac_delim
35322ac_ct_F77!$ac_ct_F77$ac_delim
35323LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035324LLVMGCC!$LLVMGCC$ac_delim
35325LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035326USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035327HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Nick Lewyckyfb3dcf82009-02-04 06:27:44 +000035328HAVE_FFI!$HAVE_FFI$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035329HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035330ALLOCA!$ALLOCA$ac_delim
35331MMAP_FILE!$MMAP_FILE$ac_delim
35332LLVMCC1!$LLVMCC1$ac_delim
35333LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35334LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035335LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035336LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35337LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035338LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035339SHLIBEXT!$SHLIBEXT$ac_delim
35340LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35341LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35342LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35343LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35344LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35345LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35346LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35347LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35348LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35349LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035350BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35351ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035352OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035353ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035354RPATH!$RPATH$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035355LIBOBJS!$LIBOBJS$ac_delim
35356LTLIBOBJS!$LTLIBOBJS$ac_delim
35357_ACEOF
35358
Nick Lewyckye9821dc2009-03-03 04:55:29 +000035359 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Reid Spencera773bd52006-08-04 18:18:08 +000035360 break
35361 elif $ac_last_try; then
35362 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35363echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35364 { (exit 1); exit 1; }; }
35365 else
35366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35367 fi
35368done
35369
35370ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35371if test -n "$ac_eof"; then
35372 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35373 ac_eof=`expr $ac_eof + 1`
35374fi
35375
35376cat >>$CONFIG_STATUS <<_ACEOF
35377cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35378/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35379_ACEOF
35380sed '
35381s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35382s/^/s,@/; s/!/@,|#_!!_#|/
35383:n
35384t n
35385s/'"$ac_delim"'$/,g/; t
35386s/$/\\/; p
35387N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35388' >>$CONFIG_STATUS <conf$$subs.sed
35389rm -f conf$$subs.sed
35390cat >>$CONFIG_STATUS <<_ACEOF
35391:end
35392s/|#_!!_#|//g
35393CEOF$ac_eof
35394_ACEOF
35395
35396
35397# VPATH may cause trouble with some makes, so we remove $(srcdir),
35398# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35399# trailing colons and then remove the whole line if VPATH becomes empty
35400# (actually we leave an empty line to preserve line numbers).
35401if test "x$srcdir" = x.; then
35402 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35403s/:*\$(srcdir):*/:/
35404s/:*\${srcdir}:*/:/
35405s/:*@srcdir@:*/:/
35406s/^\([^=]*=[ ]*\):*/\1/
35407s/:*$//
35408s/^[^=]*=[ ]*$//
35409}'
35410fi
35411
35412cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035413fi # test -n "$CONFIG_FILES"
35414
Reid Spencera773bd52006-08-04 18:18:08 +000035415
35416for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35417do
35418 case $ac_tag in
35419 :[FHLC]) ac_mode=$ac_tag; continue;;
35420 esac
35421 case $ac_mode$ac_tag in
35422 :[FHL]*:*);;
35423 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35424echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35425 { (exit 1); exit 1; }; };;
35426 :[FH]-) ac_tag=-:-;;
35427 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35428 esac
35429 ac_save_IFS=$IFS
35430 IFS=:
35431 set x $ac_tag
35432 IFS=$ac_save_IFS
35433 shift
35434 ac_file=$1
35435 shift
35436
35437 case $ac_mode in
35438 :L) ac_source=$1;;
35439 :[FH])
35440 ac_file_inputs=
35441 for ac_f
35442 do
35443 case $ac_f in
35444 -) ac_f="$tmp/stdin";;
35445 *) # Look for the file first in the build tree, then in the source tree
35446 # (if the path is not absolute). The absolute path cannot be DOS-style,
35447 # because $ac_f cannot contain `:'.
35448 test -f "$ac_f" ||
35449 case $ac_f in
35450 [\\/$]*) false;;
35451 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35452 esac ||
35453 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35454echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35455 { (exit 1); exit 1; }; };;
35456 esac
35457 ac_file_inputs="$ac_file_inputs $ac_f"
35458 done
35459
35460 # Let's still pretend it is `configure' which instantiates (i.e., don't
35461 # use $as_me), people would be surprised to read:
35462 # /* config.h. Generated by config.status. */
35463 configure_input="Generated from "`IFS=:
35464 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35465 if test x"$ac_file" != x-; then
35466 configure_input="$ac_file. $configure_input"
35467 { echo "$as_me:$LINENO: creating $ac_file" >&5
35468echo "$as_me: creating $ac_file" >&6;}
35469 fi
35470
35471 case $ac_tag in
35472 *:-:* | *:-) cat >"$tmp/stdin";;
35473 esac
35474 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035475 esac
35476
Reid Spencera773bd52006-08-04 18:18:08 +000035477 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035478$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035479 X"$ac_file" : 'X\(//\)[^/]' \| \
35480 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035481 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035482echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35484 s//\1/
35485 q
35486 }
35487 /^X\(\/\/\)[^/].*/{
35488 s//\1/
35489 q
35490 }
35491 /^X\(\/\/\)$/{
35492 s//\1/
35493 q
35494 }
35495 /^X\(\/\).*/{
35496 s//\1/
35497 q
35498 }
35499 s/.*/./; q'`
35500 { as_dir="$ac_dir"
35501 case $as_dir in #(
35502 -*) as_dir=./$as_dir;;
35503 esac
35504 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035505 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035506 while :; do
35507 case $as_dir in #(
35508 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35509 *) as_qdir=$as_dir;;
35510 esac
35511 as_dirs="'$as_qdir' $as_dirs"
35512 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035514 X"$as_dir" : 'X\(//\)[^/]' \| \
35515 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035516 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035517echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35519 s//\1/
35520 q
35521 }
35522 /^X\(\/\/\)[^/].*/{
35523 s//\1/
35524 q
35525 }
35526 /^X\(\/\/\)$/{
35527 s//\1/
35528 q
35529 }
35530 /^X\(\/\).*/{
35531 s//\1/
35532 q
35533 }
35534 s/.*/./; q'`
35535 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035536 done
Reid Spencera773bd52006-08-04 18:18:08 +000035537 test -z "$as_dirs" || eval "mkdir $as_dirs"
35538 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35539echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035540 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035541 ac_builddir=.
35542
Reid Spencera773bd52006-08-04 18:18:08 +000035543case "$ac_dir" in
35544.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35545*)
John Criswell7a73b802003-06-30 21:59:07 +000035546 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035547 # A ".." for each directory in $ac_dir_suffix.
35548 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35549 case $ac_top_builddir_sub in
35550 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35551 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35552 esac ;;
35553esac
35554ac_abs_top_builddir=$ac_pwd
35555ac_abs_builddir=$ac_pwd$ac_dir_suffix
35556# for backward compatibility:
35557ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035558
35559case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035560 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035561 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035562 ac_top_srcdir=$ac_top_builddir_sub
35563 ac_abs_top_srcdir=$ac_pwd ;;
35564 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035565 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035566 ac_top_srcdir=$srcdir
35567 ac_abs_top_srcdir=$srcdir ;;
35568 *) # Relative name.
35569 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35570 ac_top_srcdir=$ac_top_build_prefix$srcdir
35571 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035572esac
Reid Spencera773bd52006-08-04 18:18:08 +000035573ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035574
John Criswell7a73b802003-06-30 21:59:07 +000035575
Reid Spencera773bd52006-08-04 18:18:08 +000035576 case $ac_mode in
35577 :F)
35578 #
35579 # CONFIG_FILE
35580 #
John Criswell7a73b802003-06-30 21:59:07 +000035581
35582 case $INSTALL in
35583 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035584 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035585 esac
John Criswell7a73b802003-06-30 21:59:07 +000035586_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035587
35588cat >>$CONFIG_STATUS <<\_ACEOF
35589# If the template does not know about datarootdir, expand it.
35590# FIXME: This hack should be removed a few years after 2.60.
35591ac_datarootdir_hack=; ac_datarootdir_seen=
35592
35593case `sed -n '/datarootdir/ {
35594 p
35595 q
35596}
35597/@datadir@/p
35598/@docdir@/p
35599/@infodir@/p
35600/@localedir@/p
35601/@mandir@/p
35602' $ac_file_inputs` in
35603*datarootdir*) ac_datarootdir_seen=yes;;
35604*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35605 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35606echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35607_ACEOF
35608cat >>$CONFIG_STATUS <<_ACEOF
35609 ac_datarootdir_hack='
35610 s&@datadir@&$datadir&g
35611 s&@docdir@&$docdir&g
35612 s&@infodir@&$infodir&g
35613 s&@localedir@&$localedir&g
35614 s&@mandir@&$mandir&g
35615 s&\\\${datarootdir}&$datarootdir&g' ;;
35616esac
35617_ACEOF
35618
35619# Neutralize VPATH when `$srcdir' = `.'.
35620# Shell code in configure.ac might set extrasub.
35621# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035622cat >>$CONFIG_STATUS <<_ACEOF
35623 sed "$ac_vpsub
35624$extrasub
35625_ACEOF
35626cat >>$CONFIG_STATUS <<\_ACEOF
35627:t
35628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035629s&@configure_input@&$configure_input&;t t
35630s&@top_builddir@&$ac_top_builddir_sub&;t t
35631s&@srcdir@&$ac_srcdir&;t t
35632s&@abs_srcdir@&$ac_abs_srcdir&;t t
35633s&@top_srcdir@&$ac_top_srcdir&;t t
35634s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35635s&@builddir@&$ac_builddir&;t t
35636s&@abs_builddir@&$ac_abs_builddir&;t t
35637s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35638s&@INSTALL@&$ac_INSTALL&;t t
35639$ac_datarootdir_hack
35640" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035641
Reid Spencera773bd52006-08-04 18:18:08 +000035642test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35645 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35646which seems to be undefined. Please make sure it is defined." >&5
35647echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35648which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035649
Reid Spencera773bd52006-08-04 18:18:08 +000035650 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035651 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035652 -) cat "$tmp/out"; rm -f "$tmp/out";;
35653 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035654 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035655 ;;
35656 :H)
35657 #
35658 # CONFIG_HEADER
35659 #
John Criswell7a73b802003-06-30 21:59:07 +000035660_ACEOF
35661
Reid Spencera773bd52006-08-04 18:18:08 +000035662# Transform confdefs.h into a sed script `conftest.defines', that
35663# substitutes the proper values into config.h.in to produce config.h.
35664rm -f conftest.defines conftest.tail
35665# First, append a space to every undef/define line, to ease matching.
35666echo 's/$/ /' >conftest.defines
35667# Then, protect against being on the right side of a sed subst, or in
35668# an unquoted here document, in config.status. If some macros were
35669# called several times there might be several #defines for the same
35670# symbol, which is useless. But do not sort them, since the last
35671# AC_DEFINE must be honored.
35672ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35673# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35674# NAME is the cpp macro being defined, VALUE is the value it is being given.
35675# PARAMS is the parameter list in the macro definition--in most cases, it's
35676# just an empty string.
35677ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35678ac_dB='\\)[ (].*,\\1define\\2'
35679ac_dC=' '
35680ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035681
Reid Spencera773bd52006-08-04 18:18:08 +000035682uniq confdefs.h |
35683 sed -n '
35684 t rset
35685 :rset
35686 s/^[ ]*#[ ]*define[ ][ ]*//
35687 t ok
35688 d
35689 :ok
35690 s/[\\&,]/\\&/g
35691 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35692 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35693 ' >>conftest.defines
35694
35695# Remove the space that was appended to ease matching.
35696# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035697# example, in the case of _POSIX_SOURCE, which is predefined and required
35698# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035699# (The regexp can be short, since the line contains either #define or #undef.)
35700echo 's/ $//
35701s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035702
Reid Spencera773bd52006-08-04 18:18:08 +000035703# Break up conftest.defines:
35704ac_max_sed_lines=50
35705
35706# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35707# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35708# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35709# et cetera.
35710ac_in='$ac_file_inputs'
35711ac_out='"$tmp/out1"'
35712ac_nxt='"$tmp/out2"'
35713
35714while :
John Criswell7a73b802003-06-30 21:59:07 +000035715do
Reid Spencera773bd52006-08-04 18:18:08 +000035716 # Write a here document:
35717 cat >>$CONFIG_STATUS <<_ACEOF
35718 # First, check the format of the line:
35719 cat >"\$tmp/defines.sed" <<\\CEOF
35720/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35721/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35722b
35723:def
35724_ACEOF
35725 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035726 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035727 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35728 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35729 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35730 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035731 rm -f conftest.defines
35732 mv conftest.tail conftest.defines
35733done
Reid Spencera773bd52006-08-04 18:18:08 +000035734rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035735
Reid Spencera773bd52006-08-04 18:18:08 +000035736echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035737cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035738 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035739 echo "/* $configure_input */" >"$tmp/config.h"
35740 cat "$ac_result" >>"$tmp/config.h"
35741 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035742 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35743echo "$as_me: $ac_file is unchanged" >&6;}
35744 else
John Criswell7a73b802003-06-30 21:59:07 +000035745 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035746 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035747 fi
35748 else
Reid Spencera773bd52006-08-04 18:18:08 +000035749 echo "/* $configure_input */"
35750 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035751 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035752 rm -f "$tmp/out12"
35753 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035754
Reid Spencera773bd52006-08-04 18:18:08 +000035755 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35756echo "$as_me: executing $ac_file commands" >&6;}
35757 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035758 esac
John Criswell7a73b802003-06-30 21:59:07 +000035759
Reid Spencera773bd52006-08-04 18:18:08 +000035760
35761 case $ac_file$ac_mode in
35762 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35763 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35764 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35765 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35766 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35767 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35768 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35769 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035770 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35771 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035772 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35773 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35774 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35775 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
Bill Wendlingf24eb392009-01-04 23:12:30 +000035776 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
35777 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035778 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35779 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35780 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35781 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35782 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35783 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035784 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35785 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35786 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35787 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035788
35789 esac
35790done # for ac_tag
35791
John Criswell7a73b802003-06-30 21:59:07 +000035792
35793{ (exit 0); exit 0; }
35794_ACEOF
35795chmod +x $CONFIG_STATUS
35796ac_clean_files=$ac_clean_files_save
35797
35798
35799# configure is writing to config.log, and then calls config.status.
35800# config.status does its own redirection, appending to config.log.
35801# Unfortunately, on DOS this fails, as config.log is still kept open
35802# by configure, so config.status won't be able to write to it; its
35803# output is simply discarded. So we exec the FD to /dev/null,
35804# effectively closing config.log, so it can be properly (re)opened and
35805# appended to by config.status. When coming back to configure, we
35806# need to make the FD available again.
35807if test "$no_create" != yes; then
35808 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035809 ac_config_status_args=
35810 test "$silent" = yes &&
35811 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035812 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035814 exec 5>>config.log
35815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35816 # would make configure fail if this is the last instruction.
35817 $ac_cs_success || { (exit 1); exit 1; }
35818fi
35819
John Criswell12399a12003-09-30 15:55:44 +000035820#
35821# CONFIG_SUBDIRS section.
35822#
35823if test "$no_recursion" != yes; then
35824
35825 # Remove --cache-file and --srcdir arguments so they do not pile up.
35826 ac_sub_configure_args=
35827 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035828 eval "set x $ac_configure_args"
35829 shift
35830 for ac_arg
35831 do
John Criswell12399a12003-09-30 15:55:44 +000035832 if test -n "$ac_prev"; then
35833 ac_prev=
35834 continue
35835 fi
35836 case $ac_arg in
35837 -cache-file | --cache-file | --cache-fil | --cache-fi \
35838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35839 ac_prev=cache_file ;;
35840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35842 | --c=*)
35843 ;;
35844 --config-cache | -C)
35845 ;;
35846 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35847 ac_prev=srcdir ;;
35848 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35849 ;;
35850 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35851 ac_prev=prefix ;;
35852 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35853 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035854 *)
35855 case $ac_arg in
35856 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35857 esac
35858 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035859 esac
35860 done
35861
35862 # Always prepend --prefix to ensure using the same prefix
35863 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035864 ac_arg="--prefix=$prefix"
35865 case $ac_arg in
35866 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35867 esac
Tanya Lattnerf9eb2d82009-01-22 05:17:59 +000035868 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035869
35870 ac_popdir=`pwd`
35871 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35872
35873 # Do not complain, so a configure script can configure whichever
35874 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035875 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035876
Reid Spencera773bd52006-08-04 18:18:08 +000035877 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35878 echo "$as_me:$LINENO: $ac_msg" >&5
35879 echo "$ac_msg" >&6
35880 { as_dir="$ac_dir"
35881 case $as_dir in #(
35882 -*) as_dir=./$as_dir;;
35883 esac
35884 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035885 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035886 while :; do
35887 case $as_dir in #(
35888 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35889 *) as_qdir=$as_dir;;
35890 esac
35891 as_dirs="'$as_qdir' $as_dirs"
35892 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000035893$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035894 X"$as_dir" : 'X\(//\)[^/]' \| \
35895 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035896 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000035897echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35899 s//\1/
35900 q
35901 }
35902 /^X\(\/\/\)[^/].*/{
35903 s//\1/
35904 q
35905 }
35906 /^X\(\/\/\)$/{
35907 s//\1/
35908 q
35909 }
35910 /^X\(\/\).*/{
35911 s//\1/
35912 q
35913 }
35914 s/.*/./; q'`
35915 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035916 done
Reid Spencera773bd52006-08-04 18:18:08 +000035917 test -z "$as_dirs" || eval "mkdir $as_dirs"
35918 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35919echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035920 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035921 ac_builddir=.
35922
Reid Spencera773bd52006-08-04 18:18:08 +000035923case "$ac_dir" in
35924.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35925*)
John Criswell12399a12003-09-30 15:55:44 +000035926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035927 # A ".." for each directory in $ac_dir_suffix.
35928 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35929 case $ac_top_builddir_sub in
35930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35932 esac ;;
35933esac
35934ac_abs_top_builddir=$ac_pwd
35935ac_abs_builddir=$ac_pwd$ac_dir_suffix
35936# for backward compatibility:
35937ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035938
35939case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035940 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035941 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035942 ac_top_srcdir=$ac_top_builddir_sub
35943 ac_abs_top_srcdir=$ac_pwd ;;
35944 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035945 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035946 ac_top_srcdir=$srcdir
35947 ac_abs_top_srcdir=$srcdir ;;
35948 *) # Relative name.
35949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35950 ac_top_srcdir=$ac_top_build_prefix$srcdir
35951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035952esac
Reid Spencera773bd52006-08-04 18:18:08 +000035953ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035954
35955
Reid Spencera773bd52006-08-04 18:18:08 +000035956 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035957
35958 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035959 if test -f "$ac_srcdir/configure.gnu"; then
35960 ac_sub_configure=$ac_srcdir/configure.gnu
35961 elif test -f "$ac_srcdir/configure"; then
35962 ac_sub_configure=$ac_srcdir/configure
35963 elif test -f "$ac_srcdir/configure.in"; then
35964 # This should be Cygnus configure.
35965 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035966 else
35967 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35968echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35969 ac_sub_configure=
35970 fi
35971
35972 # The recursion is here.
35973 if test -n "$ac_sub_configure"; then
35974 # Make the cache file name correct relative to the subdirectory.
35975 case $cache_file in
35976 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035977 *) # Relative name.
35978 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035979 esac
35980
Reid Spencera773bd52006-08-04 18:18:08 +000035981 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35982echo "$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 +000035983 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035984 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35985 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035986 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035987echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35988 { (exit 1); exit 1; }; }
35989 fi
35990
Reid Spencera773bd52006-08-04 18:18:08 +000035991 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035992 done
35993fi
35994